/* San Lorenzo Ruiz College - Professional Theme 2026 */
/* Theme: Gray-Yellow (Production Level) */

:root {
    /* Brand Colors */
    --primary-yellow: #F4B400; /* Vibrant Gold/Yellow */
    --accent-yellow: #FFC107;  /* Lighter Yellow for hovers */
    --dark-bg: #121212;        /* Deep Dark Background */
    --darker-bg: #0a0a0a;      /* Darker Detail Background */
    --card-bg: #1e1e1e;        /* Dark Card Background */
    --border-color: rgba(255,255,255,0.08);
    
    /* Typography Colors */
    --text-primary: #e0e0e0;   /* Light Gray for main text */
    --text-secondary: #b0b0b0; /* Medium Gray for subtitles */
    --text-muted: #777777;
    --white: #ffffff;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 12px;     /* More modern radius */
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Gradients */
    --gradient-hero: linear-gradient(-45deg, #000000, #1a1a1a, #333333, #F4B400);
    --gradient-card: linear-gradient(145deg, #1e1e1e, #252525);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.5);
}

body.light-mode {
    --dark-bg: #f7f8fa;
    --darker-bg: #ffffff;
    --card-bg: #ffffff;
    --border-color: rgba(0,0,0,0.1);
    --text-primary: #222222;
    --text-secondary: #555555;
    --white: #000000;
}

body.light-mode html, 
body.light-mode body {
    background-color: var(--darker-bg);
    color: var(--text-primary);
}

/* --- Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Universal Theme Transition */
    transition: background-color 0.5s ease, 
                background-image 0.5s ease,
                color 0.3s ease, 
                border-color 0.5s ease, 
                box-shadow 0.5s ease,
                fill 0.5s ease,
                stroke 0.5s ease;
}

html, body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll causing white bars */
    width: 100%;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.glow-link {
    color: var(--primary-yellow);
    text-decoration: underline;
    text-underline-offset: 2px;
    filter: drop-shadow(0 0 6px rgba(244, 180, 0, 0.35));
}
.glow-link:hover {
    color: var(--accent-yellow);
    filter: drop-shadow(0 0 10px rgba(244, 180, 0, 0.55));
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
    background-color: #0a0a0a; /* Very dark background */
    color: var(--text-light);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1001;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact-info {
    display: flex;
    gap: 25px;
}

.top-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-contact-item i {
    color: var(--primary-yellow);
}

.top-contact-item:hover {
    color: var(--white);
}

.top-socials {
    display: flex;
    gap: 15px;
}

.top-social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.top-social-link:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* --- Navigation Bar --- */
.navbar {
    background: rgba(26, 26, 26, 0.85); /* Slightly more transparent */
    backdrop-filter: blur(15px); /* Increased blur */
    height: 85px; /* Slightly taller */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(244, 180, 0, 0.3); /* Thinner border */
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

body.light-mode .navbar {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.nav-menu {
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: center;
    column-gap: 12px;
    margin-left: 30px;
    min-width: 0;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow-x: visible;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding-right: 0;
}
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0; /* Keep actions visible */
    margin-left: 2px;
}

/* Dropdown Styles */
.nav-item.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%; /* Position right below the navbar */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--card-bg);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-top: 3px solid var(--primary-yellow);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 10px 0;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

body.light-mode .dropdown-menu {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    display: flex;
}

/* Keep dropdown responsive to focus and direct hover on toggle */
.nav-item.dropdown:focus-within .dropdown-menu,
.dropdown-toggle:hover + .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    padding: 12px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-yellow);
    padding-left: 25px;
    border-left-color: var(--primary-yellow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-img {
    height: 55px;
    width: auto;
    max-width: 100%; /* Prevent overflow on mobile */
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(244, 180, 0, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    color: var(--primary-yellow);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    line-height: 1;
}

.logo-sub {
    color: var(--text-light);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Old .nav-menu block removed from here to avoid duplication */

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem; /* Slightly smaller font */
    padding: 8px 0;
    position: relative;
    white-space: nowrap; /* Prevent wrapping inside links */
}

body.light-mode .nav-link {
    color: var(--text-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-yellow);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-yellow);
}

/* Value Item Box (Grid Style) */
.value-item-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.value-item-box:hover {
    background: rgba(244, 180, 0, 0.1);
    border-color: var(--primary-yellow);
    transform: translateX(5px);
}

.value-letter {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-yellow);
    line-height: 1;
}

.value-word {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

body.light-mode .value-item-box {
    background: #f8f9fa;
    border-color: #e0e0e0;
}

body.light-mode .value-item-box:hover {
    background: #fff8e1;
    border-color: #F4B400;
}

body.light-mode .value-word {
    color: #333;
}

.nav-btn-login {
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 50px;
}

.nav-btn-login:hover {
    background: rgba(255,255,255,0.2);
}

.nav-btn-contact {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.nav-btn-contact:hover {
    background: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 180, 0, 0.3);
}

.nav-link::after { display: none; } /* Remove underline for buttons */
.nav-link:not(.nav-btn-login):not(.nav-btn-contact):hover { color: var(--primary-yellow); }

/* Search Box */
.nav-search-box {
    margin-right: 0;
}

body.light-mode #searchForm {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
}
body.light-mode .nav-search-input {
    color: #222222;
}
#searchForm {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 5px 15px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    overflow: hidden;
}
#searchForm:focus-within {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}
.nav-search-input {
    background: transparent;
    border: none;
    color: var(--white);
    width: clamp(120px, 16vw, 180px);
    outline: none;
    font-size: 0.9rem;
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.5); }
.nav-search-btn {
    background: transparent;
    border: none;
    color: var(--primary-yellow);
    cursor: pointer;
}

#searchForm:not(.expanded) {
    padding: 5px 15px;
    width: 210px;
    justify-content: space-between;
}
#searchForm:not(.expanded) .nav-search-input {
    width: 140px;
    opacity: 1;
    pointer-events: auto;
    margin: 0;
}
#searchForm.expanded .nav-search-input {
    width: 150px;
    opacity: 1;
}

