/* ============================================
   BTAE - Unified Stylesheet
   All styles consolidated into one file.
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a8a;
    --primary-rose: #e11d48;
    --primary-rose-dark: #be123c;
    --gold-accent: #f59e0b;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

a {
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============ Top Bar ============ */
.top-bar {
    background: var(--primary-blue);
    padding: 0.625rem 0;
}

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

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: #bfdbfe;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    color: #bfdbfe;
}

/* ============ Header ============ */
.main-header {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-blue);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.logo-text h1 {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--primary-blue);
    font-weight: 600;
    letter-spacing: 0.025em;
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-rose);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-link {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
}

.mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-gray);
    text-decoration: none;
    padding: 0.5rem 0;
}

.mobile-nav-link.active {
    color: var(--primary-rose);
}

/* ============ Page Hero (reusable for inner pages) ============ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-blue), #34495e);
    padding: 90px 0;
    text-align: center;
    color: white;
}

.page-hero h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.page-hero p {
    max-width: 750px;
    margin: 20px auto 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============ Hero Slider ============ */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
}

.slide-badge {
    display: inline-block;
    background: var(--primary-rose);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.slide-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.slide-title .highlight {
    color: #93c5fd;
}

.slide-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: none;
    color: var(--white);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-rose);
    width: 2rem;
    border-radius: 9999px;
}

.dot:hover { background: var(--white); }

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

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

.btn-primary:hover {
    background: var(--primary-rose-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

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

.btn-white {
    background: var(--white);
    color: var(--primary-rose);
    font-weight: 700;
}

.btn-white:hover {
    background: #f1f5f9;
}

/* ============ Section Styles ============ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-line {
    width: 5rem;
    height: 0.25rem;
    background: var(--primary-rose);
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ============ Welcome Section ============ */
.welcome-section {
    padding: 5rem 0;
        background: var(--bg-white);
}

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

.welcome-image img {
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.welcome-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-rose);
    margin-bottom: 1.5rem;
}

.welcome-text {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.support-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #eff6ff;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
}

.support-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.support-label {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.support-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Welcome images (about page) - same sizing for tutor and welcome */
.welcome-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.welcome-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.welcome-img:hover {
    transform: scale(1.02) translateY(-5px);
}

/* ============ Skills Section ============ */
.skills-section {
    padding: 100px 0;
    background: var(--bg-gray);
    overflow: hidden;
}

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

.skills-pre-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.skills-pre-title::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 3px;
    background-color: #0d6efd;
    margin-right: 12px;
    border-radius: 2px;
}

.skills-heading {
    font-size: 2.75rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.skills-text {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.skills-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.skills-images img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.07);
    transition: transform 0.3s ease-in-out;
}

.skills-images img:hover {
    transform: scale(1.05) translateY(-5px);
}

/* ============ Advantages Section ============ */
.advantages-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.advantages-tabs-container {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    position: sticky;
    top: 120px;
}

.advantages-tabs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantages-tabs .tab-link {
    display: block;
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0c2b5b;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
}

.advantages-tabs li:last-child .tab-link {
    border-bottom: none;
}

.advantages-tabs .tab-link.active {
    color: #d9534f;
}

.advantages-tabs .tab-link.active::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -34px;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #f8f9fa;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.tab-image-content img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.tab-text-content h3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0c2b5b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.tab-text-content p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more-link {
    color: #0c2b5b;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more-link svg {
    transition: transform 0.3s ease;
}

.read-more-link:hover svg {
    transform: translateX(5px);
}

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

/* ============ Campus Section ============ */
.campus-section {
    padding: 5rem 0;
    background: var(--bg-gray);
}

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

