/* ============================================
   EHESC WEBSITE - CUSTOM STYLES
   ============================================ */

:root {
    --primary:    #1B3A6B;
    --primary-dark: #122857;
    --secondary:  #3D7A2C;
    --secondary-light: #4E9B3A;
    --accent:     #E8630A;
    --accent-light: #F4821F;
    --light:      #F5F8FF;
    --gray-soft:  #F0F4F8;
    --text:       #2C3E50;
    --text-light: #6C757D;
    --white:      #FFFFFF;
    --border:     #E2EAF4;
    --gradient-primary: linear-gradient(135deg, #1B3A6B 0%, #2d5fa5 100%);
    --gradient-green:   linear-gradient(135deg, #3D7A2C 0%, #5aaf3f 100%);
    --gradient-accent:  linear-gradient(135deg, #E8630A 0%, #F4A01F 100%);
    --gradient-hero:    linear-gradient(135deg, rgba(27,58,107,0.92) 0%, rgba(29,87,106,0.88) 60%, rgba(61,122,44,0.80) 100%);
    --shadow-sm:  0 2px 15px rgba(27,58,107,.08);
    --shadow-md:  0 8px 30px rgba(27,58,107,.12);
    --shadow-lg:  0 20px 60px rgba(27,58,107,.18);
    --radius:     12px;
    --radius-lg:  20px;
    --transition: all .3s ease;
}

/* ─────────────────────────────────────────
   HERO SLIDER / BANNER CAROUSEL
───────────────────────────────────────── */
.hero-slider-wrap {
    position: relative;
}

/* ── Carousel core ── */
#heroCarousel { width: 100%; }

.hs-item {
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* ── Slide backgrounds ── */

/* Slide 1 — Navy blue */
.hs-slide-1 {
    background: linear-gradient(135deg, #0b1f3a 0%, #1B3A6B 55%, #1a4d5c 100%);
}

/* Slide 2 — Photo */
.hs-slide-2 { background: #0b1f3a; }

.hs-photo-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hs-photo-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Slide 3 — Forest green */
.hs-slide-3 {
    background: linear-gradient(135deg, #0f2d1a 0%, #1e5c2e 50%, #3D7A2C 100%);
}

/* Slide 4 — Amber/orange */
.hs-slide-4 {
    background: linear-gradient(135deg, #3a1500 0%, #7a2f00 50%, #E8630A 100%);
}

/* ── Dark overlay on all slides ── */
.hs-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.65) 0%,
        rgba(0,0,0,.35) 60%,
        rgba(0,0,0,.15) 100%
    );
    z-index: 1;
}

.hs-overlay-photo {
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.15) 0%,
        rgba(0,0,0,.45) 50%,
        rgba(0,0,0,.80) 100%
    );
}

/* ── Dot pattern overlay ── */
.hs-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ── Container must fill height ── */
.hs-item .container { position: relative; z-index: 5; }
.hs-item .container .row { min-height: 100vh; max-height: 900px; }

/* ── Slide content ── */
.hs-content { padding: 20px 0; }

.hs-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232,99,10,.25);
    border: 1px solid rgba(232,99,10,.45);
    color: #f4a01f;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 30px;
    margin-bottom: 22px;
    opacity: 0;
    transform: translateY(20px);
    transition: none;
}

.hs-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    color: #fff;
    line-height: 1.2;
    margin-bottom: 18px;
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}

.hs-title em {
    font-style: normal;
    color: #E8630A;
    position: relative;
}

.hs-title em::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 3px;
    background: #E8630A;
    border-radius: 2px;
    opacity: .5;
}

.hs-sub {
    color: rgba(255,255,255,.82);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 550px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: none;
}

.hs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    opacity: 0;
    transform: translateY(30px);
    transition: none;
    margin-bottom: 28px;
}

/* Animate content when slide is active */
.carousel-item.active .hs-tag {
    animation: hs-fade-up .6s .2s ease forwards;
}