/* Hide scrollbar for nav links for a cleaner look */
.nav-links::-webkit-scrollbar {
    display: none;
}
.nav-links {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

body.light-mode .hero-section {
    background: linear-gradient(-45deg, #ffffff, #fafafa, #f4f4f4, #F4B400);
}

/* Floating Theme Toggle */
.theme-toggle-floating {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1100;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.theme-toggle-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

/* Medium viewport adjustments to prevent overlap */
@media screen and (max-width: 1280px) {
    .nav-container { gap: 12px; }
    .nav-links { gap: 8px; }
    .nav-link { font-size: 0.85rem; }
    #searchForm { width: 200px; }
    #searchForm .nav-search-input { width: 130px; }
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 10px;
}

.suggestion-item {
    padding: 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--text-primary);
    gap: 10px;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.suggestion-item:hover a {
    color: var(--primary-yellow);
}

.suggestion-item i {
    color: var(--primary-yellow);
    width: 20px;
    text-align: center;
}

.suggestion-item span {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-item small {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.no-suggestions {
    padding: 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

body.light-mode .top-bar {
    background-color: #ffffff;
    color: #333333;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* --- Hero Section (Animated Gradient & Logos) --- */
.hero-section {
    position: relative;
    height: 85vh; /* Full viewport height minus nav */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Animated Gradient Background */
    background: var(--gradient-hero);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--white);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-width);
    padding: 0 20px;
    gap: 2rem;
}

.hero-content {
    flex: 1.5;
    max-width: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-second-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title span {
    color: var(--primary-yellow);
    display: block;
}

.hero-second-title span {
    color: var(--primary-yellow);
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(244, 180, 0, 0.3);
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(244, 180, 0, 0.5);
    background: var(--white);
}

/* Logo Switcher Animation */
.hero-logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 400px;
}

.logo-backdrop {
    position: absolute;
    width: 350px;
    height: 350px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

.logo-slideshow {
    position: relative;
    width: 300px;
    height: 300px;
}

.logo-slideshow img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    transition: all 0.8s ease-in-out;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.logo-slideshow img.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- Animations --- */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Layout Sections --- */
.section-header {
    margin-bottom: 2rem;
    position: relative;
    text-align: center;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 i {
    color: var(--primary-yellow);
}

.header-line {
    width: 80px;
    height: 4px;
    background: var(--primary-yellow);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.header-line::before,
.header-line::after {
    content: '';
    position: absolute;
    height: 100%;
    background: rgba(244, 180, 0, 0.3);
    border-radius: 2px;
    top: 0;
}

.header-line::before { width: 40px; left: -50px; }
.header-line::after { width: 40px; right: -50px; }

.center-line { margin: 0 auto 1.5rem; }

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Grid */
.main-content {
    padding: 6rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

/* Blog Cards */
.featured-update-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 3rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.featured-update-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(244, 180, 0, 0.3);
}

.featured-update-image {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.featured-update-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-update-card:hover .featured-update-image img {
    transform: scale(1.05);
}

.featured-update-card .featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-details .featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 5px;
}

.featured-update-content {
    padding: 2rem;
}

.featured-meta {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-title a {
    color: var(--text-primary);
    text-decoration: none;
}
.featured-title a:hover {
    color: var(--primary-yellow);
}

.featured-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-yellow);
    font-weight: 600;
    margin-top: 1.5rem;
}

/* Sidebar */
.sidebar-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: 2.5rem;
    border-top: 4px solid var(--primary-yellow);
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background: var(--primary-yellow);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(244, 180, 0, 0.5);
}

/* --- Vision, Mission & Values (Redesign) --- */
.vision-mission-section {
    background-color: var(--dark-bg);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.vision-mission-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(244, 180, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.vm-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.vm-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--primary-yellow);
}

.vm-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-yellow-05, rgba(244, 180, 0, 0.05)) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.vm-card:hover::after {
    opacity: 1;
}

.vm-icon-box {
    width: 90px;
    height: 90px;
    background: var(--primary-yellow-10, rgba(244, 180, 0, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-yellow);
    margin-bottom: 30px;
    transition: var(--transition);
    border: 1px solid var(--primary-yellow-20, rgba(244, 180, 0, 0.2));
}

.vm-card:hover .vm-icon-box {
    background: var(--primary-yellow);
    color: #000;
    box-shadow: 0 0 20px var(--primary-yellow-40, rgba(244, 180, 0, 0.4));
    transform: scale(1.1) rotate(5deg);
}

.vm-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vm-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

.vm-dean-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid var(--primary-yellow);
    background: var(--card-bg);
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}
.vm-dean-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vm-values-list {
    text-align: left;
    width: 100%;
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

.vm-values-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.vm-values-list li:last-child {
    border-bottom: none;
}

.vm-values-list .acronym {
    font-weight: 800;
    color: var(--primary-yellow);
    font-size: 1.4rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
    background: var(--primary-yellow-10, rgba(244, 180, 0, 0.1));
    border-radius: 4px;
    padding: 2px 0;
}

.vm-bg-icon {
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-size: 180px;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    transition: var(--transition);
    z-index: -1;
}

.vm-card:hover .vm-bg-icon {
    transform: scale(1.2) rotate(-10deg);
    color: var(--primary-yellow-05, rgba(244, 180, 0, 0.05));
}

@media (max-width: 768px) {
    .vm-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Logo Variations */
.footer-logo .logo-circle {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.footer-logo .logo-main {
    font-size: 1.2rem;
}

/* --- Professional Dark Theme Components --- */

/* Section Styling */
.section-padding { padding: 3rem 0; }
.bg-light { background-color: var(--dark-bg) !important; }

/* News Section Cards */
.news-featured-large {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    position: relative;
    height: 100%;
    transition: var(--transition);
}

.news-featured-large:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(244, 180, 0, 0.3);
}

.featured-img-container {
    height: 450px;
    position: relative;
    overflow: hidden;
}

.featured-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-featured-large:hover .featured-img-container img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7) 50%, transparent);
    padding: 2.5rem;
    z-index: 2;
}

.featured-info h3 {
    font-size: 1.8rem;
    margin: 10px 0;
    line-height: 1.3;
}

.featured-info h3 a {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.featured-info h3 a:hover { color: var(--primary-yellow); }

.featured-info p {
    color: #d0d0d0;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badge-category {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
/* Department badge (for general blog showing dept posts) */
.badge-department {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
/* Badge group to align multiple badges cleanly */
.badge-group {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}
.featured-overlay .badge-group {
    position: static;
    margin-bottom: 12px;
}
/* Light mode tuning */
body.light-mode .badge-department {
    background: var(--primary-yellow);
    color: #1a1f2e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
body.light-mode .badge-category {
    color: #1a1f2e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Sidebar News List */
.news-list-sidebar {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-list-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.news-list-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.news-list-item:hover {
    transform: translateX(5px);
}

.news-list-item .list-img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-list-item .list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-list-item .list-content h4 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 5px;
}
.news-list-item .list-content h4 a { color: var(--text-primary); }
.news-list-item .list-content h4 a:hover { color: var(--primary-yellow); }

.news-list-item .list-content .list-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.news-list-item .list-content .badge-department {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.news-list-item .list-content .badge-sm {
    padding: 4px 10px;
    font-size: 0.7rem;
    margin-top: 6px;
}

.mini-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.view-all-link {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary-yellow);
    font-weight: 600;
    padding-top: 1.5rem;
    transition: var(--transition);
}
.view-all-link:hover { gap: 15px; color: var(--white); }

/* Events & Announcements */
.happenings-section { background: var(--darker-bg); }

.happenings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.column-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.column-header-flex h3 { color: var(--white); font-size: 1.8rem; }
.header-link-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}
.header-link-btn:hover {
    background: var(--primary-yellow);
    color: #000;
    border-color: var(--primary-yellow);
}

/* Event Cards */
.event-card-modern {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.event-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(244, 180, 0, 0.2);
}

.event-date-box {
    background: rgba(244, 180, 0, 0.1);
    color: var(--primary-yellow);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(244, 180, 0, 0.2);
}
.event-date-box .day { font-size: 1.8rem; font-weight: 700; line-height: 1; }
.event-date-box .month { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

.event-info h4 { color: var(--white); margin-bottom: 8px; font-size: 1.1rem; }
.event-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.event-meta i { color: var(--primary-yellow); }

/* Announcement Cards */
.announcement-card-modern {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    transition: var(--transition);
}
.announcement-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-left: 3px solid var(--primary-yellow);
}

.announcement-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-yellow);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.announcement-info h4 a { color: var(--white); transition: var(--transition); }
.announcement-info h4 a:hover { color: var(--primary-yellow); }
.announcement-date { color: var(--text-muted); font-size: 0.8rem; display: block; margin-bottom: 5px; }

/* Department Heads */
.dept-heads-section { background: var(--dark-bg); }
.heads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.head-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.head-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-yellow);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.head-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}
.head-card:hover::before { transform: scaleX(1); }

.head-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid rgba(244, 180, 0, 0.2);
    padding: 3px;
}
.head-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.head-name { color: var(--white); font-size: 1.1rem; margin-bottom: 5px; }
.head-position { color: var(--primary-yellow); font-size: 0.9rem; margin-bottom: 5px; font-weight: 500; }
.head-degree { color: var(--text-muted); font-size: 0.8rem; }

/* SLRC Hymn */
.slrc-hymn-section { background: var(--dark-bg); text-align: center; }
.hymn-content { max-width: 800px; margin: 0 auto; }

.hymn-lyrics-box {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.hymn-icon {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hymn-title { color: var(--white); margin-bottom: 2rem; }
.hymn-lyrics p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 1.1rem; font-style: italic; }

.hymn-audio {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* --- Back Button --- */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 20px;
    cursor: pointer;
    width: fit-content;
}

.btn-back:hover {
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
    transform: translateX(-5px);
    text-decoration: none;
}

.btn-back i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-back:hover i {
    transform: translateX(-3px);
}

/* History Section */
.history-section { 
    background: var(--darker-bg); 
    padding: 100px 0;
}

.history-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

/* Watermark Effect */
.history-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.history-watermark img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
}

.history-content {
    position: relative;
    z-index: 2;
}

.history-text p { 
    color: var(--text-secondary); 
    margin-bottom: 1.5rem; 
    font-size: 1.15rem; 
    line-height: 1.8; 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.history-badge-wrapper {
    text-align: center;
    margin: 2rem 0;
}

.est-badge {
    display: inline-block;
    background: rgba(244, 180, 0, 0.1);
    color: var(--primary-yellow);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    border: 1px solid rgba(244, 180, 0, 0.3);
    letter-spacing: 1px;
}

.btn-history {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(244, 180, 0, 0.2);
}

.btn-history:hover { 
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(244, 180, 0, 0.4);
}

/* Stats Section */
.stats-identity-section { 
    background: linear-gradient(to bottom, var(--dark-bg), var(--darker-bg)); 
    position: relative; 
    overflow: hidden;
    padding: 100px 0;
}
.school-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.stat-box {
    background: rgba(255,255,255,0.03);
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: rgba(244, 180, 0, 0.3);
}

.stat-box:hover::after { opacity: 1; }

.stat-count {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-yellow), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}
.stat-label { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-weight: 600;
}

/* Identity Grid */
.identity-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: center;
    background: var(--card-bg);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.identity-logo-col {
    text-align: center;
    position: relative;
}

.identity-logo-col::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(244, 180, 0, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.large-identity-logo { 
    max-width: 100%; 
    width: 280px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3)); 
}

.value-group { 
    margin-bottom: 2.5rem; 
    padding-left: 25px;
    border-left: 3px solid rgba(244, 180, 0, 0.3);
    transition: all 0.3s ease;
}

.value-group:hover {
    border-left-color: var(--primary-yellow);
    padding-left: 35px;
}

.value-group h3 {
    color: var(--primary-yellow);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.value-group h3 i {
    background: rgba(244, 180, 0, 0.1);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
}

.value-group p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.values-list li:hover {
    transform: translateX(5px);
    color: var(--white);
}

.acronym {
    font-weight: 800;
    color: var(--primary-yellow);
    font-size: 1.2rem;
    margin-right: 12px;
    background: rgba(244, 180, 0, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(244, 180, 0, 0.2);
}
/* --- Scroll Animations (AOS Style) --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }

/* Pulse Animation for Featured Elements */
@keyframes softPulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 180, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(244, 180, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 180, 0, 0); }
}

.pulse-animation {
    animation: softPulse 2s infinite;
}

/* Footer Section */
.footer {
    background-color: var(--darker-bg);
    color: #b0b0b0;
    padding: 4rem 0 0;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

/* Wave Separator */
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.footer-wave .shape-fill {
    fill: var(--dark-bg);
}

/* Footer Content */
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Brand Column */
.footer-brand .footer-logo {
    margin-bottom: 1.5rem;
}

.footer-brand .logo-img {
    height: 55px;
    transition: transform 0.5s ease;
}

.footer-brand:hover .logo-img {
    transform: rotate(360deg);
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Headings */
.footer-col h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-left: 18px;
    font-weight: 700;
}

.footer-col h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 18px;
    width: 4px;
    background: var(--primary-yellow);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(244, 180, 0, 0.5);
}

/* Greetings Banner Section */
.greetings-banner-section {
    padding: 20px 0;
    background-color: var(--darker-bg);
    border-bottom: 1px solid var(--border-color);
}

.greetings-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.greetings-slider {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.greetings-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.greetings-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.greetings-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.greetings-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

.greetings-prev, .greetings-next {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.greetings-prev:hover, .greetings-next:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
}

.greetings-dots {
    display: flex;
    gap: 8px;
}

.greetings-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.greetings-dots .dot.active, .greetings-dots .dot:hover {
    background: var(--primary-yellow);
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Adjustments for Greetings Banner */
@media (max-width: 768px) {
    .greetings-banner-section {
        padding: 10px 0;
    }
    
    .greetings-slider {
        max-height: 250px;
    }
    
    .greetings-prev, .greetings-next {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

/* Button Base Styles */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Back Button Styling */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    width: fit-content;
}

.btn-back:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
    transform: translateX(-5px);
}

.btn-back i {
    font-size: 0.9rem;
}

/* Light Mode Back Button */
body.light-mode .btn-back {
    color: #333;
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.5);
}

body.light-mode .btn-back:hover {
    background: var(--primary-yellow);
    color: #000;
}

/* Links */
.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b0b0b0;
    width: fit-content;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--primary-yellow);
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
    opacity: 1;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
}

.social-icon.facebook:hover { background: #3b5998; box-shadow: 0 5px 15px rgba(59, 89, 152, 0.4); }
.social-icon.twitter:hover { background: #1da1f2; box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4); }
.social-icon.instagram:hover { background: #e1306c; box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4); }

/* --- Admission Page Styles --- */

.page-hero-compact {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(244, 180, 0, 0.3);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: rgba(244, 180, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    color: var(--primary-yellow);
    font-size: 1.8rem;
}

.step-number {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
}

.step-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.requirements-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
}

.req-header {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.req-header h3, .req-header h5 {
    margin: 0;
    color: var(--primary-yellow);
}

.req-body {
    padding: 1.5rem;
    color: var(--text-primary);
}

.req-body ul {
    list-style: none;
    padding-left: 0;
}

.req-body ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.req-body ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-yellow);
    font-size: 0.9rem;
}

/* Department Block */
.department-block {
    margin-bottom: 4rem;
}

.department-title {
    color: var(--white);
    font-size: 1.5rem;
    border-left: 4px solid var(--primary-yellow);
    padding-left: 15px;
    margin-bottom: 2rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(18,18,18,0.9), rgba(18,18,18,0.9)), url('../images/hero-photo/hero.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    border-top: 1px solid var(--border-color);
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.btn-primary-yellow {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid var(--primary-yellow);
    margin: 0 10px;
}

.btn-primary-yellow:hover {
    background: transparent;
    color: var(--primary-yellow);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.2);
    margin: 0 10px;
}

.btn-outline-light:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

/* Utilities */
.text-primary-yellow { color: var(--primary-yellow) !important; }
.bg-darker { background-color: var(--darker-bg) !important; }

@media (max-width: 768px) {
    .requirements-grid { grid-template-columns: 1fr; }
    .page-hero-compact { height: 40vh; }
    .cta-content h2 { font-size: 1.8rem; }
}
.social-icon.youtube:hover { background: #ff0000; box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4); }

/* Footer Bottom */
.footer-bottom {
    background: #080808;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
}

.footer-address {
    color: #666 !important;
    font-size: 0.85rem !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer {
        padding-top: 5rem;
    }
}

/* --- Blog Page Specifics --- */
/* Regular Posts Grid (Home) */
.regular-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.regular-post-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.regular-post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(244, 180, 0, 0.3);
}

.regular-post-image {
    height: 180px;
    overflow: hidden;
}

.regular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.regular-post-card:hover .regular-post-image img {
    transform: scale(1.1);
}

.regular-post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.regular-post-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.regular-post-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.regular-post-title a {
    color: var(--text-primary);
}

.regular-post-title a:hover {
    color: var(--primary-yellow);
}

.regular-post-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex: 1;
}

.regular-read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-yellow);
}

.view-more-stories {
    margin-top: 3rem;
    text-align: center;
}

.view-more-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 10px;
}

.view-more-btn:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
}

/* Sidebar Section (Home) */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Announcements Box */
.announcements-box, .events-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-yellow);
}

.announcement-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.announcement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.announcement-date {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
    height: fit-content;
}

.announcement-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    line-height: 1;
}

.announcement-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.announcement-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.announcement-content h4 a {
    color: var(--text-primary);
}

.announcement-content h4 a:hover {
    color: var(--primary-yellow);
}

.announcement-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.announcement-read {
    font-size: 0.8rem;
    color: var(--primary-yellow);
    font-weight: 600;
}

.view-all-announcements, .view-all-events {
    margin-top: 20px;
    text-align: center;
}

.view-announcements-btn, .view-events-btn {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.view-announcements-btn:hover, .view-events-btn:hover {
    color: var(--primary-yellow);
}

/* Events Box */
.event-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.event-date {
    background: var(--dark-bg);
    color: var(--white);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 70px;
    height: fit-content;
}

.event-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.event-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    line-height: 1;
}

.event-details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.event-time, .event-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}

.event-time i, .event-location i {
    color: var(--primary-yellow);
    width: 15px;
}

/* Department Heads Section */
.dept-heads-section {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.heads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 3rem;
}

.head-card {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

.head-card:hover {
    transform: translateY(-10px);
}

.head-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 5px solid rgba(255,255,255,0.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.head-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.head-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--white);
}

.head-position {
    color: var(--primary-yellow);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.head-degree {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* SLRC Hymn Section */
.slrc-hymn-section {
    padding: 5rem 0;
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    text-align: center;
}

.slrc-hymn-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(244, 180, 0, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.hymn-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hymn-lyrics-box {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Custom Audio Player */
.custom-audio-player {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    padding: 15px 25px;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-controls {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.play-btn {
    background: var(--primary-yellow);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark-bg);
    font-size: 1.2rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.1);
}

.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.seek-bar-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.seek-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.progress-fill {
    height: 100%;
    background: var(--primary-yellow);
    border-radius: 3px;
    width: 0%;
    position: relative;
    pointer-events: none;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-yellow);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(244, 180, 0, 0.5);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.mute-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.mute-btn:hover {
    color: var(--primary-yellow);
}

.volume-slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
}

.volume-container:hover .volume-slider-container {
    width: 80px;
}

.volume-slider {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-yellow);
    border-radius: 50%;
    cursor: pointer;
}

/* Mobile responsive for audio player */
@media screen and (max-width: 576px) {
    .custom-audio-player {
        flex-direction: column;
        padding: 20px;
        border-radius: 20px;
    }
    
    .player-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .progress-container {
        width: 100%;
        order: 1; /* Move progress bar below play button */
    }
    
    .play-btn {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        order: 0;
    }
    
    .volume-container {
        display: none; /* Hide volume on mobile to save space */
    }
}


/* Identity Cards (Mission, Vision, Values) */
.identity-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left align items */
    text-align: left; /* Left align text */
    position: relative;
    overflow: hidden;
}

.values-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.identity-card.border-warning-glow {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 15px rgba(244, 180, 0, 0.1);
}

.identity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px; /* Left border accent */
    height: 100%;
    background: var(--primary-yellow);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.identity-card:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 180, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.identity-card:hover::before {
    transform: scaleY(1);
}

.identity-card h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.identity-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.hymn-lyrics p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1rem;
}

.hymn-icon {
    font-size: 3rem;
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
}

