/*
Theme Name: Sirmax Academy
Theme URI: https://sirmaxacademy.com
Author: Sirmax Team
Author URI: https://sirmaxacademy.com
Description: A lightweight, production-ready WordPress theme for Sirmax Academy with custom homepage sections, responsive design, and compatibility with the Sirmax Academy plugin ecosystem.
Version: 1.0.0
License: GPL v2 or later
Text Domain: sirmax-academy
*/

/* Base Styles */
:root {
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --secondary: #0f172a;
    --bg-light: #f8fafc;
    --surface: #ffffff;
    --text-main: #334155;
    --text-heading: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container--wide {
    max-width: 1400px;
}

/* Full width container: used when a page sets the layout to Full Width */
.container--full {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.page-layout-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    justify-items: center; /* center items by default for balanced single-column layouts */
}

.page-layout-wrapper--sidebar-left {
    grid-template-columns: 280px minmax(0, 1fr);
    justify-items: stretch;
}

.page-layout-wrapper--sidebar-right {
    grid-template-columns: minmax(0, 1fr) 280px;
    justify-items: stretch;
}

.page-content-column {
    min-width: 0;
}

/* Center content when there is no sidebar present to avoid visual imbalance */
.page-layout-wrapper:not(.page-layout-wrapper--sidebar-left):not(.page-layout-wrapper--sidebar-right) .page-content-column {
    max-width: 900px;
    margin: 0 auto;
}

/* More robust: if the content column is the only child of the layout wrapper, center it. */
.page-layout-wrapper > .page-content-column:only-child {
    max-width: 900px;
    margin: 0 auto;
}

.page-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* Apply page/post content chrome only when NOT an Elementor-built page. Elementor controls its own chrome and spacing. */
body:not(.elementor-page) .single-page-content,
body:not(.elementor-page) .single-post-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.page-header {
    margin-bottom: 1.5rem;
}

.page-subtitle {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
}

.page-title,
.entry-title {
    margin: 0;
}

.entry-content--wide {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.elementor-page-content {
    width: 100%;
}

.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem auto;
}

.section-header .section-label {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ============================================
   NAVIGATION - COLLISION-FREE RESPONSIVE
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: top 0.3s ease;
}

/* Admin Bar Adjustments */
body.admin-bar .navbar {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 1.5rem;
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}

.brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    z-index: 1002;
    white-space: nowrap;
}

.brand-logo img {
    max-width: var(--header-logo-max-width);
    max-height: var(--header-logo-max-height);
    width: auto;
    height: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.site-title {
    color: inherit;
    text-decoration: none;
}

.site-description {
    margin: 0;
    line-height: 1.2;
    font-size: 0.95rem;
    color: inherit;
}

.brand span {
    color: var(--primary);
}

/* Navigation Wrapper & Links - Desktop */
.nav-menu-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-links > li {
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-links > li > a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: var(--transition);
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links > li > a:hover {
    color: var(--primary);
}

.dropdown-arrow {
    font-size: 0.6rem;
    margin-left: 0.35rem;
    transition: var(--transition);
    display: inline-block;
}

.has-dropdown:hover > a .dropdown-arrow {
    transform: rotate(180deg);
}

/* Sub Menu - Desktop Dropdown */
.nav-links .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    z-index: 1001;
}

.nav-links .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0.25rem;
}

.nav-links li:hover > .sub-menu,
.nav-links li.focus > .sub-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

.nav-links .sub-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--text-main);
    transition: var(--transition);
    font-weight: 400;
    font-size: 0.875rem;
    white-space: nowrap;
}

.nav-links .sub-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Desktop Header Enroll Button */
.enroll-btn-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.enroll-nav-btn {
    white-space: nowrap;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 999;
}

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

/* ============================================
   MEDIUM SCREENS (1025px - 1200px)
   ============================================ */
@media (max-width: 1200px) and (min-width: 1025px) {
    .nav-container {
        padding: 0 1rem;
    }
    .nav-menu-wrapper {
        margin-right: 0.75rem;
    }
    .nav-links {
        gap: 0.4rem;
    }
    .nav-links > li > a {
        font-size: 0.875rem;
        padding: 0.4rem 0.4rem;
    }
    .enroll-nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.825rem;
    }
}

