/* =========================================================
   GLOBAL BASE
========================================================= */
:root {
    --primary: #003366;
    --accent: #ffd700;
    --muted: #666;
    --maxw: 1100px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    color: #222;
    line-height: 1.6;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 20px;
}


/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    background-color: #002855;
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}



/* Logo size + alignment */
.logo img {
    height: 55px;
    width: auto;
    display: block;
}

/* Fix flex alignment */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}


@media (max-width: 768px) {
    .nav-container {
        flex-wrap: nowrap;
    }
    .logo img {
        height: 48px;
    }
}


.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.nav-menu a.active {
    color: #F37435;
    font-weight: 700;
    border-bottom: 3px solid #F37435;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* MOBILE NAV */
/* MOBILE NAV */
@media (max-width: 768px) {
    
    .slide-content h2 {
        display: none !important;
      /*  display: none !important;   Use !important only if absolutely necessary to override existing styles */

}
    
     
    
    /* ⭐ NEW — fixes logo + menu alignment & prevents X from cutting */
    .nav-container {
        display: flex;                     /* NEW */
        justify-content: space-between;    /* NEW */
        align-items: center;               /* NEW */
        padding: 12px 15px;                /* NEW */
        position: relative;                /* NEW */
    }

    /* ⭐ NEW — controls logo size for mobile */
    .logo img {                            /* NEW */
        max-width: 100px;                  /* NEW */
        height: auto;                      /* NEW */
    }

    /* ⭐ UPDATED — reposition hamburger so X never gets cut */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;                          /* NEW — spacing between bars */
        cursor: pointer;

        position: absolute;                /* NEW */
        right: 15px;                       /* NEW — IMPORTANT FIX */
        top: 18px;                         /* NEW — makes button fully visible */

        width: 30px;                       /* NEW */
        height: 30px;                      /* NEW */
        z-index: 1000;                     /* NEW — ensure above menu */
    }

    .menu-toggle span {
        display: block;
        width: 26px;                       /* UPDATED — even width */
        height: 3px;
        background: #fff;
        transition: 0.3s ease;
    }

    /* ⭐ FIX — Dropdown menu alignment */
    .nav-menu {
        gap: 0 !important;
        display: none;
        flex-direction: column;
        background-color: #002855;
        width: 100%;
        position: absolute;
        top: 70px;                         /* UPDATED — corrects overlap */
        left: 0;
        text-align: center;
        padding: 10px 0;                   /* UPDATED — cleaner spacing */
        z-index: 999;                      /* NEW */
    }

    .nav-menu.active { display: flex; }
    

    .nav-menu a {
        padding: 14px 0;                   /* UPDATED — even spacing */
        border-top: 1px solid rgba(255,255,255,0.1);
        font-size: 17px;                   /* UPDATED — readability */
    }
    
    .nav-menu a.active {
        border-bottom: none !important;  /* REMOVE underline on mobile */
    }
    
    

    /* ⭐ FIX — Correct "X" transformation */
    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px); /* UPDATED FIX */
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px); /* UPDATED FIX */
    }
}

/*=====================
Intro container
=================*/
.intro-container {
    max-width: 1100px;         /* Keeps perfect width like your screenshot */
    margin: 40px auto;         /* Center + spacing from top */
    background: #ffffff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.intro-container h2 {
    color: #002855;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 18px;
}

.intro-container p {
    font-size: 17px;
    color: #333;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 900px;          /* Keeps text width clean */
}



