@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

.skip-nav {
    position: absolute;
    top: -100%;
    left: 8px;
    z-index: 99999;
    background: var(--primary, #003366);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-nav:focus {
    top: 0;
}

:root {
    --primary: #003366;
    --primary-light: #004d99;
    --accent: #D4AF37;
    --accent-dark: #b8962d;
    --secondary: #008080;
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --bg-white: #ffffff;
    --bg-gray: #f9f9f9;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

p {
    text-align: justify;
}

/* Navigation Modernized */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    transition: all 0.4s ease;
    background: transparent;
    height: 90px;
    box-sizing: border-box;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    flex-wrap: nowrap;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: white;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover,
.dropdown:hover>a {
    color: var(--accent) !important;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: block;
    position: absolute;
    background-color: white;
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 0;
    /* Smooth open animation */
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.25s ease,
                transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dropdown-content a {
    color: var(--text-dark) !important;
    padding: 12px 16px;
    display: block;
}

.dropdown-content a:hover {
    background-color: var(--bg-gray);
    color: var(--primary) !important;
}

.dropdown:hover .dropdown-content {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dark-dropdown {
    background-color: #333 !important;
}

.dark-dropdown a {
    color: white !important;
}

.dark-dropdown a:hover {
    background-color: #444 !important;
    color: var(--accent) !important;
}

.btn-admission {
    padding: 10px 25px;
    background: var(--primary);
    color: white !important;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-admission:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 51, 102, 0.3);
}

.thread-cta-button {
    display: inline-block !important;
    background-color: var(--btn-bg, var(--primary)) !important;
    color: var(--btn-color, white) !important;
    padding: 14px 32px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin: 20px 0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
    line-height: 1.2 !important;
    font-size: 1rem !important;
}

.thread-cta-button:hover {
    background-color: var(--btn-hover-bg, var(--accent)) !important;
    color: var(--btn-hover-color, var(--primary)) !important;
}

/* Quill Editor Support Classes */
.ql-align-center {
    text-align: center !important;
}
.ql-align-right {
    text-align: right !important;
}
.ql-align-justify {
    text-align: justify !important;
}

/* Ensure buttons in centered blocks are correctly positioned */
.ql-align-center .thread-cta-button {
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 768px) {
    .thread-cta-button { padding: 12px 26px !important; font-size: 0.92rem !important; }
}
@media (max-width: 480px) {
    .thread-cta-button { padding: 10px 20px !important; font-size: 0.85rem !important; }
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 60px;
    box-shadow: var(--shadow);
}

nav.scrolled .nav-links a:not(.btn-admission) {
    color: var(--primary);
}

nav.scrolled .logo {
    color: var(--primary);
}

.logo {
    display: flex;
    align-items: center;
}

nav .logo {
    position: relative;
    display: flex;
    align-items: center;
    width: 200px;
    height: 50px;
    flex-shrink: 0;
}

nav .logo a {
    display: block;
    width: 100%;
    height: 50px;
    position: relative;
}

nav .logo img {
    height: 50px !important;
    width: auto !important;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

nav .logo .logo-dark {
    opacity: 0 !important;
}

nav.scrolled .logo .logo-light {
    opacity: 0 !important;
}

nav.scrolled .logo .logo-dark {
    opacity: 1 !important;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
}

.lang-switcher a {
    color: white !important;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    opacity: 0.7;
    transition: var(--transition);
    letter-spacing: 1px;
}

.lang-switcher a.active {
    opacity: 1;
    font-weight: 700;
    color: white !important;
}

.lang-switcher a:hover {
    opacity: 1;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 15px;
    font-weight: 300;
    font-size: 1.2rem;
    display: inline-block;
    vertical-align: middle;
    transition: var(--transition);
}

nav.scrolled .lang-switcher a {
    color: var(--primary) !important;
}

nav.scrolled .lang-separator {
    color: var(--primary);
    opacity: 0.3;
}


/* Hero Section Modernized */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10%;
    color: white;
    overflow: hidden;
}

.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* translateZ(0) pre-promotes every slide to its own GPU compositing layer
       on page load. No dynamic promotion/demotion = no layer-creation flash
       on any Android device, regardless of GPU memory. */
    transform: scale(1) translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: opacity 1.2s ease-in-out, transform 0s 1.2s;
}

.slide.active {
    opacity: 1;
    transform: scale(1.08) translateZ(0);
    transition: opacity 1.2s ease-in-out, transform 8s ease-out;
    /* No will-change needed — layers already promoted via translateZ(0) */
}

.hero-content-modern {
    max-width: 1000px;
    text-align: left;
    z-index: 2;
}

.hero-subheader {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-content-modern h1 {
    font-size: 4.8rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 40px;
}

.hero-btns-modern {
    margin-top: 30px;
}

.btn-learn-more {
    padding: 15px 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.btn-learn-more:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    left: 10%;
    bottom: 15%;
    display: flex;
    gap: 30px;
    z-index: 5;
}

.slider-arrow {
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.slider-arrow:hover {
    opacity: 1;
    transform: scale(1.2);
}

.slider-progress-container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 5;
}

.slider-progress-container span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background: white;
    transition: width 0.6s ease;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    background: var(--primary);
    color: white !important;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(0, 51, 102, 0.18);
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

/* Branches Strip */
.branches-strip {
    background-color: #275c9b;
    border-bottom: 12px solid #ecd808;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.branches-strip-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    padding: 15px 20px;
}

.branches-strip a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.3;
    padding: 0 25px;
    transition: var(--transition);
}

.branches-strip a:hover {
    color: #ecd808;
    /* Yellow on hover */
    transform: translateY(-2px);
}

.branches-strip .divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    font-weight: 300;
}

/* Education System Slider */
.edu-system {
    padding: 100px 0;
    background: #fdfdfd;
    overflow: hidden;
    position: relative;
}

.edu-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: scroll 200s linear infinite;
    will-change: transform;
}