.campus-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.campus-item {
    display: flex;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.campus-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.campus-icon {
    width: 3rem;
    height: 3rem;
    background: #ffe4e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-rose);
    flex-shrink: 0;
}

.campus-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.campus-info p {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.campus-image img {
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* ============ Academics Section ============ */
.academics-section {
    padding: 5rem 0;
    background: var(--bg-gray);
}

.academics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.academic-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.academic-img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.academic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.academic-overlay h3 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.academic-link {
    color: #93c5fd;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    transition: var(--transition);
}

.academic-link:hover {
    gap: 0.5rem;
}

/* ============ Courses Section ============ */
.courses-section {
    padding: 5rem 0;
    background: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.course-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.course-image {
    position: relative;
}

.course-image img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.course-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.course-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.course-content .course-details {
    flex: 1 1 auto;
}

.course-footer {
    margin-top: auto;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.course-title {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

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

.course-title a:hover {
    color: var(--primary-rose);
}

.course-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.course-duration {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.course-price {
    font-weight: 700;
    color: var(--primary-rose);
}

.course-price.free {
    color: #16a34a;
}

.course-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem;
    background: #f1f5f9;
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

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

.event-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.event-title a:hover {
    color: var(--primary-rose);
}

/* ============ Stats Section ============ */
.stats-section {
    padding: 4rem 0;
    background: var(--primary-rose);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.stat-item i,
.stat-item svg {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============ Events Section ============ */
.events-section {
    padding: 5rem 0;
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.event-card {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
}

.event-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.event-image {
    position: relative;
    overflow: visible;
}

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

.event-card .event-date {
    position: absolute !important;
    top: 1rem;
    right: 1rem;
    background: #ffffff !important;
    border-radius: 0.75rem;
    padding: 0.55rem 0.85rem;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.18);
    z-index: 5;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    visibility: visible !important;
    opacity: 1 !important;
}

.event-card .event-day {
    display: block !important;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937 !important;
    line-height: 1;
}

.event-card .event-month {
    display: block !important;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.event-content {
    padding: 1.25rem;
}

.event-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
}

.event-title {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.event-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem;
    background: #f1f5f9;
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
}

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


/* ============ CTA Section ============ */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-rose), #be123c);
}

.cta-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.cta-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--white);
}

.cta-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

/* ============ Vision & Mission ============ */
.vision-mission-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.vision-mission-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e74c3c;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.vision-mission-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.vision-mission-item {
    padding: 0 2rem;
}

.vision-mission-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0c2b5b;
    margin-bottom: 8px;
    position: relative;
    padding-bottom: 15px;
}

.vision-mission-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: #e74c3c;
    border-radius: 2px;
}

.vision-mission-item p {
    font-size: 1.05rem;
    color: #555555;
    line-height: 1.8;
    margin: 0;
}

/* ============ Director Section ============ */
.director-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.director-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: flex-start;
}

.director-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.director-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border: 6px solid #ffffff;
}

.director-info {
    text-align: center;
    margin-top: 2rem;
}

.director-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 5px;
}

.director-title {
    font-size: 1.1rem;
    color: #8b8b8b;
    margin: 0;
}

/* ============ Contact Page ============ */
.contact-hero {
    background: linear-gradient(135deg, var(--primary-blue), #34495e);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.contact-content {
    padding: 80px 20px;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: start;
}

.contact-label {
    display: inline-block;
    color: #ff7a3d;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: fit-content;
}

.contact-heading {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 2.5rem 0;
    line-height: 1.2;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 2rem;
    flex-shrink: 0;
}

.info-body {
    flex: 1;
    padding-top: 0.5rem;
}

.info-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.75rem 0;
}

.info-body p {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.6;
}

.info-body a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.info-body a:hover {
    color: #ff7a3d;
    text-decoration: underline;
}

.form-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
    line-height: 1.3;
}

.contact-form {
    background: transparent;
    padding: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    background: #f5f7fa;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #eef2f7;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Inter', sans-serif;
}

.submit-btn {
    padding: 1rem 2rem;
    background: #1e7ce8;
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.submit-btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 58, 138, 0.3);
}

/* Map */
.map-section {
    padding: 80px 0;
    background: var(--bg-gray);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    height: 500px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-header {
    text-align: center;
    margin-bottom: 3rem;
}

.map-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.map-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============ Course Detail Page ============ */
.course-detail-label {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.course-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: auto;
}

.course-content-card {
    background: linear-gradient(135deg, #e8f1ff 0%, #f0f7ff 100%);
    padding: 28px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
}

.course-content-card h4 {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.course-content-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-gray);
}

.outcomes-list {
    list-style: none;
    padding: 0;
}

.outcomes-list li {
    margin-bottom: 14px;
    padding-left: 28px;
    position: relative;
    color: var(--text-gray);
    line-height: 1.7;
}

.outcomes-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-size: 1.3rem;
}