/* =========================================================
   HERO BANNER
========================================================= */
.hero {
    background-image: url('../images/banner/lab-banner.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.hero .lead {
    font-size: 1.1rem;
    opacity: 0.95;
}

.cta {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
}

/* Mobile hero spacing */
@media(max-width: 600px) {
    .hero { padding: 50px 12px; }
}


/* =========================================================
   SERVICES (HOME PREVIEW)
========================================================= */
.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;   /* show only 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}



.page-header { padding: 30px 0 10px; }

.services-preview .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

@media(max-width: 900px) { .services-preview .grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .services-preview .grid { grid-template-columns: 1fr; } }


/* =========================================================
   SERVICE PAGE
========================================================= */
.services { text-align: center; margin-top: 60px; }
.section-title { font-size: 2rem; color: #F37435; margin-bottom: 30px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-box {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-box:hover { transform: translateY(-5px); }

.service-box h3 { color: var(--primary); margin-bottom: 10px; }
.service-box p { font-size: 0.95rem; color: #444; }

.service-box .btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 18px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.service-box .btn:hover { background-color: #003f8a; }

.service-details .service-block { margin-bottom: 40px; }
.service-details .service-block h2 { color: var(--primary); margin-bottom: 10px; }
.service-details .service-block p { text-align: justify; line-height: 1.6; }


/* =========================================================
   LEADERSHIP
========================================================= */
.team { display: flex; flex-direction: column; gap: 40px; }

.leader {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.leader-img { flex: 0 0 200px; }
.leader-img img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.leader-content { flex: 1; min-width: 250px; }
.leader-content h2 { color: var(--primary); margin-bottom: 5px; }
.leader-content h4 { color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.leader-content p { text-align: justify; line-height: 1.6; }

@media (max-width: 768px) {
    .leader { flex-direction: column; text-align: center; }
    .leader-img img { margin: 0 auto; }
}


/* =========================================================
   GALLERY PAGE
========================================================= */

/* Video Box */
.video-box {
    position: relative;
    cursor: pointer;
}

.gallery-video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #eaeaea;
    transition: 0.3s;
}

/* Play icon overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 45px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    pointer-events: none;
    opacity: 0.9;
}
.video-box:hover .play-overlay {
    opacity: 0;
}


.gallery-section {
    padding: 60px 0;
    text-align: center;
}
.gallery-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}
.gallery-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
}

/* Gallery Grid */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 90%;
    margin: auto;
}

/* Item Wrapper (NEW) */
.gallery-item {
    text-align: center;
}

/* Image */
.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #eaeaea;
    transition: transform 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* Caption */
.caption {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* Video thumbnail play icon */
.video-thumb {
    position: relative;
    cursor: pointer;
}
.play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #fff;
    background: rgba(0,0,0,0.6);
    padding: 10px 14px;
    border-radius: 50%;
    pointer-events: none;
}

/* Popup Viewer */
#viewerPopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.90);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/* Popup Image */
#viewerPopup img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

/* Popup Video (NEW) */
#popupVideo {
    display: none;
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    outline: none;
}

/* Popup Controls */
.viewer-btn {
    position: absolute;
    top: 50%;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 10px;
    transform: translateY(-50%);
}
#prevBtn { left: 20px; }
#nextBtn { right: 20px; }
#closeBtn {
    top: 20px;
    right: 30px;
    font-size: 45px;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .gallery-section h2 { font-size: 26px; }
    .gallery-item img { height: 180px; }
    .viewer-btn { font-size: 32px; }
}





/*=================================================
book-test.php page styling
===================================================*/

/* BOOK A TEST PAGE */
.page-header h1 {
    font-size: 2.2rem;
    color: var(--primary);
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.form-section {
    margin: 40px auto 70px;
    max-width: 750px;
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.book-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #002855;
    font-size: 0.95rem;
}

.book-form input,
.book-form textarea,
.book-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.book-form input:focus,
.book-form textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.book-form button {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s ease;
}

.book-form button:hover {
    background: #004a99;
}

/* Mobile Friendly */
@media (max-width: 600px) {
    .form-section {
        padding: 25px 18px;
        margin: 25px auto 60px;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
}


.book-form button::after {
    content: " ➜";
    font-size: 1.2rem;
    position: relative;
    top: 1px;
}

/* ================================--------------------
   Contact Page Styling
-=============================----------------------*/
.page-header {
    text-align: center;
    padding: 70px 0 40px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #003d7a;
    margin: 0;
}

/* Contact Section */
.contact {
    max-width: 750px;
    margin: 0 auto;
    padding: 40px 0;
    font-size: 18px;
    line-height: 1.6;
}

.contact p {
    margin-bottom: 12px;
}

.contact strong {
    color: #003d7a;
    font-weight: 700;
}

/* Form Styling */
.contact-form {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form label {
    font-weight: 600;
    color: #003d7a;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #bfc7ce;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #003d7a;
    box-shadow: 0 0 0 2px rgba(0, 61, 122, 0.15);
    outline: none;
}

/* Submit Button */
.contact-form button {
    width: 100%;
    padding: 14px;
    background: #003d7a;
    color: #fff;
    border: none;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 600;
}

.contact-form button:hover {
    background: #0058af;
}

/* Responsive */
@media (max-width: 600px) {
    .page-header h1 {
        font-size: 34px;
    }
    .contact {
        padding: 20px;
        font-size: 16px;
    }
}

/* =====================================-------------------------
   Leadership Page Styling
========================================----------------------------*/
.page-header {
    text-align: center;
    padding: 70px 0 40px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    color: #003d7a;
    margin: 0;
}

.team {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 0;
}

/* Leader block */
.leader {
    display: flex;
    gap: 35px;
    align-items: flex-start;
    margin-bottom: 50px;
}

/* Image */
.leader-img {
    min-width: 240px;
    max-width: 240px;
}

.leader-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Content */
.leader-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #003d7a;
}

.leader-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #0081c9;
    line-height: 1.5;
}

.leader-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 12px;
    text-align: justify;
}

/* Divider line */
.team hr {
    margin: 40px auto;
    border: 0;
    border-top: 1px solid #d9e1e7;
    width: 90%;
}

/* Alternating layout */
.leader:nth-child(even) {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 900px) {
    .leader {
        flex-direction: column;
        text-align: center;
    }
    .leader:nth-child(even) {
        flex-direction: column;
    }
    .leader-img {
        margin: 0 auto 20px;
    }
    .leader-content h2 {
        font-size: 25px;
    }
}

.leader-img img {
    transition: transform 0.45s ease;
}
.leader-img:hover img {
    transform: scale(1.03);
}

/*=========================================
Home page sliders
===========================================*/
.slide {
    display: none;
    position: relative;
}

.slide.active {
    display: block;
}

.hero-slider {
    width: 100%;
    height: 45vh;
    position: relative;
    overflow: hidden;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -90%);
    color: #fff;
    text-align: center;
    z-index: 10;
    width: 90%;
   
    
    /* --- The Fix --- */
    background-color: transparent; /* Remove the background color */
    
    /* Text Shadow: X-offset Y-offset Blur-radius Color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Dark shadow for contrast */
    /* ---------------- */
}

.slide-content h2 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    
   
    color: #FFF; /* Keep the text color white */
    
    /* --- The Fix --- */
    background-color: transparent; /* Remove the background color */
    
    /* Text Shadow: X-offset Y-offset Blur-radius Color */
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 1.8); /* Dark shadow for contrast */
    /* ---------------- */
}

