/* ============================================
   CIL Control - New Homepage Styles
   ============================================ */

/* --- Variables --- */
:root {
    --cc-blue: #31BCE9;
    --cc-blue-dark: #003FB0;
    --cc-blue-light: #1E88E5;
    --cc-orange: #F8B332;
    --cc-orange-dark: #F57C00;
    --cc-yellow: #FFC107;
    --cc-green: #4CAF50;
    --cc-gray-light: #FCFCFC;
    --cc-gray: #686E8E;
    --cc-white: #FFFFFF;
}

.text-orange{
    color: var(--cc-orange)!important;
}

/* --- General --- */
.home-page {
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
}

.home-page p{
    font-size:16px;
    line-height:22px;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page h4,
.home-page h5,
.home-page p,
.home-page a,
.home-page span {
    font-family: 'Roboto', sans-serif;
}

.home-page .btn-orange {
    background-color: var(--cc-orange);
    color: var(--cc-white);
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
}

.home-page .btn-white-orange {
    background-color: var(--cc-white);
    color: var(--cc-orange);
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: block;
    margin: 30px auto 0;
    width: fit-content;
}

.home-page .btn-white-orange:hover {
    background-color: var(--cc-gray-light);
    color: var(--cc-orange-dark);
    text-decoration: none;
}

.home-page .btn-orange:hover {
    background-color: var(--cc-orange-dark);
    color: var(--cc-white);
    text-decoration: none;
}

.home-page .section-padding {
    padding: 60px 0;
}

/* --- Navbar --- */
.home-navbar {
    background-color: var(--cc-blue) !important;
    padding: 0 15px;
    min-height: 60px;
}

.home-navbar .navbar-brand img {
    height: 40px;
}

.home-navbar .navbar-nav .nav-link {
    color: var(--cc-white) !important;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    padding: 8px 15px;
    letter-spacing: 0.5px;
}

.home-navbar .navbar-nav .nav-link:hover,
.home-navbar .navbar-nav .nav-item.active .nav-link {
    background-color: var(--cc-orange);
}

.home-navbar .btn-login {
    background-color: var(--cc-blue-dark);
    color: var(--cc-white);
    border: none;
    border-radius: 20px;
    padding: 8px 25px;
    font-weight: 600;
    font-size: 16px;
}

.home-navbar .btn-login:hover {
    background-color: var(--cc-blue-dark);
    filter: brightness(0.8);
    color: var(--cc-white);
    text-decoration: none;
}

.home-navbar .navbar-toggler {
    background-color: var(--cc-orange);
    border: none;
    border-radius: 28px;
    padding: 8px 18px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Hero Section --- */
.home-hero {
    background: var(--cc-blue);
    margin-top: 0px;
    min-height: 450px;
    overflow: visible;
    padding: 80px 0 0 0;
    position: relative;
}

.home-hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,224L80,208C160,192,320,160,480,170.7C640,181,800,235,960,250.7C1120,267,1280,245,1360,234.7L1440,224L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

.home-hero::before {
	content: "";
	background-image: url("/frontend/img/header-sub.png");
	background-size: cover;
	background-position: center;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 1;
	mix-blend-mode: overlay;
	transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
	pointer-events: none;
}

.home-hero .hero-content {
    padding: 40px 0 60px;
}

.home-hero h1 {
    color: var(--cc-white);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.home-hero h1 .highlight {
    background-color: var(--cc-blue-dark);
    color: #fff;
    padding: 2px 10px;
    display: inline-block;
}

.home-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.home-hero .hero-image img {
    max-height: 400px;
    object-fit: contain;
}

/* --- Services Intro Section --- */
.home-services-intro {
    padding: 0;
    background-color: var(--cc-white);
}

.home-services-intro img {
    max-width: 100%;
    border-radius: 8px;
    animation: bounceIn 1s ease-out;
    position:relative;
    top:-80px;
    z-index:10;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.home-services-intro .services-label {
    color: var(--cc-orange);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    margin-top:15px;
    margin-bottom: 5px;
}

.home-services-intro h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cc-blue-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.home-services-intro p {
    color: var(--cc-gray);
}

/* --- Customer Policy Section --- */
.home-policy {
    padding: 60px 0;
    background-color: var(--cc-gray-light);
}

.home-policy .policy-label {
    color: var(--cc-orange);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.home-policy h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cc-blue-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.home-policy p {
    color: var(--cc-gray);
}

.home-policy .policy-map img {
    max-width: 100%;
    opacity: 0.6;
}

/* --- Services Grid Section --- */

.home-services-grid {
    padding: 60px 0;
    background-color: var(--cc-blue);
    position: relative;
    overflow: visible;
}

.home-services-grid::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,224L80,208C160,192,320,160,480,170.7C640,181,800,235,960,250.7C1120,267,1280,245,1360,234.7L1440,224L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

.home-services-grid h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
}

.home-services-grid .service-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 16px;
    color: #fff;
}

.home-services-grid .service-item .check-icon {
    color: var(--cc-blue-dark);
    margin-right: 8px;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.home-services-grid .btn-orange {
    display: block;
    margin: 30px auto 0;
    width: fit-content;
}

/* --- Consultancy Section --- */
.home-consultancy {
    padding: 60px 0;
    background-color:var(--cc-white);
}

.home-consultancy .consultancy-image img {
    max-width: 100%;
    border-radius: 8px;
}

.home-consultancy h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cc-blue-dark);
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 20px;
}

.home-consultancy p {
    color: var(--cc-gray);
}

/* --- Training Section --- */
.home-training {
    padding: 60px 0;
    background-color: var(--cc-white);
}

.home-training h3 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 20px;
}

.home-training h3 {
    color:var(--cc-blue-dark);
}

.home-training p {
    color: var(--cc-gray);
}

.home-training .underline-orange {
    text-decoration: underline;
    color: var(--cc-orange);
    font-weight: 600;
    font-size: 14px;
}

.home-training .training-image {
    position: relative;
    display: inline-block;
}

.home-training .training-image img {
    max-width: 100%;
}

.home-training .training-image .training-alert {
    position: absolute;
    bottom: 15%;
    right: -10%;
    width: 45%;
    max-width: 200px;
    animation: floatAlert 3s ease-in-out infinite;
}

@keyframes floatAlert {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* --- Audits Section --- */
.home-audits {
    padding: 60px 0;
    background-color: var(--cc-gray-light);
}

.home-audits .audit-image img {
    max-width: 100%;
}

.home-audits h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cc-blue-dark);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.home-audits .audit-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--cc-gray);
}

