/* ==========================================================================
   IIEMR — MAIN STYLESHEET
   Indian Institute of Electropathy Medical Research
   ========================================================================== */

:root {
    --primary: #0B5D3B;        /* Logo Primary Color */
    --primary-dark: #073D26;   /* Darker shade for Top bar & Footer */
    --secondary: #0F2942;      /* Deep Institutional Accent */
    --gold: #D4A017;           /* Highlight / Badge Accent */
    --bg-light: #F6F9F8;
    --surface: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --radius: 10px;
    --shadow: 0 10px 25px rgba(15, 41, 66, 0.08);
    --header-logo-size: 106px; 
}

/* === GLOBAL RESET === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: clip;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.25s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 92%;
    max-width: 1220px;
    margin: 0 auto;
}

/* === TOP UTILITY BAR + SEARCH FORM === */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
}
.top-contact .divider {
    margin: 0 10px;
    opacity: 0.4;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.top-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
    width: 210px;
    height: 30px;
    transition: width 0.25s ease, box-shadow 0.2s ease;
}
.top-search-form:focus-within {
    width: 250px;
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.45);
}
.top-search-form input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 0 8px 0 12px;
    font-family: inherit;
    font-size: 0.78rem;
    color: var(--secondary);
    background: transparent;
}
.top-search-form input::placeholder {
    color: var(--text-muted);
}
.top-search-form button {
    border: none;
    background: var(--gold);
    color: var(--secondary);
    width: 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}
.top-search-form button:hover {
    background: var(--secondary);
    color: #ffffff;
}
.top-social {
    display: flex;
    gap: 12px;
}
.top-social a {
    color: #fff;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
}
.top-social a:hover {
    opacity: 1;
    color: var(--gold);
}

