

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .ccc-carousel{
	  height:100px;
  font-size:10px}
	.carousel-caption.ccc-carousel{
		top:10%;
	}
	.carousel-caption.ccc-carousel>hr,h4{
		display:none;
	}
	.carousel-caption.ccc-carousel>h1{
		font-size:30px;
		color:white;
	}
/* 	.carousel-caption.ccc-carousel>a{
		display:none;
	} */
	.carousel-caption.ccc-carousel>br{
		display:none;
	}
	.carousel-caption{
		right: 0;
		left: 0;
	}
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  .ccc-carousel{
	  height:200px;
  font-size:12px}
	.carousel-caption.ccc-carousel{
		top:30%;
	}
	.carousel-caption.ccc-carousel>hr,h4{
		display:none;
	}
	.carousel-caption.ccc-carousel>h1{
		font-size:50px;
		color:white;
	}
	.carousel-caption.ccc-carousel>h1{
		right: 0;
		left: 0;
	}
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .ccc-carousel{
	  height:400px;
  font-size:10px}
	.carousel-caption.ccc-carousel{
		top:40%;
	}
	.carousel-caption.ccc-carousel>hr,h4{
		display:none;
	}
	.carousel-caption.ccc-carousel>h1{
		font-size:50px;
		color:white;
	}
} 

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .ccc-carousel{
	  height:700px;
  font-size:25px}
	.carousel-caption.ccc-carousel{
		top:60%;
	}
	.carousel-caption.ccc-carousel>hr,h4{
		display:block;
	}
	.carousel-caption.ccc-carousel>h1{
		font-size:50px;
		color:white;
	}
	.carousel-caption.ccc-carousel>h1{
		font-size:50px;
		color:white;
	}
} 

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .ccc-carousel{
	  height:700px;
  font-size:30px}
	.carousel-caption.ccc-carousel{
		top:50%;
	}
	.carousel-caption.ccc-carousel>hr,h4{
		display:block;
	}
	.carousel-caption.ccc-carousel>h1{
		font-size:50px;
		color:white !important;
	}
}

/* Wrapper to contain the whole layout and force it Full-Width */
        .homepage-wrapper { 
            width: 100vw; /* Forces it to the exact width of the viewport (screen) */
            position: relative;
            left: 50%; /* Pushes the left edge to the center of the restricted CMS box */
            transform: translateX(-50%); /* Pulls it exactly half the screen width to the left */
            margin: 0;
            padding: 0;
            overflow-x: hidden; 
        }

        /* 1. Hero Video Section */
        .custom-hero-video-container {
            width: 100%;
            height: 100vh; 
            min-height: 400px; /* Adjusted slightly so it isn't massive on small laptops */
            overflow: hidden;
            position: relative;
            background-color: #000; 
        }

        .custom-hero-video {
            width: 100%;
            height: 100%;
            object-fit: cover; 
            position: absolute;
            top: 0;
            left: 0;
        }

      /* 2. Icon Navigation */
        .custom-icon-nav { 
            display: flex; 
            justify-content: center; 
            flex-wrap: wrap; 
            gap: 120px; /* Increased from 60px to spread them out more */
            align-items: center; 
            background-color: #04264b; 
            padding: 80px 20px; /* Increased from 40px to make the dark blue bar much taller */
            width: 100%; 
        }

        .custom-icon-item { 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            text-decoration: none; 
            gap: 15px; /* Added a bit more space between the icon and the text */
            transition: transform 0.2s ease; 
        }

        .custom-icon-item:hover {
            transform: scale(1.05); 
        }

        .custom-icon-item i { 
            color: white; 
            font-size: 4rem; /* Increased from 2.5rem for much larger icons */
        }
        
        .custom-icon-item span { 
            color: #ffd700; 
            font-size: 1.3rem; /* Increased from 0.85rem for highly visible text */
            font-weight: 600; 
            text-align: center; 
        }

        /* 3. Quick Links */
        .custom-quick-links { 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            background-color: #009ada; 
            padding: 70px 20px; /* Increased from 40px to make the light blue bar taller */
            gap: 35px; /* Increased from 20px to space the text out vertically */
            width: 100%;
        }

        .custom-quick-links a { 
            color: white; 
            text-decoration: none; 
            font-size: 1.8rem; /* Increased from 1.3rem for much larger text */
            font-weight: bold; 
            transition: color 0.2s ease;
        }

        .custom-quick-links a:hover {
            color: #04264b; 
        }

        /* 4. Content Blocks */
        .custom-content-blocks { 
            display: flex; 
            justify-content: center; 
            flex-wrap: wrap; /* Allows boxes to stack naturally */
            background-color: #dcdcdc; 
            padding: 60px 20px; 
            gap: 60px; 
            width: 100%;
        }

        .custom-column { 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            width: 100%; 
            max-width: 500px; /* Made slightly wider for better desktop balance */
        }

        .custom-column h2 { 
            color: #04264b; 
            margin-bottom: 20px; 
            font-size: 1.5rem; 
        }

        .custom-dark-box { 
            width: 100%; 
            height: 350px; 
            background-color: #04264b; 
            border-radius: 8px; /* Gives the boxes slightly modern rounded corners */
            box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Adds a subtle shadow so they stand out from the grey */
        }

       /* --- TABLET RESPONSIVENESS --- */
        @media (max-width: 900px) {
            .custom-icon-nav { gap: 60px; padding: 60px 20px; }
            .custom-icon-item i { font-size: 3rem; }
            .custom-quick-links { padding: 50px 20px; }
            .custom-content-blocks { gap: 40px; }
        }

        /* --- MOBILE RESPONSIVENESS --- */
        @media (max-width: 600px) {
            .custom-hero-video-container {
                height: 50vh; 
                min-height: 300px;
            }

            .custom-icon-nav { 
                gap: 30px; 
                padding: 40px 10px;
            }
            
            .custom-icon-item { 
                flex: 1 1 30%; 
            }

            .custom-icon-item i { font-size: 2.2rem; } /* Scales huge icons back down for phones */
            .custom-icon-item span { font-size: 1rem; }
            
            .custom-quick-links a { font-size: 1.4rem; } /* Scales huge text back down for phones */

            .custom-content-blocks { 
                flex-direction: column; 
                align-items: center; 
                padding: 40px 15px;
            }

            .custom-column {
                max-width: 100%; 
            }
        }