/* ===== GLOBAL RESET ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Prevent horizontal overflow */
html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* ===== ROOT VARIABLES ===== */
:root {

    /* BRAND COLORS (FROM LOGO) */

    --primary: #0A3AA6;          /* Royal Blue */
    --primary-dark: #062A73;    /* Deep Blue */
    --secondary: #FFD200;       /* Golden Yellow */
    --accent: #E53935;          /* Medical Red */

    /* NEUTRALS */
    --dark: #1f1f1f;
    --light: #F5F8FF;
    --text: #2B2B2B;
    --white: #ffffff;

    /* UI SYSTEM */
    --transition: all 0.3s ease;
    --radius: 8px;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);

    /* GRADIENTS */
    --gradient-primary: linear-gradient(135deg, #0A3AA6, #062A73);
    --gradient-accent: linear-gradient(135deg, #FFD200, #FFA000);
    --gradient-hero: linear-gradient(135deg, rgba(10,58,166,0.95), rgba(6,42,115,0.95));
}


/* ===== BASE BODY ===== */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

/* ===== LAYOUT SYSTEM ===== */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: auto;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}



p {
    margin-bottom: 10px;
    font-size: 15px;
    color: #444;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* ================= TOP BAR ================= */

.topbar {
    background: #FFA000;
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
}

.topbar-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.topbar span { margin-right: 15px; }

.topbar a {
    color: #fff;
    margin-left: 12px;
    transition: var(--transition);
}

.topbar a:hover { color: var(--secondary); }

/* ================= HEADER ================= */

.main-header {
    background: var(--gradient-primary);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}



.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 75px;
    margin-right: 10px;
    background-color: white;
}

.logo h2 {
    font-family:'Poppins',sans-serif;
    color: var(--secondary);
    font-size: 28px;
    margin: 0;
}

.logo small {
    color: var(--secondary);
    font-size: 13px;
}

/* NAVBAR */
nav {
    display: flex;
    align-items: center;
}

nav a {
    color: white;
    margin-left: 22px;
    font-weight: 600;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--secondary);
    bottom: -6px;
    left: 0;
    transition: var(--transition);
}

nav a:hover::after { width: 100%; }

/* ================= SECTIONS ================= */

.section {
    padding: 50px 0;
    background: var(--white);
    margin-bottom: 20px;
}

.services, .gallery, .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* CARD */
.box, .card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.box:hover, .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ================= IMAGES ================= */

img {
    max-width: 100%;
    border-radius: var(--radius);
}

.gallery img:hover { transform: scale(1.05); }

/* ================= BUTTONS ================= */

button, .btn {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 15px;
}

button:hover, .btn:hover {
    background: #0055aa;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: #000;
}

/* ================= FORMS ================= */

input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    margin-top: 8px;
    font-size: 14px;
    background: #fff;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary);
    outline: none;
}

/* ================= WHATSAPP FLOAT ================= */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* ================= FOOTER ================= */

.footer {
    background: var(--dark);
    color: #ccc;
    padding: 20px 0 10px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.footer h3 {
    color: white;
    font-size: 15px;
    margin-bottom: 8px;
}

.footer a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    margin-top: 10px;
    padding-top: 8px;
    font-size: 13px;
}

/* ================= HERO (FINAL CLEAN VERSION) ================= */

.hero {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease, transform 1s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 20px;
}

.hero-content h1 {
    color: white;
    font-size: 38px;
    min-height: 50px;
}

.hero-content p {
    font-size: 18px;
    color: #eee;
    margin-bottom: 20px;
}

/* ===== HERO ARROWS (FIXED ALIGNMENT) ===== */

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

/* LEFT ARROW */
.hero-arrow.left {
    left: 20px;
}

/* RIGHT ARROW */
.hero-arrow.right {
    right: 20px;
}

/* HOVER EFFECT */
.hero-arrow:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}


/* DOTS */
.hero-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 5;
}