/* ============================================
   MOBILE RESPONSIVE BREAKPOINT (<= 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .nav-container {
        height: 70px;
        padding: 0 1.25rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .enroll-btn-wrapper {
        display: none;
    }

    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 1.5rem 2rem;
        border-left: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        z-index: 1001;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        margin: 0;
    }

    .nav-menu-wrapper.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .nav-links > li {
        border-bottom: 1px solid var(--border);
        padding: 0;
    }

    .nav-links > li > a {
        padding: 0.85rem 0;
        font-size: 1rem;
        justify-content: space-between;
    }

    /* Submenu Accordion Style */
    .nav-links .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0.5rem 1rem;
        background: transparent;
        width: 100%;
    }

    .nav-links li.active-dropdown > .sub-menu {
        display: block;
    }

    .has-dropdown.active-dropdown > a .dropdown-arrow {
        transform: rotate(180deg);
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 1.2rem;
    }
}
/* ============================================
   END NAVIGATION
   ============================================ */

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 7rem;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4, 10, 24, 0.86) 0%, rgba(4, 10, 24, 0.62) 42%, rgba(4, 10, 24, 0.28) 100%),
        var(--hero-image) center/cover no-repeat;
    color: #ffffff;
}

.hero-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.4;
}

.hero-blur-one {
    width: 320px;
    height: 320px;
    background: rgba(124, 58, 237, 0.22);
    top: -60px;
    right: 8%;
}

.hero-blur-two {
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.14);
    bottom: 8%;
    left: 6%;
}

.hero-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-bottom: 8rem;
}

.hero-content {
    max-width: 680px;
    padding-right: 1rem;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 4vw, 4.6rem);
    margin-bottom: 1.15rem;
    color: #ffffff;
    line-height: 1.04;
    letter-spacing: -0.03em;
    font-weight: 800;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-shadow: 0 12px 32px rgba(2, 6, 23, 0.2);
}

.hero-content h1 span {
    color: #f5e9ff;
    display: inline-block;
    padding: 0.06em 0.24em;
    margin: 0 0.04em;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    border-radius: 0.4rem;
    white-space: normal;
}

.hero-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 0.95rem;
    flex-wrap: wrap;
    margin-bottom: 0;
    align-items: center;
}

.hero-buttons .btn {
    padding: 0.95rem 1.65rem;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.16);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    color: #ffffff;
    box-shadow: 0 16px 35px rgba(124, 58, 237, 0.32);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(124, 58, 237, 0.38);
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
}

.stats-card {
    position: absolute;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    width: min(100%, 760px);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 1.35rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.stat-item {
    padding: 0.95rem 0.8rem;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.16);
}

.stat-item h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.stat-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.84);
}

.scroll-indicator {
    position: absolute;
    bottom: 1.3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 1;
    animation: float-down 2s ease-in-out infinite;
}

.scroll-indicator-wheel {
    width: 1.8rem;
    height: 2.9rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    position: relative;
}

.scroll-indicator-wheel::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: 50%;
    width: 0.35rem;
    height: 0.55rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    transform: translateX(-50%);
    animation: scroll-wheel 1.8s linear infinite;
}

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

@keyframes scroll-wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(0.8rem); opacity: 0; }
}

/* Programs Section */
.academics {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.academics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.academic-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-light);
    transition: var(--transition);
}

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

.academic-image {
    height: 220px;
    overflow: hidden;
    background: #d4c4f0;
}

.academic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.academic-card:hover .academic-image img {
    transform: scale(1.03);
}

.academic-body {
    padding: 1.75rem;
}

.academic-body h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--surface);
    border: 1px solid var(--border);
}

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

.gallery-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.gallery-card .caption {
    padding: 1.25rem;
    text-align: center;
}

.gallery-card .caption h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* Graduation Section */
.grad-section {
    background: linear-gradient(135deg, #ede9fe 0%, #ffffff 100%);
}

.grad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grad-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.grad-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.grad-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.grad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface);
    padding: 2.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

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

.feature-icon {
    width: 72px;
    height: 72px;
    background: #ede9fe;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem auto;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

/* News Section */
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.news-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    border-left: 5px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-card h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #b0a8c8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: white;
    color: var(--secondary);
    box-shadow: none;
}

.cta-section .btn-primary:hover {
    background: #ede9fe;
    transform: translateY(-2px);
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text-heading);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer p {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* WordPress Core Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}
.aligncenter {
    display: block;
    margin: 5px auto;
}
.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}
.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}
.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}
.wp-caption-text {
    margin: 0;
    padding: 5px 0 0;
}
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Widget Styles */
.widget {
    margin-bottom: 2rem;
}
.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}
.widget ul {
    list-style: none;
    padding: 0;
}
.widget ul li {
    margin-bottom: 0.5rem;
}
.widget ul li a {
    color: #94a3b8;
    transition: var(--transition);
}
.widget ul li a:hover {
    color: white;
}