.hymn-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.hymn-lyrics p {
    font-size: 1.1rem;
    line-height: 2;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-header-section {
    background: var(--dark-bg);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 4px solid var(--primary-yellow);
}

.blog-filter-section {
    background: var(--card-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px;
    z-index: 900;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
}

/* History Section */
.history-section {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.history-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.history-image {
    flex: 1;
    position: relative;
    padding: 20px;
}

.history-img-main {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    transition: var(--transition);
}

.history-image:hover .history-img-main {
    transform: scale(1.05);
}

.history-badge {
    position: absolute;
    bottom: 0;
    right: 20px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(244, 180, 0, 0.4);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.since-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.year-text {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.history-content {
    flex: 1;
}

.history-text {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.history-text p {
    margin-bottom: 1rem;
}

.btn-history {
    display: inline-block;
    padding: 12px 30px;
    background: var(--dark-bg);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
}

.btn-history:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
}

/* Stats & Identity Section */
.stats-identity-section {
    padding: 4rem 0;
    background: var(--darker-bg);
}

.school-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 3rem;
    text-align: center;
}

.stat-box {
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--primary-yellow);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-count {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.identity-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.identity-logo-col {
    text-align: center;
}

.large-identity-logo {
    max-width: 300px;
    opacity: 0.9;
}

.identity-values-col {
    display: grid;
    gap: 2rem;
}

.value-group h3 {
    color: var(--primary-yellow);
    margin-bottom: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.value-group h3::before {
    content: '';
    width: 20px;
    height: 3px;
    background: var(--primary-yellow);
}

.value-group p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.values-list {
    list-style: none;
    padding-left: 20px;
    border-left: 3px solid var(--border-color);
}

.values-list li {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.values-list strong {
    color: var(--primary-yellow);
    font-size: 1.3rem;
    margin-right: 5px;
}

/* --- Happenings Section (New Layout) --- */
.happenings-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Left Column */
.happenings-left-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Calendar Widget */
.calendar-widget-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.widget-header h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.widget-header h3 i { color: var(--primary-yellow); }

#mini-calendar {
    width: 100%;
}

/* Professional Grid Calendar */
.calendar-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cal-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.cal-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cal-nav-btn:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    transform: scale(1.1);
}

/* Weekdays Header */
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 10px;
    text-align: center;
}

.cal-weekdays div {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Days Grid */
.cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px; /* Consistent spacing */
    row-gap: 12px;
}

.day-cell {
    width: 100%;
    aspect-ratio: 1;
    max-width: 40px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95rem;
    cursor: default;
    transition: all 0.3s ease;
    position: relative;
    color: var(--text-primary);
}

.day-cell.empty {
    pointer-events: none;
}

.day-cell:hover:not(.empty) {
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

/* Today Highlight */
.day-cell.is-today {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* Event Indicator - Professional Dot Style */
.day-cell.has-event {
    color: var(--primary-yellow);
    font-weight: 700;
}

.day-cell.has-event::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
}

.day-cell.is-today.has-event {
    color: var(--dark-bg);
}

.day-cell.is-today.has-event::after {
    background-color: var(--dark-bg);
}

.calendar-legend {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    justify-content: center;
    flex-wrap: wrap;
}

.legend-item { display: flex; align-items: center; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* Legend items match calendar cell styles */
.announcement-dot { 
    background-color: rgba(253, 126, 20, 0.1);
    border: 1px solid #fd7e14;
}
.event-dot { 
    background-color: var(--card-bg);
    border: 1px solid var(--primary-yellow);
    box-shadow: 0 0 0 2px rgba(244, 180, 0, 0.12);
}
.today-dot { 
    background: #ffc107;
    border: none; /* Filled yellow */
}


/* Highlight Card - Professional Redesign */
.highlight-card {
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(244, 180, 0, 0.3);
}

.highlight-header {
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.highlight-header h3 {
    font-size: 0.95rem;
    color: var(--white);
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.highlight-header h3 i { color: var(--primary-yellow); }

/* Highlight Slider - Grid Layout for Crossfade */
.highlight-slider-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    /* Remove fixed height to allow content to dictate size */
}

.highlight-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.highlight-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.highlight-content-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.highlight-img {
    width: 100%;
    height: 220px; /* Slightly reduced height for better proportion */
    overflow: hidden;
    position: relative;
}

.highlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.highlight-card:hover .highlight-img img { transform: scale(1.05); }

.highlight-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2;
    letter-spacing: 0.5px;
}

/* Content Styling */
.highlight-info {
    padding: 1.25rem;
    background: #1e1e1e;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.highlight-info h4 {
    color: var(--primary-yellow);
    font-size: 1.15rem;
    margin-bottom: 0.5rem; /* Reduced whitespace */
    line-height: 1.3;
    font-weight: 700;
}

.highlight-info p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem; /* Reduced whitespace */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Actions Bar */
.highlight-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.highlight-btn {
    background: transparent;
    color: var(--primary-yellow);
    border: 1px solid var(--primary-yellow);
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.highlight-btn:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    box-shadow: 0 5px 15px rgba(244, 180, 0, 0.2);
}

/* Navigation Buttons */
.hl-prev, .hl-next {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hl-prev:hover, .hl-next:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .highlight-img {
        height: 180px;
    }
    .highlight-info {
        padding: 1rem;
    }
    .highlight-info h4 {
        font-size: 1.05rem;
    }
    .highlight-info p {
        font-size: 0.85rem;
        -webkit-line-clamp: 2; /* Show less text on mobile */
    }
}




/* Right Column */
.happenings-right-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-block {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    height: 100%;
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.block-header h3 {
    font-size: 1.2rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}
.block-header h3 i { color: var(--primary-yellow); }

.sm-link {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.sm-link:hover { color: var(--primary-yellow); }

.vertical-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.v-list-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.v-list-item:last-child { border-bottom: none; padding-bottom: 0; }

.v-date {
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 5px 10px;
    text-align: center;
    min-width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.v-date.event-date-style {
    background: rgba(244, 180, 0, 0.1);
    color: var(--primary-yellow);
    border: 1px solid rgba(244, 180, 0, 0.2);
}

.d-day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.d-month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.v-info h4 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 3px;
}
.v-info h4 a { color: var(--text-primary); }
.v-info h4 a:hover { color: var(--primary-yellow); }

.v-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.empty-text {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .happenings-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- Redesigned Sections (News & Happenings) --- */

/* News Section */
.news-section {
    padding: 3rem 0;
    background: var(--dark-bg);
}

.news-layout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

/* Featured Large Card */
.news-featured-large {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: var(--card-bg);
    height: 100%;
    min-height: 500px;
    border: 1px solid var(--border-color);
}

.featured-img-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.featured-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-featured-large:hover .featured-img-container img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    padding: 30px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.badge-category {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-info .meta-date {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-info h3 a {
    color: var(--white);
    text-decoration: none;
    background-image: linear-gradient(var(--primary-yellow), var(--primary-yellow));
    background-size: 0% 2px;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
}

.featured-info h3 a:hover {
    background-size: 100% 2px;
}

.featured-info p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90%;
}

.read-more-link {
    color: var(--primary-yellow);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.read-more-link:hover {
    gap: 12px;
    color: var(--white);
}

/* News List Sidebar */
.news-list-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-list-item {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid transparent;
    border: 1px solid var(--border-color);
}

.news-list-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left-color: var(--primary-yellow);
}

.item-thumb {
    width: 120px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-meta .category {
    color: var(--primary-yellow);
    font-weight: 600;
}

.item-content h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.item-content h4 a {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.item-content h4 a:hover {
    color: var(--primary-yellow);
}

/* Happenings Section (Events & Announcements) */
.happenings-section {
    padding: 5rem 0;
    background: var(--darker-bg);
    position: relative;
}

.happenings-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0.02), transparent);
    z-index: 0;
    pointer-events: none;
}

.happenings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.column-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.header-title h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title h3 i {
    color: var(--primary-yellow);
}

.header-link-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.header-link-btn:hover {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--dark-bg);
}

/* Announcement Cards Modern */
.announcements-list-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.announcement-card-modern {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.announcement-card-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-yellow);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.announcement-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: transparent;
}

.announcement-card-modern:hover::before {
    opacity: 1;
}

.announcement-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.ann-badge {
    background: rgba(244, 180, 0, 0.15);
    color: var(--primary-yellow);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ann-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.announcement-card-modern h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.announcement-card-modern p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ann-link {
    color: var(--primary-yellow);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Event Cards Modern */
.events-list-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.event-card-modern:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.event-date-box {
    background: var(--dark-bg);
    color: var(--white);
    padding: 15px 10px;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.event-date-box .day {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-yellow);
    line-height: 1;
    display: block;
}

.event-date-box .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    display: block;
}

.event-info {
    flex: 1;
}

.event-info h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-meta i {
    color: var(--primary-yellow);
}

.featured-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(244, 180, 0, 0.15);
    color: var(--primary-yellow);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* Blog Page Featured Post */
.featured-post {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.featured-image {
    height: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    z-index: 2;
}

.featured-content {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.featured-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.featured-title a:hover {
    color: var(--primary-yellow);
}

.featured-excerpt {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    width: fit-content;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background: var(--dark-bg);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Update regular post image for absolute badge */
.regular-post-image {
    position: relative;
}

@media (max-width: 992px) {
    .featured-post {
        grid-template-columns: 1fr;
    }
    .featured-image {
        min-height: 300px;
    }
    .featured-content {
        padding: 2rem;
    }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .regular-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .heads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .school-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .identity-content-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .value-group h3 {
        justify-content: center;
    }
    .hero-title { font-size: 2.5rem; }
    .footer-content { grid-template-columns: 1fr 1fr; }

    /* New Grid Adjustments */
    .news-layout-grid {
        grid-template-columns: 1fr;
    }
    .happenings-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .news-featured-large {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--darker-bg);
        display: flex;
        flex-direction: column;
        padding: 1.25rem;
        transition: 0.3s ease;
        overflow-y: auto; /* Enable scrolling if menu is tall */
        gap: 0.5rem;
        box-shadow: 0 12px 30px rgba(0,0,0,0.35);
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }

    /* Mobile Search Box Adjustment */
    .nav-menu .nav-search-box {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .nav-menu #searchForm {
        width: 100%;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu .nav-search-input {
        width: 100%;
        font-size: 1rem; /* Better for mobile input */
    }
    
    body.light-mode .nav-menu {
        background: #ffffff !important;
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }
    body.light-mode .nav-menu #searchForm {
        background: rgba(0,0,0,0.04) !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
    }
    body.light-mode .nav-menu .nav-search-input {
        color: var(--text-primary) !important;
    }
    body.light-mode .nav-menu .nav-search-input::placeholder {
        color: #888888 !important;
    }
    
    .nav-menu.active { right: 0; }
    .nav-toggle { display: block; }
    
    .nav-links,
    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .nav-link { display: block; padding: 10px 12px; border-radius: 8px; width: 100%; text-align: center; }
    .nav-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        margin-top: 1rem;
    }
    .nav-btn-contact {
        width: 100%;
        text-align: center;
    }
    .nav-item .dropdown-toggle {
        justify-content: center;
        width: 100%;
        padding: 10px 12px;
        border-radius: 8px;
        gap: 8px;
    }
    
    .nav-item.dropdown { position: relative; }
    .nav-item.dropdown { height: auto; display: block; align-items: stretch; }
    .dropdown-menu {
        position: static;
        transform: none;
        display: none;
        background: rgba(255,255,255,0.04);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-top: 6px;
        padding: 8px 0;
        text-align: center;
    }
    .dropdown-menu.active { display: block; }
    .dropdown-item { text-align: center; }

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--darker-bg);
        display: flex;
        flex-direction: column;
        padding: 1.25rem;
        transition: 0.3s ease;
        overflow-y: auto;
        gap: 0.5rem;
        box-shadow: 0 12px 30px rgba(0,0,0,0.35);
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }
    .nav-menu.active { right: 0; }

    .nav-links,
    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        align-items: center;
        text-align: center;
    }
    .nav-link { display: block; padding: 10px 12px; border-radius: 8px; width: 100%; text-align: center; }

    .nav-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        margin-top: 1rem;
    }

    .nav-item .dropdown-toggle {
        justify-content: center;
        width: 100%;
        padding: 10px 12px;
        border-radius: 8px;
        gap: 8px;
    }
    .nav-item.dropdown { position: relative; height: auto; display: block; align-items: stretch; }

    .dropdown-menu {
        position: static;
        transform: none;
        display: none;
        background: rgba(255,255,255,0.04);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        margin-top: 6px;
        padding: 8px 0;
        text-align: center;
        width: 100%;
        min-width: auto;
    }
    .dropdown-menu.active { display: block; }
    .dropdown-item { text-align: center; }
    
    body.light-mode .nav-menu {
        background: #ffffff !important;
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }
    body.light-mode .dropdown-menu {
        background: #ffffff;
        border-color: var(--border-color);
    }
}
    
    
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-logo-container { height: 250px; margin-bottom: 2rem; }
    .logo-backdrop { width: 220px; height: 220px; }
    .logo-slideshow { width: 180px; height: 180px; }
    
    .hero-title { font-size: 2rem; }
    
    .regular-posts-grid { grid-template-columns: 1fr; }
    .heads-grid { grid-template-columns: 1fr; }
    .school-stats-row { 
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }

    /* Hide scrollbar Webkit */
    .school-stats-row::-webkit-scrollbar {
        display: none;
    }

    .stat-box {
        min-width: 260px;
        flex: 0 0 auto;
        scroll-snap-align: center;
    }
    .history-wrapper { 
        flex-direction: column;
        gap: 3rem;
    }

    .history-image {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 0;
    }

    .history-badge {
        width: 100px;
        height: 100px;
        right: auto;
        left: 50%;
        margin-left: -50px;
        bottom: -15px;
    }

    .history-badge .year-text {
        font-size: 1.6rem;
    }

    .history-content .section-header,
    .history-content .header-line {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        align-items: center;
    }

    .history-text {
        text-align: center;
    }
    .footer-content { grid-template-columns: 1fr; }
    
    .featured-update-card { text-align: left; }

    /* New Grid Mobile Adjustments */
    .news-featured-large {
        min-height: 350px;
    }
    .featured-info h3 {
        font-size: 1.5rem;
    }
    .column-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .header-link-btn {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
}

/* --- Redesigned Blog Page --- */

/* Compact Hero */
.blog-hero {
    padding: 60px 0 30px;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.hero-content-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content-centered h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--white);
    line-height: 1.2;
}

.hero-content-centered p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hide Stats Row for cleaner look */
.hero-stats-row {
    display: none;
}

/* Integrated Filter Bar */
.blog-filter-section {
    padding: 15px 0;
    background: var(--dark-bg);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0; /* Sticky to top */
    z-index: 100;
    margin-bottom: 0;
    backdrop-filter: blur(10px); /* Modern glass effect */
    background: rgba(18, 18, 18, 0.95); /* Semi-transparent dark */
}

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    transform: none;
    box-shadow: 0 4px 12px rgba(244, 180, 0, 0.3);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .blog-hero {
        padding: 40px 0 20px;
    }
    
    .hero-content-centered h1 {
        font-size: 2rem;
    }
    
    .blog-filter-section {
        padding: 15px 0;
        top: 60px; /* Adjust if nav is sticky */
    }
    
    .category-filter {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        padding-left: 5px;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    .filter-btn {
        flex-shrink: 0;
        font-size: 0.85rem;
        padding: 6px 16px;
    }
}

/* Blog Content Section */
.blog-content-section {
    padding: 40px 0;
    background: var(--dark-bg);
}

.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.no-posts i {
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.no-posts p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Pagination */
.blog-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* Ensure wrapping on small screens */
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-number, .page-prev, .page-next {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    min-width: 45px;
    padding: 0 15px;
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-number:hover, .page-prev:not(.disabled):hover, .page-next:not(.disabled):hover {
    background: var(--white);
    color: var(--dark-bg);
    border-color: var(--white);
}

.page-number.active {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
}

.page-prev.disabled, .page-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 0 5px;
}

/* --- Department Detail Redesign --- */

/* Sticky Sub-navigation */
.dept-subnav {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 80px; /* Adjust based on main header height */
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dept-subnav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.dept-subnav ul li a {
    display: block;
    padding: 20px 5px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.dept-subnav ul li a:hover,
.dept-subnav ul li a.active {
    color: var(--primary-yellow);
}

.dept-subnav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-yellow);
    transition: width 0.3s ease;
}

.dept-subnav ul li a.active::after {
    width: 100%;
}

/* Department Section Blocks */
.dept-section-block {
    padding: 50px 0;
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
}

.dept-section-block:last-child {
    border-bottom: none;
}

.section-subtitle {
    display: block;
    color: var(--primary-yellow);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.dept-section-block h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--white);
    position: relative;
    display: inline-block;
}

/* Mission & Vision Grid */
.mv-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card-modern {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.mv-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-yellow);
}

.mv-icon {
    font-size: 2.5rem;
    color: var(--primary-yellow);
    margin-bottom: 25px;
    display: inline-block;
    padding: 15px;
    background: rgba(244, 180, 0, 0.1);
    border-radius: 12px;
}

.mv-card-modern h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.mv-card-modern p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Programs Grid */
.programs-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.program-card-modern {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.program-icon {
    padding: 30px;
    background: rgba(255,255,255,0.02);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.program-icon i {
    font-size: 3rem;
    color: var(--primary-yellow);
    opacity: 0.8;
}

.program-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--white);
    line-height: 1.4;
}

.program-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
    flex: 1;
}

.program-link {
    color: var(--primary-yellow);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.program-link:hover {
    gap: 12px;
}

/* Leadership Section */
.leadership-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.leadership-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(244, 180, 0, 0.05), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.leadership-content {
    flex: 1;
    z-index: 2;
}

.head-message {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.9;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-yellow);
    padding-left: 35px;
    font-family: 'Georgia', serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.head-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.head-avatar {
    width: 60px;
    height: 60px;
    background: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-yellow);
    font-size: 1.5rem;
    border: 2px solid var(--primary-yellow);
}

.head-info h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.head-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leadership-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.leadership-image img {
    max-width: 300px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Contact Grid */
.contact-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.contact-card-modern {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.contact-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(244, 180, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-yellow);
    font-size: 1.5rem;
}

.contact-card-modern h4 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-card-modern p, 
.contact-card-modern a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-card-modern a:hover {
    color: var(--primary-yellow);
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments for Dept Detail */
@media (max-width: 992px) {
    .leadership-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }
    
    .head-message {
        border-left: none;
        border-top: 4px solid var(--primary-yellow);
        padding-left: 0;
        padding-top: 30px;
    }
    
    .head-profile {
        justify-content: center;
        flex-direction: column;
    }
    
    .contact-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dept-subnav {
        top: 60px; /* Mobile header height */
    }
    
    .dept-subnav ul {
        justify-content: flex-start;
        padding: 0 20px;
    }
    
    .mv-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .contact-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .dept-section-block h2 {
        font-size: 2rem;
    }
}

.page-info {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Newsletter */
.blog-newsletter {
    padding: 80px 0;
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--white);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--primary-yellow);
}

.btn-subscribe {
    padding: 15px 35px;
    border-radius: 50px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .blog-header-content h1 {
        font-size: 2.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .btn-subscribe {
        width: 100%;
    }
}

/* --- Courses Page Specific Styles --- */

/* Page Hero (Shared) */
.courses-hero-v2, .department-hero {
    padding: 100px 0 40px; /* Reduced bottom padding from 80px to 40px */
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.blog-hero {
    padding: 50px 0 20px; /* Tighter padding for blog */
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.blog-hero .hero-content-centered p {
    margin-bottom: 30px; /* Reduced from 50px */
}

.courses-hero-v2::before, .blog-hero::before, .department-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(244, 180, 0, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content-centered .hero-subtitle {
    display: inline-block;
    color: var(--primary-yellow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 6px 16px;
    background: rgba(244, 180, 0, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(244, 180, 0, 0.2);
}

.hero-content-centered h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.2;
}

.hero-content-centered p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.6;
}

.hero-stats-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: var(--card-bg);
    padding: 30px 50px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-stats-row .stat-item {
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.hero-stats-row .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-yellow);
    display: block;
    margin-bottom: 5px;
    line-height: 1;
}

.hero-stats-row .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-content-centered h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 25px;
        width: 100%;
    }
    
    .stat-divider {
        display: none;
    }
}


/* Category Filter */
.course-filter-section {
    padding: 0 0 20px;
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.filter-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Courses Grid */
.courses-section {
    padding-bottom: 40px;
    background: var(--dark-bg);
}

.courses-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .courses-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .courses-list {
        grid-template-columns: 1fr;
    }
}

.course-row {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    isolation: isolate;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.course-row:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(244, 180, 0, 0.35);
}

.course-row::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120px 60px at 20% 0, rgba(244,180,0,0.12), transparent 60%),
        radial-gradient(120px 60px at 80% 0, rgba(244,180,0,0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
    pointer-events: none;
}

.course-row:hover::before {
    opacity: 1;
}

.row-image {
    position: relative;
    height: 240px;
    min-height: auto;
    overflow: hidden;
}

.row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 0;
}

.course-row:hover .row-image img {
    transform: scale(1.05);
}

.row-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
    z-index: 1;
}

.image-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 2;
}