.hero-dots span {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 5px;
    display: inline-block;
}

.hero-dots span.active {
    background: var(--secondary);
}

/* ================= RESPONSIVE ================= */

@media(max-width:768px) {

    .topbar-wrap,
    .header-wrap {
        flex-direction: column;
        text-align: center;
    }

    nav { margin-top: 10px; }

    nav a {
        margin: 10px;
        display: inline-block;
    }

    .hero { height: 320px; }

    .hero-content h1 { font-size: 24px; }
    .hero-content p { font-size: 15px; }

    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
}
/* ================= COMPACT COUNTER SECTION ================= */

.counter-section {
    background: linear-gradient(135deg, #003366, #001f3f);
    padding: 35px 0;          /* reduced height */
    margin-top: 20px;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    text-align: center;
}

/* COUNTER BOX */
.counter-box {
    background: rgba(255,255,255,0.08);
    padding: 18px 12px;      /* compact padding */
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.counter-box:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

/* ICON */
.counter-icon {
    font-size: 30px;        /* smaller icon */
    margin-bottom: 8px;
    color: var(--secondary);
}

/* NUMBER */
.counter-box h2 {
    font-size: 32px;        /* compact number */
    margin: 0;
    color: white;
    font-weight: 700;
}

/* LABEL */
.counter-box p {
    font-size: 14px;
    margin-top: 4px;
    color: #ddd;
}

/* REMOVE LINK BLUE COLOR */
.counter-box:hover p,
.counter-box:hover h2 {
    color: white;
}
/* ================= PARTNERS SECTION ================= */
/* ================= PARTNERS (IMPROVED CLEAR VIEW) ================= */

/* ================= PARTNERS AUTO SCROLL CAROUSEL ================= */

.partners-section {
    background: #fff;
    padding: 50px 0 35px;
    overflow: hidden;
}

.partners-section .section-title {
    text-align: center;
    margin-bottom: 30px;
}

/* VIEWPORT */
.partners-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* TRACK */
.partners-track {
    display: flex;
    gap: 60px;
    animation: scrollPartners 30s linear infinite;
    align-items: center;
}

/* PAUSE ON HOVER */
.partners-carousel:hover .partners-track {
    animation-play-state: paused;
}

/* ITEM */
.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    min-width: 160px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* LOGO */
.partner-item img {
    max-height: 60px;
    max-width: 140px;
    margin-bottom: 8px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* TITLE */
.partner-item span {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* HOVER EFFECT */
.partner-item:hover img {
    transform: scale(1.1);
}

.partner-item:hover span {
    color: var(--primary);
}

/* ANIMATION */
@keyframes scrollPartners {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* MOBILE SPEED ADJUST */
@media(max-width:768px) {
    .partners-track {
        animation-duration: 20s;
        gap: 40px;
    }

    .partner-item {
        min-width: 120px;
    }

    .partner-item img {
        max-height: 50px;
    }
}

/* GRID */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
}

/* BOX */
.partner-box {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 25px 15px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.partner-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* LOGO */
.partner-box img {
    max-width: 120px;
    max-height: 60px;
    margin-bottom: 12px;
    filter: none;             /* CLEAR LOGOS */
    opacity: 1;               /* FULL VISIBILITY */
    transition: all 0.3s ease;
}

.partner-box:hover img {
    transform: scale(1.05);
}

/* TITLE */
.partner-box span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* LINK STYLE */
.partner-box:hover span {
    color: var(--primary);
}

/* ================= ACCREDITATION BADGES ================= */

.badge-section {
    background: #f7f7f7;
    padding: 35px 0;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    text-align: center;
}

.badge-box {
    background: white;
    padding: 20px 10px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.badge-box:hover {
    transform: translateY(-5px);
}

.badge-box img {
    height: 60px;
    margin-bottom: 10px;
}

.badge-box p {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}
/* ================= ABOUT PREVIEW SECTION ================= */

.about-preview {
    background: #fff;
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

/* IMAGE */
.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* CONTENT */
.about-content h2 {
    margin-bottom: 15px;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 15px;
    color: #444;
}
/* ================= ACHIEVEMENTS PREVIEW SECTION ================= */

.achievements-section {
    background: #f7f7f7;
    padding: 60px 0 50px;
}

/* Header */
.achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.achievements-header h2 {
    margin: 0;
}

.view-all {
    font-weight: 600;
    color: var(--primary);
}

.view-all:hover {
    color: var(--secondary);
}

/* Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

/* Box */
.achievement-box {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.3s ease;
}

.achievement-box:hover {
    transform: translateY(-8px);
}

/* Image */
.achievement-img {
    overflow: hidden;
}

.achievement-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.achievement-box:hover img {
    transform: scale(1.1);
}

/* Title */
.achievement-title {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}
/* ================= CTA SECTION ================= */

.cta-section {
    background: linear-gradient(135deg, #003366, #001f3f);
    padding: 60px 0;
    margin-top: 40px;
    color: white;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 40px;
}

/* CONTENT */
.cta-content h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 16px;
    color: #eee;
    max-width: 600px;
}

/* BUTTONS */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* WHATSAPP BUTTON SPECIAL */
.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
}
/* ================= MINI CTA STRIP ================= */

.mini-cta {
    background: var(--secondary);
    padding: 20px 0;
}

.mini-cta-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.mini-cta p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #000;
}
/* ================= FOOTER COMPLETE SYSTEM ================= */

.footer {
    background: #1c1c1c;
    color: #ccc;
    padding: 50px 0 0;
    font-size: 14px;
}

/* GRID */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* COLUMNS */
.footer-col h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--white);
}

/* LINKS */
.footer-col a {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

/* SOCIAL ICONS */
.footer-social {
    margin-top: 15px;
}

.footer-social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #333;
    color: white;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.footer-social a:hover {
    background: var(--secondary);
    color: #000;
    transform: translateY(-3px);
}

/* BOTTOM BAR */
.footer-bottom {
    background: #111;
    padding: 15px 0;
    border-top: 1px solid #333;
}

.footer-bottom-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* LEGAL LINKS */
.footer-legal a {
    color: #ccc;
    margin-left: 15px;
    font-size: 13px;
}

.footer-legal a:hover {
    color: var(--secondary);
}

/* MOBILE FOOTER */
@media(max-width:768px) {

    .footer-bottom-grid {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 10px;
    }
}
/* ================= PAGE + SIDEBAR LAYOUT ================= */

.page-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;   /* content + sidebar */
    gap: 40px;
    align-items: start;
}

/* MAIN CONTENT */
.page-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 120px;   /* below header */
}

/* SIDEBAR BOX */
.sidebar-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.sidebar-box h3 {
    margin-bottom: 12px;
    font-size: 18px;
    color: var(--primary);
}

/* LIST */
.sidebar-list {
    list-style: none;
    padding: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-list a {
    color: #333;
    font-weight: 500;
}

.sidebar-list a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

/* CTA BOX */
.cta-box {
    background: linear-gradient(135deg, #003366, #001f3f);
    color: white;
    text-align: center;
}

.cta-box h3,
.cta-box p {
    color: white;
}

.cta-box .btn {
    width: 100%;
}

/* SUBSCRIBE BOX */
.subscribe-box input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* MOBILE */
@media(max-width: 992px) {

    .page-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}
/* ================= GLOBAL PAGE CTA ================= */

.page-cta {
    background: linear-gradient(135deg, #003366, #001f3f);
    padding: 40px 0;
    margin-top: 50px;
    color: white;
}

.page-cta-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.page-cta h3 {
    color: white;
    margin-bottom: 5px;
}

.page-cta p {
    color: #eee;
    margin: 0;
}
/* ================= BREADCRUMB WITH BACKGROUND IMAGE ================= */


.breadcrumb-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 45px 0;          /* REDUCED HEIGHT DESKTOP */
    color: white;
}


/* DARK OVERLAY */
.breadcrumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

/* GRID */
.breadcrumb-grid {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* LEFT SIDE */
.breadcrumb-left h2 {
    margin: 0;
    font-size: 32px;
    color: white;
}

.breadcrumb-left p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #eee;
}

/* RIGHT SIDE */
.breadcrumb-right {
    font-size: 14px;
}

.breadcrumb-right a {
    color: var(--secondary);
    font-weight: 600;
}

.breadcrumb-right span {
    margin: 0 8px;
    color: #ddd;
}

@media(max-width:768px) {

    .breadcrumb-section {
        padding: 30px 0;     /* MORE COMPACT ON MOBILE */
    }

    .breadcrumb-grid {
        flex-direction: column;
        text-align: center;
    }

    .breadcrumb-left h2 {
        font-size: 22px;
    }

    .breadcrumb-left p {
        font-size: 13px;
    }
}

/* ================= ICON HEADING SYSTEM ================= */

.icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.icon-title i {
    font-size: 26px;
    color: var(--secondary);
    background: var(--primary);
    padding: 10px;
    border-radius: 50%;
}

.icon-title h2 {
    margin: 0;
}
/* ================= ABOUT PAGE DESIGN ================= */

.about-intro {
    text-align: center;
    margin-bottom: 40px;
}

.about-intro h1 {
    font-size: 34px;
    margin-bottom: 10px;
}

.about-intro p {
    font-size: 16px;
    max-width: 800px;
    margin: auto;
    color: #555;
}

/* GRID SYSTEM */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* CARDS */
.about-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: 100%;
}

.about-card ul {
    padding-left: 18px;
    margin-bottom: 10px;
}

.about-card li {
    margin-bottom: 6px;
}

/* HIGHLIGHT CARDS */
.about-card.highlight {
    background: linear-gradient(135deg, #f7fbff, #eef6ff);
    border-left: 4px solid var(--primary);
}


/* MOBILE */
@media(max-width:768px) {
    .about-intro h1 {
        font-size: 26px;
    }
}


/* MOBILE — AUTO SCROLL VERSION */
@media(max-width:992px) {

    .timeline-wrapper {
        overflow-x: auto;
    }

    .timeline-track {
        min-width: 1100px;       /* ALLOW SWIPE ON SMALL SCREENS */
        justify-content: flex-start;
        gap: 40px;
    }

    .timeline-item {
        flex: 0 0 220px;
        max-width: 220px;
    }

    /* All on same side for readability */
    .timeline-item.up,
    .timeline-item.down {
        transform: translateY(0);
    }

    .timeline-item::before {
        top: -40px;
    }

    .timeline-line {
        top: 35px;
    }
}
/* ===== ABOUT PAGE CORE ===== */

.about-intro { text-align:center; margin-bottom:40px; }
.about-intro h1 { font-size:34px; }
.about-intro p { max-width:800px; margin:auto; color:#555; }

/* GRID */
.about-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
    margin-bottom:40px;
}

/* CARD */
.about-card {
    background:#fff;
    padding:25px;
    border-radius:10px;
    box-shadow:var(--shadow);
}

.about-card ul { padding-left:18px; }
.about-card li { margin-bottom:6px; }

/* HIGHLIGHT */
.about-card.highlight {
    background:linear-gradient(135deg,#f7fbff,#eef6ff);
    border-left:4px solid var(--primary);
}

/* WIDE */
.about-wide {
    background:#fff;
    padding:30px;
    border-radius:10px;
    box-shadow:var(--shadow);
    margin-bottom:40px;
}

/* WHY GRID */
.why-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:15px;
    margin-top:20px;
}

.why-grid span {
    background:#f5f8fc;
    padding:12px;
    border-radius:6px;
    text-align:center;
    font-weight:600;
}

/* ICON TITLE */
.icon-title {
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:15px;
}

.icon-title i {
    background:var(--primary);
    color:var(--secondary);
    padding:10px;
    border-radius:50%;
    font-size:22px;
}

/* ===== TIMELINE FIT TO SCREEN ===== */

.timeline-wrapper {
    position:relative;
    padding:80px 0 60px;
    overflow:hidden;
}

.timeline-line {
    position:absolute;
    top:50%;
    left:0;
    width:100%;
    height:4px;
    background:linear-gradient(to right,var(--primary),var(--secondary));
    transform:translateY(-50%);
}

.timeline-track {
    display:flex;
    justify-content:space-between;
    gap:30px;
}

.timeline-item {
    flex:1;
    max-width:220px;
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:var(--shadow);
    text-align:center;
    position:relative;
    opacity:0;
    transition:0.6s;
}

.timeline-item::before {
    content:"";
    position:absolute;
    left:50%;
    width:16px;
    height:16px;
    background:var(--secondary);
    border-radius:50%;
    border:3px solid var(--primary);
    transform:translateX(-50%);
}

/* UP */
.timeline-item.up { transform:translateY(-90px); }
.timeline-item.up::before { bottom:-45px; }

/* DOWN */
.timeline-item.down { transform:translateY(90px); }
.timeline-item.down::before { top:-45px; }

/* SHOW */
.timeline-item.show.up { opacity:1; transform:translateY(-50px); }
.timeline-item.show.down { opacity:1; transform:translateY(50px); }

/* MOBILE */
@media(max-width:992px){
    .timeline-wrapper{overflow-x:auto;}
    .timeline-track{min-width:1100px;justify-content:flex-start;}
    .timeline-item.up,.timeline-item.down{transform:translateY(0);}
    .timeline-item::before{top:-40px;}
    .timeline-line{top:35px;}
}
/* ================= INTERACTIVE INSTITUTION CARDS ================= */

.institution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 30px;
}

/* CARD */
.institution-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: #333;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

/* HIGHLIGHT (REHAB) */
.institution-card.highlight {
    border: 2px solid var(--secondary);
    background: linear-gradient(135deg, #fffbe6, #ffffff);
}

/* LOGO */
.institution-logo {
    margin-bottom: 15px;
}

.institution-logo img {
    max-height: 70px;
    max-width: 160px;
    object-fit: contain;
    transition: all 0.4s ease;
}

/* TITLE */
.institution-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary);
}

/* TEXT */
.institution-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}
/* SERVICE / INSTITUTION ICON STYLE */
.institution-icon {
    font-size: 64px;
    margin-bottom: 15px;
    color: var(--primary);
    transition: all 0.4s ease;
}

/* Hover glow */
.institution-card:hover .institution-icon {
    color: var(--secondary);
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(255,210,0,0.7);
}


/* LINK */
.visit-link {
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
}

/* HOVER EFFECTS */
.institution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

.institution-card:hover img {
    transform: scale(1.1);
}

.institution-card:hover .visit-link {
    color: var(--secondary);
}

/* GLOW BORDER EFFECT */
.institution-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.institution-card:hover::after {
    border-color: var(--secondary);
}

/* MOBILE */
@media(max-width:768px) {
    .institution-card {
        padding: 25px 20px;
    }

    .institution-card h3 {
        font-size: 17px;
    }
}
/* ================= BREADCRUMB ANIMATION ================= */

.animate-breadcrumb {
    opacity: 0;
    transform: translateY(-20px);
    animation: breadcrumbFade 0.8s ease forwards;
}

@keyframes breadcrumbFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text animation */
.breadcrumb-left h2 {
    animation: titleSlide 1s ease forwards;
}

@keyframes titleSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.breadcrumb-right {
    animation: crumbFade 1s ease forwards;
}

@keyframes crumbFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
/* ================= SERVICE / INTERACTIVE CARDS ================= */

.service-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

/* ICON */
.service-card i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

/* HOVER EFFECT */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-color: var(--secondary);
}