.carousel-item.active .hs-title {
    animation: hs-fade-up .6s .35s ease forwards;
}

.carousel-item.active .hs-sub {
    animation: hs-fade-up .6s .5s ease forwards;
}

.carousel-item.active .hs-actions {
    animation: hs-fade-up .6s .65s ease forwards;
}

.carousel-item.active .hs-badges {
    animation: hs-fade-up .6s .75s ease forwards;
}

.carousel-item.active .hs-logo-wrap {
    animation: hs-fade-in .8s .3s ease forwards;
}

.carousel-item.active .hs-icon-grid {
    animation: hs-fade-in .8s .4s ease forwards;
}

@keyframes hs-fade-up {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hs-fade-in {
    to { opacity: 1; }
}

/* ── Slide buttons ── */
.hs-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: linear-gradient(135deg, #E8630A, #F4A01F);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .93rem;
    padding: 13px 28px;
    border-radius: 30px;
    border: none;
    box-shadow: 0 6px 20px rgba(232,99,10,.35);
    transition: var(--transition);
    cursor: pointer;
}

.hs-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(232,99,10,.5);
    color: #fff;
}

.hs-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: transparent;
    color: rgba(255,255,255,.9);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .93rem;
    padding: 12px 26px;
    border-radius: 30px;
    border: 1.5px solid rgba(255,255,255,.4);
    transition: var(--transition);
    cursor: pointer;
}

.hs-btn-ghost:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.8);
    color: #fff;
    transform: translateY(-3px);
}

/* ── Program badges (slide 3) ── */
.hs-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: none;
}

.hs-badge {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.9);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: .85rem;
    padding: 8px 22px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    letter-spacing: .5px;
}

/* ── Logo visual (slide 1) ── */
.hs-logo-wrap {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: none;
}

.hs-logo-wrap img {
    width: 200px;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,.4));
    animation: float 5s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.hs-logo-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255,255,255,.2);
    animation: spin 20s linear infinite;
}

.hs-ring-2 {
    inset: -50px;
    border-color: rgba(232,99,10,.2);
    animation-direction: reverse;
    animation-duration: 30s;
}

/* ── Icon grid (slide 4) ── */
.hs-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    opacity: 0;
    transition: none;
}

.hs-ig-item {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 16px;
    padding: 20px 14px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    cursor: default;
}

.hs-ig-item:hover {
    background: rgba(232,99,10,.25);
    border-color: rgba(232,99,10,.5);
    transform: translateY(-4px);
}

.hs-ig-item i {
    display: block;
    font-size: 1.6rem;
    color: #f4a01f;
    margin-bottom: 8px;
}

.hs-ig-item span {
    display: block;
    font-size: .78rem;
    color: rgba(255,255,255,.8);
    font-weight: 600;
}

/* ── Custom indicators ── */
.hero-indicators {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.hi-btn {
    width: 50px;
    height: 4px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.hi-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,.35);
    border-radius: 2px;
    position: relative;
}

.hi-btn.active .hi-bar {
    background: rgba(255,255,255,.3);
}

.hi-btn.active .hi-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #E8630A;
    border-radius: 2px;
    animation: progress-bar 6s linear forwards;
    transform-origin: left;
}