.slide-content h3 {
    font-size: 28px;
    font-weight: 600;
    margin-top: 10px;
}

.slide-content p {
    font-size: 18px;
    margin-top: 6px;
}

.slide img {
    
    width: 100%;
    height: 75vh;
    object-fit: cover;
    display: block;
    
   
}

.slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: rgba(0,0,0,0.4);
    color: white;
    padding: 20px;
}

.slide-overlay h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.slide-overlay p {
    font-size: 1.15rem;
    margin-bottom: 18px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    background: #F37435;
    color: #fff !important;
    padding: 12px 28px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: #d9632f; /* darker shade */
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: scale(0.96);
}


.btn-banner {
    display: inline-block;
    padding: 12px 34px;
    background: #ED6803;
    color: white;
    font-weight: 600;
    border-radius: 60px;
    text-decoration: none;
    transition: 0.3s;
}
.btn-banner:hover {
    background: #c95a03;
    transform: scale(1.05);
}

/* Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}
.arrow:hover { background: rgba(255,255,255,0.65); }
.prev { left: 15px; }
.next { right: 15px; }

/* Dots */
.slider-dots { position: absolute; bottom: 10px; width: 100%; text-align: center; }
.slider-dots span {
    width: 12px; height: 12px; margin: 0 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
}
.slider-dots .active { background: #fff; transform: scale(1.25); }


/*===========================================
scroll to top button in all pages
======================================*/
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #0056b3;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 999;
}
#scrollTopBtn:hover {
    background: #003d80;
}


/*a vidoe in gallery.php*/

.video-thumb {
    position: relative;
    cursor: pointer;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.video-thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 45px;
    color: white;
    background: rgba(0,0,0,0.55);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display:flex;
    justify-content:center;
    align-items:center;
    pointer-events: none;
}

/* ================================--------------------
  Footer
-=============================----------------------*/
/* Footer */
.site-footer {
    background: #002855;
    color: #fff;
    padding: 50px 0 0;
    margin-top: 60px;
    font-size: 15px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 12px;
    border-bottom: 2px solid #ED6803;
    display: inline-block;
    padding-bottom: 4px;
}

.footer-logo {
    width: 130px;
    margin-bottom: 12px;
}

.footer-col p {
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin: 6px 0;
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}

.footer-col ul li a:hover {
    color: #ED6803;
}


.footer-social a img {
    width: 26px;
    margin: 0 8px;
    filter: brightness(0) invert(1);   /* makes icons white */
    transition: 0.3s;
}
.footer-social a img:hover {
    filter: brightness(0) invert(0.7); /* hover effect */
}

.footer-social {
    margin-top: 8px;
    display: flex;
    justify-content: left;
}

.footer-bottom {
    text-align: center;
    background: #001B3D;
    padding: 12px 15px;
    margin-top: 35px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* Mobile */
@media (max-width: 600px) {
    .footer-bottom {
        font-size: 13px;
        line-height: 1.5;
    }
}



.footer-col {
    text-align: left;            /* NEW */
}
.footer-col h4 {
    text-align: left;            /* NEW */
}
.footer-col p,
.footer-col a {
    text-align: left;            /* NEW */
}