.row-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: space-between;
}

.content-header h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: var(--white);
}

.quick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.04);
}

.meta-item i {
    color: var(--primary-yellow);
}

.course-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-footer {
    display: flex;
    gap: 12px;
    margin-top: auto;
    justify-content: space-between;
}

.btn-details {
    padding: 10px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    color: var(--white);
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-details:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--white);
}

.btn-inquire {
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--accent-yellow));
    color: var(--dark-bg);
    border-radius: 10px;
    font-weight: 700;
    border: 1px solid var(--primary-yellow);
    transition: all 0.3s ease;
}

.btn-inquire:hover {
    background: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 180, 0, 0.3);
}

@media (max-width: 991px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto 40px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .course-row {
        grid-template-columns: 1fr;
    }
    
    .row-image {
        height: 220px;
        min-height: auto;
    }
}


/* --- Department Page Styles --- */
.departments-section {
    padding-bottom: 80px;
    background: var(--dark-bg);
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .dept-grid {
        grid-template-columns: 1fr;
    }
}

.dept-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--dept-color, var(--primary-yellow));
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-color: var(--dept-color, var(--primary-yellow));
}

.dept-card:hover::before {
    opacity: 1;
}

.dept-card-header {
    background: rgba(255, 255, 255, 0.03); /* Fallback */
    background-size: cover;
    background-position: center;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Dark overlay for text readability/logo pop */
.dept-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    transition: background 0.3s ease;
}

.dept-card-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--dept-color, var(--primary-yellow)) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.dept-card:hover .dept-card-header::before {
    background: rgba(0, 0, 0, 0.4); /* Lighten on hover */
}

.dept-card:hover .dept-card-header::after {
    opacity: 0.35;
}

.dept-logo-wrapper {
    width: 190px;
    height: 190px;
    background: var(--white);
    border-radius: 50%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
    position: relative;
    z-index: 2; /* Ensure logo is above overlay */
    overflow: hidden;
}

.dept-card:hover .dept-logo-wrapper {
    transform: scale(1.1) rotate(5deg);
    border: 2px solid var(--dept-color, var(--primary-yellow));
}

.dept-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.dept-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dept-card-body h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.4;
}

.dept-card-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.dept-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dept-meta i {
    color: var(--dept-color, var(--primary-yellow));
}

.dept-card .fa-user-tie {
    color: var(--dept-color, var(--primary-yellow));
}

.dept-link-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dept-color, var(--primary-yellow));
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.dept-card:hover .dept-link-text {
    gap: 12px;
}

/* Department Detail Hero */
.dept-detail-hero {
    position: relative;
    padding: 150px 0 100px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.dept-detail-hero h1, 
.dept-detail-hero p, 
.dept-detail-hero .dept-tagline,
.dept-detail-hero .dept-label {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.dept-detail-hero .dept-label {
    color: var(--primary-yellow) !important;
    text-shadow: none;
}

.dept-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9));
}

.dept-detail-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.0), rgba(0,0,0,0.2)), linear-gradient(180deg, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.4) 100%), radial-gradient(circle at 20% 20%, rgba(244, 180, 0, 0.15), transparent 50%);
    pointer-events: none;
}

.dept-hero-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 50px;
}

.dept-logo-large {
    width: 220px;
    height: 220px;
    background: var(--white);
    border-radius: 50%;
    overflow: hidden;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.dept-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.dept-hero-info {
    flex: 1;
}

.dept-label {
    display: block;
    color: var(--primary-yellow);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.dept-hero-info h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.dept-tagline {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    max-width: 700px;
    line-height: 1.6;
}

.dept-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.dept-quick-nav {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.quick-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.quick-tile i {
    color: var(--primary-yellow);
}

.quick-tile:hover {
    transform: translateY(-2px);
    background: var(--primary-yellow-12, rgba(244, 180, 0, 0.12));
    border-color: var(--primary-yellow);
}

@media (max-width: 768px) {
    .dept-quick-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Stay Updated Section */
.stay-updated-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../images/pattern-bg.png');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.stay-updated-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    overflow: hidden;
}

.stay-updated-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-yellow);
}

.stay-updated-content {
    flex: 1;
}

.stay-updated-content h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.stay-updated-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.stay-updated-form-wrapper {
    flex: 1;
}

.stay-updated-form-wrapper form {
    position: relative;
}

.stay-updated-form-wrapper .form-group-inline {
    display: flex;
    gap: 10px;
}

.stay-updated-form-wrapper input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.stay-updated-form-wrapper input:focus {
    border-color: var(--primary-yellow);
    background: rgba(255,255,255,0.1);
    outline: none;
}

.stay-updated-form-wrapper button {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.stay-updated-form-wrapper button:hover {
    background: var(--white);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* Light Mode Overrides for Stay Updated Section */
body.light-mode .stay-updated-form-wrapper input {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #333;
}

body.light-mode .stay-updated-form-wrapper input:focus {
    background: #fff;
    border-color: var(--primary-yellow);
}

body.light-mode .stay-updated-form-wrapper button {
    background: var(--primary-yellow);
    color: #000;
}

body.light-mode .stay-updated-form-wrapper button:hover {
    background: #333;
    color: #fff;
}

body.light-mode .stay-updated-section {
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

body.light-mode .stay-updated-wrapper {
    background: #f8f9fa;
    border-color: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

body.light-mode .stay-updated-content h2 {
    color: #333;
}

body.light-mode .stay-updated-content p {
    color: #666;
}

/* Light Mode Overrides for Department Hero */
body.light-mode .dept-detail-hero::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.00) 35%), linear-gradient(180deg, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.50) 100%);
}
body.light-mode .dept-detail-hero::after {
    background: linear-gradient(135deg, rgba(0,0,0,0.0), rgba(0,0,0,0.10)), linear-gradient(180deg, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.30) 100%), radial-gradient(circle at 20% 20%, rgba(244, 180, 0, 0.08), transparent 50%);
}

body.light-mode .dept-detail-hero h1, 
body.light-mode .dept-detail-hero p, 
body.light-mode .dept-detail-hero .dept-tagline {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4) !important;
}

body.light-mode .dept-detail-hero .dept-label {
    color: var(--primary-yellow) !important;
    text-shadow: none !important;
}

/* Professional Light Mode for Department Detail */
body.light-mode .dept-subnav {
    background: #ffffff;
    border-bottom: 1px solid #e6e8eb;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
body.light-mode .dept-subnav ul li a {
    color: #5c6770;
}
body.light-mode .dept-subnav ul li a:hover,
body.light-mode .dept-subnav ul li a.active {
    color: var(--primary-yellow);
}

body.light-mode .dept-section-block {
    background: #ffffff;
    border-bottom: 1px solid #eef1f4;
}
body.light-mode .dept-section-block h2 {
    color: #2d3436;
}
body.light-mode .section-subtitle {
    color: var(--primary-yellow);
}

/* Mission & Vision cards */
body.light-mode .vm-card {
    background: #ffffff;
    border-color: #e6e8eb;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
body.light-mode .vm-card:hover {
    box-shadow: 0 16px 30px rgba(0,0,0,0.08);
}
body.light-mode .vm-card h3 {
    color: #2d3436;
}
body.light-mode .vm-card p {
    color: #636e72;
}
body.light-mode .vm-values-list li {
    border-bottom-color: #e6e8eb;
    color: #636e72;
}
body.light-mode .vm-dean-photo {
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
body.light-mode .vm-bg-icon {
    color: rgba(0,0,0,0.03);
}

/* Quick navigation tiles */
body.light-mode .quick-tile {
    background: #ffffff;
    border-color: #e6e8eb;
    color: #2d3436;
}
body.light-mode .quick-tile:hover {
    background: rgba(244, 180, 0, 0.08);
    border-color: var(--primary-yellow);
}
body.light-mode .quick-tile i {
    color: var(--primary-yellow);
}

/* Ensure department hero logo fits cleanly in light mode */
body.light-mode .dept-logo-large {
    background: #ffffff !important;
    border: 6px solid #ffffff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
body.light-mode .dept-logo-large img {
    background: #ffffff;
}

/* Contact Map Panel */
.contact-map-panel {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    min-height: 300px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.02);
    color: var(--text-muted);
    padding: 30px;
    text-align: center;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-yellow);
    opacity: 0.5;
}

.map-placeholder span {
    font-size: 0.95rem;
    max-width: 200px;
}

/* Programs List Styled */
.programs-list-styled ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 900px;
}

.programs-list-styled li {
    background: var(--card-bg);
    padding: 20px 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    flex: 0 1 360px;
}

.programs-list-styled li::before {
    content: '\f19d'; /* FontAwesome graduation cap */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-yellow);
    font-size: 1.1rem;
}

.programs-list-styled li:hover {
    transform: translateX(5px);
    border-color: var(--primary-yellow);
    color: var(--white);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .stay-updated-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px;
    }
    
    .stay-updated-form-wrapper {
        width: 100%;
    }
    
    .stay-updated-form-wrapper .form-group-inline {
        flex-direction: column;
    }
    
    .programs-list-styled ul { max-width: 600px; }
    .programs-list-styled li { flex: 1 1 100%; }
}

/* Department Detail Contact Panel */
.contact-info-panel {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    grid-column: span 2;
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--white);
}

