/* --- Global Color Palette & Variables --- */
:root {
    --primary-dark-blue: #1e3a5f; /* Dark Blue */
    --secondary-maroon: #800020;   /* Maroon */
    --light-bg: #f8f9fa;
    --text-light: #e6e6e6;
    --text-dark: #333;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* --- Header Styles (Updated) --- */
.site-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 12px;
    position: relative;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--secondary-maroon);
    transition: all 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
    left: 10%;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-maroon) !important;
}

/* --- Hero Section --- */
.hero-section {
    background-size: cover;
    background-position: center;
    background-color: var(--light-bg);
    padding: 100px 0;
    color: white;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Section Styles (Updated Colors) --- */
.section {
    margin-bottom: 50px;
}

.section h2 {
    color: var(--primary-dark-blue); /* Updated from #007bff */
    margin-bottom: 20px;
}

.section h3 {
    color: #6c757d;
    margin-bottom: 15px;
}

.section-content {
    margin-bottom: 20px;
}

/* --- Study Module Styles (Updated Colors) --- */
.category-section h2 {
    color: var(--primary-dark-blue); /* Updated from #007bff */
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.card {
    transition: transform 0.3s;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* --- Study Item Detail (Updated Colors) --- */
.study-item-detail h1 {
    color: var(--primary-dark-blue); /* Updated from #007bff */
    margin-bottom: 20px;
}

.item-image img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
}

.item-meta {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* --- Footer Styles (Updated Colors) --- */
.site-footer {
    margin-top: 50px;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-maroon); /* Updated from #007bff */
}

/* --- Specific Section Styles --- */
.section {
    padding: 60px 0;
}

.section-title {
    color: var(--primary-dark-blue); /* Updated */
    margin-bottom: 20px;
    font-weight: 600;
}

.section-subtitle {
    margin-bottom: 30px;
}

.section-content {
    line-height: 1.6;
    margin-bottom: 20px;
}

.section-centered {
    background-color: var(--light-bg);
}

.section-hero-wrapper {
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.section-hero-wrapper h1 {
    font-weight: 700;
}

.testimonial-card {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pricing-card-title {
    font-size: 2.5rem;
}

.card-header {
    font-weight: 600;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    .section {
        padding: 40px 0;
    }
    
    .section-hero-wrapper {
        padding: 60px 0;
    }
}