@keyframes progress-bar {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ── Prev/Next controls ── */
.hs-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.hs-ctrl:hover {
    background: #E8630A;
    border-color: #E8630A;
    transform: translateY(-50%) scale(1.08);
}

.hs-ctrl-prev { left: 24px; }
.hs-ctrl-next { right: 24px; }

/* ── Bottom stats bar ── */
.hs-stats-bar {
    background: var(--primary);
    padding: 0;
    position: relative;
    z-index: 10;
}

.hs-stats-inner {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

.hs-stat-item {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    transition: var(--transition);
    cursor: default;
}

.hs-stat-item:hover { background: rgba(255,255,255,.06); }

.hs-stat-item > i {
    font-size: 1.6rem;
    color: #E8630A;
    flex-shrink: 0;
}

.hs-stat-item strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hs-stat-item span {
    display: block;
    font-size: .78rem;
    color: rgba(255,255,255,.55);
    margin-top: 3px;
}

.hs-stat-divider {
    width: 1px;
    background: rgba(255,255,255,.1);
    align-self: stretch;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .hs-item { height: 80vh; min-height: 520px; max-height: 700px; }
    .hs-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }
    .hero-indicators { bottom: 80px; }
    .hs-ctrl { width: 42px; height: 42px; font-size: .9rem; }
    .hs-ctrl-prev { left: 12px; }
    .hs-ctrl-next { right: 12px; }
    .hs-stats-inner { flex-wrap: wrap; }
    .hs-stat-divider { display: none; }
    .hs-stat-item { min-width: 50%; border-bottom: 1px solid rgba(255,255,255,.08); }
}

@media (max-width: 575px) {
    .hs-item { height: 75vh; min-height: 480px; }
    .hs-actions { flex-direction: column; align-items: flex-start; }
    .hs-stat-item { min-width: 100%; }
    .hs-badges { justify-content: center; }
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; }
section { overflow: hidden; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
.navbar {
    background: var(--white) !important;
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(27,58,107,.1);
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 9999;
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(27,58,107,.18);
}

.navbar-brand img {
    height: 55px;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand img { height: 45px; }

.navbar-nav .nav-link {
    color: var(--text) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 8px 14px !important;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 70%; }

.nav-cta {
    background: var(--gradient-accent) !important;
    color: var(--white) !important;
    border-radius: 25px !important;
    padding: 8px 22px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(232,99,10,.3);
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(232,99,10,.4) !important; }

/* ─────────────────────────────────────────
   PAGE HERO (Inner pages)
───────────────────────────────────────── */
.page-hero {
    background: var(--gradient-primary);
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb-item.active { color: var(--accent); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; }

/* ─────────────────────────────────────────
   SECTION UTILITIES
───────────────────────────────────────── */
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

.section-label {
    display: inline-block;
    background: rgba(232,99,10,.12);
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.section-label.green {
    background: rgba(61,122,44,.12);
    color: var(--secondary);
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    margin-bottom: 18px;
}

.section-title span { color: var(--accent); }
.section-subtitle { color: var(--text-light); font-size: 1.05rem; max-width: 650px; }

.divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: 16px 0 24px;
}

.divider.center { margin: 16px auto 24px; }

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-primary-custom {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 13px 32px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(27,58,107,.3);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(27,58,107,.4);
    color: var(--white);
}

.btn-accent-custom {
    background: var(--gradient-accent);
    color: var(--white);
    padding: 13px 32px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(232,99,10,.3);
    transition: var(--transition);
    cursor: pointer;
}

.btn-accent-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(232,99,10,.45);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,.6);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline-custom:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--white);
    color: var(--white);
}

/* ─────────────────────────────────────────
   CARDS
───────────────────────────────────────── */
.card-service {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-service::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition);
}

.card-service:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.card-service:hover::before { transform: scaleY(1); }

.card-service .icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    transition: var(--transition);
}

.card-service:hover .icon-wrap {
    background: var(--gradient-accent);
    color: var(--white);
    transform: scale(1.05);
}

.card-service h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.card-service p {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.7;
}

.card-service .card-link {
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.card-service .card-link:hover { gap: 10px; }

/* Value cards */
.card-value {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid transparent;
    border-image: var(--gradient-accent) 1;
    border-image-slice: 1;
}

.card-value:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.card-value .icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--white);
    font-size: 1.5rem;
}

.card-value h5 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.card-value p { color: var(--text-light); font-size: 0.9rem; }

/* Program cards */
.card-program {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.card-program:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-program-header {
    padding: 32px 28px;
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
}

.card-program-header.green { background: var(--gradient-green); }
.card-program-header.accent { background: var(--gradient-accent); }

.card-program-header .prog-icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: block;
}