.contact-info-panel p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-details-list li i {
    color: var(--primary-yellow);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-details-list li strong {
    display: block;
    color: var(--white);
    margin-bottom: 5px;
}

.contact-details-list li span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.resources-panel {
    background: var(--primary-yellow);
    padding: 40px;
    border-radius: var(--border-radius);
    color: var(--dark-bg);
}

.resources-panel h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--dark-bg);
    font-weight: 700;
}

.resources-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0,0,0,0.1);
    padding: 15px 20px;
    border-radius: 12px;
    color: var(--dark-bg);
    font-weight: 600;
    transition: all 0.3s ease;
}

.resource-btn:hover {
    background: var(--white);
    transform: translateX(5px);
}

.resource-btn i {
    font-size: 1.2rem;
}

/* Responsive Detail Page */
@media (max-width: 992px) {
    .dept-hero-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .dept-hero-info h1 {
        font-size: 2.5rem;
    }
    
    .dept-actions {
        justify-content: center;
    }
    
    .contact-details-list {
        grid-template-columns: 1fr;
    }
    
    .contact-info-panel {
        grid-column: span 1;
    }
    
    .contact-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* --- Blog Single Redesign --- */

/* Article Hero */
.article-hero {
    padding: 120px 0 60px;
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.article-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.article-breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: var(--primary-yellow);
}

.breadcrumb-separator {
    font-size: 0.7rem;
    opacity: 0.5;
}

.current-page {
    color: var(--text-muted);
}

.article-category-badge {
    display: inline-block;
    background: rgba(244, 180, 0, 0.1);
    color: var(--primary-yellow);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.article-category-badge:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.article-hero-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 30px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.article-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-small {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--primary-yellow);
}

.author-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-name {
    color: var(--white);
    font-weight: 600;
    line-height: 1.2;
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: var(--primary-yellow);
}

/* Featured Image */
.article-featured-image-section {
    margin-top: -40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.featured-image-wrapper {
    width: 100%;
    max-height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
}

.article-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Main Layout */
.article-main-section {
    padding-bottom: 100px;
}

.article-layout-new {
    display: grid;
    grid-template-columns: 80px 1fr 350px;
    gap: 60px;
    align-items: start;
}

/* Share Sidebar */
.share-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.share-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.share-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-btn-new {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn-new:hover {
    transform: translateX(5px);
    color: var(--white);
}

.share-btn-new.facebook:hover { background: #3b5998; border-color: #3b5998; }
.share-btn-new.twitter:hover { background: #1da1f2; border-color: #1da1f2; }
.share-btn-new.linkedin:hover { background: #0077b5; border-color: #0077b5; }
.share-btn-new.copy:hover { background: var(--text-secondary); border-color: var(--text-secondary); }

/* Announcement Inline Share */
.announcement-share-inline {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.event-hero {
    padding: 140px 0 40px;
    color: #fff;
    background: linear-gradient(135deg, #1a237e, #3949ab);
    position: relative;
    overflow: hidden;
}
.event-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 60%);
    pointer-events: none;
}
.event-hero .container {
    position: relative;
    z-index: 1;
}
.event-hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
}
.event-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}
.event-hero-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
}
.event-hero-meta i {
    color: var(--primary-yellow);
}
.event-hero-meta .meta-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.4);
}
.event-share-inline {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mobile Inline Share */
.mobile-share-inline {
    display: none;
    gap: 10px;
    margin-top: 30px;
}

/* Article Content */
.article-content-wrapper {
    min-width: 0; /* Prevent overflow */
}

.article-body-new {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body-new p {
    margin-bottom: 25px;
}

.article-body-new h2, 
.article-body-new h3 {
    color: var(--white);
    margin: 40px 0 20px;
    line-height: 1.3;
}

.article-body-new h2 { font-size: 2rem; }
.article-body-new h3 { font-size: 1.5rem; }

.article-body-new a {
    color: var(--primary-yellow);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-body-new a:hover {
    color: var(--white);
}

.article-body-new blockquote {
    border-left: 4px solid var(--primary-yellow);
    padding: 20px 30px;
    background: rgba(255,255,255,0.03);
    margin: 30px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--white);
    border-radius: 0 12px 12px 0;
}

.article-body-new img {
    max-width: 100%;
    border-radius: 12px;
    margin: 30px 0;
}

.inline-hashtag {
    color: var(--primary-yellow);
    font-weight: 600;
    text-decoration: none !important;
}

/* Tags Cloud */
.article-tags-new {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.article-tags-new h4 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-tags-new h4 i { color: var(--primary-yellow); }

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-pill {
    padding: 8px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-pill:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
}

/* Author Card */
.author-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 25px;
    border: 1px solid var(--border-color);
}

.author-card-avatar {
    width: 80px;
    height: 80px;
    background: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-yellow);
    flex-shrink: 0;
}

.author-card-info h4 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.author-card-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Post Navigation */
.post-nav-links {
    margin-top: 40px;
}

.nav-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-back-link:hover {
    color: var(--primary-yellow);
    gap: 15px;
}

/* Sidebar */
.article-sidebar-new {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.sidebar-card h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-card h3 i { color: var(--primary-yellow); }

.sidebar-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-post-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.sidebar-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-post-item:hover .sidebar-post-thumb img {
    transform: scale(1.1);
}

.sidebar-post-info {
    flex: 1;
}

.sidebar-post-cat {
    display: block;
    font-size: 0.75rem;
    color: var(--primary-yellow);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.sidebar-post-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.sidebar-post-item:hover h4 {
    color: var(--primary-yellow);
}

.sidebar-post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Newsletter Sidebar */
.newsletter-card {
    text-align: center;
    background: linear-gradient(135deg, var(--card-bg), rgba(244, 180, 0, 0.05));
}

.newsletter-icon {
    width: 60px;
    height: 60px;
    background: rgba(244, 180, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-yellow);
    font-size: 1.5rem;
}

.newsletter-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.sidebar-newsletter-form-new {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-newsletter-form-new input {
    padding: 12px;
    border-radius: 8px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    color: var(--white);
    outline: none;
}

.sidebar-newsletter-form-new button {
    padding: 12px;
    border-radius: 8px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sidebar-newsletter-form-new button:hover {
    background: var(--white);
}

/* Responsive Blog Single */
@media (max-width: 1200px) {
    .article-layout-new {
        grid-template-columns: 1fr 350px;
        gap: 40px;
    }
    
    .share-sidebar {
        display: none; /* Hide sticky share on smaller screens */
    }
}

@media (max-width: 992px) {
    .article-layout-new {
        grid-template-columns: 1fr;
    }
    
    .article-hero-title {
        font-size: 2.5rem;
    }
    
    .article-sidebar-new {
        margin-top: 60px;
    }
    
    .mobile-share-inline {
        display: flex;
        align-items: center;
    }
    .mobile-share-inline .share-btn-new {
        width: 40px;
        height: 40px;
    }
    .share-bar-inline {
        display: none;
    }
}

@media (max-width: 576px) {
    .article-hero {
        padding: 100px 0 40px;
    }
    
    .article-hero-title {
        font-size: 2rem;
    }
    
    .featured-image-wrapper {
        border-radius: 12px;
        max-height: 300px;
    }
    
    .article-body-new {
        font-size: 1rem;
    }
    
    .announcement-share-inline .share-btn-new {
        width: 40px;
        height: 40px;
    }
}

/* --- Events Page Redesign --- */

.events-filter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.month-filter-modern .select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.month-filter-modern .select-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--primary-yellow);
    z-index: 2;
    pointer-events: none;
}

.month-filter-modern select {
    padding: 10px 40px 10px 40px;
    background: var(--card-bg);
    color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    appearance: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
    min-width: 180px;
}

.month-filter-modern select:hover,
.month-filter-modern select:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.1);
}

.search-form-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}
.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}
.search-input-wrapper i {
    color: var(--text-muted);
    font-size: 1rem;
}
.search-input-wrapper input {
    background: transparent;
    border: none;
    color: var(--white);
    width: 100%;
    outline: none;
    padding: 10px 0;
}
.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}
.search-form-modern .btn-primary {
    border-radius: 30px;
    padding: 10px 18px;
}

@media (max-width: 768px) {
    .search-container-modern {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .search-form-modern {
        width: 100%;
    }
    .search-input-wrapper {
        padding: 0 14px;
    }
    .search-form-modern .btn-primary {
        padding: 10px 20px;
        border-radius: 30px;
        flex: 0 0 auto;
    }
    .month-filter-modern {
        width: 100%;
        min-width: unset;
    }
    .month-filter-modern select {
        width: 100%;
    }
}
.events-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.event-card-grid {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card-grid:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-color: rgba(244, 180, 0, 0.3);
}

.event-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card-grid:hover .event-card-image img {
    transform: scale(1.1);
}

.event-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--dark-bg);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--primary-yellow);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.event-date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-yellow);
    text-transform: uppercase;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.event-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.event-cat {
    color: var(--primary-yellow);
    font-weight: 700;
    text-transform: uppercase;
}

.event-time {
    color: var(--text-muted);
}

.event-card-grid h3 {
    margin-bottom: 15px;
    line-height: 1.4;
}

.event-card-grid h3 a {
    color: var(--white);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.event-card-grid h3 a:hover {
    color: var(--primary-yellow);
}

.event-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-location i {
    color: var(--primary-yellow);
}

.event-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.event-card-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-link {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.read-more-link:hover {
    color: var(--primary-yellow);
    gap: 10px;
}

.register-link-sm {
    padding: 6px 15px;
    background: rgba(244, 180, 0, 0.1);
    color: var(--primary-yellow);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-link-sm:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
}

@media (max-width: 992px) {
    .events-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .month-filter-modern {
        width: 100%;
    }
    
    .month-filter-modern select {
        width: 100%;
    }
    
    .events-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------
   Calendar Section
   ------------------------------------------------------------------- */
.calendar-section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.calendar-container-modern {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendar-container-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.calendar-header h3 {
    font-size: 1.8rem;
    color: var(--white);
    margin: 0;
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.cal-nav-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cal-nav-btn:hover {
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
}

.cal-today-btn {
    background-color: transparent;
    border: 1px solid var(--primary-yellow);
    color: var(--primary-yellow);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cal-today-btn:hover {
    background-color: var(--primary-yellow);
    color: var(--dark-bg);
}

/* Body */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 15px;
}

.calendar-weekdays div {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day {
    aspect-ratio: 1;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    border: 1px solid transparent;
    color: var(--text-color);
}

.day:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.day.prev-month, .day.next-month {
    opacity: 0.3;
    pointer-events: none;
}

.day.today {
    border-color: var(--primary-yellow);
    background-color: rgba(255, 193, 7, 0.05);
}

.day.selected {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Event Dots */
.event-dots {
    display: flex;
    gap: 4px;
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

.event-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
}

.day.has-event {
    font-weight: 600;
    color: var(--white);
}

/* Footer / Legend */
.calendar-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.calendar-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.has-event {
    background-color: var(--primary-yellow);
}

.dot.today {
    border: 1px solid var(--primary-yellow);
    background-color: transparent;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-container-modern {
        padding: 20px;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .calendar-nav {
        order: 2;
    }
    
    .calendar-header h3 {
        order: 1;
        font-size: 1.5rem;
    }
    
    .cal-today-btn {
        order: 3;
    }

    .calendar-days {
        gap: 5px;
    }
    
    .day {
        font-size: 0.8rem;
        padding: 5px;
    }
    
    .event-dot {
        width: 4px;
        height: 4px;
    }
}

/* Announcements Page Redesign */
.course-hero-modern {
    position: relative;
    padding: 140px 0 80px;
    color: var(--white);
}
.course-hero-modern .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.course-hero-modern .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transform: scale(1.02);
}
.course-hero-modern .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}
.course-hero-modern .container {
    position: relative;
    z-index: 1;
}
.breadcrumb-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    margin-bottom: 16px;
}
.breadcrumb-modern a {
    color: var(--white);
    opacity: 0.85;
}
.breadcrumb-modern a:hover {
    opacity: 1;
}
.hero-content-modern {
    max-width: 900px;
}
.hero-content-modern .category-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    margin-bottom: 12px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hero-content-modern h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 12px;
}
.hero-content-modern .hero-description {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
    margin-bottom: 20px;
}
.btn-cta-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--accent-yellow));
    color: var(--dark-bg);
    font-weight: 700;
    border: 1px solid var(--primary-yellow);
}
.btn-cta-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244,180,0,0.3);
}
.course-content-modern {
    background: var(--dark-bg);
    padding: 40px 0 80px;
}
.content-tabs-modern {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.tab-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.04);
    color: var(--white);
    font-weight: 600;
}
.tab-btn.active {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
}
.tab-content-container {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-bg);
    padding: 30px;
}
.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
}
.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}
.course-highlight-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    color: var(--text-secondary);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.course-highlight-card i {
    color: var(--primary-yellow);
    margin-bottom: 8px;
}
.course-highlight-card h4 {
    color: var(--white);
    margin-bottom: 6px;
    font-size: 1.05rem;
}
.course-highlight-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary-yellow);
}
.course-sidebar-modern {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.info-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
}
.info-card h3 {
    color: var(--white);
    margin-bottom: 12px;
}
.info-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px 16px;
    color: var(--text-secondary);
}
.requirements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
}
.requirement-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: start;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
}
.req-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
}
.req-icon i {
    color: var(--primary-yellow);
}
.req-content h4 {
    color: var(--white);
    margin-bottom: 4px;
}
.required-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(244,180,0,0.15);
    color: var(--white);
    border: 1px solid var(--primary-yellow);
    font-size: 0.8rem;
}
@media (max-width: 991px) {
    .hero-content-modern h1 { font-size: 2rem; margin-bottom: 8px; }
    .hero-description { font-size: 0.95rem; margin-bottom: 10px; }
    .overview-grid { grid-template-columns: 1fr; gap: 16px; }
    .highlights-grid { grid-template-columns: 1fr; gap: 10px; }
    .info-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .course-hero-modern { 
        padding: 0; 
        min-height: auto; 
        aspect-ratio: 4 / 3; 
        display: block;
    }
    .course-hero-modern .hero-background { 
        inset: 0; 
        height: 100%; 
    }
    .course-hero-modern .hero-background img { 
        width: 100%; 
        height: 100%; 
        object-fit: cover; 
    }
    .course-hero-modern .hero-overlay { 
        inset: 0; 
        height: 100%; 
    }
    .course-hero-modern .container { 
        position: absolute; 
        bottom: 0; 
        left: 0; 
        right: 0; 
        padding: 12px 15px; 
    }
}
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.announcement-card-grid {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.announcement-card-grid:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-color: rgba(244, 180, 0, 0.3);
}