/* === STICKY HEADER + NAVIGATION WRAPPER === */
.sticky-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* === BRANDING HEADER (UNIFORM LOGO & BADGES) === */
.site-branding {
    background: #FFFFFF;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.branding-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}
.brand-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.brand-logo {
    width: var(--header-logo-size);
    height: var(--header-logo-size);
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text h1 {
    font-size: 1.9rem;
    color: var(--primary);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.brand-full-name {
    font-size: 1.04rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.25;
}
.brand-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.brand-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.brand-badges .badge-rect {
    width: var(--header-logo-size);
    height: var(--header-logo-size);
    max-width: var(--header-logo-size);
    object-fit: contain;
    background: #ffffff;
    flex-shrink: 0;
}
.badge-founder-wrap {
    width: var(--header-logo-size);
    height: var(--header-logo-size);
    border-radius: 50%;
    padding: 3px;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    flex-shrink: 0;
}
.badge-founder-wrap img.badge-founder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
}

/* === MAIN NAVIGATION BAR === */
.main-nav {
    background: var(--primary);
    position: relative;
    z-index: 1000;
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-menu > li {
    position: relative;
}
.nav-menu > li > a {
    display: block;
    color: #fff;
    padding: 14px 14px;
    font-weight: 600;
    font-size: 0.92rem;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: rgba(255, 255, 255, 0.14);
}
.caret {
    font-size: 0.75rem;
    margin-left: 3px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 245px;
    max-height: 360px;
    overflow-y: auto;
    background: #fff;
    list-style: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    border-top: 3px solid var(--gold);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.22s ease;
    z-index: 1100;
}
.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 11px 16px;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
}
.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 20px;
}

.nav-cta {
    background: var(--gold);
    color: #111;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 0.88rem;
    white-space: nowrap;
}
.nav-cta:hover {
    filter: brightness(1.06);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 4px;
}
.mobile-toggle span {
    width: 25px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}
.btn-sm { padding: 8px 15px; font-size: 0.84rem; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-gold { background: var(--gold); color: #111; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--primary-dark); }
.btn-3d {
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22), 0 12px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-3d:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 rgba(0, 0, 0, 0.22), 0 16px 26px rgba(0, 0, 0, 0.24);
}
.btn-glass {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* === PREMIUM HERO SECTION === */
.iiemr-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 52%, var(--secondary) 100%);
    color: #fff;
    padding: 64px 0 72px;
    overflow: hidden;
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}
.iiemr-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 40px;
    align-items: center;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 18px;
}
.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
}
.hero-left h1 {
    font-size: 2.55rem;
    line-height: 1.18;
    font-weight: 800;
    margin-bottom: 14px;
}
.hero-left h1 span { color: var(--gold); }
.hero-lead { font-size: 1.14rem; font-weight: 600; color: #f8fafc; margin-bottom: 8px; }
.hero-sub { font-size: 0.98rem; color: #cbd5e1; margin-bottom: 26px; max-width: 560px; }
.hero-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-trust-strip strong { display: block; font-size: 1.15rem; color: var(--gold); }
.hero-trust-strip span { font-size: 0.8rem; color: #cbd5e1; }

.hero-visual-3d {
    position: relative;
    border-radius: 18px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
    transform: perspective(1000px) rotateY(-4deg);
    transition: transform 0.4s ease;
}
.hero-visual-3d:hover { transform: perspective(1000px) rotateY(0deg) translateY(-4px); }
.hero-visual-3d img { width: 100%; height: 360px; object-fit: cover; border-radius: 12px; }
.hero-floating-card {
    position: absolute;
    bottom: -18px;
    left: 20px;
    background: #fff;
    color: var(--secondary);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    border-left: 4px solid var(--gold);
}
.fc-badge { display: inline-block; font-size: 0.72rem; font-weight: 800; color: var(--primary); text-transform: uppercase; }
.hero-floating-card strong { display: block; font-size: 1rem; line-height: 1.2; }
.hero-floating-card small { font-size: 0.78rem; color: var(--text-muted); }

.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 42px 0;
}
.page-banner h1 { font-size: 2rem; margin-bottom: 6px; }
.page-banner p { color: #dbeafe; }

.section { padding: 54px 0; }
.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    align-items: start;
}
.main-column {
    min-width: 0;
    width: 100%;
}
.content-block {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}
.section-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.content-block h2 { font-size: 1.55rem; color: var(--secondary); margin: 6px 0 14px; }
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

/* === 3D PANELS & CARDS === */
.box-3d-panel {
    background: var(--surface);
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 0 rgba(15, 41, 66, 0.06), 0 18px 36px rgba(15, 41, 66, 0.08);
    margin-bottom: 36px;
}
.about-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.18fr;
    gap: 26px;
    align-items: center;
}
.about-img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(15, 41, 66, 0.14);
}
.about-img-wrap img { width: 100%; height: 290px; object-fit: cover; }
.estd-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--gold);
    color: #111;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}
.about-text h2 { font-size: 1.55rem; color: var(--secondary); margin: 6px 0 12px; line-height: 1.25; }
.about-text p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.home-section-block { margin-bottom: 40px; }
.section-heading-center { margin-bottom: 22px; }
.section-heading-center h2 { font-size: 1.7rem; color: var(--secondary); margin: 4px 0 6px; }
.section-heading-center p { color: var(--text-muted); font-size: 0.95rem; }

