/* ==== ROOT & GLOBAL STYLES ==== */
:root {
    --primary: #0d2d5e; /* Harvard Navy */
    --secondary: #ffffff; /* White */
    --accent: #a51c30; /* Harvard Crimson (for accents) */
    --dark: #333;
    --light: #f9f9f9;
    --gray: #777;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --header-height: 100px; /* set once, controls all spacing */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--secondary);
    overflow-x: hidden;
}

/* Content automatically below fixed header */
main {
    display: block;
    margin-top: var(--header-height);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 5rem 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

/* ==== HEADER & NAVIGATION (Elementor-like) ==== */
header {
    background: var(--secondary);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    height: var(--header-height);
    border-bottom: 2px solid var(--primary);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 0; /* spacing controlled by header height now */
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 50px;
    margin-right: 1rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0;
}

.logo-text p {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0;
    opacity: 0.8;
}

/* Desktop Nav */
.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav ul li {
    margin-left: 2rem;
    position: relative;
}

.desktop-nav ul li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.desktop-nav ul li a:hover {
    color: var(--accent);
}

.desktop-nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.desktop-nav ul li a:hover:after {
    width: 100%;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

/* Mobile Sidebar */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--secondary);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    padding: 5rem 2rem;
    border-left: 2px solid var(--primary);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    margin-bottom: 1.5rem;
}

.mobile-nav ul li a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.mobile-nav ul li a:hover {
    color: var(--accent);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==== HERO SECTION (Animated) ==== */
.hero {
    background: linear-gradient(rgba(13, 45, 94, 0.85), rgba(13, 45, 94, 0.9)), 
                url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    color: var(--secondary);
    padding: 10rem 0;
    text-align: center;
    animation: fadeIn 1s ease;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: slideInDown 1s ease;
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease;
}

/* ==== BUTTONS (Elementor-style) ==== */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: transparent;
    color: var(--primary); /* This should stay white, but let's fix it */
}

/* Fix the button hover to maintain white text */
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: rgba(13, 45, 94, 0.9); /* Slightly transparent navy */
    color: white; /* Keep text white on hover */
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--primary);
}
/* ==== COURSES SECTION (Interactive Cards) ==== */
.courses {
    background: var(--secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.course-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: var(--light);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--primary);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--secondary);
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--secondary);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(13, 45, 94, 0.1);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.course-meta span {
    display: flex;
    align-items: center;
}

.course-meta i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
}

/* ==== TESTIMONIALS (Slider) ==== */
.testimonials {
    background: var(--light);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    text-align: center;
    display: none;
    border: 1px solid rgba(13, 45, 94, 0.1);
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--dark);
}

.testimonial-text:before, .testimonial-text:after {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
}

.testimonial-text:before {
    top: -20px;
    left: -10px;
}

.testimonial-text:after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid var(--primary);
}

.author-info h4 {
    margin: 0;
    text-align: left;
    color: var(--primary);
}

.author-info p {
    margin: 0;
    text-align: left;
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--gray);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ==== CTA SECTION ==== */
.cta {
    background: linear-gradient(rgba(13, 45, 94, 0.9), rgba(13, 45, 94, 0.9)), 
                url('https://images.unsplash.com/photo-1521791136064-7986c2920216?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    color: var(--secondary);
    text-align: center;
    padding: 5rem 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ==== FOOTER ==== */
footer {
    background: var(--primary);
    color: var(--secondary);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    bottom: 0;
    left: 0;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--secondary);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

/* ==== ANIMATIONS ==== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .course-cards {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Styles */
.contact-page {
    padding: 3rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info, .contact-form {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(13, 45, 94, 0.1);
}

.contact-details li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
}

.business-hours, .social-media {
    margin-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border-radius: 4px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.map-container {
    margin-top: 2rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(13, 45, 94, 0.1);
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* ===== Course Details ===== */
.course-details {
    padding: 60px 0;
}

.course-header {
    text-align: center;
    margin-bottom: 40px;
}

.course-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.course-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.course-meta span {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-size: 1rem;
}

.course-meta i {
    margin-right: 8px;
    color: var(--primary);
}

.course-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 60px;
}

.course-image {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(13, 45, 94, 0.1);
}

.course-description h2,
.course-syllabus h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.course-description p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.course-syllabus ul {
    list-style: none;
    padding-left: 0;
}

.course-syllabus li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.course-syllabus li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
}

.course-sidebar {
    position: relative;
}

.course-price-box {
    background: var(--secondary);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
    border: 1px solid rgba(13, 45, 94, 0.1);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
}

.course-info {
    margin-top: 20px;
}

.course-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--text-color);
}

.course-info i {
    margin-right: 10px;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.enroll-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: var(--secondary);
    padding: 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 20px;
    border: 2px solid var(--primary);
}

.enroll-btn:hover {
    background: transparent;
    color: var(--primary);
}

.related-courses {
    margin-top: 60px;
}

.related-courses h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--secondary);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 45, 94, 0.1);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.course-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-card .course-content {
    padding: 20px;
    display: block;
}

.course-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary);
}

.course-card p {
    margin-bottom: 15px;
    color: var(--text-color);
}

/* ===== Event Details ===== */
.event-details {
    padding: 60px 0;
}

.event-header {
    text-align: center;
    margin-bottom: 40px;
}

.event-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.event-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.event-meta span {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-size: 1rem;
}

.event-meta i {
    margin-right: 8px;
    color: var(--primary);
}

.event-content {
    margin-bottom: 60px;
}

.event-image {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(13, 45, 94, 0.1);
}

.event-description {
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-color);
}

.event-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.related-events {
    margin-top: 60px;
}

.related-events h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    display: flex;
    background: var(--secondary);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 45, 94, 0.1);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.event-date {
    background: var(--primary);
    color: var(--secondary);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 1.2rem;
    text-transform: uppercase;
}

.event-info {
    padding: 20px;
    flex-grow: 1;
}

.event-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary);
}

.event-info .event-meta {
    justify-content: flex-start;
    margin-bottom: 15px;
}

/* ===== News Details ===== */
.news-details {
    padding: 60px 0;
}

.news-article {
    max-width: 800px;
    margin: 0 auto;
}

.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.news-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    color: var(--text-color);
}

.news-meta span {
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 8px;
    color: var(--primary);
}

.news-featured-image {
    margin-bottom: 30px;
}

.news-featured-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(13, 45, 94, 0.1);
}

.news-content {
    line-height: 1.8;
    color: var(--text-color);
}

.news-content p {
    margin-bottom: 20px;
}

.related-news {
    margin-top: 60px;
}

.related-news h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--secondary);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 45, 94, 0.1);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card .news-content {
    padding: 20px;
}

.news-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary);
}

.news-card p {
    margin-bottom: 15px;
}

/* ===== News Listing ===== */
.news-listing {
    padding: 60px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: var(--secondary);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(13, 45, 94, 0.1);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.news-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--primary);
}

.news-content p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.pagination a {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary);
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}

.pagination-prev,
.pagination-next {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .course-content {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar {
        order: -1;
        margin-bottom: 40px;
    }
    
    .course-price-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .course-header h1,
    .event-header h1,
    .news-header h1 {
        font-size: 2rem;
    }
    
    .course-meta,
    .event-meta,
    .news-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-direction: column;
    }
    
    .pagination-numbers {
        order: -1;
        margin-bottom: 15px;
    }
}