.course-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: auto;
}

.course-info-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-gray);
    border-radius: 12px;
}

.course-info-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.course-info-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.course-info-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ============ Event Detail Page ============ */
.event-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-gray);
}

.event-detail-item i {
    color: var(--primary-blue);
    width: 20px;
}

/* ============ Photo Gallery ============ */
.gallery-section {
    padding: 5rem 0;
    background: var(--bg-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Single image — render as one normal-sized gallery card (same as multi-image) */
.gallery-grid.gallery-grid--single {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
    justify-content: start;
}
.gallery-grid.gallery-grid--single .gallery-item {
    max-width: 320px;
    width: 100%;
    margin: 0;
}
.gallery-grid.gallery-grid--single .gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: transparent;
}

/* Two images — left-aligned, even split */
.gallery-grid.gallery-grid--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
}
.gallery-grid.gallery-grid--two .gallery-item {
    max-width: none;
    width: 100%;
}

/* Last-row orphan(s): keep them aligned in their natural column
   (previously stretched full-width / centered, which looked wrong) */
.gallery-item.gallery-orphan,
.gallery-item.gallery-orphan-2 {
    max-width: none;
    width: 100%;
    grid-column: auto;
    justify-self: stretch;
    margin: 0;
}

@media (max-width: 600px) {
    .gallery-grid.gallery-grid--two,
    .gallery-grid.gallery-grid--single {
        grid-template-columns: minmax(0, 1fr);
    }
    .gallery-grid.gallery-grid--single .gallery-item,
    .gallery-grid.gallery-grid--two .gallery-item,
    .gallery-item.gallery-orphan,
    .gallery-item.gallery-orphan-2 {
        max-width: none;
    }
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
}

/* ============ Footer ============ */
.main-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-rose);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.footer-logo-text h4 {
    font-weight: 700;
    font-size: 0.875rem;
}

.footer-logo-text p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.7;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links a.active {
    color: #3b82f6;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.footer-contact i {
    color: var(--primary-rose);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 2rem;
    height: 2rem;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--primary-rose);
}

/* ============ Media Queries ============ */
@media (min-width: 640px) {
    .hero-slider {
        height: 600px;
    }
    .slide-title {
        font-size: 2.5rem;
    }
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    .phone-link {
        display: flex;
    }
    .mobile-menu-btn {
        display: none;
    }
    .academics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    .cta-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .hero-slider {
        height: 700px;
    }
    .slide-title {
        font-size: 3.5rem;
    }
    .welcome-grid {
        grid-template-columns: 1fr 1fr;
    }
    .campus-grid {
        grid-template-columns: 1fr 1fr;
    }
    .academics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .courses-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .testimonials-grid {
         grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .contact-wrapper {
        grid-template-columns: 1fr 1.1fr;
    }
}

@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .skills-content {
        text-align: center;
    }
    .skills-pre-title {
        justify-content: center;
    }
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .advantages-tabs-container {
        position: static;
    }
    .advantages-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .advantages-tabs .tab-link {
        border-bottom: none;
        padding: 0.75rem 1.25rem;
        background-color: #e9ecef;
        border-radius: 50px;
        font-size: 0.9rem;
    }
    .advantages-tabs .tab-link.active {
        background-color: #d9534f;
        color: #fff;
    }
    .advantages-tabs .tab-link.active::after {
        display: none;
    }
    .tab-content-grid {
        grid-template-columns: 1fr;
    }
    .welcome-img {
        height: 380px;
    }
    .director-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .map-container {
        height: 400px;
    }
    .vision-mission-title {
        font-size: 2.2rem;
    }
    .vision-mission-item {
        padding: 0;
    }
}

@media (max-width: 576px) {
    .skills-section, .advantages-section {
        padding: 80px 0;
    }
    .skills-heading {
        font-size: 2.2rem;
    }
    .skills-images {
        gap: 1rem;
    }
    .skills-images img {
        height: 180px;
        border-radius: 8px;
    }
    .tab-text-content h3 {
        font-size: 1.8rem;
    }
    .welcome-section {
        padding: 3rem 0;
    }
    .welcome-title {
        font-size: 1.8rem;
    }
    .welcome-img {
        height: 300px;
    }
    .contact-hero {
        padding: 60px 20px;
    }
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    .map-container {
        height: 300px;
    }
    .director-container {
        grid-template-columns: 1fr;
    }
    .director-image {
        width: 150px;
        height: 150px;
    }
}