.card-program-header h4 { color: var(--white); font-size: 1.1rem; }
.card-program-header .acronym {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: rgba(255,255,255,.25);
    position: absolute;
    right: 20px;
    bottom: 16px;
}

.card-program-body {
    background: var(--white);
    padding: 24px 28px;
}

.card-program-body ul li {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.card-program-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* Stats */
.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ─────────────────────────────────────────
   HERO SECTION (Homepage)
───────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.shape-1 {
    width: 600px; height: 600px;
    background: var(--white);
    top: -150px; right: -150px;
}

.shape-2 {
    width: 400px; height: 400px;
    background: var(--accent);
    bottom: -100px; left: -100px;
    opacity: 0.1 !important;
}

.shape-3 {
    width: 200px; height: 200px;
    background: var(--secondary);
    top: 40%; left: 35%;
    opacity: 0.08 !important;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(232,99,10,.12) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(61,122,44,.15) 0%, transparent 40%);
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    color: rgba(255,255,255,.9);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 25px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: .7; }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--accent);
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    margin-bottom: 36px;
    max-width: 560px;
    line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 50px; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.15);
}

.hero-stat .num {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.hero-stat .lbl {
    font-size: 0.82rem;
    color: rgba(255,255,255,.7);
    margin-top: 4px;
}

.hero-image-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-circle {
    width: 340px;
    height: 340px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    animation: float 4s ease-in-out infinite;
    position: relative;
}

.hero-logo-circle::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.2);
    animation: spin 20s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-logo-circle img { width: 240px; }

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 3s ease-in-out infinite;
}

.floating-card:nth-child(2) { animation-delay: -1s; }
.floating-card:nth-child(3) { animation-delay: -2s; }

.floating-card-1 { top: 10%; right: -30px; }
.floating-card-2 { bottom: 20%; left: -20px; }
.floating-card-3 { top: 50%; right: -40px; }