.home-audits .audit-item .check-icon {
    color: var(--cc-blue-dark);
    margin-right: 10px;
    font-size: 18px;
}

/* --- Benefits Section --- */
.home-benefits {
    padding: 60px 0;
    background:var(--cc-orange);
    color: var(--cc-white);
    position: relative;
    overflow: visible;
}

.home-benefits::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,224L80,208C160,192,320,160,480,170.7C640,181,800,235,960,250.7C1120,267,1280,245,1360,234.7L1440,224L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

.home-benefits .benefits-icon {
    width: 70px;
    height: 70px;
    border: 2px solid var(--cc-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 30px;
}

.home-benefits h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.home-benefits .benefits-subtitle {
    text-align: center;
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 30px;
}

.home-benefits .benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 16px;
}

.home-benefits .benefit-item .check-icon {
    color: var(--cc-blue-dark);
    margin-right: 8px;
    flex-shrink: 0;
    margin-top: 2px;
}

.home-benefits .benefit-item.text-orange .check-icon {
    color: var(--cc-orange);
}

.home-benefits .btn-orange {
    display: block;
    margin: 30px auto 0;
    width: fit-content;
}

/* --- Sponsors Section --- */
.home-sponsors {
    padding: 30px 0;
    background-color: var(--cc-white);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.home-sponsors .sponsor-logos img {
    display: block;
    margin:0px auto;
    width:100%;
    max-width: 1024px;
}

/* --- Footer --- */
.home-footer {
    background-color: #062E67;
    color: var(--cc-white);
    padding: 40px 0 20px;
}

.home-footer .footer-brand img {
    height: 55px;
    margin-bottom: 10px;
}

.home-footer .footer-brand p {
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.5;
}

.home-footer .footer-links h5 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
}

.home-footer .footer-links a {
    color: var(--cc-white);
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
    text-decoration: none;
}

.home-footer .footer-links a:hover {
    color: var(--cc-white);
}

.home-footer .btn-orange {
	background-color:var(--cc-orange) ;
	color:var(--cc-white) ;
	border: none;
	border-radius: 25px;
	padding: 10px 30px;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: background-color 0.3s ease, color 0.3s ease;
	display: block;
	margin: 30px 0;
	width: fit-content;
}

/* --- WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float i {
    color: white;
    font-size: 28px;
}

@media (max-width: 991px) {
    .home-navbar .navbar-collapse {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 380px;
        height: 100vh;
        background-color: #003FB0;
        z-index: 2000;
        padding: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        display: block !important;
    }

    .home-navbar .navbar-collapse.show {
        left: 0;
    }

    .home-navbar:has(.navbar-collapse.show)::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
    }

    .home-navbar .navbar-collapse .nav-close {
        display: flex;
        justify-content: flex-end;
        padding: 15px 20px;
    }

    .home-navbar .navbar-collapse .nav-close-btn {
        background: none;
        border: none;
        color: var(--cc-white);
        font-size: 36px;
        cursor: pointer;
        padding: 5px 0px;
        line-height: 1;
    }

    .home-navbar .navbar-nav {
        flex-direction: column;
        padding: 0;
    }

    .home-navbar .navbar-nav .nav-item {
        border-bottom: none;
    }

    .home-navbar .navbar-nav .nav-link {
        padding: 15px 25px;
        font-size: 22px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .home-navbar .navbar-nav .nav-item.active .nav-link {
        background-color: var(--cc-orange);
    }

    .home-navbar .navbar-right-mobile .btn-login {
        border-radius: 20px;
        padding: 8px 20px;
        margin-left:15px;
    }

    /* Hero */
    .home-hero {
        text-align: center;
        padding: 60px 0 0;
    }

    .home-hero h1 {
        font-size: 2rem;
    }

    .home-hero .hero-subtitle {
        margin: 0 auto 30px;
    }

    .home-hero .hero-image {
        text-align: center;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .home-hero h1 {
        font-size: 1.6rem;
    }

    .section-padding {
        padding: 40px 0;
    }

    .home-services-grid .row > div {
        margin-bottom: 15px;
    }
}