.grid-3d-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.card-3d {
    background: var(--surface);
    padding: 24px 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    border-bottom: 4px solid var(--primary);
    box-shadow: 0 8px 0 rgba(11, 93, 59, 0.08), 0 14px 26px rgba(15, 41, 66, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    transform-style: preserve-3d;
}
.card-3d:hover {
    transform: translateY(-7px);
    border-bottom-color: var(--gold);
    box-shadow: 0 12px 0 rgba(11, 93, 59, 0.12), 0 22px 38px rgba(15, 41, 66, 0.14);
}
.card-3d-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 8px 16px rgba(11, 93, 59, 0.25);
}
.card-3d h3 { font-size: 1.05rem; color: var(--secondary); margin-bottom: 6px; }
.card-3d p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* Core Values 3D Boxes */
.values-grid-3d {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.value-box-3d {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
    padding: 24px 22px;
    border-radius: 14px;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    box-shadow: 0 7px 0 rgba(15, 41, 66, 0.06), 0 14px 24px rgba(15, 41, 66, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-box-3d:hover {
    transform: translateY(-5px);
    border-left-color: var(--gold);
    box-shadow: 0 10px 0 rgba(15, 41, 66, 0.09), 0 20px 34px rgba(15, 41, 66, 0.12);
}
.value-num {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(11, 93, 59, 0.12);
    line-height: 1;
}
.value-box-3d h3 { font-size: 1.15rem; color: var(--primary); margin-bottom: 6px; }
.value-box-3d p { font-size: 0.92rem; color: var(--text-muted); }

/* Our Vision 3D Banner */
.vision-3d-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 10px 0 rgba(15, 41, 66, 0.18), 0 22px 42px rgba(15, 41, 66, 0.22);
    position: relative;
    overflow: hidden;
}
.vision-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.85fr;
    gap: 26px;
    align-items: center;
}
.vision-tag {
    display: inline-block;
    background: rgba(212, 160, 23, 0.2);
    color: var(--gold);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.vision-content h2 { font-size: 1.6rem; margin-bottom: 12px; color: #fff; }
.vision-content p { color: #e2e8f0; font-size: 0.96rem; margin-bottom: 20px; line-height: 1.7; }
.vision-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vision-img-box img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

/* === GALLERY SLIDER === */
.slider-controls { display: flex; gap: 8px; }
.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-btn:hover { background: var(--primary); color: #fff; }
.gallery-slider-viewport {
    display: flex;
    gap: 16px;
    max-width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.gallery-slider-viewport::-webkit-scrollbar { display: none; }
.slider-card {
    flex: 0 0 calc(33.333% - 11px);
    scroll-snap-align: start;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(15, 41, 66, 0.1);
}

/* === PLACEMENT PARTNERS MARQUEE === */
.partners-marquee {
    max-width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.partners-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: partnerScroll 24s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
.partner-card {
    width: 175px;
    height: 86px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 0 rgba(15, 41, 66, 0.05), 0 10px 18px rgba(15, 41, 66, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.partner-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.partner-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

@keyframes partnerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === SIDEBAR === */
.site-sidebar {
    position: sticky;
    top: 175px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-card {
    background: var(--surface);
    padding: 22px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.sidebar-card h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-light);
}
.highlight-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}
.highlight-card h3 { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.highlight-card p { font-size: 0.9rem; margin-bottom: 14px; color: #e2e8f0; }
.sidebar-btn-group { display: flex; flex-direction: column; gap: 10px; }
.pdf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.notice-list, .sidebar-links { list-style: none; }
.notice-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.notice-date { display: block; font-size: 0.75rem; font-weight: 700; color: var(--primary); }
.notice-list a, .sidebar-links a { font-size: 0.9rem; font-weight: 500; }
.sidebar-links li { padding: 7px 0; }
.sidebar-links a:hover, .notice-list a:hover { color: var(--primary); }

/* === INNER PAGES: COURSES, FORMS & ALERTS === */
.feature-grid, .cards-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.feature-box { background: var(--bg-light); padding: 18px; border-radius: 8px; border-left: 4px solid var(--primary); }
.course-card { border: 1px solid var(--border); padding: 20px; border-radius: 10px; transition: 0.25s; }
.course-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.course-duration { font-size: 0.78rem; font-weight: 700; color: var(--primary); background: #e6f4ee; padding: 4px 10px; border-radius: 50px; }
.course-card h3 { font-size: 1.08rem; margin: 12px 0 8px; color: var(--secondary); }
.course-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }
.text-link { color: var(--primary); font-weight: 700; font-size: 0.9rem; }

.guidelines-banner {
    background: var(--surface);
    border-left: 5px solid var(--gold);
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.reg-switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.reg-tab-btn {
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--primary);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s;
}
.reg-tab-btn.active, .reg-tab-btn:hover { background: var(--primary); color: #fff; }
.reg-form-panel { display: none; background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); animation: fadeUp 0.3s ease; }
.reg-form-panel.active { display: block; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.94rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.alert-success { background: #dcfce7; color: #166534; padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; border-left: 4px solid #16a34a; }
.alert-error { background: #fee2e2; color: #991b1b; padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; border-left: 4px solid #dc2626; }

.agree-check-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #F3F7F4;
    border: 1px solid #B7D3BE;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.5;
}
.agree-check-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.reg-guidelines-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-left: 5px solid var(--gold);
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 24px;
}
.reg-guidelines-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.reg-guidelines-head h3 { font-size: 1.12rem; color: var(--secondary); margin: 0; }
.guidelines-bullets { padding-left: 20px; color: var(--text-muted); font-size: 0.92rem; }
.guidelines-bullets li { margin-bottom: 8px; line-height: 1.6; }
.guidelines-bullets li:last-child { margin-bottom: 0; }
.guidelines-bullets strong { color: var(--text-main); }

/* === GALLERY & ZOOM-IN LIGHTBOX === */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: #e2e8f0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 61, 38, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    opacity: 0;
    transition: 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 30, 0.92);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.lightbox-modal.open { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 88vw; max-height: 85vh; text-align: center; }
.lightbox-content img {
    max-width: 100%;
    max-height: 76vh;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.72);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.lightbox-modal.open .lightbox-content img { transform: scale(1); opacity: 1; }
#lightboxCaption { color: #f8fafc; margin-top: 12px; font-size: 0.98rem; font-weight: 500; }
.lightbox-close, .lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
}
.lightbox-close { top: 20px; right: 24px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* === NEWS & RESEARCH CARDS === */
.news-card { display: grid; grid-template-columns: 240px 1fr; gap: 20px; background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.news-meta { font-size: 0.8rem; font-weight: 700; color: var(--primary); }
.news-body h3 { margin: 6px 0 10px; color: var(--secondary); }
.research-card { background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; border-left: 4px solid var(--primary); }
.research-badge { font-size: 0.78rem; font-weight: 700; color: var(--primary); background: #e6f4ee; padding: 4px 10px; border-radius: 50px; }
.research-card h3 { margin: 10px 0 8px; color: var(--secondary); }
.research-authors { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 8px; }

/* === DIRECTOR'S / CHAIRMAN'S MESSAGE PAGE === */
.director-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}
.director-photo-card {
    background: var(--bg-light);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(15, 41, 66, 0.12);
    text-align: center;
}
.director-photo-card img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    object-position: top center;
}
.director-caption {
    padding: 14px 12px;
    background: var(--primary);
    color: #fff;
}
.director-caption strong { display: block; font-size: 1.05rem; }
.director-caption span { font-size: 0.78rem; color: #e2e8f0; }

.director-message-body h2 { font-size: 1.55rem; color: var(--secondary); margin: 6px 0 14px; }
.director-message-body p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 12px; line-height: 1.75; }
.director-sign { margin-top: 20px; padding-top: 14px; border-top: 2px dashed var(--border); }
.director-sign strong { display: block; color: var(--primary); font-size: 1rem; }
.director-sign span { font-size: 0.88rem; color: var(--secondary); font-weight: 600; }

/* === LEGAL STATUS 3D BOX & PDF BUTTONS === */
.legal-3d-hero-box {
    background: linear-gradient(180deg, #ffffff 0%, #f6faf8 100%);
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    border-top: 5px solid var(--primary);
    box-shadow: 0 10px 0 rgba(11, 93, 59, 0.1), 0 20px 40px rgba(15, 41, 66, 0.1);
    margin-bottom: 34px;
}
.legal-3d-hero-box h2 { font-size: 1.65rem; color: var(--secondary); margin: 8px 0 14px; }
.legal-3d-hero-box p { color: var(--text-muted); font-size: 0.96rem; line-height: 1.75; margin-bottom: 12px; }
.legal-3d-hero-box p:last-child { margin-bottom: 0; }

.pdf-btn-grid { display: flex; flex-direction: column; gap: 16px; }
.pdf-doc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 6px 0 rgba(15, 41, 66, 0.06), 0 12px 22px rgba(15, 41, 66, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.pdf-doc-card:hover {
    transform: translateY(-4px);
    border-left-color: var(--gold);
    box-shadow: 0 9px 0 rgba(11, 93, 59, 0.1), 0 18px 32px rgba(15, 41, 66, 0.12);
}
.pdf-doc-main { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.pdf-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(11, 93, 59, 0.24);
}
.pdf-doc-text strong { display: block; font-size: 1.02rem; color: var(--secondary); line-height: 1.3; }
.pdf-doc-text small { display: block; font-size: 0.84rem; color: var(--text-muted); margin-top: 2px; }
.pdf-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold);
    color: #111;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 8px;
    flex-shrink: 0;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.16);
}
.pdf-dl-btn:hover { filter: brightness(1.06); transform: translateY(-2px); }

/* === CONTACT US & GOOGLE MAP === */
.contact-two-col {
    display: grid;
    grid-template-columns: 0.92fr 1.18fr;
    gap: 28px;
    align-items: start;
}
.get-in-touch-card h2,
.contact-form-card h2 { font-size: 1.55rem; color: var(--secondary); margin: 6px 0 10px; }
.contact-intro { font-size: 0.93rem; color: var(--text-muted); margin-bottom: 22px; line-height: 1.65; }
.contact-info-list { display: flex; flex-direction: column; gap: 18px; }
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    background: var(--bg-light);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.contact-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(11, 93, 59, 0.22);
}
.contact-info-item strong { display: block; font-size: 0.92rem; color: var(--secondary); margin-bottom: 2px; }
.contact-info-item span,
.contact-info-item a { font-size: 0.88rem; color: var(--text-muted); }
.contact-info-item a:hover { color: var(--primary); font-weight: 600; }

.contact-map-section { padding: 10px 0 24px; }
.map-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}
.map-header-bar h2 { font-size: 1.55rem; color: var(--secondary); margin-top: 4px; }
.map-frame-box {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 0 rgba(15, 41, 66, 0.06), 0 18px 36px rgba(15, 41, 66, 0.1);
    background: #fff;
}
.map-frame-box iframe { display: block; width: 100%; height: 400px; }

/* === FOOTER === */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 52%, var(--secondary) 100%);
    color: #cbd5e1;
    padding-top: 52px;
    margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding-bottom: 40px; }
.footer-brand, .site-footer h4 { color: #fff; margin-bottom: 14px; }
.footer-col p { margin-bottom: 10px; line-height: 1.6; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { background: rgba(255, 255, 255, 0.1); padding: 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; color: #fff; }
.footer-bottom { background: var(--primary); padding: 16px 0; font-size: 0.84rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CONSOLIDATED RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 992px) {
    :root {
        --header-logo-size: 68px;
    }
    .brand-badges {
        gap: 8px;
    }
    .nav-menu > li > a {
        padding: 14px 5px;
        font-size: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .content-with-sidebar,
    .iiemr-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .site-sidebar { position: static; }
    .hero-visual-3d { transform: none; max-width: 560px; margin: 0 auto; }
    .grid-3d-3col { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
    :root {
        --header-logo-size: 85px;
    }
    .sticky-header-wrap .site-branding {
        padding: 8px 0;
    }
    .branding-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }
    .brand-left {
        justify-content: center;
    }
    .sticky-header-wrap .brand-badges {
        display: flex;
        justify-content: center;
        gap: 10px;
    }
    .contact-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        justify-content: center;
        gap: 8px;
    }
    .top-bar-right {
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    .top-search-form {
        width: 190px;
    }
    .top-search-form:focus-within {
        width: 220px;
    }
    .mobile-toggle { display: flex; }
    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        padding: 10px 0;
    }
    .nav-menu.open { display: flex; }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        border-top: none;
    }
    .has-dropdown.submenu-open > .dropdown-menu { display: block; }
    .dropdown-menu li a { color: #e2e8f0; border-color: rgba(255, 255, 255, 0.08); padding-left: 28px; }

    .hero-left h1 { font-size: 1.85rem; }
    .hero-visual-3d img { height: 240px; }
    .hero-floating-card { position: static; margin-top: 12px; }
    .hero-trust-strip { grid-template-columns: 1fr; gap: 8px; }

    .about-grid,
    .grid-3d-3col,
    .values-grid-3d,
    .vision-grid,
    .feature-grid,
    .cards-grid-2,
    .form-grid-2,
    .reg-switcher,
    .news-card,
    .director-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .director-photo-card { max-width: 300px; margin: 0 auto; }
    .pdf-doc-card { flex-direction: column; align-items: stretch; }
    .pdf-dl-btn { justify-content: center; }
    .gallery-grid { grid-template-columns: 1fr; }
    .slider-card { flex: 0 0 82%; }
    .partner-card { width: 145px; height: 74px; }
    .map-frame-box iframe { height: 300px; }
}

@media (max-width: 576px) {
    :root {
        --header-logo-size: 85px;
    }
    .brand-left {
        flex-direction: row;
        text-align: left;
        gap: 10px;
    }
    .brand-text h1 { font-size: 1.35rem; }
    .brand-full-name { font-size: 0.85rem; }
    .brand-sub { font-size: 0.72rem; }
    .sticky-header-wrap .brand-badges {
        gap: 8px;
    }
}

.testi-section {
    padding: 48px 0 60px;
    background: linear-gradient(180deg, #F6F9F8 0%, #EEF4F1 100%);
    border-top: 1px solid var(--border, #E2E8F0);
}
.testi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 26px;
}
.testi-header h2 {
    font-size: 1.75rem;
    color: var(--secondary, #0F2942);
    margin: 4px 0 4px;
}
.testi-header p {
    color: var(--text-muted, #64748B);
    font-size: 0.94rem;
}
.testi-controls {
    display: flex;
    gap: 10px;
}
.testi-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--primary, #0B5D3B);
    background: #ffffff;
    color: var(--primary, #0B5D3B);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.22s ease;
    box-shadow: 0 4px 12px rgba(15, 41, 66, 0.08);
}
.testi-nav-btn:hover {
    background: var(--primary, #0B5D3B);
    color: #ffffff;
}

/* Slider Viewport */
.testi-viewport {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 6px 2px 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
}
.testi-viewport::-webkit-scrollbar {
    display: none;
}
.testi-viewport.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

/* 3 Cards Visible by Default on Desktop */
.testi-card {
    flex: 0 0 calc((100% - 40px) / 3);
    scroll-snap-align: start;
    background: var(--surface, #FFFFFF);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border, #E2E8F0);
    border-bottom: 4px solid var(--primary, #0B5D3B);
    box-shadow: 0 10px 26px rgba(15, 41, 66, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.testi-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--gold, #D4A017);
}

/* 3:4 Aspect Ratio Portrait Image */
.testi-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #E2E8F0;
}
.testi-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    pointer-events: none;
    transition: transform 0.4s ease;
}
.testi-card:hover .testi-img-wrap img {
    transform: scale(1.04);
}

/* Heading + Paragraph Content Below Image */
.testi-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.testi-body h3 {
    font-size: 1.08rem;
    color: var(--secondary, #0F2942);
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.3;
}
.testi-role {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary, #0B5D3B);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
}
.testi-body p {
    font-size: 0.9rem;
    color: var(--text-muted, #475569);
    line-height: 1.65;
}

/* Responsive: 2 Cards on Tablet, 1 Card on Mobile */
@media (max-width: 992px) {
    .testi-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}
@media (max-width: 600px) {
    .testi-card {
        flex: 0 0 100%;
    }
}

#google_translate_element {
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

body {
    top: 0 !important;
    position: static !important;
}

.ncemr-lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 2px;
    height: 30px;
    flex-shrink: 0;
}

.ncemr-lang-btn {
    border: none;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 10px;
    height: 24px;
    border-radius: 50px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease, color 0.2s ease;
}

.ncemr-lang-btn:hover {
    color: #E5A91A;
}

.ncemr-lang-btn.active {
    background: #E5A91A;
    color: #0A2240;
}

/* Hide Google Translate Top Banner, Spinner Loader & Hover Highlights */
.goog-te-spinner-pos,
.goog-te-spinner,
.goog-te-spinner-animation,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-text-highlight {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
/* Background Pre-Translation Stage (Invisible, Zero Layout Impact) */
#gtPreloadStage {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0.001 !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

#sitePageContent.gt-swapped .reveal-up {
    opacity: 1 !important;
    transform: none !important;
}