.floating-card .fc-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.floating-card .fc-text .label {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-card .fc-text .value {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

/* ─────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────── */
.about-image-wrap {
    position: relative;
}

.about-image-wrap .main-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
    height: 520px;
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
    min-width: 140px;
}

.about-badge .big { font-size: 2.2rem; font-weight: 800; color: var(--accent); font-family: 'Poppins', sans-serif; }
.about-badge .small { font-size: 0.82rem; color: var(--text-light); }

.about-exp-tag {
    position: absolute;
    top: 30px;
    left: -20px;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.check-list li {
    list-style: none;
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.check-list li:last-child { border-bottom: none; }

.check-list li .check-icon {
    width: 24px; height: 24px;
    background: rgba(61,122,44,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ─────────────────────────────────────────
   SERVICES GRID
───────────────────────────────────────── */
.services-bg { background: var(--gray-soft); }

/* ─────────────────────────────────────────
   FOUNDER SECTION
───────────────────────────────────────── */
.founder-section { background: var(--gradient-primary); position: relative; overflow: hidden; }

.founder-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 700px; height: 700px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}

.founder-photo {
    border-radius: var(--radius-lg);
    border: 5px solid rgba(255,255,255,.2);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 380px;
    object-fit: cover;
    height: 440px;
}

.founder-quote {
    position: relative;
    background: rgba(255,255,255,.1);
    border-left: 4px solid var(--accent);
    padding: 24px 28px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
    backdrop-filter: blur(10px);
}

.founder-quote::before {
    content: '"';
    font-size: 6rem;
    color: var(--accent);
    opacity: .3;
    font-family: Georgia, serif;
    position: absolute;
    top: -20px;
    left: 10px;
    line-height: 1;
}

.founder-quote p { color: rgba(255,255,255,.9); font-style: italic; font-size: 1.05rem; line-height: 1.8; }

.founder-title h3 { color: var(--white); font-size: 1.8rem; }
.founder-title .role { color: var(--accent); font-size: 0.95rem; font-weight: 600; }

/* ─────────────────────────────────────────
   WHO WE SERVE
───────────────────────────────────────── */
.serve-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.serve-item:hover {
    transform: translateX(6px);
    border-left-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.serve-item .si-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.serve-item:hover .si-icon {
    background: var(--gradient-accent);
    color: var(--white);
}

.serve-item .si-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
}

/* ─────────────────────────────────────────
   CTA BANNER
───────────────────────────────────────── */
.cta-section {
    background: var(--gradient-accent);
    position: relative;
    overflow: hidden;
    padding: 70px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.cta-section p { color: rgba(255,255,255,.9); font-size: 1.05rem; }

.btn-cta-white {
    background: var(--white);
    color: var(--accent);
    padding: 13px 32px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 25px rgba(0,0,0,.15);
    transition: var(--transition);
}

.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,.25);
    color: var(--accent);
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.contact-info-item .ci-icon {
    width: 52px; height: 52px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-item .ci-text h6 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.contact-info-item .ci-text p,
.contact-info-item .ci-text a {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.contact-info-item .ci-text a:hover { color: var(--accent); }

.form-group { margin-bottom: 20px; }

.form-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 8px;
    display: block;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--light);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(27,58,107,.08);
}

textarea.form-input { resize: vertical; min-height: 130px; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
    background: #0E2240;
    color: rgba(255,255,255,.8);
    padding: 70px 0 0;
}

.footer-brand img { height: 60px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,.6); max-width: 280px; line-height: 1.8; }

.footer-title {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,.6);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a i { font-size: 0.7rem; color: var(--accent); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: rgba(255,255,255,.6);
}

.footer-contact-item i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

.footer-socials { display: flex; gap: 10px; margin-top: 20px; }

.social-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255,255,255,.4);
}

.footer-bottom span { color: var(--accent); }

/* ─────────────────────────────────────────
   BACK TO TOP
───────────────────────────────────────── */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--gradient-accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

#backToTop.show { opacity: 1; visibility: visible; }
#backToTop:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ─────────────────────────────────────────
   TIMELINE (Publications/Programs)
───────────────────────────────────────── */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item h6 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.timeline-item p { font-size: 0.88rem; color: var(--text-light); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 991px) {
    .hero { min-height: auto; padding: 100px 0 60px; }
    .hero-logo-circle { width: 260px; height: 260px; margin: 40px auto 0; }
    .hero-logo-circle img { width: 180px; }
    .floating-card { display: none; }
    .about-badge { right: 10px; bottom: 20px; }
    .about-exp-tag { left: 10px; }
    .about-image-wrap .main-img { height: 380px; }
}

@media (max-width: 767px) {
    .section-pad { padding: 60px 0; }
    .hero-stats { gap: 20px; }
    .footer { padding: 50px 0 0; }
    .card-service { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-logo-circle { width: 220px; height: 220px; }
    .hero-logo-circle img { width: 150px; }
}

/* ═══════════════════════════════════════════
   EVENTS PAGE HERO
═══════════════════════════════════════════ */
.page-hero-events {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #0d2a5a 60%, var(--secondary) 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}
.page-hero-events::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.phe-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27,58,107,.15);
}
.phe-content { position: relative; z-index: 2; }
.phe-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}
.phe-title span { color: var(--accent); }
.phe-sub {
    color: rgba(255,255,255,.8);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.7;
    margin-top: .75rem;
}

/* ═══════════════════════════════════════════
   EVENTS SLIDER
═══════════════════════════════════════════ */
.ev-slider-section { background: #fff; }

.ev-main-carousel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(27,58,107,.18);
    position: relative;
}
.ev-slide { position: relative; }
.ev-slide-img-wrap {
    position: relative;
    aspect-ratio: 16/7;
    overflow: hidden;
    background: #0a1a35;
}
.ev-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s ease;
}
.carousel-item.active .ev-slide-img { transform: scale(1.04); }
.ev-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,26,53,.65) 0%, transparent 55%);
}
.ev-slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.ev-slide-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(255,255,255,.2);
    line-height: 1;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}
.ev-slide-label {
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    margin: 0;
}