/* ============ Testimonials Section ============ */
/* === Testimonials (Google Reviews look) === */
.testimonials-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.reviews-summary {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-top: 1rem;
    padding: .6rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    color: #374151;
    font-size: .95rem;
}
.reviews-summary .g-logo {
    width: 20px; height: 20px; border-radius: 50%;
    background: conic-gradient(from 0deg, #4285F4, #34A853, #FBBC05, #EA4335, #4285F4);
    display: inline-block;
}
.reviews-summary .reviews-score {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1f2937;
}
.reviews-summary .reviews-stars i { color: #f59e0b; font-size: .9rem; }
.reviews-summary .reviews-total-link {
    color: #1f2937;
    text-decoration: none;
    border-bottom: 1px dashed #9ca3af;
}
.reviews-summary .reviews-total-link:hover { color: #111827; border-bottom-color: #1f2937; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-align: left;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.testimonial-head {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: #374151;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar.has-img { background: none; }

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.testimonial-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 .15rem;
}

.testimonial-role {
    font-size: .82rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
}

.testimonial-g .g-logo {
    width: 22px; height: 22px; border-radius: 50%;
    background: conic-gradient(from 0deg, #4285F4, #34A853, #FBBC05, #EA4335, #4285F4);
    display: inline-block;
}

.testimonial-text {
    color: #374151;
    line-height: 1.65;
    margin: 0;
    font-size: .95rem;
    font-style: normal;
}

.testimonial-stars {
    display: flex;
    gap: 0.2rem;
}
.testimonial-stars i { color: #f59e0b; font-size: .95rem; }


/* ============ Timetable ============ */
.timetable-container {
    overflow-x: auto;
}

.timetable-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.timetable-table thead th {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.timetable-table tbody td {
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.timetable-table tbody tr:hover {
    background: #f8fafc;
}

.timetable-header-row {
    background: #eff6ff !important;
}

.timetable-header-row td {
    color: var(--primary-blue) !important;
    font-size: 1.05rem !important;
    padding: 1rem 1.5rem !important;
}

/* Lightbox JS functions */

/* ============ Testimonial Slider ============ */
.testimonials-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 0.25rem;
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    will-change: transform;
}

.testimonials-slider .testimonial-card {
    flex: 0 0 calc((100% - 4rem) / 3);
    width: auto;
    min-width: 0;
    box-sizing: border-box;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-nav button {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    background: var(--white);
    color: var(--primary-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.testimonial-nav button:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Tablet: 2 cards per view */
@media (max-width: 1024px) {
    .testimonials-slider {
        gap: 1.25rem;
    }
    .testimonials-slider .testimonial-card {
        flex: 0 0 calc((100% - 1.25rem) / 2);
    }
}

/* Mobile: 1 card per view. gap:0 so translateX(-100%) lands exactly centered. */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 0;
    }
    .testimonials-slider-wrapper {
        padding: 0 1rem;
    }
    .testimonials-slider {
        gap: 0;
    }
    .testimonials-slider .testimonial-card {
        flex: 0 0 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 1.5rem;
        text-align: left;
    }
    .testimonial-text {
        font-size: 0.95rem;
    }
    .testimonial-nav {
        margin-top: 1.5rem;
    }
    .testimonial-nav button {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: #3b82f6;
}

/* Testimonial Photo */
.testimonial-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 2px solid #e5e7eb;
}


/* ============ Course Card extra details ============ */
.course-details {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.course-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.45;
}
.course-details li i {
    color: var(--primary-rose);
    margin-top: 3px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}
.course-details li strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ============ Timetable mobile scroll hint ============ */
.timetable-scroll-hint {
    display: none;
    text-align: center;
    color: var(--primary-rose);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}
.timetable-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.timetable-container::-webkit-scrollbar {
    height: 8px;
}
.timetable-container::-webkit-scrollbar-thumb {
    background: var(--primary-rose);
    border-radius: 4px;
}
.timetable-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}

/* ============ Mobile responsive fixes ============ */
@media (max-width: 768px) {
    /* Top bar — stack into 3 rows: phone / email / social */
    .top-bar { padding: 0.75rem 0; }
    .top-bar-content {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        text-align: center;
    }
    .contact-info {
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
        width: 100%;
    }
    .contact-link {
        justify-content: center;
        font-size: 0.85rem;
    }
    .social-icons {
        justify-content: center;
        gap: 1.25rem;
    }

    /* Page hero — smaller text on mobile */
    .page-hero { padding: 55px 0; }
    .page-hero h1,
    .page-hero h2 { font-size: 1.65rem; line-height: 1.25; }
    .page-hero p  { font-size: 0.95rem; margin-top: 12px; }

    /* Timetable mobile */
    .timetable-scroll-hint { display: block; }
    .timetable-table thead th,
    .timetable-table tbody td {
        padding: 0.65rem 0.9rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }
    .timetable-header-row td {
        font-size: 0.9rem !important;
        padding: 0.75rem 0.9rem !important;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .page-hero { padding: 45px 0; }
    .page-hero h1,
    .page-hero h2 { font-size: 1.4rem; }
    .page-hero p  { font-size: 0.88rem; }
    .contact-link span { font-size: 0.8rem; }
}

/* ============ Mobile SEO / UX Improvements ============ */
@media (max-width: 768px) {
    .hero-slider { height: 420px; }
    .slide-content { padding: 0 1.25rem; }
    .slide-title { font-size: 1.6rem; line-height: 1.25; }
    .slide-badge { font-size: 0.75rem; padding: 0.35rem 0.85rem; margin-bottom: 1rem; }
    .slider-btn { width: 2.25rem; height: 2.25rem; }
    .top-bar { font-size: 0.75rem; }
    .top-bar-content { flex-direction: column; gap: 0.4rem; padding: 0.5rem 0; text-align: center; }
    .contact-info { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
    .timetable-container { -webkit-overflow-scrolling: touch; }
    .timetable-table { min-width: 640px; }
    .section-title { font-size: 1.6rem; }
}
@media (max-width: 480px) {
    .hero-slider { height: 380px; }
    .slide-title { font-size: 1.4rem; }
}

/* ============ FAQ Section ============ */
.faq-section { padding: 5rem 0; background: var(--bg-gray); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--white); border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); overflow: hidden; }
.faq-question { width: 100%; text-align: left; background: none; border: 0; padding: 1.1rem 1.25rem; font-size: 1rem; font-weight: 600; color: var(--text-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-question:hover { color: var(--primary-blue); }
.faq-question .faq-icon { transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-question .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0 1.25rem; color: var(--text-gray); line-height: 1.7; font-size: 0.95rem; }
.faq-item.open .faq-answer { max-height: 600px; padding: 0 1.25rem 1.25rem; }
@media (max-width: 768px) {
    .faq-section { padding: 3rem 0; }
    .faq-question { font-size: 0.95rem; padding: 1rem; }
    .faq-answer { font-size: 0.9rem; }
}

/* ============ Chief Instructor (Course Detail) ============ */
.chief-section {
    padding: 5rem 0;
    background: var(--bg-gray);
}
.chief-card {
    max-width: 980px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 2.25rem;
}
.chief-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    background: #eef2ff;
}
.chief-body { text-align: left; }
.chief-photo-fallback {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    font-size: 4rem;
}
.chief-body h3 {
    font-size: 1.8rem;
    margin: 0 0 .25rem;
    color: var(--text-dark);
}
.chief-body .chief-role {
    color: var(--primary-blue, #2563eb);
    font-weight: 600;
    margin: 0 0 1rem;
}
.chief-body p { color: var(--text-gray); line-height: 1.75; margin: 0 0 .75rem; text-align: left; }
@media (max-width: 720px) {
    .chief-card { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.25rem; gap: 1.5rem; }
    .chief-body, .chief-body p { text-align: center; }
    .chief-photo, .chief-photo-fallback { margin: 0 auto; width: 170px; height: 170px; font-size: 3rem; }
}

/* === Event card meta (date) === */
.event-card .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}
.event-card .event-meta .event-time {
    color: #1f2937;
    font-weight: 600;
}
.event-card .event-meta .event-time i {
    margin-right: 0.35rem;
    color: #374151;
}

