/**
 * AT Edu Global — Polished Design System
 * Brand: #ED1C24 primary, #1a1a2e dark, Inter typography
 */
:root {
    --primary: #ED1C24;
    --primary-dark: #c4151c;
    --accent: #FB4927;
    --dark: #1a1a2e;
    --dark-2: #16213e;
    --text: #2d3436;
    --text-muted: #636e72;
    --bg: #ffffff;
    --bg-soft: #f8f9fb;
    --border: #e9ecef;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(237,28,36,0.92) 0%, rgba(26,26,46,0.94) 55%, rgba(22,33,62,0.96) 100%);
    /* Header + footer top bar (shared chrome) */
    --chrome-gradient: linear-gradient(90deg, #ed1c24 0%, #c4151c 22%, #8f1a28 45%, #4a1828 68%, #1a1a2e 88%, #12121a 100%);
    --chrome-text: #ffffff;
    --chrome-border: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* —— Shared chrome (header nav + footer top) —— */
.site-chrome {
    background: var(--chrome-gradient);
    color: var(--chrome-text);
    font-family: var(--font);
}

.site-chrome-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--chrome-border);
    font-size: 0.875rem;
    font-weight: 500;
}

.site-chrome-top-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.25rem;
}

.site-chrome-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--chrome-text);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s, color 0.2s;
}

.site-chrome-contact:hover {
    color: #fff;
    opacity: 0.9;
    text-decoration: underline;
}

.site-chrome-contact i {
    font-size: 0.8rem;
    opacity: 0.95;
}

.site-chrome-nav {
    padding: 0.75rem 0 0.85rem;
}

.site-chrome-brand img {
    max-height: 48px;
    width: auto;
}

.site-chrome-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

.site-chrome-menu .nav-link {
    color: var(--chrome-text) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem !important;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.site-chrome-menu .nav-link:hover,
.site-chrome-menu .nav-link.active {
    background: rgba(0, 0, 0, 0.22);
    color: #fff !important;
}

@media (max-width: 991.98px) {
    .site-chrome-top-left,
    .site-chrome-top-right {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .site-chrome-top-right {
        flex-direction: column;
        gap: 0.35rem;
    }
    .site-chrome-menu {
        padding: 0.75rem 0 0.25rem;
        text-align: center;
    }
    .site-chrome-menu .nav-link {
        padding: 0.55rem 0.5rem !important;
    }
}

/* —— Site header / hero —— */
.site-header {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.site-hero-section {
    position: relative;
    color: #fff;
    background: var(--gradient-hero);
    background-image: linear-gradient(135deg, rgba(237,28,36,0.88) 0%, rgba(26,26,46,0.9) 50%, rgba(22,33,62,0.92) 100%), var(--hero-image, none);
    background-size: cover;
    background-position: center;
}

.site-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(251,73,39,0.25) 0%, transparent 50%);
    pointer-events: none;
}

.site-hero-section .container {
    position: relative;
    z-index: 2;
}
.site-hero {
    padding: 48px 0 72px;
    max-width: 720px;
}
.site-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}
.site-hero h1 span {
    display: block;
    background: var(--primary);
    padding: 4px 12px;
    width: fit-content;
    margin-top: 8px;
    border-radius: 4px;
}
.site-hero .lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.95;
    margin-bottom: 1.5rem;
    max-width: 560px;
}
.site-header--compact .site-hero-section--compact {
    background: var(--chrome-gradient);
    background-image: none;
}

.site-header--compact .site-hero { padding: 24px 0 32px; }
.site-header--compact .site-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.site-header--compact .site-hero h1 span { display: inline; margin-top: 0; margin-left: 8px; }

.btn-brand {
    background: var(--gradient);
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-brand:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(237,28,36,0.35);
}
.btn-outline-brand {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 50px;
}
.btn-outline-brand:hover { background: #fff; color: var(--primary); }

/* —— Sections —— */
.site-section {
    padding: 72px 0;
}
.site-section--soft { background: var(--bg-soft); }
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}
.section-head .eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}
.section-head p { color: var(--text-muted); margin: 0; }

/* —— Service cards —— */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(237,28,36,0.25);
}
.service-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(237, 28, 36, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.service-card__icon i {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 16px;
}
.service-card__link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}
.service-card__link:hover { color: var(--primary-dark); }

/* —— Study destinations —— */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.destination-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.destination-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(237,28,36,0.25);
}
.destination-card__flag {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 12px;
    display: block;
}
.destination-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.destination-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
    flex-grow: 1;
}
.destination-card__meta {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px !important;
}

