/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(89, 169, 224, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(150, 213, 71, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* ===== BRAND COLORS ===== */
:root {
    --main-blue: #0b3c6a;
    --secondary-blue: #0c3a6b;
    --accent-blue: #2658c3;
    --light-blue: #59a9e0;
    --main-green: #96d547;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --border-gray: #e0e0e0;
    
    /* Spacing */
    --container-padding: 20px;
    --section-padding: 60px 0;
    --border-radius: 8px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
    /* Gradient from light blue -> darker blue with a color fallback for older browsers */
    background: linear-gradient(90deg,var(--main-blue),#3f80d2,#5bade2);
    background-color: var(--main-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover {
    background-color: var(--accent-blue);
    color: var(--white);
}

.nav-link.active {
    color: var(--main-green);
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switch {
    position: relative;
}

/* ===== SOCIAL ICONS ===== */
.social-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-right: 1rem;
}

.social-icon-link {
    display: flex;
    align-items: center;
    transition: var(--transition);
    opacity: 0.9;
}

.social-icon-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.social-icon-link img {
    width: 24px;
    height: 24px;
}

/* ===== DROPDOWN MENU ===== */
.nav-item {
    position: relative;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    min-width: 180px;
    z-index: 1001;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    color: var(--dark-gray);
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--main-blue);
}

/* ===== LANGUAGE SWITCHER ===== */

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 500;
}

.lang-link {
    color: var(--white);
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
}

.lang-link:hover {
    color: var(--light-blue);
}

.lang-link.active {
    color: var(--main-green);
    font-weight: 600;
}

.lang-separator {
    color: var(--white);
}

/* Hide mobile language switcher on desktop */
.mobile-lang-switcher {
    display: none;
}

/* ===== MOBILE HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 140px);
}

/* ===== HERO BANNER SECTION ===== */
.hero-banner {
    position: relative;
    /* Default desktop height: posters should extend to full 600px tall.
       Responsive overrides in `css/responsive.css` will reduce this on smaller viewports. */
    height: 600px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    /* main image — full poster height; width determined by image aspect ratio */
    position: relative;
    z-index: 3;
    width: auto;
    /* Fill the banner container's height so the image height is the single source of truth
       (desktop: 600px; smaller screens: overridden by responsive.css). */
    height: 100%;
    max-width: none;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

/* blurred/extended background using CSS variable --bg-url set on each .banner-slide */
.banner-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--bg-url, none);
    background-size: cover;
    background-position: center;
    filter: blur(30px) saturate(1.05);
    transform: scale(1.2);
    opacity: 0.95;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

/* make overlay and content sit above the blurred background and main image */
.banner-overlay {
    z-index: 2;
}

.banner-content {
    z-index: 4;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 60, 106, 0.6);
    z-index: 1;
}

/* Dot indicators for the banner (center bottom) */
.banner-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 6; /* above overlays and images */
    display: flex;
    gap: 10px;
    align-items: center;
}

.banner-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bbb; /* grey by default */
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.12s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.banner-dots .dot.active {
    background: #ffffff; /* white for active */
    transform: scale(1.05);
}


/* ===== SECTION STYLES ===== */
.content-section {
    padding: var(--section-padding);
    position: relative;
    background-color: #f5f7fa;
}

/* Radial glow effects in corners */
.content-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(89, 169, 224, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.content-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(150, 213, 71, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.content-section > .container {
    position: relative;
    z-index: 1;
}

/* Add subtle diagonal stripe pattern to alternating sections */
.content-section:nth-child(even) {
    /* background: linear-gradient(135deg, #f8f9fa 25%, transparent 25%) -50px 0,
                linear-gradient(225deg, #f8f9fa 25%, transparent 25%) -50px 0,
                linear-gradient(315deg, #f8f9fa 25%, transparent 25%),
                linear-gradient(45deg, #f8f9fa 25%, transparent 25%); */
    background-size: 100px 100px;
    background-color: #ffffff;
}

.section-title {
    font-size: 2.5rem;
    color: var(--main-blue);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--main-blue), transparent);
}

.section-title::before {
    background: linear-gradient(90deg, transparent, var(--main-blue));
}

.section-title::after {
    background: linear-gradient(90deg, var(--main-blue), transparent);
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-blue);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* ===== NEWS SECTION ===== */
/* Legacy news grid (for reference pages if any) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

.news-grid::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--light-blue) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
}

.news-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-top: 3px solid var(--main-green);
    position: relative;
}

.news-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
}


.news-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.news-item img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.news-item .news-content {
    padding: 1.5rem;
}

.news-item .news-title {
    color: var(--main-blue);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-item .news-date {
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-excerpt {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    white-space: normal;
    margin-bottom: 0.5rem;
}

.news-learn-more {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

/* ===== NEWS FEED (JSON-driven layout) ===== */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.news-post {
    display: flex;
    gap: 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.news-image-container {
    flex: 0 0 500px;
    height: 380px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.news-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.news-post .news-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.news-text-wrapper {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.news-text-wrapper::-webkit-scrollbar {
    width: 8px;
}

.news-text-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.news-text-wrapper::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

.news-text-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--main-blue);
}



.news-post .news-title {
    color: var(--main-blue);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.news-post .news-date {
    color: var(--accent-blue);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-post .news-text {
    color: var(--dark-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.loading-message {
    text-align: center;
    padding: 3rem;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.error-message {
    text-align: center;
    padding: 3rem;
    color: #d32f2f;
    font-size: 1.1rem;
}

/* Responsive styles for news feed */
@media (max-width: 968px) {
    .news-image-container {
        flex: 0 0 350px;
        height: 280px;
    }
    
    .news-post .news-content {
        padding: 1.5rem;
    }
    
    .news-post .news-title {
        font-size: 1.5rem;
    }
    
    .news-post .news-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .news-post {
        flex-direction: column;
    }
    
    .news-image-container {
        width: 100%;
        height: 280px;
    }
    
    .news-post .news-content {
        padding: 1.5rem;
    }
    
    .news-post .news-title {
        font-size: 1.4rem;
    }
}

/* ===== SOCIAL MEDIA SECTION ===== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.social-feed {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.social-icon {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

/* ===== BOOK A LESSON SECTION ===== */
.book-lesson-banner-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 50%, #f0f7ff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.book-lesson-banner-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(150, 213, 71, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.book-lesson-banner-section::after {
    content: "";
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(38, 88, 195, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.book-lesson-banner-section .banner-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    margin: 0 auto 2rem;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== ALTERNATING CONTENT SECTIONS ===== */
.info-section {
    background-color: var(--light-gray);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

/* Alternating diagonal accent bars */
.info-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: -20%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent 45%, rgba(38, 88, 195, 0.03) 50%, transparent 55%);
    transform: skewX(-15deg);
    pointer-events: none;
}

.info-section:nth-child(even)::before {
    left: auto;
    right: -20%;
    background: linear-gradient(120deg, transparent 45%, rgba(150, 213, 71, 0.05) 50%, transparent 55%);
    transform: skewX(15deg);
}

.info-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* .info-section-container::before {
    content: "";
    position: absolute;
    top: -1.5rem;
    left: var(--container-padding);
    right: var(--container-padding);
    height: 2px;
    background: var(--main-blue);
} */

.info-section-container.reverse {
    direction: rtl;
}

.info-section-container.reverse > * {
    direction: ltr;
}

.info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.info-text h3 {
    font-size: 2rem;
    color: var(--main-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-text p {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.info-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); */
    /* border: 3px solid var(--white); */
    position: relative;
}

.info-image {
    position: relative;
}

/* .info-image::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--main-green);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0.3;
} */

/* ===== DECORATIVE ELEMENTS ===== */
.wave-divider {
    width: 100%;
    height: 60px;
    display: block;
    margin: -1px 0;
}

.decorative-icon {
    pointer-events: none;
}

/* Add subtle dots pattern to container backgrounds */
.container {
    position: relative;
}

/* ===== ABOUT PAGE STYLES ===== */
.about-logo {
    text-align: center;
    margin-bottom: 3rem;
}

.about-logo img {
    max-width: 300px;
    margin: 0 auto;
}

.mission-values {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

/* ===== CONTACT/BOOK LESSON STYLES ===== */
.contact-card {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-method {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--main-green);
}

.contact-method h3 {
    color: var(--main-blue);
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--main-green);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--main-blue) 0%, var(--accent-blue) 100%);
    border-radius: 5em;
    color: var(--white);
    padding: 0.75rem 4rem;
    box-shadow: 0 4px 15px rgba(11, 60, 106, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--main-blue) 100%);
    box-shadow: 0 6px 20px rgba(11, 60, 106, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--main-green);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #7fb83c;
}

/* ===== FOOTER ===== */
.main-footer {
    background: linear-gradient(135deg, #0a3558 0%, var(--main-blue) 50%, #0d4278 100%);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-green), var(--light-blue), var(--main-green));
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap:2.5rem;
}

/* Footer Column 1: Logo + Copyright */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo-section img {
    max-width: 150px;
    height: auto;
    margin-bottom: 0.5rem;
}

.footer-logo-section p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Column 2: Website Guide (split into 2 sub-columns) */
.footer-guide-section h3 {
    color: var(--light-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-guide-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
}

.footer-guide-links a {
    color: var(--white);
    transition: var(--transition);
    font-size: 0.95rem;
    display: block;
    padding: 0.25rem 0;
}


/* Footer Column 3: Contact Us */
.footer-contact-section h3 {
    color: var(--light-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-contact-section p {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact-section a {
    color: var(--white);
    transition: var(--transition);
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social-icons a {
    display: inline-block;
    transition: var(--transition);
}

.footer-social-icons a img {
    width: 32px;
    height: 32px;
    transition: var(--transition);
}


/* ===== LANGUAGE NOTICE (for unavailable content) ===== */
.language-notice {
    text-align: center;
    max-width: 600px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-gray);
}

.language-notice .notice-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.language-notice h2 {
    color: var(--main-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.language-notice p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.language-notice .btn {
    margin-top: 1.5rem;
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ===== COURSE CARDS ===== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-grid-5 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 968px) {
    .course-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .course-grid-5 {
        grid-template-columns: 1fr;
    }
}

.course-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border-top: 4px solid var(--accent-blue);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.course-title {
    color: var(--main-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.course-content {
    color: var(--dark-gray);
    line-height: 1.8;
}

.course-features {
    list-style: none;
    margin-top: 1rem;
    padding-left: 0;
}

.course-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.course-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--main-green);
    font-weight: bold;
}

/* ===== DROPDOWN MENU ===== */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    min-width: 200px;
    z-index: 1001;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark-gray);
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--main-blue);
}

.dropdown-item:first-child {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* ===== NEWS PAGE - FACEBOOK/INSTAGRAM STYLE ===== */
/* Facebook-style Feed */
.news-feed {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-post {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-post-header {
    padding: 16px;
}

.news-post-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #050505;
}

.news-post-date {
    font-size: 13px;
    color: #65676b;
}

.news-post-text {
    padding: 0 16px 16px 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #050505;
    white-space: pre-wrap;
}

.news-post-images {
    position: relative;
    cursor: pointer;
    background: #f0f2f5;
}

.news-post-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.news-post-image-more {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    pointer-events: none;
    transition: background 0.3s;
}

.news-post-images:hover .news-post-image-more {
    background: rgba(0, 0, 0, 0.75);
}

.news-post-images:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 30%;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.3) 50%);
    pointer-events: none;
}

/* Instagram-style Overlay */
.instagram-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    animation: fadeIn 0.2s;
}

.instagram-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.instagram-content {
    display: flex;
    max-width: 95vw;
    max-height: 95vh;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.instagram-image-container {
    flex: 1;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 500px;
    max-width: 800px;
    width: 70vw;
    height: 90vh;
    max-height: 90vh;
}

.instagram-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.instagram-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.instagram-nav-btn:hover {
    background: white;
}

.instagram-nav-btn.prev {
    left: 16px;
}

.instagram-nav-btn.next {
    right: 16px;
}

.instagram-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.instagram-caption-container {
    width: 450px;
    display: flex;
    flex-direction: column;
    background: white;
}

.instagram-caption-header {
    padding: 16px;
    border-bottom: 1px solid #dbdbdb;
}

.instagram-caption-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.instagram-caption-date {
    font-size: 13px;
    color: #8e8e8e;
}

.instagram-caption-text {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.instagram-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: background 0.2s;
}

.instagram-close-btn:hover {
    background: white;
}

.instagram-image-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    z-index: 2;
}

/* Mobile Responsive for News */
@media (max-width: 768px) {
    .news-feed {
        padding: 10px;
        grid-template-columns: 1fr;
    }

    .instagram-content {
        flex-direction: column;
        max-width: 95vw;
        max-height: 95vh;
    }

    .instagram-image-container {
        min-width: auto;
        max-width: 100%;
        width: 100%;
        height: 50vh;
        flex: 0 0 auto;
    }

    .instagram-caption-container {
        width: 100%;
        max-height: 45vh;
    }

    .instagram-image {
        width: 100%;
        height: 100%;
    }

    /* Touch swipe for mobile */
    .instagram-image-container {
        touch-action: pan-x;
    }
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #65676b;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
    min-width: 40px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--main-blue);
    color: white;
    border-color: var(--main-blue);
}

.pagination-btn.active {
    background: var(--main-blue);
    color: white;
    border-color: var(--main-blue);
    font-weight: 600;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #666;
}