/* ==========================================================================
   KSSFCL PREMIUM DUTIES - FULL STACK
   ========================================================================== */

/* 1. WELCOME & OVERLAP SECTION (The image sitting on the edge) */
.welcome { 
    background: #ffffff;
    padding: 80px 0 140px 0 !important; 
    position: relative;
    z-index: 1;
}

.AllaboutKssfcl {
    position: relative;
    z-index: 10;
    margin-top: -120px; 
    margin-bottom: -60px; 
    display: flex;
    justify-content: center;
}

.AllaboutKssfclimg {
    width: 90%; 
    max-width: 1100px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

/* 2. THE YELLOW SECTION (The Background) */
.premium-duty-section {
    background: #fed700;
    padding: 100px 0 !important;
    position: relative;
    z-index: 5;
}

/* 3. THE TAB BUTTONS AREA */
.sophisticated-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: -25px; 
    position: relative;
    z-index: 20; 
    flex-wrap: wrap;
}

/* --- THE BUTTON LOGIC --- */

/* Glassy State (Inactive) */
.sophisticated-tabs .btn-outline-warning {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(139, 0, 0, 0.2) !important;
    color: #112A46 !important;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Highlight State (Active/Clicked) */
.sophisticated-tabs .btn-outline-warning.active {
    background: #8B0000 !important; /* Maroon Background */
    color: #fed700 !important;      /* Gold Text */
    border-color: #8B0000 !important;
    transform: scale(1.08);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.3);
    z-index: 5;
}

/* 4. THE WHITE CONTENT WRAPPER (The Glass Card) */
.premium-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); 
    border-radius: 40px;
    padding: 70px 50px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
}

/* --- THE CONTENT VISIBILITY LOGIC (Fixes the stacking issue) --- */

/* Hide all panes by default */
.premium-pane {
    display: none; 
    opacity: 0;
}

/* Show only the active pane with animation */
.premium-pane.active {
    display: block !important;
    opacity: 1;
    animation: premiumFade 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes premiumFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 5. INTERNAL GRID & TEXT STYLING */
.pane-title {
    color: #8B0000;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 40px;
    border-left: 8px solid #fed700;
    padding-left: 20px;
}

.micro-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.micro-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 20px;
}

.micro-icon-wrapper {
    background: #fed700;
    color: #112A46;
    padding: 15px;
    border-radius: 18px;
    display: flex;
    flex-shrink: 0;
}

.micro-icon-wrapper .material-symbols-rounded {
    font-size: 28px !important;
}

.micro-text strong {
    display: block;
    font-size: 1.25rem;
    color: #112A46;
    margin-bottom: 8px;
}

.micro-text p {
    margin: 0;
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* 6. MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .premium-content-wrapper {
        padding: 40px 20px;
        margin: 0 15px;
    }
    .pane-title {
        font-size: 1.6rem;
    }
    .sophisticated-tabs {
        gap: 8px;
    }
    .sophisticated-tabs .btn {
        padding: 8px 12px !important;
        font-size: 0.9rem;
    }
}

/* MEMBERSHIP SECTION STYLES */
.membership-section {
    background: #f8f9fa; /* Soft light grey to separate from yellow */
    padding: 100px 0;
}

.membership-card {
    background: #ffffff;
    border-radius: 35px;
    padding: 50px 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    height: 100%;
}

.membership-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(139, 0, 0, 0.12);
}

.highlight-border {
    border: 2px solid #fed700;
}

.card-icon-header {
    width: 80px;
    height: 80px;
    background: #8B0000; /* Maroon Theme */
    color: #fed700;     /* Gold Icon */
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
}

.card-icon-header .material-symbols-rounded {
    font-size: 40px !important;
}

.membership-card h3 {
    color: #112A46;
    font-weight: 800;
    margin-bottom: 5px;
}

.subtitle {
    color: #8B0000;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.card-body-text {
    text-align: left;
    color: #555;
    line-height: 1.7;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.check-list li {
    padding-left: 35px;
    position: relative;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #444;
}

.check-list li::before {
    content: "check_circle";
    font-family: 'Material Symbols Rounded';
    position: absolute;
    left: 0;
    color: #28a745; /* Success Green */
    font-size: 22px;
}

:root {
        --k-maroon: #800000;
        --k-gold: #FFD700;
        --k-cream: #fffdf5;
    }

    .divisional-section {
        padding: 60px 15px;
        background-color: var(--k-cream);
        font-family: 'Poppins', sans-serif;
    }

    .section-header {
        text-align: center;
        margin-bottom: 50px;
    }

    .section-header h2 {
        color: var(--k-maroon);
        font-size: 2.2rem;
        font-weight: 800;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .header-bar {
        width: 60px;
        height: 5px;
        background: var(--k-gold);
        margin: 0 auto;
        border-radius: 5px;
    }

    .office-grid {
        display: grid;
        /* Forces the 4-in-a-row layout on desktop */
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        max-width: 1300px;
        margin: 0 auto;
    }

    .office-card {
        background: #ffffff;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(128, 0, 0, 0.06);
        transition: all 0.4s ease;
        border: 1px solid rgba(128, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
    }

    .office-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(128, 0, 0, 0.15);
        border-color: var(--k-gold);
    }

    .img-box {
        height: 160px;
        position: relative;
        overflow: hidden;
    }

    .office-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

    .office-card:hover .office-img {
        transform: scale(1.1);
    }

    /* The 'Beautiful' Slanted Divider */
    .img-box::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 30px;
        background: white;
        clip-path: polygon(0 100%, 100% 100%, 100% 0);
    }

    .office-info {
        padding: 20px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    .office-info h3 {
        color: var(--k-maroon);
        font-size: 1.2rem;
        margin-bottom: 10px;
        font-weight: 700;
        border-left: 4px solid var(--k-gold);
        padding-left: 10px;
    }

    .office-info p {
        color: #555;
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .contact-btn {
        margin-top: auto;
        background: var(--k-maroon);
        color: var(--k-gold);
        text-align: center;
        padding: 10px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.85rem;
        transition: 0.3s;
    }

    .contact-btn:hover {
        background: #5a0000;
        color: #fff;
    }

    /* Tablet/Mobile View Adjustments */
    @media (max-width: 1100px) {
        .office-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
        .office-grid { grid-template-columns: 1fr; }
        .section-header h2 { font-size: 1.8rem; }
    }

/* Professional Floating Back-to-Top Button */
.btn-primary.shadow {
    background-color: #0056b3; /* Or your specific brand blue */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
}

.btn-primary.shadow:hover {
    background-color: #003d7a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}

.btn-primary.shadow i {
    font-size: 1.5rem;
    line-height: 0;
}