.ev-ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,.25);
    color: #fff;
    border-radius: 50%;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    z-index: 10;
}
.ev-ctrl:hover { background: var(--accent); border-color: var(--accent); }
.ev-ctrl-prev { left: 20px; }
.ev-ctrl-next { right: 20px; }

.ev-indicators {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
    margin: 0;
    padding: 0;
}
.ev-indicators [data-bs-slide-to] {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background .3s, transform .3s;
}
.ev-indicators [data-bs-slide-to].active {
    background: var(--accent);
    transform: scale(1.35);
}

/* Thumbnail strip */
.ev-thumbs-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ev-thumbs-wrap::-webkit-scrollbar { display: none; }
.ev-thumbs {
    display: flex;
    gap: 10px;
    padding: 4px 2px;
    width: max-content;
}
.ev-thumb {
    width: 90px;
    height: 62px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2.5px solid transparent;
    transition: border-color .25s, opacity .25s, transform .25s;
    opacity: .55;
}
.ev-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ev-thumb:hover { opacity: .85; }
.ev-thumb.active {
    border-color: var(--accent);
    opacity: 1;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   EVENTS GALLERY
═══════════════════════════════════════════ */
.events-section {}
.ev-photo {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: var(--gray-soft);
    aspect-ratio: 4/3;
}
.ev-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
    display: block;
}
.ev-photo::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27,58,107,.6);
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: opacity .3s;
}
.ev-photo:hover img { transform: scale(1.08); }
.ev-photo:hover::after { opacity: 1; }

/* Lightbox */
.eg-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.eg-lightbox.open { display: flex; }
.eg-lb-inner { max-width: 90vw; max-height: 85vh; }
.eg-lb-inner img { max-width: 100%; max-height: 85vh; border-radius: 8px; display: block; }
.eg-lb-close, .eg-lb-prev, .eg-lb-next {
    position: absolute;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s;
}
.eg-lb-close:hover, .eg-lb-prev:hover, .eg-lb-next:hover { background: var(--accent); }
.eg-lb-close { top: 20px; right: 20px; }
.eg-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.eg-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ═══════════════════════════════════════════
   BOOKS FOR SALE
═══════════════════════════════════════════ */
.book-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(27,58,107,.1);
    transition: transform .3s, box-shadow .3s;
    display: flex;
    flex-direction: column;
}
.book-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(27,58,107,.18); }

.book-cover {
    position: relative;
    height: 260px;
    display: flex;
    overflow: hidden;
}
.book-cover-1 { background: linear-gradient(135deg, #1B3A6B 0%, #2a5298 100%); }
.book-cover-2 { background: linear-gradient(135deg, #2a7d4f 0%, #1a9e63 100%); }

.book-spine {
    width: 36px;
    background: rgba(0,0,0,.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.book-face {
    flex: 1;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    border-left: 3px solid rgba(255,255,255,.15);
}
.book-logo { font-size: 2.5rem; opacity: .4; }
.book-series { font-size: .72rem; text-transform: uppercase; letter-spacing: 2px; opacity: .7; }
.book-title-text { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin: auto 0; }
.book-year { font-size: .85rem; opacity: .7; }
.book-brand { font-size: .75rem; opacity: .55; text-transform: uppercase; letter-spacing: 1px; }

.book-info { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.book-name { font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--primary); margin: 0; }
.book-edition { font-size: .75rem; font-weight: 500; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 20px; vertical-align: middle; margin-left: 6px; }
.book-desc { color: var(--text-light); font-size: .9rem; line-height: 1.7; margin: 0; flex: 1; }
.book-meta { display: flex; gap: 16px; font-size: .82rem; color: var(--text-light); flex-wrap: wrap; }
.book-meta span { display: flex; align-items: center; gap: 6px; }
.book-meta i { color: var(--primary); }
.book-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
    align-self: flex-start;
    margin-top: auto;
}
.book-buy-btn:hover { color: #fff; opacity: .9; transform: translateY(-2px); }