.edu-track img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.edu-track img:hover {
    transform: scale(1.05);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 40px)); }
}

/* Sections */
section {
    padding: 100px 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
}

/* About Section */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-dark, #b8962d);
    margin-bottom: 10px;
}

.about-tagline {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 22px !important;
    line-height: 1.5;
}

.about-content p,
.principal-content p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-col p {
    text-align: left;
    line-height: 1.6;
}

.about-img {
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.curriculum-badges {
    position: absolute;
    bottom: -20px;
    right: -20px;
    display: flex;
    gap: 15px;
}

.curriculum-badges span {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    border: 1px solid var(--accent);
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.vm-box {
    background: var(--bg-gray);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--accent);
    transition: var(--transition);
}

.vm-box:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow);
}

.vm-box h4 {
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* History Section Styles */
.history-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.history-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    text-align: left;
}

.dropcap {
    float: left;
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 700;
    color: var(--primary);
    margin-right: 15px;
    margin-top: 5px;
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.program-content {
    padding: 30px;
}

.program-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Facilities Section */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .facilities-grid {
        grid-template-columns: 1fr;
    }
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 40px 30px;
    margin-top: 40px;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 992px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 8px 16px;
    border: none;
    background-color: white;
    color: var(--primary);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.pagination-btn:hover {
    background-color: var(--primary);
    color: white;
}

.pagination-btn.active {
    background-color: var(--primary);
    color: white;
    box-shadow: none;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: white;
    color: var(--primary);
}
.facility-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 300px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.facility-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.facility-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.facility-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.4));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
}

.facility-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.facility-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.facility-item:hover .facility-overlay {
    opacity: 1;
}

.facility-item:hover .facility-overlay h3,
.facility-item:hover .facility-overlay p {
    transform: translateY(0);
}

.facility-item:hover img {
    transform: scale(1.15);
}

/* Coming Soon Facilities */
.coming-soon-section {
    margin-top: 70px;
    margin-left: -12.5%;
    margin-right: -12.5%;
    margin-bottom: -100px;
    padding: 60px 12.5%;
    background: var(--bg-gray, #f9f9f9);
}

.coming-soon-header {
    text-align: center;
    margin-bottom: 40px;
}

.coming-soon-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.coming-soon-header h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.coming-soon-header p {
    font-size: 1rem;
    color: #555;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.coming-soon-grid {
    margin-top: 0;
}

.coming-soon-item {
    filter: grayscale(25%) brightness(0.95);
    transition: filter 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.coming-soon-item:hover {
    filter: grayscale(0%) brightness(1);
}

.coming-soon-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.05s;
}

.coming-soon-item:hover .coming-soon-badge {
    transform: translateY(0);
}

.coming-soon-cta {
    margin-top: 42px;
}

/* Modern Article Card Styles */
.article-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.article-card-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.article-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.1);
}

.article-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 15px;
}

.article-card-content h3 {
    color: #0066cc;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.article-card-title-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-card-title-link:hover h3 {
    color: var(--accent, #ecd808);
}

.article-card-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
    text-align: left;
}

.read-more-btn {
    color: #0066cc;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.article-card-footer {
    padding: 15px 25px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.article-card-footer span {
    color: #888;
    font-size: 0.8rem;
    font-weight: 500;
}


.facilities-btn-container {
    text-align: center;
    margin-top: 60px;
    width: 100%;
}

.btn-see-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 45px;
    background: var(--primary);
    color: white !important;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none !important;
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.15);
    font-family: inherit;
}

.btn-see-more:hover {
    background: var(--accent);
    color: var(--primary) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
}

/* Button ripple support */
.btn-learn-more,
.btn-admission,
.btn-see-more,
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: rippleAnim 0.65s linear forwards;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Campuses Section */
.campuses {
    background: var(--bg-white);
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 51, 102, 0.15);
    height: 520px;
    border: 3px solid var(--accent);
}

#indonesia-map {
    height: 100%;
    width: 100%;
}

.campus-legend {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px 20px;
    justify-content: center;
    margin-top: 30px;
}

.campus-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

.legend-pin {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary);
    border: 2px solid var(--accent);
    transform: rotate(-45deg);
    flex-shrink: 0;
}

/* Leaflet custom marker */
.campus-marker-icon {
    background: none;
    border: none;
}

.marker-pin-wrapper {
    position: relative;
    width: 36px;
    height: 48px;
}

.marker-pin-wrapper .pin-body {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    background: var(--primary);
    border: 3px solid var(--accent);
    transform: rotate(-45deg);
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.4);
}

.marker-pin-wrapper .pin-body::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    top: 8px;
    left: 8px;
}

.marker-pin-wrapper .pin-shadow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

/* Leaflet popup custom styling */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    border-top: 4px solid var(--accent) !important;
    box-shadow: 0 8px 24px rgba(0, 51, 102, 0.2) !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    width: auto !important;
}

/* Campus map popup with image */
.campus-popup-img {
    width: 240px;
    height: 130px;
    object-fit: cover;
    display: block;
}

.campus-popup-body {
    width: 240px;
    padding: 10px 14px 12px;
    text-align: center;
    box-sizing: border-box;
}

/* Footer Modernized */
footer {
    background: var(--primary);
    color: white;
    padding: 80px 10% 40px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 26px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
}

.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: none;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-item svg {
    margin-top: 5px;
    opacity: 0.9;
}

.contact-item-content {
    display: flex;
    flex-direction: column;
}

.contact-item-content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
    color: white;
}

.contact-item-content span,
.contact-item-content a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 60px 20px 30px;
    }
}

/* Testimonials */
.testimonials {
    padding: 100px 5%;
    background: #fff;
}

.testimonials-header {
    opacity: 1 !important;
    transform: none !important;
}

