/* Apply gradient to all pages EXCEPT those with a .hero section */
body:not(:has(.hero)) {
    background: linear-gradient(135deg, #0A2A4D 0%, #104976 40%, #2CBFAE 100%);
    background-attachment: fixed;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===========================
   MAIN HEADER
   =========================== */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(
        135deg,
        rgba(10, 42, 77, 0.85) 0%,
        rgba(16, 73, 118, 0.65) 40%,
        rgba(44, 191, 174, 0.45) 100%
    );
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25); /* NEW */
}

.gradient {
    background: linear-gradient(to right, #2CBFAE, #5CE1E6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* This is the key to making the gradient visible */
    white-space: nowrap; 
}

.sl-builtby {
    opacity: 0.7;
}

/* ===========================
   NAV GROUPS
   =========================== */
.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-header .logo img {
  height: 80px;
  width: auto;
  margin-bottom: -5px;
  transition: all 0.3s ease;
}

/* Mobile menu icon */
.isolated-header .hamburger {
    font-size: 2rem;
    background: none;
    border: none;
    color: #2CBFAE;
    cursor: pointer;
    display: none; /* Hidden on desktop */
}

/* MOBILE NAV */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: rgba(10,42,77,0.92);
    backdrop-filter: blur(10px);
    overflow-x: hidden;
    transition: width 0.3s ease;
    z-index: 5000;
    padding-top: 60px;
}

.mobile-nav.show {
    width: 260px;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav a {
    display: block;
    padding: 16px 26px;
    font-size: 1.3rem;
    color: white;
    text-decoration: none;
}

.mobile-nav a:hover {
    color: #2CBFAE;
}

.close-mobile-nav {
    position: absolute;
    top: 10px;
    right: 22px;
    font-size: 38px;
    background: none;
    border: none;
    color: #2CBFAE;
    cursor: pointer;
}


/* NAV RESPONSIVE BREAKPOINTS */
@media (max-width: 980px) {
    .isolated-header .nav-left .nav-link,
    .isolated-header .nav-right .nav-link,
    .isolated-header .nav-center {
        display: none;
    }

    .isolated-header .hamburger {
        display: block;
    }

    .isolated-header .nav-left {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .isolated-header .logo img {
        height: 60px;
    }

    .isolated-mobile-nav a {
        font-size: 1.25rem;
    }
}

/* ============================================================
   PAGE BASE
   ============================================================ */

.testimonials-body {    
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #e9f4f3;
    overflow-x: hidden;
}

main {
    overflow: visible !important;
}

/* (Legacy header used by testimonials-base layout) */
.tl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 5000;
    background: rgba(10, 42, 77, 0.6);
    backdrop-filter: blur(10px);
}

.tl-header .logo img {
    height: 80px;
}

.hamburger {
    font-size: 2rem;
    color: #2CBFAE;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==================== OVERLAY MENU ==================== */
.overlay-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 42, 77, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 2000;
}
.overlay-menu.show { opacity: 1; visibility: visible; }

.overlay-menu ul { list-style: none; text-align: center; padding: 0; }
.overlay-menu li { margin: 1.4rem 0; }
.overlay-menu a {
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    transition: color 0.3s;
}
.overlay-menu a:hover { color: #2CBFAE; }

.close-menu {
    position: absolute; top: 20px; right: 30px;
    font-size: 2.4rem; color: #2CBFAE;
    cursor: pointer; border: none; background: none;
}

/* ============================================================
    TESTIMONIALS SECTION (GRID LAYOUT)
    ============================================================ */

.testimonials-grid-section {
    padding: 60px 0 140px;
    background: linear-gradient(135deg, #0A2A4D 0%, #104976 40%, #2CBFAE 100%);
    min-height: 100vh;
}

.testimonials-grid-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    padding-top: 0px;
}

.testimonials-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
}

.testimonials-header h1 {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #c0f0ec);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; 
}

.testimonials-header p {
    font-size: 1.3rem;
    line-height: 1.7;
    opacity: 0.92;
}

/* --- Grid Container --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: stretch;
    margin-top: 40px;
}

/* --- Testimonial Card --- */
.testimonial-card {
    background: #fff;
    border-radius: 20px;
    border-top: 6px solid #2CBFAE;
    padding: 2.5rem 2.8rem 2.5rem;
    color: #0A2A4D;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.2);
}

/* Decorative large quote */
.testimonial-card::before {
    content: "❝";
    font-size: 80px;
    color: rgba(10,42,77,0.08);
    position: absolute;
    top: 40px;
    right: 610px;
    line-height: 1;
}

/* --- Initial Bubble --- */
.initial-badge {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #2CBFAE;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    position: absolute;
    top: -32px;
    left: 28px;
    box-shadow: 0 8px 20px rgba(44, 191, 174, 0.4);
}

blockquote {
    margin: 2.5rem 0 1.2rem;
    line-height: 1.7;
    font-size: 1.15rem;
    font-style: italic;
    color: #2c2c2c;
}

.quote-text {
    margin: 0;
}

.expand-link {
    color: #2CBFAE;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.expand-link:hover {
    color: #1a8b79;
}

.author-info {
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.tl-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0A2A4D;
    line-height: 1.2;
}

.tl-role {
    font-size: 0.95rem;
    color: #2CBFAE;
    opacity: 0.7;
    margin-top: 0.2rem;
}

/* ==================== FOOTER ==================== */ 
.footer-content-testimonials {
  background-color: #0A2A4D;
  color: white;
  text-align: center;
  padding: 2rem 10%;
}
.social-icons img {
  width: 28px; height: 28px;
  margin: 0 0.5rem;
  transition: transform 0.3s, filter 0.3s;
}
.social-icons img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px #2CBFAE);
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    font-size: 1.3rem;
    opacity: 0.8;
}

    /* ============================================
    FIX: Keep global nav colours on this page
    ============================================ */

    .main-header .nav-link {
        color: #0A2A4D;              /* Navy text */
        text-decoration: none;
        font-weight: 500;
    }

    .main-header .nav-link:hover {
        color: #2CBFAE;              /* Teal on hover */
    }

    .main-header .nav-link.nav-active {
        color: #2CBFAE;              /* Active page = teal */
    }

    /* Right-side links → lighter navy */
    .nav-right .nav-link {
        color: rgba(230,240,255,0.85); /* NEW */
    }
    .nav-left .nav-link {
        color: white; /* Applies white color to ALL nav-link elements within nav-left */
    }