.announcement-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.announcement-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.announcement-card-grid:hover .announcement-card-image img {
    transform: scale(1.1);
}

.announcement-date-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--dark-bg);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--primary-yellow);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2;
}

.announcement-date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.announcement-date-badge .month {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-yellow);
    text-transform: uppercase;
}

.announcement-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.announcement-meta {
    margin-bottom: 15px;
}

.announcement-cat {
    color: var(--primary-yellow);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.announcement-card-grid h3 {
    margin-bottom: 15px;
    line-height: 1.4;
}

.announcement-card-grid h3 a {
    color: var(--white);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.announcement-card-grid h3 a:hover {
    color: var(--primary-yellow);
}

.announcement-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.announcement-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 992px) {
    .announcements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .announcements-grid {
        grid-template-columns: 1fr;
    }
}

/* Announcement Single Page */
.announcement-single-container {
    padding: 60px 0;
    background-color: var(--dark-bg);
}

.single-announcement {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.announcement-meta-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.post-date i {
    margin-right: 5px;
    color: var(--primary-yellow);
}

.badge-featured {
    background: rgba(244, 180, 0, 0.2);
    color: var(--primary-yellow);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(244, 180, 0, 0.3);
}

.single-announcement h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 30px;
    line-height: 1.3;
}

.announcement-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.announcement-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.announcement-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid var(--border-color);
}

.share-btn:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    transform: translateY(-3px);
    border-color: var(--primary-yellow);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 1.1rem;
}

.btn-back:hover {
    color: var(--white);
    transform: translateX(-5px);
}

/* Sidebar Widgets */
.sidebar .widget {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.05);
    position: relative;
    color: var(--white);
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-yellow);
}

.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts-list a {
    text-decoration: none;
    display: block;
}

.recent-posts-list .date {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-yellow);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.recent-posts-list .title {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
    transition: 0.3s;
    font-size: 1rem;
}

.recent-posts-list a:hover .title {
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
}

/* Social Media Page */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.social-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    height: 100%;
}

.social-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-color: rgba(244, 180, 0, 0.3);
}

.social-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.social-card:hover .social-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.social-name {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.fb-embed {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2b2b2b;
    flex: 1 1 auto;
    display: block;
}

.fb-embed iframe {
    width: 100%;
    height: 600px;
    border: none;
}

.social-link-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.social-btn {
    display: inline-block;
    padding: 10px 30px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.social-card:hover .social-btn {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
}

.social-link:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    transform: translateY(-3px);
    border-color: var(--primary-yellow);
}

@media (max-width: 991px) {
    .single-announcement h1 {
        font-size: 2rem;
    }
}

/* =========================================
   MOBILE & TABLET OPTIMIZATION (FINAL PASS)
   ========================================= */

@media (max-width: 992px) {
    /* Tablet & Small Desktop Adjustments */
    html { font-size: 15px; } /* Slight base scale down */
    
    .container {
        padding: 0 20px;
        width: 100%;
    }
    .nav-links { gap: 12px; }
    .nav-search-input { width: clamp(120px, 22vw, 180px); }
    #searchForm { padding: 5px 12px; }
    
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.5rem !important; }
    
    .navbar {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    /* Mobile Landscape & Tablet Portrait */
    html { font-size: 14px; }
    
    body {
        line-height: 1.5;
    }

    /* Universal Grid Reset for Mobile */
    [class*="-grid"], 
    .news-layout-grid, 
    .happenings-grid, 
    .school-stats-row, 
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    /* Flex containers that should stack */
    .hero-container,
    .header-flex,
    .row {
        flex-direction: column;
    }
    
    /* Exceptions for Flex */
    .logo, .nav-toggle, .social-links, .pagination {
        flex-direction: row !important;
    }
    
    /* Typography Overrides */
    h1 { font-size: 1.8rem !important; line-height: 1.2; }
    h2 { font-size: 1.5rem !important; margin-bottom: 15px; }
    h3 { font-size: 1.3rem !important; }
    h4 { font-size: 1.1rem !important; }
    p { font-size: 0.95rem !important; }
    
    /* Navbar Mobile Fixes */
    .navbar {
        height: 70px;
        padding: 0 15px;
    }
    .nav-links { gap: 10px; }
    .nav-search-input { width: clamp(110px, 28vw, 160px); }
    #searchForm { padding: 4px 10px; }
    
    .logo-text .logo-main { font-size: 1.1rem !important; }
    .logo-text .logo-sub { display: none !important; }
    .logo-img { 
        height: 35px !important; 
        width: auto !important;
        max-height: 35px !important;
    }
    
    /* Spacing Adjustments */
    .section-padding { padding: 25px 0 !important; }
    .news-section { padding: 25px 0 !important; }
    .section-header { margin-bottom: 20px !important; }
    .container { padding: 0 15px !important; }
    
    /* Card Adjustments */
    .event-card-modern, 
    .announcement-card-grid,
    .post-card {
        margin-bottom: 20px;
    }
    
    /* Hero Section Fixes */
    .hero-content {
        padding: 20px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Table Responsive Wrapper */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Hide decorative elements on mobile if needed */
    .decorative-circle, .bg-shape {
        display: none;
    }
    
    /* Fix Navigation Menu on Mobile */
    .nav-menu {
        background: var(--darker-bg);
        padding-top: 0; /* No extra top space */
    }
    body.light-mode .nav-menu {
        background: #ffffff !important;
    }

    /* --- Blog Page Mobile Spacing Fixes --- */
    .courses-hero-v2, .blog-hero, .department-hero {
        padding: 30px 0 10px !important; /* Drastically reduced for mobile */
    }
    
    .blog-hero .hero-content-centered h1 {
        margin-bottom: 10px;
    }

    .blog-hero .hero-content-centered p {
        margin-bottom: 15px !important;
        font-size: 0.95rem !important;
    }
    
    .blog-content-section {
        padding: 0 0 20px 0 !important; /* Remove top padding, keep bottom */
    }
    
    .blog-filter-section {
        padding: 10px 0 !important;
        margin-bottom: 0 !important;
        top: 70px !important;
    }

    .category-filter {
        gap: 8px;
        padding-bottom: 5px;
    }
    
    .blog-newsletter {
        padding: 30px 0 !important;
    }
    
    .newsletter-content h3 {
        font-size: 1.5rem !important;
        margin-bottom: 10px;
    }

    .newsletter-content p {
        margin-bottom: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    /* Small Mobile Devices */
    html { font-size: 13px; }
    
    h1 { font-size: 1.6rem !important; }
    h2 { font-size: 1.35rem !important; }
    
    .btn, button, .nav-link {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
    
    .hero-stats-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .stat-divider { display: none; }
    
    .logo-text {
        display: flex;
        /* Actually keep it but maybe smaller */
    }
    
    .nav-search-box {
        display: none; /* Hide search bar on very small screens, maybe add a toggle icon instead */
    }
}

/* --- Admission Page Styles --- */
.row-flex {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6-flex {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .col-md-6-flex {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    border-top: 4px solid var(--primary-yellow);
    height: 100%;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 20px;
    font-size: 1.2rem;
}

.step-card h3 {
    margin-bottom: 15px;
    color: var(--primary-yellow);
}

.requirements-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    height: 100%;
    border: 1px solid var(--border-color);
}

.requirements-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary-yellow);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.requirements-box ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
}

.requirements-box ul li::before {
    content: "•";
    color: var(--primary-yellow);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-apply-online, .btn-contact-admission {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-apply-online {
    background: var(--primary-yellow);
    color: var(--dark-bg);
}

.btn-contact-admission {
    background: transparent;
    border: 2px solid var(--primary-yellow);
    color: var(--primary-yellow);
}

.btn-apply-online:hover, .btn-contact-admission:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 180, 0, 0.2);
}

.btn-contact-admission:hover {
    background: rgba(244, 180, 0, 0.1);
}

/* --- Contact Page Styles --- */
.contact-hero {
    padding: 50px 0 30px;
    background: var(--dark-bg);
    text-align: center;
}

.contact-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.contact-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: rgba(244, 180, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(244, 180, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-yellow);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin: 0;
}

.contact-details h4 {
    margin-bottom: 8px;
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 600;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* Ensure consistent vertical alignment when text wraps */
.contact-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-yellow);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.1);
}

.map-container {
    height: 450px;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    margin-top: 50px;
}

.submit-btn {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.submit-btn:hover {
    background: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 180, 0, 0.3);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 25px;
    }
    
    .contact-item { 
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-details {
        text-align: center;
    }
}

/* --- Light Mode Theme (Professional Redesign) --- */
body.light-mode {
    /* Backgrounds */
    --dark-bg: #f4f7f6;        /* Soft professional gray-blue tint */
    --darker-bg: #ffffff;      /* Pure white for inner containers */
    --card-bg: #ffffff;        /* White cards */
    
    /* Typography & Contrast */
    --text-primary: #2d3436;   /* Deep charcoal, softer than black */
    --text-secondary: #636e72; /* Slate gray for subtitles */
    --text-muted: #b2bec3;     /* Light gray for less important text */
    --white: #2d3436;          /* Redefine white to dark for text elements reusing this var */
    
    /* UI Elements */
    --border-color: #dfe6e9;   /* Subtle border */
    --shadow-soft: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03); /* Modern flat shadow */
    --shadow-hover: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
    
    /* Gradients */
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
    --gradient-hero: linear-gradient(135deg, #ffffff 0%, #f1f2f6 50%, #ffeaa7 100%); /* Subtle yellow hint at end */
}

/* Navbar Redesign */
body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

body.light-mode .logo-text .logo-main {
    color: var(--primary-yellow);
    text-shadow: none;
    font-weight: 800;
}

body.light-mode .logo-text .logo-sub {
    color: var(--text-secondary);
}

/* Footer Redesign - Professional Light Gray */
body.light-mode .footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

body.light-mode .footer h3 {
    color: var(--text-primary);
}

body.light-mode .footer-wave path {
    fill: #ffffff;
}

body.light-mode .footer-bottom {
    border-top: 1px solid var(--border-color);
    background: #f8f9fa;
    color: var(--text-muted);
}

/* Card Improvements */
body.light-mode .card,
body.light-mode .blog-card,
body.light-mode .event-card,
body.light-mode .course-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .card:hover,
body.light-mode .blog-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
}

body.light-mode .dept-logo-wrapper {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* Typography Overrides */
body.light-mode h1, 
body.light-mode h2, 
body.light-mode h3, 
body.light-mode h4 {
    color: #2d3436;
}

body.light-mode p {
    color: #636e72;
}

/* Buttons & Interactive Elements */
body.light-mode .btn-primary,
body.light-mode .submit-btn,
body.light-mode .hero-btn {
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(244, 180, 0, 0.2);
}

body.light-mode .btn-outline {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

body.light-mode .btn-outline:hover {
    background: var(--text-primary);
    color: #ffffff;
}

body.light-mode .hero-btn:hover {
    background: var(--primary-yellow);
    color: #ffffff;
}

/* Hero Section Specifics */
body.light-mode .hero-section {
    color: var(--text-primary);
    /* Stronger Yellow Gradient as requested */
    background: linear-gradient(-45deg, #ffffff, #fff176, #ffd54f, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

body.light-mode .hero-subtitle {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Reduced overlay opacity to let gradient show through */
body.light-mode .hero-overlay {
    background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.1) 100%);
}

/* Light Mode Circle Thingy (Logo Backdrop) - SIGNIFICANTLY DARKER & VISIBLE */
body.light-mode .logo-backdrop {
    background: rgba(0, 0, 0, 0.08); /* Darker gray to stand out against white */
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
    opacity: 1 !important; /* Force visibility */
    animation: pulse 4s infinite ease-in-out !important; /* Ensure animation runs */
}

/* Ensure pulse animation works in light mode by overriding opacity logic */
body.light-mode .logo-backdrop {
    animation-name: pulseLightMode !important;
}

@keyframes pulseLightMode {
    0% { transform: scale(1); opacity: 0.8; border-color: rgba(0,0,0,0.1); }
    50% { transform: scale(1.08); opacity: 0.4; border-color: rgba(244, 180, 0, 0.3); } /* Pulse with yellow hint */
    100% { transform: scale(1); opacity: 0.8; border-color: rgba(0,0,0,0.1); }
}

/* Input Fields */
body.light-mode .form-control {
    background: #ffffff;
    border: 1px solid #dfe6e9;
    color: var(--text-primary);
}

body.light-mode .form-control:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.15);
}

/* Light Mode Search Bar Fix */
body.light-mode .nav-search-box {
    background: rgba(0,0,0,0.05); /* Slight gray background for container */
    border: 1px solid #e0e0e0;
}

body.light-mode .nav-search-input {
    color: var(--text-primary); /* Dark text */
}

body.light-mode .nav-search-input::placeholder {
    color: #888888; /* Darker placeholder gray for visibility */
}

/* Light Mode Category Filter Background Fix */
body.light-mode .blog-filter-section,
body.light-mode .category-filter {
    background: transparent;
}

body.light-mode .filter-btn {
    background: #f5f5f5;
    color: var(--text-primary);
    border: 1px solid #e0e0e0;
}

body.light-mode .filter-btn:hover,
body.light-mode .filter-btn.active {
    background: var(--primary-yellow);
    color: #000;
    border-color: var(--primary-yellow);
}

/* Sticky Theme Toggle Button */
#theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-yellow);
    color: #121212; /* Always dark icon on yellow button */
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    animation: fadeIn 0.5s ease 1s forwards;
}

#theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Specific Light Mode Adjustments */
body.light-mode .card, 
body.light-mode .event-card, 
body.light-mode .course-card,
body.light-mode .blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* Light Mode Featured News Gradient Fix */
body.light-mode .featured-overlay {
    background: linear-gradient(to top, rgba(255,255,255,0.98) 10%, rgba(255,255,255,0.8) 50%, transparent);
}

body.light-mode .featured-info .meta-date {
    color: var(--text-muted);
}

body.light-mode .featured-info h3 a {
    color: var(--text-primary);
    text-shadow: none;
}

body.light-mode .featured-info p {
    color: var(--text-secondary);
}