.testimonials-header p {
    font-size: 1.05rem;
    color: #555;
    margin-top: 14px;
    line-height: 1.6;
}

.testimonials-header h2::after {
    width: 60px;
    opacity: 1;
}

.testimonials-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials-track-container {
    overflow: hidden;
    flex: 1;
    width: 100%;
}

.testimonials-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .testimonial-card {
        min-width: 50%;
    }
}

@media (min-width: 992px) {
    .testimonial-card {
        min-width: 33.333%;
    }
}

@media (min-width: 1280px) {
    .testimonial-card {
        min-width: 25%;
    }
}

.testimonial-card-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
    box-shadow: none;
    transition: transform 0.3s ease;
    background: #111;
}

.testimonial-card-inner:hover {
    transform: translateY(-5px);
}

.testi-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.testimonial-card-inner:hover .testi-photo {
    transform: scale(1.04);
}

.testi-overlay {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.68) 55%, transparent 100%);
    padding: 52px 20px 22px;
    cursor: pointer;
    transition: top 0.38s ease, background 0.38s ease, padding 0.38s ease;
}

.testimonial-card-inner.testi-expanded .testi-overlay {
    top: 0;
    background: rgba(0, 0, 0, 0.88);
    padding-top: 24px;
    overflow-y: auto;
}

.testimonial-quote {
    font-style: normal;
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: none;
}