.service-card:hover i {
    color: var(--secondary);
    transform: scale(1.2);
}

/* ACTIVE SERVICE HIGHLIGHT */
.service-card.active {
    border-color: var(--secondary);
    background: linear-gradient(135deg, #fffbe6, #ffffff);
}

.service-card.active i {
    color: var(--secondary);
}

.service-card.active h3 {
    color: var(--primary);
}
/* ================= GALLERY SYSTEM ================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

/* CARD */
.gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* ACTIVE MENU STYLE (GALLERY PAGE) */
.gallery-card.active {
    border-color: var(--secondary);
}

/* HOVER */
.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    border-color: var(--secondary);
}

/* IMAGE / VIDEO */
.gallery-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

/* VIDEO */
.video-thumb iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* INFO BAR */
.gallery-info {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    background: #f8f9fb;
}

.gallery-info i {
    color: #e60000;
    font-size: 18px;
}

/* MOBILE */
@media(max-width:768px) {
    .gallery-thumb {
        height: 180px;
    }
}
/* ================= SIDEBAR PARTNERS ================= */

.sidebar-partners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-items: center;
}

/* MINI PARTNER CARD */
.partner-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    background: #f9f9f9;
    padding: 12px 8px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

/* LOGO */
.partner-mini img {
    max-width: 80px;
    max-height: 40px;
    object-fit: contain;
    margin-bottom: 6px;
}