/* ============================================================
   MODAL — DESKTOP WHITE / MOBILE DARK
   ============================================================ */

#testimonialModal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(5, 18, 35, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    padding: 30px;
    overflow-y: auto;
}

#testimonialModal.open {
    display: flex;
}

/* DESKTOP — WHITE MODAL CARD */
.modal-dialog {
    background: #ffffff;
    color: #0A2A4D;
    max-width: 950px;
    width: 100%;
    padding: 4.5rem 3rem 2.8rem;
    border-radius: 28px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.35);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    animation: modalPopIn .35s ease forwards;

    /* ensures inner elements (like top bar) stay clipped to the card */
    overflow: hidden;
}

/* POP-IN ANIMATION */
@keyframes modalPopIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* TEAL TOP STRIP (MATCHES CARD BORDER) */
.modal-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: #2CBFAE;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    z-index: 1;
}

/* INITIALS BADGE (MATCHES CARD BADGE) */
.modal-badge {
    position: absolute;
    top: 380px;
    left: 40px;

    background: #2CBFAE;
    color: #ffffff;

    width: 65px;
    height: 65px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
    font-size: 1.4rem;

    box-shadow: 0 8px 18px rgba(44,191,174,0.45);
    z-index: 4;
}

/* CLOSE BUTTON */
.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: #178C7F;
    border: 2px solid #178C7F;
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s ease;
    z-index: 5;
}

.modal-close:hover {
    background: #2CBFAE;
    border-color: #2CBFAE;
    color: #0A2A4D;
}

/* MODAL TEXT CONTENT */
.modal-text {
    font-size: 1.18rem;
    line-height: 1.85;
    margin-bottom: 2.4rem;
    font-weight: 300;
    white-space: pre-line;
}

.modal-separator {
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 1rem 0 1.6rem;
}

.modal-name {    
    padding-left: 1.2rem;    
    font-size: 1.45rem;
    font-weight: 600;    
    color: #0A2A4D; /* navy */
}

.modal-role {    
    padding-left: 1.2rem; 
    font-size: 1.05rem;
    font-weight: 500;
    color: #2CBFAE; /* teal */
}

/* ============================================================
   MOBILE — DARK CARD STYLE
   ============================================================ */

@media (max-width: 640px) {

    .modal-dialog {
        background: #0A2A4D !important;
        color: #ffffff !important;
        border-radius: 18px;
        padding: 2.6rem 1.6rem 2rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-name {
        border-left: none !important;
        padding-left: 0 !important;
    }
    
    .modal-role {
        border-left: none !important;
        padding-left: 0 !important;
    }   

    .modal-badge {
        display: none !important;

    }

    .modal-top-bar {
        height: 6px;
        background: #2CBFAE;
        border-top-left-radius: 18px;
        border-top-right-radius: 18px;
    }

    .modal-badge {
        left: 50%;
        transform: translateX(-50%);
    }

    .modal-text,
    .modal-name,
    .modal-role {
        color: #ffffff !important;
    }

    .modal-separator {
        background: rgba(255,255,255,0.15);
    }

    .modal-badge {
        display: none !important;
    }

    .modal-close {
        position: fixed !important;
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        background: #2CBFAE !important;
        color: #0A2A4D !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.45);
    }

    .grid-container {
        grid-template-columns: 1fr !important;
        gap: 50px; /* optional – tighter spacing on phones */
    }

    .testimonials-header h1 {
        font-size: 2rem; 
        margin-bottom: 0.8rem;
    }

    .testimonials-header p {
        font-size: 1rem;
    }
}