/* ============================================================
   index-page.css — All styles extracted from index.blade.php
   ============================================================ */

/* --- General --- */
.cn-hover-box:hover .cn-content.height {
    height: 0px;
    display: block;
}

.vapt-bg {
    background: #71a1d1;
}

.tab-content-box {
    height: 300px !important;
}

/* --- Swiper --- */
.swiper {
    width: 100%;
    height: auto;
    position: relative;
    padding-bottom: 60px;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    display: flex;
}

.itmes {
    width: 100%;
    height: 100%;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    display: none !important;
}

.swiper-button-next,
.swiper-button-prev {
    height: auto !important;
}

/* --- Typography --- */
.cn-l3-h {
    font-family: 'Times New Roman', Times, serif !important;
    font-weight: 600;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.cn-l3-p {
    font-style: italic !important;
}

/* --- Image --- */
.cn-hover-img img {
    height: 250px !important;
}

/* --- Industries slider --- */
.industry-slider .swiper-wrapper {
    height: 35% !important;
}

/* --- Desktop tabs --- */
.home-tabs li {
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-tabs {
    margin: 0 21px !important;
    gap: 30px !important;
}

.tabs-nav1 {
        margin: 0px 0px 15px !important;
    gap: 30px !important;
    background: #71a1d1;
    padding: 15px 15px 15px !important;
    
}

.home-tabs2 li {
    width: 375px;
    white-space: nowrap;
}
.home-tabs2 {
    margin: 0 17px !important;
}

/* --- Scroll to top button --- */
.scrollToTophome {
    position: fixed;
    bottom: 20px;
    left: 15px;
    background-color: #18ba60;
    transition: all 0.4s ease-in-out 0s;
    height: 40px;
    line-height: 40px;
    width: 40px;
    border-radius: 100%;
    color: #fff;
    text-align: center;
    font-size: 18px;
    opacity: 1;
    z-index: 99999;
}
.scrollToTophome i {
    line-height: 40px;
}
.scrollToTophome:hover {
    color: #fff;
}

/* --- Floating sub-header --- */
#floating-sub-header {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 995;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    transition: top 0.3s;
    background-color: #cbdef1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23ffffff' fill-opacity='0.17'%3E%3Cpath fill-rule='evenodd' d='M0 0h4v4H0V0zm4 4h4v4H4V4z'/%3E%3C/g%3E%3C/svg%3E");
}
.floating-header-nav {
    padding: 16px;
    text-align: center;
    font-weight: bold;
}

/* ============================================================
   Desktop: show/hide helpers
   ============================================================ */
@media only screen and (min-width: 769px) {
    .significance-section-mobile.mobile-view {
        display: none !important;
    }
    .significance-sec.desktop-view {
        display: block !important;
    }
}

/* ============================================================
   Mobile — section 1 (significance)
   ============================================================ */
@media only screen and (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }

    .significance-sec.desktop-view {
        display: none !important;
    }
    .significance-section-mobile.mobile-view {
        display: block !important;
    }

    .category-header {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid transparent;
        background-color: #1f5183;
        padding: 10px 20px;
        position: relative;
        z-index: 2;
    }
    .category-header:hover { background-color: #2a6bb0; }
    .category-header.active { background-color: #193a64 !important; }
    .category-header.active h3 { color: #ffffff !important; font-weight: 600; }

    .category-toggle-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .category-header.active .category-toggle-icon {
        color: #ffffff;
        transform: rotate(180deg);
    }

    .category-content {
        display: none;
        background: #f8f9fa;
        overflow: hidden;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .category-content.expanded {
        display: block;
        height: auto !important;
    }

    .significance-mobile-card {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin: 10px;
        height: auto;
    }

    .template15-wrap-main-content { padding: 20px; }
    .template15-wrap-main-content h4 {
        margin: 8px 0;
        font-size: 1.1rem;
        color: #1f2937;
        line-height: 1.4;
        font-weight: 600;
    }
    .template15-wrap-main-content p {
        color: #4b5563;
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .know-more { margin-top: 15px; }
    .know-more a {
        color: #1f5183;
        font-weight: 600;
        text-decoration: none;
        font-size: 0.9rem;
    }
    .know-more a:hover { text-decoration: underline; }

    .skeleton-box { transition: opacity 0.3s ease; }
    .skeleton-box[data-skeleton] {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading 1.5s infinite;
    }
    .skeleton-box:not([data-skeleton]) {
        background: none !important;
        animation: none !important;
    }
    @keyframes loading {
        0%   { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    .m-container {
        margin-bottom: 10px;
        border: 1px solid #e2e8f0;
        overflow: hidden;
        border-radius: 8px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0px !important;
        transform: translateZ(0);
    }
    .m-container.active-container { box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15); }

    .swiper-container { padding: 15px 0; height: auto !important; }
    .swiper-wrapper   { height: auto !important; }
    .swiper-slide     { height: auto !important; }

    .navigation-container {
        padding: 25px 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .swiper-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: #cbd5e1;
        opacity: 0.6;
        transition: all 0.3s ease;
        margin: 0 !important;
    }
    .swiper-pagination-bullet-active {
        background: #1f5183;
        opacity: 1;
        transform: scale(1.2);
    }
    .swiper-pagination-bullets.swiper-pagination-horizontal { bottom: 15px !important; }

    .count-nav-box {
        font-size: 14px;
        font-weight: 500;
        border-radius: 16px;
        min-width: 50px;
        text-align: center;
        right: 15px !important;
    }

    .home-page .indu-moblie1 {
        padding-bottom: 20px;
        margin-top: 0px !important;
    }

    .category-content.expanding,
    .category-content.collapsing {
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* --- Mobile section 2 (VAPT) --- */
    .vapt-sec.desktop-view { display: none !important; }
    .vapt-section-mobile.mobile-view { display: block !important; padding: 15px; }

    .empower-industry-box {
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        margin: 10px;
        height: auto;
        transition: all 0.3s ease;
    }
    .empower-industry-box:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transform: translateY(-2px); }
    .empower-industry-box .cn-main-content   { height: 160px !important; }
    .empower-industry-box .mobile-cn-main-content { height: 100px !important; }

    .cn-hover-box { position: relative; overflow: hidden; }
    .cn-hover-img { height: 400px; overflow: hidden; }
    .cn-hover-img img { width: 100%; height: 400px !important; object-fit: cover; transition: transform 0.3s ease; }
    .empower-industry-box:hover .cn-hover-img img { transform: scale(1.05); }
    .empower-industry-box:hover .cn-content { opacity: 1; }
    .cn-content p { font-size: 0.9rem; line-height: 1.5; margin: 0; text-align: center; }

    .cn-main-content { padding: 20px; background: white; }
    .cn-main-content-enclosed { display: block; text-decoration: none; color: #1f2937; font-size: 0.9rem; color: #1f5183; font-weight: 600; align-items: center; justify-content: space-between; }
    .cn-main-content-enclosed h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 10px; color: #1f2937; font-weight: 600; }
    .cn-main-content-enclosed .fa { font-size: 0.8rem; transition: transform 0.3s ease; }
    .empower-industry-box:hover .cn-main-content-enclosed .fa { transform: translateX(3px); }
    .cn-main-content-enclosed:hover { color: #193a64; }
    .vapt-section-mobile .navigation-container { margin-top: 15px; }

    /* --- Mobile section 3 (GRC) --- */
    .grc-sec.desktop-view { display: none !important; }
    .grc-section-mobile.mobile-view { display: block !important; padding: 15px; }
    .grc-section-mobile { margin-top: 20px; }
    .grc-section-mobile .m-container { margin-bottom: 15px; }

    /* --- Mobile section 4 (Services) --- */
    .services-section-mobile.mobile-view { display: block !important; padding: 15px; }
    .services-section-mobile .navigation-container { margin-top: 15px; }

    /* --- Mobile section 5 (Managed) --- */
    .managed-sec.desktop-view { display: none !important; }
    .managed-section-mobile.mobile-view { display: block !important; padding: 15px; }
    .managed-section-mobile { margin-top: 20px; }
    .managed-section-mobile .m-container { margin-bottom: 15px; }

    /* --- Mobile section 8 (IT) --- */
    .it-sec.desktop-view { display: none !important; }
    .it-section-mobile.mobile-view { display: block !important; padding: 15px; }

    .it-box { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); margin: 10px; }
    .it-img { width: 100%; height: 200px; overflow: hidden; }
    .it-img img { width: 100%; height: 100%; object-fit: cover; }
    .it-content { padding: 20px; }
    .it-content p { color: #4b5563; font-size: 0.9rem; line-height: 1.5; margin-bottom: 15px; }
    .it-content a { color: #1f5183; font-weight: 600; text-decoration: none; font-size: 0.9rem; }
    .it-content a:hover { text-decoration: underline; }

    .home-banner1 { width: 100%; height: 250px; overflow: hidden; border-radius: 8px; }
    .home-banner1 img { width: 100%; height: 100%; object-fit: cover; }
    .it-section-mobile .navigation-container { margin-top: 15px; }

    /* --- Mobile section 11 (ITS) --- */
    .its-sec.desktop-view { display: none !important; }
    .its-section-mobile.mobile-view { display: block !important; padding: 15px; }
    .its-section-mobile { margin-top: 20px; }
    .its-section-mobile .m-container { margin-bottom: 15px; }

    /* --- Mobile media section --- */
    .media-sec.desktop-view { display: none !important; }
    .media-section-mobile.mobile-view { display: block !important; padding: 15px; }

    .template15-wrap-main { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); margin: 10px; height: auto; }
    .template15-wrap-main-img { height: 180px; overflow: hidden; }
    .template15-wrap-main-img img { width: 100%; height: 100%; object-fit: cover; }
    .template15-wrap-main-content { padding: 15px; }
    .template15-wrap-main-content span { color: #6b7280; font-size: 0.875rem; }
    .template15-wrap-main-content h4 { margin: 8px 0; font-size: 1.1rem; color: #1f2937; line-height: 1.4; }
    .template15-wrap-main-content h4 a { color: #1f2937; text-decoration: none; }
    .template15-wrap-main-content h4 a:hover { color: #1f5183; }
    .template15-wrap-main-content p { color: #4b5563; font-size: 0.9rem; line-height: 1.5; margin-bottom: 10px; }
    .template15-wrap-main-content p a { color: #1f5183; font-weight: 600; text-decoration: none; }
    .template15-wrap-main-content p a:hover { text-decoration: underline; }

    .podcast-video { width: 100%; height: 200px; overflow: hidden; border-radius: 8px; cursor: pointer; position: relative; }
    .podcast-video img { width: 100%; height: 100%; object-fit: cover; }
    .podcast-video::after {
        content: '';
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        width: 60px; height: 60px;
        border-radius: 50%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 24px;
    }
    .podcast-video:hover::after { background-color: rgba(25, 58, 100, 0.9); }
    .media-section-mobile .navigation-container { margin-top: 15px; }

    /* --- Mobile training section --- */
    .indu-moblie1.mobile-view { display: block !important; padding: 15px; margin-top: 0 !important; }
    .certification-slider .navigation-container { margin-top: 15px; }

    /* --- Industry slider mobile --- */
    .industry-slider .swiper-wrapper { height: auto !important; min-height: 150px; }
    .industry-slider .swiper-slide   { height: auto !important; }
    .industry-slider .items           { height: 100% !important; }
}

@media only screen and (max-width: 480px) {
    .industry-slider .swiper-wrapper { height: auto !important; min-height: 120px; }
}

/* Make the Security Assessment Services cards clickable (wrap them in an
   anchor to their L3 page) without changing their look. */
.l3-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
}
