/* =========================================
   NEW SECTIONS STYLING
   ========================================= */

/* --- WHY CHOOSE KLB --- */
.why-section {
    background: var(--white);
    text-align: center;
    position: relative;
    padding-top: 80px; /* Reduced padding to fit flow */
}

/* Gold Underline for Headings */
.heading-underline::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brand-accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.why-card {
    padding: 30px 20px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.why-card:hover {
    transform: translateY(-8px);
}

.why-icon-box {
    width: 80px;
    height: 80px;
    background: #f8f9fc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--brand-navy);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.3s ease;
}

.why-card:hover .why-icon-box {
    background: var(--brand-cyan);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 159, 227, 0.2);
}

/* Gold Accent Dot */
.why-icon-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.why-icon-box::before {
    content: '✓';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--brand-accent);
    font-weight: 800;
    z-index: 2;
}

.why-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--brand-navy);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

.why-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}

/* --- MEMBERSHIP SECTION --- */
.members-section {
    background-color: #101135; /* Dark Navy Background */
    color: white;
    text-align: center;
    padding: 80px 0;
}

.members-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.member-box {
    background: white;
    width: 150px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 15px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.member-box:hover {
    transform: scale(1.05);
}

.member-placeholder {
    font-weight: 800;
    color: var(--brand-navy);
    font-size: 1.8rem;
    text-transform: uppercase;
    font-family: 'Manrope', sans-serif;
    line-height: 1;
}

/* RESPONSIVE ADJUSTMENTS */

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .why-section {
        padding-top: 60px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .why-card {
        padding: 16px 12px;
    }
    
    .why-icon-box {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .why-card h4 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }
    
    .why-card p {
        font-size: 0.85rem;
        max-width: 100%;
    }
    
    .members-section {
        padding: 60px 0;
    }
    
    .members-grid {
        gap: 10px;
        padding: 0 8px;
    }
    
    .member-box {
        width: 95px;
        height: 75px;
        padding: 12px;
        border-radius: 10px;
    }
    
    .member-logo {
        max-width: 90%;
        max-height: 90%;
    }
}

/* Mobile Large (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .why-section {
        padding-top: 70px;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        margin-top: 50px;
    }
    
    .why-card {
        padding: 20px 15px;
    }
    
    .why-icon-box {
        width: 75px;
        height: 75px;
        font-size: 1.9rem;
        margin-bottom: 22px;
    }
    
    .why-card h4 {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }
    
    .why-card p {
        font-size: 0.9rem;
        max-width: 95%;
    }
    
    .members-section {
        padding: 70px 0;
    }
    
    .members-grid {
        gap: 18px;
        padding: 0 10px;
    }
    
    .member-box {
        width: 120px;
        height: 95px;
        padding: 15px;
        border-radius: 11px;
    }
    
    .member-placeholder {
        font-size: 1.6rem;
    }
}

/* Tablet/Small Desktop (769px - 992px) */
@media (max-width: 992px) and (min-width: 769px) {
    .why-section {
        padding-top: 80px;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
        margin-top: 55px;
    }
    
    .why-card {
        padding: 25px 18px;
    }
    
    .why-icon-box {
        width: 78px;
        height: 78px;
        font-size: 2rem;
    }
    
    .why-card h4 {
        font-size: 1.2rem;
        margin-bottom: 13px;
    }
    
    .members-section {
        padding: 80px 0;
    }
    
    .members-grid {
        gap: 20px;
    }
    
    .member-box {
        width: 140px;
        height: 110px;
        padding: 17px;
    }
}

/* Standard Desktop (993px - 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
    .why-grid {
        gap: 32px;
    }
    
    .members-grid {
        gap: 25px;
    }
    
    .member-box {
        width: 155px;
        height: 118px;
    }
}

/* Large Desktop (1201px+) */
@media (min-width: 1201px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .member-box {
        width: 160px;
        height: 120px;
    }
} 
/* MEMBER LOGO STYLING */
.member-box {
    background: white;
    width: 160px;       /* Fixed width for uniformity */
    height: 120px;      /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 20px;      /* Padding ensures logos don't touch edges */
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-box:hover {
    transform: scale(1.05);
}

.member-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures logo fits without cropping */
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Hover Effect: Bring back color */
.member-box:hover .member-logo {
    filter: grayscale(0%);
    opacity: 1;
}