/* TITLE */
.partner-mini span {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* HOVER EFFECT */
.partner-mini:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.partner-mini:hover span {
    color: var(--primary);
}
/* ================= GALLERY GROUP SYSTEM ================= */

.gallery-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.group-tab {
    padding: 10px 20px;
    background: #f2f4f8;
    border-radius: 30px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.group-tab:hover {
    background: var(--secondary);
    color: #000;
}

.group-tab.active {
    background: var(--primary);
    color: white;
}

/* PAGINATION GROUPS */
.gallery-pagination {
    margin-top: 50px;
    text-align: center;
}

.gallery-pagination h3 {
    margin-bottom: 20px;
}

.pagination-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.page-group {
    background: #fff;
    padding: 20px 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
}

.page-group i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

.page-group span {
    display: block;
    font-weight: 600;
}

.page-group small {
    font-size: 13px;
    color: #777;
}

.page-group:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

.page-group:hover i {
    color: var(--secondary);
}
/* ================= CONTACT PAGE SYSTEM ================= */

/* GROUPS */
.contact-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-card i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: var(--secondary);
}

.contact-card.active {
    background: linear-gradient(135deg, #fffbe6, #fff);
    border-color: var(--secondary);
}

/* INFO GRID */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.info-box {
    background: #fff;
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.info-box i {
    font-size: 28px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.info-box a {
    color: var(--primary);
    font-weight: 600;
}

/* MAP */
.map-section iframe {
    width: 100%;
    height: 320px;
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
}

/* FORM */
.contact-form-section {
    background: #f9fafc;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form textarea {
    width: 100%;
    margin-bottom: 20px;
}

/* MOBILE */
@media(max-width:768px) {
    .map-section iframe {
        height: 250px;
    }
}
/* ===== LIGHTBOX SYSTEM ===== */

#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

/* TITLE */
#lightbox-title {
    margin-top: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

/* CLOSE BUTTON */
.lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: white;
    color: #000;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    line-height: 34px;
    font-size: 22px;
    cursor: pointer;
    font-weight: bold;
}
/* ===== IMAGE WATERMARK SYSTEM ===== */

.watermark-wrap {
    position: relative;
    overflow: hidden;
}

.watermark-wrap img {
    width: 100%;
    display: block;
}

/* WATERMARK */
.watermark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 11px;
    font-weight: 600;
}

/* LOGO */
.watermark img {
    height: 22px;
    width: auto;
    border-radius: 0;
}
/* SIDEBAR PARTNERS IMPROVED */

.partner-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    background: #f9f9f9;
    padding: 14px 10px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    border: 2px solid transparent;
}

/* IMAGE QUALITY */
.partner-mini img {
    max-width: 90px;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}

/* ICON FALLBACK */
.sidebar-icon {
    font-size: 42px;
    margin-bottom: 8px;
    color: var(--primary);
    transition: all 0.35s ease;
}

/* TITLE */
.partner-mini span {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* HOVER EFFECT */
.partner-mini:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.18);
    border-color: var(--secondary);
}