.country-hero__flag {
    font-size: 3rem;
    line-height: 1;
}
.university-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.university-card:hover {
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.08));
    border-color: rgba(237,28,36,0.2);
}

/* —— Events —— */
.event-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.event-card:hover {
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.08));
    transform: translateY(-2px);
}
.event-card--past {
    opacity: 0.85;
}
.event-card__date {
    flex-shrink: 0;
    width: 64px;
    text-align: center;
    background: var(--gradient);
    color: #fff;
    border-radius: var(--radius);
    padding: 10px 8px;
    line-height: 1.1;
}
.event-card__day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}
.event-card__month {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.event-card__body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.event-card__body h3 a {
    color: var(--dark);
    text-decoration: none;
}
.event-card__body h3 a:hover { color: var(--primary); }
.event-detail__meta {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

/* —— Operations service packages —— */
.ops-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.ops-service-card:hover {
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.08));
    transform: translateY(-2px);
}
.ops-service-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 999px;
}
.ops-service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding-right: 72px;
}
.ops-service-card__price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

/* —— Stats strip —— */
.stats-strip {
    background: var(--gradient);
    color: #fff;
    padding: 40px 0;
}
.stats-strip .stat-item { text-align: center; padding: 12px; }
.stats-strip .stat-num {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}
.stats-strip .stat-label { font-size: 0.85rem; opacity: 0.9; }

/* —— About split —— */
.about-split img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
}
.about-split .highlight { color: var(--primary); font-weight: 700; }

/* —— Event / blog cards —— */
.info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    height: 100%;
    transition: box-shadow 0.2s;
}
.info-card:hover { box-shadow: var(--shadow-sm); }
.info-card h5 { font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.info-card h5 i { color: var(--primary); }

/* —— Consultation —— */
.consult-block {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.consult-block__brand {
    background: var(--gradient);
    color: #fff;
    padding: 48px 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.consult-block__brand h3 { font-weight: 800; font-size: 1.75rem; }
.consult-block__form {
    padding: 40px;
    background: #fff;
}
.consult-block__form .form-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--dark);
}
.consult-block .form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid var(--border);
}
.consult-block .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(237,28,36,0.15);
}
.btn-submit-brand {
    background: var(--gradient);
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    width: 100%;
    max-width: 280px;
}
.btn-submit-brand:hover { color: #fff; opacity: 0.95; }

/* —— Success grid —— */
.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.success-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-soft);
}
.success-item img { width: 100%; height: 100%; object-fit: cover; }
.about-photo {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    object-fit: cover;
    max-height: 420px;
}
.blog-feature img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}
.success-item__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* —— Service page content —— */
.site-main { padding: 48px 0 24px; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.feature-box {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}
.feature-box h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-box p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.cta-banner {
    background: var(--gradient);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin: 48px 0 0;
}
.cta-banner h3 { font-weight: 800; margin-bottom: 12px; }

.cms-content { line-height: 1.7; color: var(--text); }
.cms-content h2, .cms-content h3, .cms-content h4 { color: var(--dark); margin-top: 1.5rem; margin-bottom: 0.75rem; font-weight: 700; }
.cms-content p { margin-bottom: 1rem; color: var(--text-muted); }
.cms-content ul, .cms-content ol { margin-bottom: 1rem; padding-left: 1.25rem; }
.cms-content .feature-grid { margin-top: 1.5rem; }

/* —— Blog —— */
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover {
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.08));
    transform: translateY(-2px);
}
.blog-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.blog-card__body {
    padding: 20px;
}
.blog-card__body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.blog-card__body h3 a {
    color: var(--dark);
    text-decoration: none;
}
.blog-card__body h3 a:hover { color: var(--primary); }
.blog-card__cat {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    margin-bottom: 8px;
}
.blog-article {
    padding: 24px 0 8px;
}
.blog-article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
}

/* Hide legacy elementor on service pages when wrapped */
.site-main--legacy .elementor-section,
.site-main--legacy .study-abroad { display: none !important; }

/* Notification */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    padding: 16px 24px;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s ease;
}
.notification-success { background: #28a745; }
.notification-error { background: var(--primary); }
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 991px) {
    .site-hero .lead { max-width: 100%; }
    .consult-block__brand { padding: 32px 24px; }
    .consult-block__form { padding: 28px 20px; }
    .site-section { padding: 48px 0; }
}

#home, #about, #services, #events, #consultancy, #success, #blog {
    scroll-margin-top: 88px;
}
