/* ===== Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

h1, h2, h3, h4 {
    font-family: Georgia, "Times New Roman", serif;
    color: #1a2e4a;
    line-height: 1.3;
}

a {
    color: #1a5276;
    text-decoration: none;
}

a:hover {
    color: #c0392b;
}

ul { list-style: none; }
img { max-width: 100%; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Top Bar ===== */
.top-bar {
    background: #1a2e4a;
    color: #ccc;
    font-size: 13px;
    padding: 6px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .separator {
    margin: 0 10px;
    color: #555;
}

/* ===== Header ===== */
.header {
    background: #fff;
    border-bottom: 3px solid #c0392b;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-mark {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.logo-name {
    display: block;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: bold;
    color: #1a2e4a;
}

.logo-tagline {
    display: block;
    font-size: 11px;
    color: #777;
    letter-spacing: 0.5px;
}

/* ===== Navigation ===== */
.main-nav ul {
    display: flex;
    gap: 0;
}

.main-nav a {
    display: block;
    padding: 8px 11px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
    color: #c0392b;
    border-bottom-color: #c0392b;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: #333;
}

/* ===== Banner ===== */
.banner {
    position: relative;
    background: #1a2e4a;
    min-height: 360px;
    display: flex;
    align-items: center;
}

.banner-slide {
    width: 100%;
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(26,46,74,0.95) 0%, rgba(26,46,74,0.7) 100%);
}

.banner-content {
    position: relative;
    z-index: 1;
    padding: 70px 0;
    max-width: 620px;
    color: #fff;
}

.banner h1 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 14px;
    font-weight: normal;
}

.banner p {
    font-size: 15px;
    color: #ccc;
    margin-bottom: 24px;
    line-height: 1.7;
}

.banner-actions {
    display: flex;
    gap: 12px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary {
    background: #c0392b;
    color: #fff;
}

.btn-primary:hover {
    background: #a93226;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #1a2e4a;
}

.btn-sm {
    padding: 7px 18px;
    font-size: 13px;
    background: #1a5276;
    color: #fff;
}

.btn-sm:hover {
    background: #1a2e4a;
    color: #fff;
}

/* ===== Info Bar ===== */
.info-bar {
    background: #f0c040;
    padding: 0;
    border-bottom: 1px solid #d4a82e;
}

.info-bar-inner {
    display: flex;
}

.info-item {
    flex: 1;
    text-align: center;
    padding: 14px 12px;
    border-right: 1px solid rgba(0,0,0,0.1);
    font-size: 13px;
}

.info-item:last-child {
    border-right: none;
}

.info-item strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5a4500;
    margin-bottom: 2px;
}

.info-item span {
    color: #333;
    font-weight: 600;
}

/* ===== Sections ===== */
.section {
    padding: 50px 0;
}

.section-gray {
    background: #f5f6f8;
}

.section h2 {
    font-size: 26px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c0392b;
    display: inline-block;
}

.section-intro {
    color: #555;
    font-size: 15px;
    max-width: 750px;
    margin-bottom: 30px;
    line-height: 1.7;
}

/* ===== Two Column Layout ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.col-text p {
    margin-bottom: 14px;
    font-size: 15px;
    color: #444;
}

.key-facts {
    display: flex;
    gap: 30px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.fact strong {
    display: block;
    font-size: 28px;
    color: #1a2e4a;
    font-family: Georgia, serif;
}

.fact span {
    font-size: 13px;
    color: #666;
}

/* Aside box */
.aside-box {
    background: #f5f6f8;
    border: 1px solid #ddd;
    border-top: 3px solid #1a2e4a;
    padding: 24px;
}

.aside-box h3 {
    font-size: 18px;
    margin-bottom: 14px;
}

.check-list li {
    padding: 6px 0 6px 22px;
    font-size: 14px;
    color: #444;
    position: relative;
    border-bottom: 1px solid #eee;
}

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