.partner-mini:hover span {
    color: var(--primary);
}

.partner-mini:hover .sidebar-icon {
    color: var(--secondary);
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(255,210,0,0.7);
}
/* ================= OLD IMAGE DIGITAL ENHANCEMENT ================= */

/* Default gallery image enhancement */
.gallery-thumb img,
.lightbox-content img {
    filter: 
        contrast(1.15)
        brightness(1.05)
        saturate(1.15)
        sharpness(1.1);
}

/* Extra enhancement for old / scanned photos */
.old-photo {
    filter:
        contrast(1.25)
        brightness(1.08)
        saturate(1.2)
        sepia(0.05);
}

/* Hover clarity boost */
.gallery-card:hover img {
    filter:
        contrast(1.3)
        brightness(1.1)
        saturate(1.25);
}
/* ================= OLD IMAGE ENHANCEMENT SYSTEM ================= */

/* Base enhancement for old / scanned images */
.old-photo {
    filter: 
        contrast(1.15)
        brightness(1.05)
        saturate(1.15)
        sharpness(1.05);
    
    image-rendering: auto;
    transition: all 0.4s ease;
}

/* Hover sharpen */
.old-photo:hover {
    filter:
        contrast(1.2)
        brightness(1.08)
        saturate(1.2)
        drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}