/* Responsive - General */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .section { padding: 4rem 0; }
}

@media (min-width: 1800px) {
    .hero {
        padding: 9rem 0 7.5rem;
        background-position: center 20%;
    }
    .hero-shell {
        min-height: 74vh;
        padding-bottom: 9rem;
    }
    .hero-content {
        max-width: 760px;
    }
    .hero-content h1 {
        font-size: clamp(3.3rem, 2.2vw + 1.8rem, 5.4rem);
    }
    .stats-card {
        width: min(100%, 860px);
        padding: 1.15rem 1.2rem;
    }
}

@media (max-width: 1366px) {
    .hero {
        padding: 7rem 0 6rem;
    }
    .hero-shell {
        min-height: 72vh;
        padding-bottom: 7rem;
    }
    .hero-content {
        max-width: min(640px, 100%);
    }
    .hero-content h1 {
        font-size: clamp(2.35rem, 3vw, 3.4rem);
    }
    .hero-content p {
        font-size: 1rem;
    }
    .stats-card {
        width: min(100%, 720px);
    }
}

@media (max-width: 900px) {
    .hero {
        padding: 6.5rem 0 6rem;
        background-position: center 28%;
    }
    .hero-shell {
        min-height: auto;
        align-items: flex-start;
        padding-bottom: 10.5rem;
    }
    .hero-content {
        max-width: 100%;
        padding-right: 0;
    }
    .hero-content h1 {
        font-size: clamp(2.2rem, 4vw, 2.8rem);
        line-height: 1.08;
    }
    .hero-content p {
        max-width: 100%;
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }
    .hero-buttons {
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    .hero-buttons .btn {
        padding: 0.9rem 1.4rem;
    }
    .stats-card {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        transform: none;
        width: auto;
        padding: 1rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .grad-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .grad-content {
        max-width: 100%;
        text-align: center;
    }
    .grad-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .grad-image {
        max-width: 620px;
        margin: 0 auto;
    }
    .grad-content h2 { font-size: 2rem; }
    .section-header h2 { font-size: 2rem; }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding: 5.5rem 0 5.5rem;
        background-position: center 24%;
    }
    .hero-shell {
        min-height: auto;
        padding-bottom: 12rem;
    }
    .hero-content h1 {
        font-size: clamp(1.8rem, 7vw, 2.35rem);
        line-height: 1.1;
    }
    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .stats-card {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.9rem;
        padding: 0.9rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }
    .stat-item {
        padding: 0.8rem;
    }
    .stat-item h3 {
        font-size: 1.05rem;
    }
    .stat-item p {
        font-size: 0.82rem;
    }
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-shell {
        padding-bottom: 13rem;
    }
    .hero-content h1 {
        font-size: clamp(1.7rem, 8vw, 2.1rem);
        line-height: 1.12;
    }
    .hero-content p {
        font-size: 0.93rem;
        margin-bottom: 1.35rem;
    }
    .hero-buttons .btn {
        padding: 0.85rem 1.2rem;
    }
    .stats-card {
        left: 0.6rem;
        right: 0.6rem;
        bottom: 0.75rem;
        padding: 0.75rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }
    .stat-item {
        padding: 0.7rem;
    }
    .stat-item h3 {
        font-size: 0.98rem;
    }
    .stat-item p {
        font-size: 0.76rem;
        line-height: 1.35;
    }
    .grad-content h2 { font-size: 1.7rem; }
    .grad-content p { font-size: 1rem; }
    .section { padding: 3rem 0; }
    .section-header h2 { font-size: 1.6rem; }
    .academic-image { height: 180px; }
    .gallery-card img { height: 180px; }
    .cta-section { padding: 2.5rem 1.5rem; }
    .cta-section h2 { font-size: 1.6rem; }
}








/* Ensure Elementor pages clear the fixed navbar */
body.elementor-page {
    padding-top: 80px;
}

/* Adjust top padding when WordPress Admin Bar is active */
body.elementor-page.admin-bar {
    padding-top: 112px; /* 80px nav + 32px admin bar */
}

/* Mobile navbar height adjustment */
@media (max-width: 1024px) {
    body.elementor-page {
        padding-top: 70px;
    }
    body.elementor-page.admin-bar {
        padding-top: 116px; /* 70px nav + 46px mobile admin bar */
    }
}