.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* ===== DELF Table ===== */
.level-table,
.exam-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.level-table th,
.exam-table th {
    background: #1a2e4a;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.level-table td,
.exam-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.level-table tbody tr:nth-child(even),
.exam-table tbody tr:nth-child(even) {
    background: #f9f9fb;
}

.level-table tbody tr:hover,
.exam-table tbody tr:hover {
    background: #eef2f7;
}

.delf-note {
    background: #eef2f7;
    border-left: 3px solid #1a5276;
    padding: 14px 18px;
    font-size: 14px;
    color: #444;
}

/* Status badges */
.status-open {
    display: inline-block;
    padding: 3px 10px;
    background: #27ae60;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.status-upcoming {
    display: inline-block;
    padding: 3px 10px;
    background: #7f8c8d;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

/* ===== Courses Grid ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.course-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 24px;
}

.section-gray .course-item {
    background: #fff;
}

.course-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.course-header h3 {
    font-size: 17px;
    margin: 0;
}

.course-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    background: #c0392b;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.course-item > p {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
}

.course-info-table {
    width: 100%;
    font-size: 13px;
    margin-bottom: 14px;
    border-collapse: collapse;
}

.course-info-table td {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.course-info-table td:first-child {
    font-weight: 600;
    color: #555;
    width: 100px;
}

/* ===== Team ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.team-member {
    display: flex;
    gap: 18px;
    background: #f9f9fb;
    border: 1px solid #e0e0e0;
    padding: 20px;
}

.member-photo {
    flex-shrink: 0;
}

.photo-placeholder {
    width: 70px;
    height: 70px;
    background: #1a2e4a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: bold;
}

.member-info h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.member-title {
    font-size: 13px;
    color: #c0392b;
    font-weight: 600;
    margin-bottom: 8px;
}

.member-info > p:last-child {
    font-size: 13px;
    color: #555;
}

/* ===== News ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 22px;
}

.news-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.news-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-item p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.news-item a {
    font-size: 13px;
    font-weight: 600;
    color: #c0392b;
}

/* ===== Testimonials ===== */
.testimonials-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial {
    background: #f5f6f8;
    border-left: 3px solid #c0392b;
    padding: 20px 24px;
    margin: 0;
}

.testimonial p {
    font-size: 14px;
    color: #444;
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.7;
}

.testimonial cite {
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    color: #1a2e4a;
}

/* ===== Contact ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-details h3,
.contact-form-wrap h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.contact-table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.contact-table td {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.contact-table td:first-child {
    font-weight: 600;
    width: 80px;
    color: #555;
}

.map-placeholder {
    background: #e0e4e8;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    border: 1px solid #ccc;
}

/* ===== Form ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a5276;
}

.form-group textarea {
    resize: vertical;
}

/* ===== Footer ===== */
.footer {
    background: #1a2e4a;
    color: #aab;
    padding: 40px 0 0;
    font-size: 14px;
}

.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer h4 {
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 12px;
}

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

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

.footer-col ul a {
    color: #aab;
    font-size: 13px;
}

.footer-col ul a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding: 18px 0;
    font-size: 13px;
    color: #667;
}

.footer-bottom a {
    color: #aab;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ===== Page Header ===== */
.page-header {
    background: #1a2e4a;
    padding: 30px 0;
    color: #fff;
}

.page-header h1 {
    color: #fff;
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 4px;
}

.breadcrumb {
    font-size: 13px;
    color: #99a;
}

.breadcrumb a {
    color: #aab;
}

.breadcrumb a:hover {
    color: #fff;
}

/* ===== Content Blocks ===== */
.content-block {
    max-width: 800px;
}

.content-block p {
    font-size: 15px;
    color: #444;
    margin-bottom: 14px;
}

.bullet-list {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 16px;
}

.bullet-list li {
    font-size: 14px;
    color: #444;
    padding: 4px 0;
}

.numbered-list {
    list-style: decimal;
    padding-left: 22px;
    margin-bottom: 16px;
}

.numbered-list li {
    font-size: 14px;
    color: #444;
    padding: 6px 0;
}

/* ===== Info List ===== */
.info-list li {
    padding: 7px 0;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #eee;
}

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

.info-list strong {
    color: #1a2e4a;
}

/* ===== Language Switch ===== */
.lang-switch {
    color: #aab;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 6px;
}

.lang-switch:hover {
    color: #fff;
}

.lang-active {
    color: #fff;
}

/* ===== Campus Grid ===== */
.campus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.campus-grid-three {
    grid-template-columns: repeat(3, 1fr);
}

.campus-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 28px;
}

.section-gray .campus-card {
    background: #fff;
}

.campus-flag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    background: #1a2e4a;
    color: #fff;
    margin-bottom: 10px;
}

.campus-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.campus-card h4 {
    font-size: 15px;
    margin: 16px 0 10px;
}

.campus-card > p {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.campus-card > a {
    font-size: 13px;
    font-weight: 600;
    color: #c0392b;
}

/* ===== Staff Table ===== */
.staff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 20px;
}

.staff-table th {
    background: #1a2e4a;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.staff-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.staff-table tbody tr:nth-child(even) {
    background: #f9f9fb;
}

.staff-table tbody tr:hover {
    background: #eef2f7;
}

/* ===== Member email ===== */
.member-email {
    font-size: 13px;
    color: #1a5276;
    margin-top: 6px;
}

/* ===== Highlight box ===== */
.highlight-box {
    border-top-color: #c0392b;
}

/* ===== Compact course item ===== */
.course-item.compact {
    padding: 18px;
}

.course-item.compact h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.course-item.compact p {
    font-size: 13px;
    color: #555;
    margin-bottom: 0;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
}

.faq-item {
    padding: 16px 0;
    border-bottom: 1px solid #ddd;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.faq-item p {
    font-size: 14px;
    color: #555;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .courses-grid,
    .team-grid,
    .testimonials-row,
    .news-grid,
    .campus-grid,
    .campus-grid-three {
        grid-template-columns: 1fr;
    }

    .staff-table {
        font-size: 13px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-cols {
        grid-template-columns: 1fr 1fr;
    }

    .info-bar-inner {
        flex-wrap: wrap;
    }

    .info-item {
        flex: 1 1 50%;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
}

@media (max-width: 640px) {
    .top-bar {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 2px solid #c0392b;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .main-nav.open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        padding: 12px 20px;
        border-bottom: 1px solid #eee;
    }

    .banner-content {
        padding: 40px 0;
    }

    .banner h1 {
        font-size: 24px;
    }

    .info-item {
        flex: 1 1 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-cols {
        grid-template-columns: 1fr;
    }

    .key-facts {
        flex-direction: column;
        gap: 14px;
    }

    .level-table, .exam-table {
        font-size: 12px;
    }

    .level-table th, .exam-table th,
    .level-table td, .exam-table td {
        padding: 7px 8px;
    }

    .banner-actions {
        flex-direction: column;
    }
}