/* Lightbox version – stronger clarity */
#lightbox-img.old-photo {
    filter:
        contrast(1.25)
        brightness(1.08)
        saturate(1.2)
        drop-shadow(0 0 15px rgba(255,255,255,0.15));
}
/* ===== MOBILE LOGO FIX ===== */
@media(max-width:768px) {

    .logo img {
        height: 55px;
        width: auto;          /* prevent stretch */
        max-width: 120px;
        object-fit: contain;
    }

    .logo h2 {
        font-size: 20px;
        line-height: 1.2;
    }

    .logo small {
        font-size: 11px;
    }
}
/* ===== HERO MOBILE CTA FIX ===== */
@media(max-width:768px) {

    .cta-buttons {
        justify-content: center;
    }

    /* Hide first button (Know More) */
    .cta-buttons .btn:first-child {
        display: none;
    }

    /* Make Contact button bigger */
    .cta-buttons .btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}
/* ===== HIDE HERO ARROWS ON MOBILE ===== */
@media(max-width:768px) {
    .hero-arrow {
        display: none;
    }
}
/* ===== HERO MOBILE TEXT FIX ===== */
@media(max-width:768px) {

    .hero-content {
        width: 92%;
        padding: 15px;
    }

    .hero-content h1 {
        font-size: 22px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 14px;
        line-height: 1.5;
    }
}

.site-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #ddd;
}
.visitor-badge {
    background: var(--secondary);
    color: #000;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 rgba(255,210,0,0.6); }
    50% { box-shadow: 0 0 18px rgba(255,210,0,0.9); }
    100% { box-shadow: 0 0 0 rgba(255,210,0,0.6); }
}


.badge-section {
    background: #f7f9fc;
    padding: 40px 0;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    text-align: center;
}

.badge-box {
    background: #fff;
    padding: 22px 15px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.badge-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

/* IMAGE LOGO */
.badge-box img {
    max-height: 70px;
    margin-bottom: 10px;
}

/* ICON */
.badge-icon {
    font-size: 46px;
    color: var(--primary);
    margin-bottom: 10px;
}

/* TEXT */
.badge-box p {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