body.light-mode .featured-info .read-more-link {
    color: var(--text-primary);
}

body.light-mode .featured-info .read-more-link:hover {
    color: var(--primary-yellow);
}

body.light-mode .nav-link {
    color: var(--text-primary);
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
    color: var(--primary-yellow);
}

body.light-mode .hero-section {
    color: var(--text-primary);
}

body.light-mode .hero-overlay {
    background: radial-gradient(circle at center, transparent 0%, rgba(255,255,255,0.4) 100%);
}

body.light-mode .hero-title span {
    color: var(--primary-yellow); /* Keep the yellow accent */
    text-shadow: none;
}

body.light-mode .hero-subtitle {
    color: var(--text-secondary);
}

/* Ensure form controls are visible in light mode */
body.light-mode .form-control {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid #ced4da;
}

body.light-mode .form-control:focus {
    background: #ffffff;
    border-color: var(--primary-yellow);
}


/* --- Shared Components --- */

/* No Content / Empty State */
.no-courses {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255,255,255,0.02);
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    color: var(--text-muted);
    margin: 20px 0;
    transition: var(--transition);
}

.no-courses:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(244, 180, 0, 0.3);
}

.no-courses i {
    color: var(--primary-yellow);
    margin-bottom: 25px;
    opacity: 0.6;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.no-courses h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-courses p {
    max-width: 500px;
    margin: 0 auto;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* View All Button Redesign */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s ease;
    background: transparent;
    color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-view-all::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--primary-yellow);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-view-all:hover {
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(244, 180, 0, 0.3);
}

.btn-view-all:hover::before {
    width: 100%;
}

/* --- Scholarship Page Styles --- */
.scholarships-section {
    padding: 40px 0;
}

.scholarships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.scholarship-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
}

.scholarship-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.scholarship-card .card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.scholarship-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.scholarship-card:hover .card-image img {
    transform: scale(1.1);
}

.scholarship-card .deadline-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
}

.scholarship-card .deadline-badge.expired {
    background: rgba(231, 76, 60, 0.9);
}

.scholarship-card .card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.scholarship-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.3;
}

.scholarship-amount {
    color: var(--primary-yellow);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scholarship-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.requirements-preview {
    background: rgba(244, 180, 0, 0.05); /* Subtle yellow tint */
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-yellow);
    transition: background 0.3s ease;
}

.requirements-preview:hover {
    background: rgba(244, 180, 0, 0.08);
}

.requirements-preview h4 {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirements-preview ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-preview li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.requirements-preview li::before {
    content: "\f00c"; /* FontAwesome check */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-yellow);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

.scholarship-card .card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.btn-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--primary-yellow);
    border: 1px solid var(--primary-yellow);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
}

.btn-apply:hover {
    background: var(--primary-yellow);
    color: #000;
}

.scholarship-card .card-footer .btn-group {
    display: flex;
    gap: 10px;
}

.scholarship-card .card-footer .btn-group .btn-apply {
    width: auto;
    flex: 1;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 12px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
}

.btn-details:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
    border-color: var(--white);
}

/* Light Mode Support for Scholarship Cards */
body.light-mode .scholarship-card {
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body.light-mode .scholarship-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

body.light-mode .requirements-preview {
    background: rgba(244, 180, 0, 0.1);
    border-left-color: var(--primary-yellow);
}

body.light-mode .requirements-preview h4 {
    color: #d35400; /* Darker orange/yellow for contrast on light bg */
}

body.light-mode .requirements-preview li {
    color: #555;
}

body.light-mode .no-courses {
    background: #ffffff;
    border-color: #e0e0e0;
}
body.light-mode .no-courses h3 { color: #333; }
body.light-mode .no-courses p { color: #666; }
body.light-mode .no-courses:hover {
    background: #fff8e1;
    border-color: var(--primary-yellow);
}

body.light-mode .btn-view-all {
    color: #333;
    border-color: var(--primary-yellow);
}
body.light-mode .btn-view-all:hover {
    color: #fff;
}

body.light-mode .scholarship-card .card-footer {
    border-top-color: #f0f0f0;
}

body.light-mode .btn-details {
    color: var(--text-secondary);
    border-color: #ddd;
}

body.light-mode .btn-details:hover {
    background: #f0f0f0;
    color: var(--text-primary);
    border-color: #ccc;
}

/* Light Mode fix for scholarship deadline badge text contrast */
body.light-mode .scholarship-card .deadline-badge {
    background: #333333;
    color: #ffffff;
    border-color: #cccccc;
}
body.light-mode .scholarship-card .deadline-badge.expired {
    color: #ffffff;
}


@media (max-width: 768px) {
    .scholarships-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Scholarship Detail Page Styles --- */
.scholarship-detail-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 50px;
    border: 1px solid rgba(255,255,255,0.05);
}

.detail-header {
    display: flex;
    flex-wrap: wrap;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.detail-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.detail-info {
    flex: 1;
    padding: 40px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.detail-amount {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.detail-amount i {
    color: var(--primary-yellow);
    margin-right: 8px;
}

.detail-deadline {
    margin-bottom: 25px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.status-badge.open { background: rgba(46, 125, 50, 0.2); color: #81c784; }
.status-badge.closed { background: rgba(198, 40, 40, 0.2); color: #e57373; }
.status-badge.urgent { background: rgba(239, 108, 0, 0.2); color: #ffb74d; }

.detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-lg {
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-yellow);
    color: #000;
    border: none;
}
.btn-primary:hover {
    background: #e6c200; /* Darker yellow */
    transform: translateY(-2px);
    color: #000;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-secondary);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.detail-body {
    padding: 40px;
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h2 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-yellow);
    padding-bottom: 10px;
    display: inline-block;
}

.detail-section h2 i {
    margin-right: 10px;
    color: var(--primary-yellow);
}

.content-text {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.requirements-list ul {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.requirements-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-yellow);
}

.breadcrumbs {
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.breadcrumbs a {
    color: var(--primary-yellow);
    text-decoration: none;
}
.breadcrumbs i {
    font-size: 0.7rem;
    margin: 0 8px;
    color: var(--text-muted);
}
.breadcrumbs span {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
    }
    .detail-image {
        max-width: 100%;
    }
    .detail-info {
        padding: 30px 20px;
    }
    .detail-body {
        padding: 30px 20px;
    }
    .detail-actions {
        flex-direction: column;
    }
    .btn-lg {
        justify-content: center;
    }
}

/* Light Mode Overrides for Scholarship Detail */
body.light-mode .scholarship-detail-card {
    background: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

body.light-mode .detail-header {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

body.light-mode .detail-info h1 {
    color: var(--primary-color);
}

body.light-mode .detail-amount {
    color: #2c3e50;
}

body.light-mode .detail-amount i {
    color: var(--secondary-color);
}

body.light-mode .detail-deadline {
    color: #666;
}

body.light-mode .status-badge.open { background: #e8f5e9; color: #2e7d32; }
body.light-mode .status-badge.closed { background: #ffebee; color: #c62828; }
body.light-mode .status-badge.urgent { background: #fff3e0; color: #ef6c00; }

body.light-mode .btn-primary {
    background: var(--primary-color);
    color: white;
}
body.light-mode .btn-primary:hover {
    background: var(--primary-dark);
}

body.light-mode .btn-secondary {
    background: white;
    border: 1px solid #ddd;
    color: #666;
}
body.light-mode .btn-secondary:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #333;
}

body.light-mode .detail-section h2 {
    color: #333;
    border-bottom-color: var(--secondary-color);
}

body.light-mode .detail-section h2 i {
    color: var(--primary-color);
}

body.light-mode .content-text {
    color: #444;
}

/* --- Slideshow Styles (Added for Blog Single) --- */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    z-index: 10;
    text-decoration: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
    color: var(--primary-yellow);
}


body.light-mode .requirements-list li {
    color: #444;
}

body.light-mode .requirements-list li:before {
    color: var(--secondary-color);
}

body.light-mode .breadcrumbs {
    color: #666;
}

/* =========================================
   Homepage Scholarships Horizontal Scroll
   ========================================= */
.scholarships-horizontal-scroll {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 5px 35px 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-yellow) rgba(255, 255, 255, 0.05);
}

.scholarships-horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.scholarships-horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.scholarships-horizontal-scroll::-webkit-scrollbar-thumb {
    background-color: var(--primary-yellow);
    border-radius: 4px;
}

.scholarships-horizontal-scroll .scholarship-card {
    min-width: 350px;
    width: 350px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .scholarships-horizontal-scroll .scholarship-card {
        min-width: 280px;
        width: 280px;
    }
}
body.light-mode .breadcrumbs a {
    color: var(--primary-color);
}
body.light-mode .breadcrumbs i {
    color: #ccc;
}
body.light-mode .breadcrumbs span {
    color: #666;
}
/* New Organizational Tree CSS */
.org-tree-section {
    background: var(--darker-bg);
    overflow: hidden; /* Prevent overflow from lines */
}

.org-tree-wrapper {
    position: relative;
    padding: 20px 0;
}

.tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px; /* Vertical gap between levels */
    padding: 20px 0;
}

.tree-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

/* Vertical line connecting levels (Group to Group) */
.tree-level:not(:first-child)::before {
    content: '';
    position: absolute;
    top: -60px; /* Extends up into the gap */
    left: 50%;
    width: 2px;
    height: 60px;
    background: var(--primary-yellow);
    transform: translateX(-50%);
    z-index: 0;
}

.level-title-box {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.level-label {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
}

/* Connector line from Title down to Nodes */
.level-title-box::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    width: 2px;
    height: 40px;
    background: var(--primary-yellow);
    transform: translateX(-50%);
    z-index: 0;
}

.level-nodes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    width: 100%;
}

.tree-node {
    position: relative;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Vertical Line Up from Node */
.tree-node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 20px;
    background: var(--primary-yellow);
    transform: translateX(-50%);
}

/* Horizontal Connector Line */
.tree-node::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-yellow);
    z-index: 0;
}

/* First child: Line starts from center to right */
.tree-node:first-child::after {
    left: 50%;
    width: 50%;
}

/* Last child: Line starts from left to center */
.tree-node:last-child::after {
    left: 0;
    width: 50%;
}

/* Single child: No horizontal line */
.tree-node:only-child::after {
    display: none;
}
.tree-node:only-child::before {
    /* Ensure the vertical line connects properly */
    height: 20px;
    top: 0;
}

/* Node Card Styling */
.node-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    width: 220px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.node-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-yellow);
}

.node-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-yellow);
    background: var(--dark-bg);
}

.node-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.node-info h4 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 5px;
    line-height: 1.2;
}

.node-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.slrc-section {
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.slrc-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* LEFT COLUMN */
.slrc-left {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
}

.slrc-left h2 {
  color: #f4b400; /* yellow accent */
  margin-bottom: 15px;
}

/* RIGHT COLUMN */
.slrc-right {
  display: grid;
  grid-template-rows: repeat(3, auto);
  gap: 20px;
}

.slrc-box {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
}

.slrc-box h3 {
  color: #444;
  margin-bottom: 10px;
}

/* RESPONSIVE (mobile) */
@media (max-width: 768px) {
  .slrc-container {
    grid-template-columns: 1fr;
  }
}

/* Leadership Section */
/* Creative Leadership Section */
.leadership-section {
    position: relative;
    overflow: hidden;
}

.leadership-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(244, 180, 0, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(67, 97, 238, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.leadership-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.leader-card { flex: 0 1 520px; margin: 0 auto; }

.leader-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-yellow), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leader-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border-color: var(--primary-yellow-30, rgba(244, 180, 0, 0.3));
    background: rgba(30, 30, 30, 0.8);
}

.leader-card:hover::before {
    opacity: 1;
}

.leader-img-wrapper {
    flex-shrink: 0;
    width: 130px;
    height: 130px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    transform: rotate(-3deg);
    border: 2px solid rgba(255,255,255,0.1);
}

.leader-card:hover .leader-img-wrapper {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 5px 5px 20px var(--primary-yellow-20, rgba(244, 180, 0, 0.2));
    border-color: var(--primary-yellow);
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(110%);
    transition: filter 0.4s ease;
}

.leader-card:hover .leader-img {
    filter: grayscale(0%) contrast(100%);
}

.leader-content {
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

/* Watermark Quote */
.quote-icon {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.03);
    font-family: 'Georgia', serif;
    line-height: 1;
    pointer-events: none;
    z-index: -1;
    transition: transform 0.4s ease;
    margin-bottom: 0; /* Override old margin */
    opacity: 1; /* Override old opacity */
}

.leader-card:hover .quote-icon {
    transform: rotate(10deg) scale(1.1);
    color: var(--primary-yellow-08, rgba(244, 180, 0, 0.08));
}

.leader-message {
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-family: 'Georgia', serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.leader-info {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    display: inline-block;
    width: 100%;
}

.leader-info h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 2px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.leader-role {
    font-size: 0.85rem;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .leader-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px;
    }
    
    .leader-card::before {
        width: 100%;
        height: 4px;
        background: linear-gradient(to right, var(--primary-yellow), transparent);
    }
    
    .leader-img-wrapper {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
        transform: rotate(0);
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    .leader-info {
        border-top: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 15px;
        padding-top: 0;
        margin-bottom: 15px;
    }
    
    .quote-icon {
        font-size: 6rem;
        top: 0;
        right: 10px;
    }
}

/* Light Mode Overrides */
body.light-mode .leader-card {
    background: #ffffff;
    border-color: #e0e0e0;
}

body.light-mode .leader-info h3 {
    color: var(--text-primary);
}

body.light-mode .leader-message {
    color: #555;
}

/* Curriculum Grid */
.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.curriculum-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
}

.curriculum-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-yellow);
}

.curriculum-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.curriculum-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.curriculum-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.curriculum-overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.curriculum-item:hover .curriculum-overlay {
    opacity: 1;
}

.curriculum-item:hover .curriculum-overlay i {
    transform: scale(1);
}

.curriculum-item:hover img {
    transform: scale(1.05);
}

/* Light Mode Overrides for Curriculum */
body.light-mode .curriculum-item {
    background: #ffffff;
    border-color: #e0e0e0;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 100px; /* Below navbar */
    right: 20px;
    background: var(--card-bg);
    border-left: 4px solid var(--primary-yellow);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    z-index: 9999;
    width: 350px;
    max-width: 90vw;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.notification-toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    gap: 15px;
    position: relative;
}