.testimonial-card-inner.testi-expanded .testimonial-quote {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

/* "tap to read" hint dot */
.testi-read-hint {
    display: inline-block;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.testimonial-card-inner.testi-expanded .testi-read-hint {
    display: none;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.93rem;
    color: #fff;
    margin-bottom: 3px;
    line-height: 1.3;
}

.testimonial-role {
    font-size: 0.77rem;
    color: var(--accent, #D4AF37);
    font-weight: 600;
    line-height: 1.4;
}

.testimonial-arrow {
    background: none;
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    line-height: 1;
}

.testimonial-arrow:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.08);
}

.contact-list {
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item-content strong {
    display: block;
    color: white;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.contact-item-content strong a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item-content strong a:hover {
    color: var(--accent);
    padding-left: 0;
}

.contact-item-content span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Modern Animation System
   ============================================ */

/* Scroll progress bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary-light) 100%);
    z-index: 9999;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: width 0.08s linear;
}

/* Base states for scroll-animated elements */
[data-animate] {
    opacity: 0;
    will-change: opacity, transform;
    transition-property: opacity, transform, filter;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    transition-duration: 0.9s;
}

[data-animate="fade-up"] {
    transform: translateY(50px);
}

[data-animate="fade-left"] {
    transform: translateX(-60px);
}

[data-animate="fade-right"] {
    transform: translateX(60px);
}

[data-animate="scale-up"] {
    transform: scale(0.88) translateY(20px);
    filter: blur(4px);
}

[data-animate].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Stagger delays */
[data-delay="1"] {
    transition-delay: 0.05s;
}

[data-delay="2"] {
    transition-delay: 0.15s;
}

[data-delay="3"] {
    transition-delay: 0.25s;
}

[data-delay="4"] {
    transition-delay: 0.35s;
}

[data-delay="5"] {
    transition-delay: 0.45s;
}

[data-delay="6"] {
    transition-delay: 0.55s;
}

[data-delay="7"] {
    transition-delay: 0.65s;
}

[data-delay="8"] {
    transition-delay: 0.75s;
}

/* Section underline grows in */
.section-header h2::after {
    width: 0;
    opacity: 0;
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s,
                opacity 0.5s ease 0.5s;
}

.section-header.is-visible h2::after {
    width: 80px;
    opacity: 1;
}

/* Hero text: smoother easing + gentle float */
@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}



/* Enhanced program card hover */
.program-card {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease;
}

.program-card:hover {
    transform: translateY(-14px);
    box-shadow: 0 36px 60px rgba(0, 51, 102, 0.18);
}

.program-img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.program-card:hover .program-img {
    transform: scale(1.06);
}

/* VM box enhanced easing */
.vm-box {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.4s ease,
        box-shadow 0.4s ease;
}

/* Nav link underline slide */
.nav-links>li:not(.dropdown):not(.lang-switcher)>a {
    position: relative;
}

.nav-links>li:not(.dropdown):not(.lang-switcher)>a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 1px;
}

.nav-links>li:not(.dropdown):not(.lang-switcher)>a:hover::after {
    width: 100%;
}

/* Campus map pin drop animation */
@keyframes pinDrop {
    0% {
        transform: translateY(-50px) scale(0.8);
        opacity: 0;
    }

    60% {
        transform: translateY(6px) scale(1.1);
        opacity: 1;
    }

    80% {
        transform: translateY(-3px) scale(0.96);
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    transition: var(--transition);
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
}

.mobile-menu-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: var(--transition);
    position: absolute;
}

/* Hamburger positions */
.mobile-menu-btn span:nth-child(1) {
    transform: translateY(-8px);
}

.mobile-menu-btn span:nth-child(2) {
    transform: translateY(0);
}

.mobile-menu-btn span:nth-child(3) {
    transform: translateY(8px);
}

nav.scrolled .mobile-menu-btn span {
    background-color: var(--primary);
}

/* ── From index.html inline styles ── */
        /* ── IB Diploma Section ── */
        .ib-diploma-section {
            padding: 80px 10%;
            background: #fff;
        }

        .ib-desc-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            max-width: 1100px;
            margin: 40px auto 48px;
        }

        .ib-intro-text p {
            color: var(--text-muted, #555);
            line-height: 1.8;
            margin-bottom: 14px;
            font-size: 0.97rem;
        }

        .ib-req-boxes {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .ib-req-box {
            display: flex;
            align-items: center;
            gap: 20px;
            background: linear-gradient(135deg, var(--primary) 0%, #005eb8 100%);
            border-radius: 16px;
            padding: 20px 28px;
            color: #fff;
        }

        .ib-req-num {
            font-size: 2.8rem;
            font-weight: 900;
            color: var(--accent, #D4AF37);
            line-height: 1;
            flex-shrink: 0;
            min-width: 40px;
        }

        .ib-req-label {
            font-size: 0.95rem;
            font-weight: 600;
            line-height: 1.4;
        }

        .ib-core-row {
            background: var(--bg-gray, #f7f8fc);
            border-radius: 20px;
            padding: 32px 40px;
            max-width: 1100px;
            margin: 0 auto 48px;
            text-align: center;
        }

        .ib-core-row h3 {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .ib-core-pills {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
        }

        .ib-core-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--accent, #D4AF37);
            color: var(--primary, #003366);
            font-weight: 700;
            font-size: 0.88rem;
            padding: 10px 22px;
            border-radius: 50px;
        }

        .ib-core-pill::before {
            content: '★';
            font-size: 0.8rem;
        }

        .ib-groups-h3 {
            text-align: center;
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--primary);
            margin: 0 auto 28px;
            max-width: 1100px;
        }

        .ib-groups-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            max-width: 1100px;
            margin: 0 auto;
        }

        .ib-group-card {
            background: #fff;
            border-radius: 16px;
            padding: 28px 24px;
            box-shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
            border-top: 4px solid var(--accent);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .ib-group-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 14px 36px rgba(0, 51, 102, 0.14);
        }

        .ib-group-card h4 {
            font-size: 0.82rem;
            font-weight: 800;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 14px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(0, 51, 102, 0.1);
        }

        .ib-group-card p {
            font-size: 0.87rem;
            color: #555;
            line-height: 2.1;
        }

        @media (max-width: 900px) {
            .ib-desc-row { grid-template-columns: 1fr; gap: 28px; }
            .ib-groups-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 600px) {
            .ib-groups-grid { grid-template-columns: 1fr; }
            .ib-core-row { padding: 24px 20px; }
            .ib-diploma-section { padding: 60px 6%; }
        }

        /* ── Stats Section ── */
        .stats-section {
            background: #fff;
            padding: 0 0 0 0;
        }

        .stats-tagline {
            text-align: center;
            font-size: 1.15rem;
            font-weight: 600;
            color: var(--primary);
            padding: 40px 10% 28px;
            margin: 0;
        }

        .stats-bar {
            background: var(--primary, #003366);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 44px 6%;
            gap: 0;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
            min-width: 0;
            gap: 10px;
        }

        .stat-num {
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 900;
            color: var(--accent, #D4AF37);
            line-height: 1;
            letter-spacing: -0.5px;
        }

        .stat-label {
            font-size: clamp(0.75rem, 1.2vw, 0.9rem);
            font-weight: 500;
            color: rgba(255, 255, 255, 0.85);
            text-align: center;
            letter-spacing: 0.2px;
        }

        .stat-divider {
            width: 1px;
            height: 52px;
            background: rgba(255, 255, 255, 0.2);
            flex-shrink: 0;
            margin: 0 12px;
        }

        @media (max-width: 700px) {
            .stats-bar {
                flex-wrap: wrap;
                gap: 28px;
                padding: 36px 8%;
            }
            .stat-divider { display: none; }
            .stat-item { flex: 0 0 calc(50% - 14px); }
        }

        @media (max-width: 420px) {
            .stat-item { flex: 0 0 100%; }
        }

        /* ── Quality of Alumni Section ── */
        .alumni-quality-section {
            background: linear-gradient(180deg, #f0f6fc 0%, #fff 100%);
            padding: 56px 10% 72px;
        }

        .alumni-quality-section .section-header .section-eyebrow {
            display: block;
        }

        .alumni-cards-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .alumni-card {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            aspect-ratio: 3 / 4;
            box-shadow: 0 8px 28px rgba(0, 51, 102, 0.12);
        }

        .alumni-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center top;
            display: block;
        }

        .alumni-card-overlay {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            padding: 48px 14px 14px;
            background: linear-gradient(to top, rgba(0, 20, 50, 0.92) 0%, rgba(0, 20, 50, 0.55) 55%, transparent 100%);
            color: #fff;
        }

        .alumni-card-name {
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.3px;
            margin-bottom: 4px;
            line-height: 1.3;
        }

        .alumni-card-role {
            font-size: 0.72rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.88);
            line-height: 1.45;
        }

        @media (max-width: 1100px) {
            .alumni-cards-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 700px) {
            .alumni-quality-section {
                padding: 44px 6% 56px;
            }
            .alumni-cards-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 16px;
            }
        }

        @media (max-width: 420px) {
            .alumni-cards-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
                max-width: 100%;
            }
            .alumni-card-overlay {
                padding: 30px 10px 12px;
            }
            .alumni-card-name {
                font-size: 0.75rem;
            }
            .alumni-card-role {
                font-size: 0.65rem;
            }
        }

        /* ── Learning Journey CTA ── */
        .learning-journey-cta {
            background: var(--bg-gray, #f9f9f9);
            padding: 72px 10% 80px;
        }

        .lj-cta-inner {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 48px;
            align-items: center;
            max-width: 1140px;
            margin: 0 auto;
        }

        .lj-cta-content .section-eyebrow {
            display: block;
            margin-bottom: 14px;
        }

        .lj-cta-content h2 {
            font-size: clamp(1.85rem, 3.5vw, 2.75rem);
            font-weight: 700;
            line-height: 1.25;
            color: var(--primary);
            margin: 0 0 20px;
            max-width: 520px;
        }

        .lj-cta-content h2::after {
            content: '';
            display: block;
            width: 60px;
            height: 4px;
            background: var(--accent);
            margin-top: 16px;
        }

        .lj-cta-content p {
            font-size: 1rem;
            line-height: 1.8;
            color: #555;
            margin: 0 0 28px;
            max-width: 480px;
        }

        .lj-cta-visual {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-height: 520px;
        }

        .lj-visual-frame {
            position: relative;
            width: 100%;
            max-width: 520px;
            min-height: 480px;
            margin: 0 auto;
            background: linear-gradient(145deg, #e8f2fa 0%, #d4e6f5 100%);
            border-radius: 28px;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            overflow: visible;
        }

        .lj-star {
            position: absolute;
            pointer-events: none;
            z-index: 1;
            clip-path: polygon(
                50% 0%, 61% 35%, 98% 35%, 68% 57%,
                79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%
            );
        }

        .lj-star-yellow {
            background: var(--accent, #D4AF37);
            opacity: 0.95;
        }

        .lj-star-blue {
            background: var(--primary, #003366);
            opacity: 0.35;
        }

        .lj-star-1 {
            width: 110px;
            height: 110px;
            top: 6%;
            right: 8%;
        }

        .lj-star-2 {
            width: 48px;
            height: 48px;
            top: 22%;
            left: 10%;
            opacity: 0.75;
        }

        .lj-star-3 {
            width: 36px;
            height: 36px;
            bottom: 28%;
            left: 14%;
        }

        .lj-star-4 {
            width: 52px;
            height: 52px;
            top: 12%;
            left: 22%;
        }

        .lj-star-5 {
            width: 28px;
            height: 28px;
            bottom: 18%;
            right: 12%;
        }

        .lj-star-6 {
            width: 40px;
            height: 40px;
            bottom: 8%;
            left: 6%;
            opacity: 0.5;
        }

        .lj-cta-photo {
            position: relative;
            z-index: 2;
            display: block;
            margin: 0 auto;
            max-height: 560px;
            width: auto;
            max-width: 88%;
            object-fit: contain;
            object-position: center bottom;
        }

        @media (max-width: 900px) {
            .lj-cta-inner {
                grid-template-columns: 1fr;
                gap: 40px;
            }
            .lj-cta-visual {
                min-height: 440px;
            }
            .lj-visual-frame {
                max-width: 480px;
                min-height: 420px;
            }
            .lj-cta-photo {
                max-height: 500px;
            }
            .lj-cta-content h2,
            .lj-cta-content p {
                max-width: none;
            }
        }

        @media (max-width: 500px) {
            .learning-journey-cta {
                padding: 48px 6% 56px;
            }
            .lj-cta-visual {
                min-height: 380px;
            }
            .lj-visual-frame {
                min-height: 360px;
            }
            .lj-cta-photo {
                max-height: 420px;
            }
        }

        /* ── Stay Connected Section ── */
        .stay-connected-section {
            background: linear-gradient(135deg, var(--primary, #003366) 0%, #004f9f 100%);
            padding: 80px 10%;
            overflow: hidden;
            position: relative;
        }

        .stay-connected-section::before {
            content: '';
            position: absolute;
            top: -80px;
            right: -80px;
            width: 320px;
            height: 320px;
            border-radius: 50%;
            background: rgba(212, 175, 55, 0.08);
            pointer-events: none;
        }

        .stay-connected-section::after {
            content: '';
            position: absolute;
            bottom: -60px;
            left: -60px;
            width: 240px;
            height: 240px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.04);
            pointer-events: none;
        }

        .stay-connected-inner {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            max-width: 1140px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .stay-connected-eyebrow {
            color: var(--accent, #D4AF37) !important;
            background: rgba(212, 175, 55, 0.12) !important;
            border-color: rgba(212, 175, 55, 0.3) !important;
            display: inline-block;
            margin-bottom: 18px;
        }

        .stay-connected-h2 {
            font-size: clamp(1.75rem, 3.5vw, 2.6rem);
            font-weight: 800;
            color: #fff;
            line-height: 1.25;
            margin: 0 0 20px;
        }

        .stay-connected-h2::after {
            content: '';
            display: block;
            width: 56px;
            height: 4px;
            background: var(--accent, #D4AF37);
            margin-top: 16px;
        }

        .stay-connected-desc {
            font-size: 1rem;
            line-height: 1.8;
            color: rgba(255, 255, 255, 0.85);
            margin: 0 0 12px;
        }

        .stay-connected-tagline {
            font-size: 0.95rem;
            font-style: italic;
            color: rgba(255, 255, 255, 0.65);
            margin: 0 0 36px;
            line-height: 1.6;
        }

        .stay-connected-socials {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
        }

        .social-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            font-size: 0.9rem;
            padding: 12px 24px;
            border-radius: 50px;
            text-decoration: none;
            transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
            letter-spacing: 0.3px;
        }

        .social-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
            filter: brightness(1.08);
        }

        .social-btn-ig {
            background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
            color: #fff;
        }

        .social-btn-tt {
            background: #010101;
            color: #fff;
            border: 1px solid rgba(255,255,255,0.15);
        }

        .social-btn-yt {
            background: #FF0000;
            color: #fff;
        }

        .stay-connected-visual {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .stay-connected-phone {
            max-width: 100%;
            max-height: 520px;
            width: auto;
            object-fit: contain;
            filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.4));
        }

        @media (max-width: 900px) {
            .stay-connected-inner {
                grid-template-columns: 1fr;
                gap: 40px;
                text-align: center;
            }
            .stay-connected-h2::after {
                margin: 16px auto 0;
            }
            .stay-connected-socials {
                justify-content: center;
            }
            .stay-connected-phone {
                max-height: 380px;
            }
        }

        @media (max-width: 500px) {
            .stay-connected-section {
                padding: 60px 6%;
            }
            .social-btn {
                padding: 11px 20px;
                font-size: 0.85rem;
            }
        }


/* ── Poster Modal (from index.html) ── */
        /* ── Poster Modal ── */
        .poster-overlay {
            position: fixed;
            inset: 0;
            z-index: 99999;
            background: rgba(0, 0, 0, 0.65);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.35s ease;
            backdrop-filter: blur(3px);
        }

        .poster-overlay.is-visible {
            opacity: 1;
            pointer-events: auto;
        }

        .poster-modal {
            background: var(--primary, #003366);
            border-radius: 20px;
            overflow: hidden;
            width: 100%;
            max-width: 420px;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
            transform: scale(0.88) translateY(24px);
            transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
            display: flex;
            flex-direction: column;
            gap: 0;
            isolation: isolate;
        }

        .poster-modal > * {
            flex-shrink: 0;
        }

        .poster-overlay.is-visible .poster-modal {
            transform: scale(1) translateY(0);
        }

        .poster-modal-header {
            background: var(--primary, #003366);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 18px;
        }

        .poster-modal-logo img {
            display: block;
        }

        .poster-modal-close {
            background: rgba(255, 255, 255, 0.18);
            border: none;
            color: #fff;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease, transform 0.2s ease;
            flex-shrink: 0;
        }

        .poster-modal-close:hover {
            background: rgba(255, 255, 255, 0.35);
            transform: rotate(90deg);
        }

        .poster-modal-img-wrap {
            overflow: hidden;
            line-height: 0;
            font-size: 0;
            display: block;
            margin: 0;
            padding: 0;
        }

        .poster-img {
            width: 100%;
            height: auto;
            display: block;
            margin: 0;
            padding: 0;
        }

        .poster-modal-footer {
            background: var(--primary, #003366);
            padding: 14px 20px;
            text-align: center;
        }

        .poster-cta-btn {
            display: inline-block;
            background: var(--accent, #D4AF37);
            color: var(--primary, #003366);
            font-weight: 800;
            font-size: 0.95rem;
            letter-spacing: 0.5px;
            text-decoration: none;
            padding: 12px 36px;
            border-radius: 50px;
            width: 100%;
            box-sizing: border-box;
            transition: background 0.2s ease;
        }

        .poster-cta-btn:hover {
            background: #c9a227;
        }

        @media (max-width: 480px) {
            .poster-modal { max-width: 100%; border-radius: 16px; }
        }

/* ── Skeleton image loading ── */
@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

img.img-loading {
    background: linear-gradient(90deg, #e0e0e0 25%, #efefef 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    color: transparent;
}

img.img-loading[src=""],
img.img-loading:not([src]) {
    min-height: 80px;
}

/* ============================================================
   COMPREHENSIVE MOBILE OPTIMIZATIONS
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small)
   ============================================================ */

/* ── Mobile Navigation Menu ── */
@media (max-width: 768px) {
    nav {
        padding: 0 20px;
        height: 70px;
    }

    nav.scrolled {
        padding: 0 20px;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 3001;
    }

    /* Full-screen slide-in mobile menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 90px 0 40px;
        z-index: 3000;
        transition: right 0.38s cubic-bezier(0.22, 1, 0.36, 1);
        overflow-y: auto;
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        right: 0;
    }

    /* Backdrop overlay — must sit BELOW nav's stacking context (z-index:2000) */
    #mobile-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1999;
    }

    #mobile-nav-overlay.active {
        display: block;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 16px 28px;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9) !important;
        white-space: normal;
    }

    .nav-links a:hover {
        color: var(--accent) !important;
        background: rgba(255, 255, 255, 0.06);
    }

    /* Dropdown in mobile menu */
    .dropdown-content {
        display: none !important;
        position: static !important;
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        box-shadow: none !important;
        background: rgba(0, 0, 0, 0.2) !important;
        border-radius: 0 !important;
        overflow: visible !important;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .dropdown.active .dropdown-content {
        display: block !important;
    }

    .dropdown-content a {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 12px 28px 12px 44px;
        font-size: 0.92rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .dropdown-content a:hover {
        background: rgba(255,255,255,0.08) !important;
        color: var(--accent) !important;
    }

    /* Hamburger → X animation */
    .mobile-menu-btn.open span:nth-child(1) {
        transform: translateY(0) rotate(45deg);
    }

    .mobile-menu-btn.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-btn.open span:nth-child(3) {
        transform: translateY(0) rotate(-45deg);
    }

    /* Lang switcher in mobile menu */
    .lang-switcher {
        padding: 16px 28px;
        width: 100%;
    }

    .lang-switcher a,
    nav.scrolled .lang-switcher a {
        color: rgba(255, 255, 255, 0.6) !important;
        font-size: 1rem;
        font-weight: 400;
    }

    .lang-switcher a.active,
    nav.scrolled .lang-switcher a.active {
        color: white !important;
        font-weight: 700;
    }

    .lang-separator {
        color: rgba(255, 255, 255, 0.3);
    }

    /* Admission button in mobile menu */
    .nav-links .btn-admission {
        margin: 16px 28px;
        padding: 12px 24px;
        text-align: center;
        border-radius: 8px;
        display: inline-block;
        width: calc(100% - 56px);
    }

    /* Logo sizing on mobile */
    nav .logo {
        width: 140px;
        height: 40px;
    }

    nav .logo img {
        height: 40px !important;
    }
}

/* ── Mobile Hero Section ── */
@media (max-width: 768px) {
    .hero {
        padding: 0 6%;
        height: 100svh; /* use small viewport height */
    }

    .hero-content-modern h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1.15;
        margin-bottom: 24px;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .hero-subheader {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
        margin-bottom: 14px;
    }

    .btn-learn-more {
        padding: 12px 32px;
        font-size: 0.82rem;
        letter-spacing: 1.5px;
    }

    .slider-nav {
        left: 6%;
        bottom: 120px;
    }

    .slider-progress-container {
        bottom: 60px;
    }

    .progress-bar {
        width: 120px;
    }

}

/* ── Extra small screens (≤480px) hero fixes ── */
@media (max-width: 480px) {
    .hero-subheader {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .hero-content-modern h1 {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    .btn-learn-more {
        padding: 11px 26px;
        font-size: 0.78rem;
        letter-spacing: 1px;
    }
}

/* ── Mobile Sections Padding ── */
@media (max-width: 768px) {
    section {
        padding: 60px 6%;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-header h2 {
        font-size: clamp(1.6rem, 5.5vw, 2rem);
    }
}

@media (max-width: 480px) {
    section {
        padding: 48px 5%;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* ── About Section (2-col → 1-col) ── */
@media (max-width: 900px) {
    .about {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .curriculum-badges {
        position: static;
        margin-top: 16px;
        flex-wrap: wrap;
    }

    .curriculum-badges span {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .vision-mission {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .about-tagline {
        font-size: 1.15rem;
    }
}

/* ── Programs Grid ── */
@media (max-width: 600px) {
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .program-img {
        height: 200px;
    }

    .program-content {
        padding: 20px;
    }
}

/* ── Branches Strip ── */
@media (max-width: 768px) {
    .branches-strip a {
        font-size: 0.82rem;
        padding: 0 14px;
    }

    .branches-strip-container {
        padding: 12px 10px;
    }
}

/* ── Education System ── */
@media (max-width: 768px) {
    .edu-system {
        padding: 60px 0;
    }

    .edu-track img {
        height: 50px;
    }
}

/* ── IB Diploma Section ── */
@media (max-width: 768px) {
    .ib-diploma-section {
        padding: 60px 5%;
    }

    .ib-desc-row {
        gap: 20px;
    }

    .ib-core-row {
        padding: 20px 16px;
    }

    .ib-core-pills {
        gap: 8px;
    }

    .ib-core-pill {
        font-size: 0.82rem;
        padding: 8px 16px;
    }

    .ib-req-box {
        padding: 16px 20px;
    }

    .ib-req-num {
        font-size: 2.2rem;
    }
}

/* ── Stats Section ── */
@media (max-width: 560px) {
    .stats-tagline {
        font-size: 1rem;
        padding: 28px 6% 20px;
    }
}

/* ── Alumni Cards ── */
@media (max-width: 560px) {
    .alumni-quality-section {
        padding: 44px 5% 52px;
    }
}

/* ── Testimonials ── */
@media (max-width: 768px) {
    .testimonials {
        padding: 60px 4%;
    }

    .testimonials-wrapper {
        gap: 6px;
        margin-top: 30px;
    }

    .testimonial-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .testimonial-card-inner {
        height: 380px;
    }
}

/* ── Facilities ── */
@media (max-width: 768px) {
    .facility-overlay {
        /* Always show overlay text on touch devices */
        opacity: 1;
        background: linear-gradient(to top, rgba(0,51,102,0.85) 0%, rgba(0,51,102,0.3) 60%, transparent 100%);
        justify-content: flex-end;
        padding: 20px;
        align-items: flex-start;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .facility-overlay h3 {
        font-size: 1.3rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        transform: none;
    }

    .facility-overlay p {
        display: none; /* hide description on mobile to avoid clutter */
        transform: none;
    }

    .coming-soon-badge {
        transform: none;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }

    .facility-item {
        height: 220px;
    }

    .coming-soon-section {
        margin-left: -6.25%;
        margin-right: -6.25%;
        padding: 48px 6.25%;
        margin-bottom: -60px;
    }
}

/* ── Campus Map ── */
@media (max-width: 768px) {
    .map-wrapper {
        height: 340px;
    }

    .campus-legend {
        flex-wrap: wrap;
        gap: 8px 12px;
    }
}

/* ── Learning Journey CTA ── */
@media (max-width: 768px) {
    .learning-journey-cta {
        padding: 48px 5% 56px;
    }
}

/* ── Stay Connected ── */
@media (max-width: 768px) {
    .stay-connected-section {
        padding: 60px 5%;
    }
}

/* ── Footer ── */
@media (max-width: 768px) {
    footer {
        padding: 60px 5% 32px;
    }

    .footer-grid {
        gap: 36px;
    }

    .footer-col h4 {
        font-size: 1.05rem;
        margin-bottom: 18px;
    }

    .footer-col img[src*="logo"] {
        height: 40px !important;
    }

    .footer-col p {
        font-size: 0.9rem;
    }
}

/* ── WhatsApp Float ── */
@media (max-width: 480px) {
    .whatsapp-float {
        right: 16px;
        bottom: 20px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ── Campus Hero Pages (bsd, gs, jambi, etc.) ── */
@media (max-width: 768px) {
    .bsd-hero,
    .program-hero,
    [class*="-hero"] {
        padding-top: 80px;
        min-height: 50vh;
    }

    .bsd-hero h1 {
        font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
    }

    .bsd-hero img.campus-logo {
        height: 60px !important;
    }

    .program-hero .hero-content h1 {
        font-size: clamp(1.7rem, 6vw, 2.6rem);
    }
}

@media (max-width: 480px) {
    .bsd-hero,
    .program-hero {
        min-height: 45vh;
    }
}

/* ── Careers / Job Detail ── */
@media (max-width: 768px) {
    .job-detail-section {
        padding: 110px 5% 60px !important;
    }

    .job-detail-section h1 {
        font-size: 1.8rem !important;
    }

    .req-content {
        font-size: 1rem !important;
    }
}

/* ── Admission Page ── */
@media (max-width: 768px) {
    .adm-hero,
    .adm-steps-section,
    .adm-class-section {
        padding: 60px 5%;
    }
}

/* ── Scholarship Page ── */
@media (max-width: 768px) {
    .scholarship-hero {
        padding-top: 80px;
        min-height: 48vh;
    }
}

/* ── FAQ ── */
@media (max-width: 768px) {
    .faq-question {
        font-size: 0.9rem !important;
        padding: 14px 16px !important;
    }

    .faq-answer {
        padding: 0 16px 16px 36px !important;
        font-size: 0.9rem !important;
    }
}

/* ── Pagination ── */
@media (max-width: 480px) {
    .pagination-controls {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-btn {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
}

/* ── Article / Event Cards ── */
@media (max-width: 480px) {
    .article-card-content {
        padding: 18px;
        gap: 10px;
    }

    .article-card-content h3 {
        font-size: 1.1rem;
    }
}

/* ── Btn See More / Admission ── */
@media (max-width: 480px) {
    .btn-see-more,
    .btn-admission {
        padding: 14px 32px;
        font-size: 0.9rem;
    }
}

/* ── General Touch Improvements ── */
@media (max-width: 768px) {
    /* Prevent tap callout on interactive elements */
    a, button {
        -webkit-tap-highlight-color: transparent;
    }

    /* Minimum touch target size */
    .testimonial-arrow,
    .slider-arrow,
    .mobile-menu-btn,
    .pagination-btn {
        min-width: 44px;
        min-height: 44px;
    }

    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
}

/* ── Tablet intermediate (768–1024) ── */
@media (max-width: 1024px) and (min-width: 769px) {
    nav {
        padding: 0 32px;
    }

    nav.scrolled {
        padding: 0 32px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a {
        font-size: 0.88rem;
    }

    .hero-content-modern h1 {
        font-size: clamp(3rem, 5.5vw, 4.5rem);
    }

    section {
        padding: 80px 6%;
    }

    .about {
        gap: 36px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Ashley Chloe Zoom */
.ashley-chloe-img {
    transform: scale(1.3) translateY(-12%);
}
.testimonial-card-inner:hover .ashley-chloe-img {
    transform: scale(1.35) translateY(-12%);
}

/* ── Index.html extra mobile fixes ── */
@media (max-width: 768px) {
    /* justify looks terrible on narrow mobile columns — switch to left */
    .about-content p,
    .principal-content p {
        text-align: left;
    }

    /* Coming-soon bleed: align to actual 6% mobile section padding */
    .coming-soon-section {
        margin-left: -6%;
        margin-right: -6%;
        padding-left: 6%;
        padding-right: 6%;
    }

    /* Program cards — smaller text on mobile */
    .program-content {
        padding: 16px 18px;
    }
    .program-content h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    .program-content p {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    /* Coming-soon / new facilities section */
    .coming-soon-header h3 {
        font-size: 1.4rem;
    }
    .coming-soon-header p {
        font-size: 0.9rem;
    }
    .coming-soon-header {
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    /* About section tighter on smallest phones */
    .about-tagline {
        font-size: 1rem;
        margin-bottom: 14px !important;
    }
    .about-content p {
        font-size: 0.92rem;
        margin-bottom: 14px;
    }

    /* Coming-soon bleed: align to actual 5% padding at 480px */
    .coming-soon-section {
        margin-left: -5%;
        margin-right: -5%;
        padding-left: 5%;
        padding-right: 5%;
        margin-bottom: -48px;
    }

    /* IB group cards: tighter padding on tiny screens */
    .ib-group-card {
        padding: 20px 16px;
    }

    /* Program cards — even smaller on tiny screens */
    .program-content h3 {
        font-size: 1rem;
    }
    .program-content p {
        font-size: 0.85rem;
    }

    /* Coming-soon section */
    .coming-soon-header h3 {
        font-size: 1.2rem;
    }
    .coming-soon-header p {
        font-size: 0.85rem;
    }
}

/* ============================================================
   Page Builder blocks (used by admin-created pages, see
   template/page_shell.html + renderBlock() in admin_server.js)
   ============================================================ */

.builder-hero {
    background-size: cover;
    background-position: center;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 10% 80px;
}

.builder-hero-content {
    max-width: 800px;
    color: white;
}

.builder-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.builder-hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.builder-text-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1.05rem;
}

.builder-text-content img {
    max-width: 100%;
    border-radius: 12px;
}

.builder-image-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.builder-image-text.reverse {
    direction: rtl;
}

.builder-image-text.reverse > * {
    direction: ltr;
}

.builder-image-text-media img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: block;
}

.builder-image-text-body h2 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 1.8rem;
}

.builder-image-text-body p {
    color: #555;
    line-height: 1.7;
}

.builder-cta {
    text-align: center;
    background: var(--bg-gray, #f9f9f9);
    border-radius: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 10%;
}

.builder-cta h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 24px;
}

.builder-timer {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 10%;
}

.builder-timer-heading {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 28px;
}

/* Reuses .registration-countdown + countdown.js (built for event cards) at a larger size */
.builder-timer .registration-countdown {
    display: inline-block;
    background: var(--primary);
    border-radius: 16px;
    padding: 30px 40px;
    border: 1px solid rgba(234, 179, 8, 0.3);
    margin-top: 0;
}

.builder-timer .countdown-numbers {
    gap: 24px;
}

.builder-timer .number-item .days,
.builder-timer .number-item .hours,
.builder-timer .number-item .minutes,
.builder-timer .number-item .seconds {
    font-size: 2.5rem;
}

.builder-timer .number-item .label {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.builder-timer .number-separator {
    font-size: 2rem;
}

@media (max-width: 768px) {
    .builder-hero { padding: 100px 6% 60px; min-height: 50vh; }
    .builder-image-text { grid-template-columns: 1fr; gap: 30px; }
    .builder-image-text.reverse { direction: ltr; }
    .builder-cta { padding: 40px 6%; }
    .builder-timer .registration-countdown { padding: 20px 16px; }
    .builder-timer .countdown-numbers { gap: 12px; }
    .builder-timer .number-item .days,
    .builder-timer .number-item .hours,
    .builder-timer .number-item .minutes,
    .builder-timer .number-item .seconds { font-size: 1.7rem; }
}