.toast-icon {
    background: rgba(244, 180, 0, 0.1);
    color: var(--primary-yellow);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.toast-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-yellow);
    text-transform: uppercase;
}

.toast-message {
    font-size: 0.95rem;
    color: var(--white);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.toast-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: underline;
    margin-top: 5px;
    transition: var(--transition);
}

.toast-link:hover {
    color: var(--primary-yellow);
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-left: 5px;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--white);
}


/* --- Top Notchers Slider --- */
.top-notchers-widget .tn-slide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.top-notchers-widget .tn-slide.active {
    opacity: 1;
}
.top-notchers-widget .tn-prev,
.top-notchers-widget .tn-next {
    opacity: 0;
    transition: opacity 0.3s;
}
.top-notchers-widget:hover .tn-prev,
.top-notchers-widget:hover .tn-next {
    opacity: 1;
}

/* --- Modern Course Detail Styles (Refactored) --- */

/* Hero Section */
.course-hero-modern {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, var(--dark-bg) 100%);
}

.course-hero-modern .container,
.course-content-modern .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    width: 100%;
}

.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.breadcrumb-modern a {
    color: var(--primary-yellow);
    text-decoration: none;
}

.breadcrumb-modern i {
    font-size: 0.7rem;
    opacity: 0.7;
    color: var(--text-secondary);
}

.hero-content-modern {
    max-width: 700px;
}

.category-badge {
    display: inline-block;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.hero-content-modern h1 {
    font-size: 3rem;
    margin-bottom: 12px;
    line-height: 1.2;
    color: var(--white);
}

.hero-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--text-primary);
}

.hero-stats-modern {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.hero-stats-modern .stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--white);
}

.hero-stats-modern i {
    color: var(--primary-yellow);
}

.btn-cta-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    padding: 16px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(244, 180, 0, 0.3);
}

.btn-cta-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(244, 180, 0, 0.4);
    background: var(--white);
}

/* Content Tabs */
.course-content-modern {
    background: var(--dark-bg);
    padding: 20px 0;
}

.content-tabs-modern {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 14px;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    border-radius: 30px;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--dark-bg);
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    box-shadow: 0 4px 12px rgba(244, 180, 0, 0.2);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.overview-main h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.overview-main > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.course-highlight-card {
    background: var(--card-bg);
    padding: 18px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.course-highlight-card i {
    width: 50px;
    height: 50px;
    background: rgba(244, 180, 0, 0.1);
    color: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 15px;
}

.course-highlight-card h4 {
    margin-bottom: 8px;
    color: var(--white);
}

.course-highlight-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Sidebar */
.course-sidebar-modern .info-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.course-sidebar-modern h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.info-list li {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.info-list li i {
    color: var(--primary-yellow);
    width: 20px;
}

.info-list li strong {
    color: var(--text-primary);
}

/* Requirements */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.requirement-card {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid;
    border: 1px solid var(--border-color);
    border-left-width: 4px;
}

.requirement-card.blue { border-left-color: #1976d2; }
.requirement-card.green { border-left-color: #388e3c; }
.requirement-card.orange { border-left-color: #f57c00; }
.requirement-card.purple { border-left-color: #7b1fa2; }

.req-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.requirement-card.blue .req-icon { background: rgba(25, 118, 210, 0.2); color: #64b5f6; }
.requirement-card.green .req-icon { background: rgba(56, 142, 60, 0.2); color: #81c784; }
.requirement-card.orange .req-icon { background: rgba(245, 124, 0, 0.2); color: #ffb74d; }
.requirement-card.purple .req-icon { background: rgba(123, 31, 162, 0.2); color: #ba68c8; }

.req-content h4 {
    margin-bottom: 8px;
    color: var(--white);
}

.req-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.required-badge {
    display: inline-block;
    background: rgba(198, 40, 40, 0.2);
    color: #ef5350;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Curriculum Timeline */
.curriculum-timeline {
    position: relative;
    padding-left: 40px;
}

.curriculum-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    width: 32px;
    height: 32px;
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
}

.timeline-content {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: var(--white);
    font-size: 1.2rem;
}

.timeline-content > p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.topics-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.topic-tag-modern {
    background: rgba(25, 118, 210, 0.15);
    color: #64b5f6;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Outcomes */
.outcomes-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.outcome-card-modern {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.outcome-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
}

.outcome-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #FFA500 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.outcome-card-modern h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.outcome-card-modern p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .overview-grid,
    .requirements-grid,
    .outcomes-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content-modern h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content-modern h1 { font-size: 2rem; }
    .hero-stats-modern { 
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: center;
        gap: 15px; 
    }
    .content-tabs-modern {
        gap: 8px;
        padding-bottom: 10px;
    }
    .tab-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        flex: 1 1 calc(50% - 8px);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        flex: 1 1 100%;
    }
}

/* --- Light Mode Overrides for Course --- */
body.light-mode .course-hero-modern .hero-overlay {
    /* Keep hero dark but ensure it blends or stands out */
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(26,31,46,0.95) 100%);
}
/* If content is light, we might want the hero bottom to be light? 
   But we decided to keep hero dark. */

/* Ensure hero text renders light in light mode */
body.light-mode .course-hero-modern .hero-content-modern h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.35) !important;
}
body.light-mode .course-hero-modern .hero-content-modern .hero-description {
    color: rgba(255,255,255,0.92) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25) !important;
}
body.light-mode .course-hero-modern .hero-content-modern .category-badge {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.6) !important;
    background: rgba(0,0,0,0.25) !important;
}

body.light-mode .course-content-modern {
    background: #f8f9fa;
}

body.light-mode .highlight-card,
body.light-mode .course-sidebar-modern .info-card,
body.light-mode .requirement-card,
body.light-mode .timeline-content,
body.light-mode .outcome-card-modern {
    background: #ffffff;
    border-color: #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Highlights: ensure full section switches to light visuals */
body.light-mode .highlight-header {
    background: rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
body.light-mode .highlight-header h3 {
    color: #333;
}
body.light-mode .highlight-info {
    background: #ffffff;
}
body.light-mode .highlight-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
body.light-mode .hl-prev,
body.light-mode .hl-next {
    background: rgba(0, 0, 0, 0.06);
    color: #666;
}
body.light-mode .hl-prev:hover,
body.light-mode .hl-next:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
}

body.light-mode .overview-main h2,
body.light-mode .highlight-card h4,
body.light-mode .course-sidebar-modern h3,
body.light-mode .req-content h4,
body.light-mode .timeline-content h4,
body.light-mode .outcome-card-modern h4 {
    color: #333;
}

body.light-mode .overview-main > p,
body.light-mode .highlight-card p,
body.light-mode .info-list li,
body.light-mode .req-content p,
body.light-mode .timeline-content > p,
body.light-mode .outcome-card-modern p {
    color: #666;
}

body.light-mode .info-list li strong {
    color: #333;
}

body.light-mode .tab-btn {
    color: #666;
    border-color: #dee2e6;
}
body.light-mode .tab-btn:hover,
body.light-mode .tab-btn.active {
    background: var(--primary-yellow);
    color: #1a1f2e;
    border-color: var(--primary-yellow);
}

body.light-mode .requirement-card.blue .req-icon { background: #e3f2fd; color: #1976d2; }
body.light-mode .requirement-card.green .req-icon { background: #e8f5e9; color: #388e3c; }
body.light-mode .requirement-card.orange .req-icon { background: #fff3e0; color: #f57c00; }
body.light-mode .requirement-card.purple .req-icon { background: #f3e5f5; color: #7b1fa2; }

body.light-mode .topic-tag-modern {
    background: #e3f2fd;
    color: #1976d2;
}

body.light-mode .required-badge {
    background: #ffebee;
    color: #c62828;
}


/* =========================================
   Search Page Professional Design (Hero)
   ========================================= */

.search-hero-section {
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    padding: 100px 0 60px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
body.light-mode .search-hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Background Effect */
.search-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 180, 0, 0.05) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
    pointer-events: none;
}
body.light-mode .search-hero-section::before {
    background: radial-gradient(circle, rgba(0,0,0,0.05) 0%, transparent 60%);
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.search-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
    letter-spacing: -1px;
}
body.light-mode .search-hero-content h1 {
    color: var(--text-primary);
}

.search-hero-content .hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 300;
}
body.light-mode .search-hero-content .hero-subtitle {
    color: var(--text-secondary);
}

.search-hero-content .hero-subtitle strong {
    color: var(--primary-yellow);
    font-weight: 500;
}

.search-hero-content .results-count {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    gap: 10px;
}
body.light-mode .search-hero-content .results-count {
    background: rgba(0,0,0,0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(0,0,0,0.1);
}

.search-hero-content .count-badge {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Professional Search Form */
.search-again-hero {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-again-hero .input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
body.light-mode .search-again-hero .input-group {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.search-again-hero .input-group:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(244, 180, 0, 0.5);
    box-shadow: 0 10px 40px rgba(244, 180, 0, 0.15);
}
body.light-mode .search-again-hero .input-group:focus-within {
    background: rgba(0,0,0,0.08);
    border-color: var(--primary-yellow);
    box-shadow: 0 10px 30px rgba(244,180,0,0.15);
}

.search-again-hero input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    color: var(--white);
    outline: none;
    font-weight: 400;
}
body.light-mode .search-again-hero input {
    color: var(--text-primary);
}

.search-again-hero input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}
body.light-mode .search-again-hero input::placeholder {
    color: #888888;
}

.search-again-hero button {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-again-hero button:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(244, 180, 0, 0.3);
}

/* =========================================
   Search Page Results Styles
   ========================================= */

.search-results-section {
    padding: 60px 0;
    background-color: var(--dark-bg);
    min-height: 60vh;
}

/* Filter Tabs */
.search-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
    text-decoration: none;
}

.filter-tab:hover {
    border-color: var(--primary-yellow);
    color: var(--white);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(244, 180, 0, 0.3);
}

/* Results Grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.search-result-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.search-result-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(244, 180, 0, 0.3);
}

/* Type Badge */
.result-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.type-blog { background: #3498db; color: white; }
.type-announcement { background: #e74c3c; color: white; }
.type-event { background: #2ecc71; color: white; }
.type-scholarship { background: #f4b400; color: #1a1a1a; }
.type-magmasid { background: #8e44ad; color: white; }
.type-ageless { background: #d35400; color: white; }

/* Image */
.result-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.search-result-card:hover .result-image img {
    transform: scale(1.1);
}

/* Content */
.result-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Prevent badge overlap when card has no image */
.search-result-card.no-image .result-content {
    padding-top: 64px;
}

.result-category {
    font-size: 0.8rem;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.result-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.result-content h3 a {
    color: var(--white);
    transition: color 0.3s ease;
    text-decoration: none;
}

.result-content h3 a:hover {
    color: var(--primary-yellow);
}

.result-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.result-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-meta i {
    color: var(--primary-yellow);
}

.result-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.result-excerpt mark {
    background: rgba(244, 180, 0, 0.3);
    color: var(--white);
    padding: 0 2px;
    border-radius: 2px;
}

.result-actions {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.result-actions .btn-read-more {
    color: var(--dark-bg);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
    text-decoration: none;
}

.result-actions .btn-read-more:hover {
    gap: 12px;
    color: var(--white);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.no-results i.fa-search {
    color: var(--border-color);
    margin-bottom: 25px;
    font-size: 4rem;
}

.no-results h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.no-results p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.no-results .suggestions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.no-results .suggestions a {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: var(--primary-yellow);
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
}

.no-results .suggestions a:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
}

/* Pagination */
.search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
}

.page-link, .page-number {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    font-weight: 600;
    text-decoration: none;
}

.page-link {
    width: auto;
    padding: 0 20px;
    border-radius: 50px;
}

.page-link:hover, .page-number:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.page-number.active {
    background: var(--primary-yellow);
    color: var(--dark-bg);
    border-color: var(--primary-yellow);
}

/* Responsive */
@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tab {
        text-align: center;
    }
    
    /* Extra clearance on mobile for badge */
    .search-result-card.no-image .result-content {
        padding-top: 72px;
    }
}

/* --- Professional Redesign: Department Detail --- */

/* Org Chart Enhancements */
.org-chart-wrapper {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.org-chart-container {
    position: relative;
    overflow: auto; /* Allow scrolling if image is huge */
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    text-align: center;
    padding: 20px;
}

.org-chart-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
    transition: transform 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.org-chart-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.org-chart-container:hover .org-chart-overlay {
    opacity: 1;
}

/* Light Mode support for Org Chart */
body.light-mode .org-chart-wrapper {
    background: #fff;
    border-color: #e0e0e0;
}

body.light-mode .org-chart-container {
    background: #f8f9fa;
}

/* Enhanced Hero Typography */
.dept-detail-hero h1 {
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

.dept-tagline {
    font-size: 1.3rem;
    font-weight: 300;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Mission Vision Card Polish */
.mv-card-modern {
    background: linear-gradient(145deg, var(--card-bg), rgba(30,30,30,0.8));
    border: 1px solid rgba(255,255,255,0.05);
}

.mv-card-modern:hover {
    background: linear-gradient(145deg, var(--card-bg), rgba(40,40,40,0.9));
    border-color: var(--primary-yellow);
    transform: translateY(-8px);
}

/* Section Header Polish */
.section-subtitle {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-yellow);
    font-size: 0.9rem;
}

.section-header h2 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--primary-yellow);
    margin: 20px auto 0;
    border-radius: 3px;
    position: relative;
}

.section-line::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-yellow);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(244, 180, 0, 0.5);
}

@media (max-width: 768px) {
    /* Mobile-friendly featured blog card relayout (no overlay whitespace) */
    .news-featured-large { min-height: auto !important; }
    .featured-img-container { height: auto !important; overflow: visible !important; }
    .featured-img-container img { height: auto !important; max-height: 320px; display: block; }
    .featured-overlay { position: static !important; background: transparent !important; padding: 14px !important; }
    .featured-info h3 { margin: 8px 0 !important; font-size: 1.35rem !important; }
    .featured-info p { margin-bottom: 1rem !important; }

    /* Blog featured image container should fit the image height */
    .featured-image { min-height: 0 !important; height: auto !important; }
    .featured-image img { height: auto !important; width: 100%; object-fit: contain; }
}
