/* Federal Medical College - Main Stylesheet */

:root {
    --primary-color: #800000;
    --secondary-color: #ffffff;
    --accent-color: #a91b20;
    --success-color: #8b0000;
    --danger-color: #a91b20;
    --warning-color: #cd5c5c;
    --info-color: #800020;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --text-color: #334155;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-color);
}



/* Popup Banner Styles */
.popup-banner-modal .modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.popup-banner-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.popup-banner-modal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.popup-banner-modal .modal-body {
    padding: 2rem;
    text-align: center;
}

.popup-banner-modal .modal-body img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.popup-banner-modal .modal-footer {
    border-top: none;
    padding: 1rem 2rem 2rem;
    justify-content: center;
}

.popup-banner-modal .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.popup-banner-modal .btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 800;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.page-header .breadcrumb {
    background: transparent;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
    color: white;
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

/* Ensure good contrast for all headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 600;
}

/* Light background sections */
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6 {
    color: var(--text-color);
}

.bg-light .lead {
    color: var(--text-color);
}

/* Dark background sections */
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6 {
    color: white;
}

.bg-primary .lead, .bg-dark .lead {
    color: rgba(255, 255, 255, 0.9);
}

/* Hero section specific styles - override general rules */
.hero-section h1, .hero-section h2, .hero-section h3, .hero-section h4, .hero-section h5, .hero-section h6 {
    color: white;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.8);
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.top-bar {
    font-size: 0.875rem;
}

.top-bar-info span {
    display: inline-block;
    margin-right: 1rem;
}

.social-links a {
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    padding: 0.75rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
    text-decoration: none;
    display: inline-block;
}

.hero-buttons .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary:hover {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-outline-primary {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

/* Quick Links */
.quick-link-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.quick-link-card .card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.quick-link-card .card:hover {
    border-color: var(--primary-color);
}

/* About Section */
.about-section {
    background-color: #ffffff;
}

.about-image img {
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.vision-mission h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.vision-mission p {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Programs Section */
.program-card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.program-details {
    margin-top: 1rem;
}

.program-details .badge {
    margin-right: 0.5rem;
    font-size: 0.75rem;
}

/* Professional Program Content Styling */
.program-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
}

.program-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.75rem;
}

.program-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    position: relative;
}

.program-content h3::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.program-content h4 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.program-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.program-content p {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.program-content .lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left: 4px solid var(--accent-color);
    border-radius: 0.5rem;
}

.program-content ul, .program-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.program-content ul li, .program-content ol li {
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.program-content ul li::marker {
    color: var(--accent-color);
    font-weight: 600;
}

.program-content strong {
    font-weight: 600;
    color: var(--dark-color);
}

.program-content em {
    font-style: italic;
    color: var(--text-color);
}

/* Program Sidebar Styling */
.program-sidebar .card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.program-sidebar .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
}

.program-sidebar .list-unstyled li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
    line-height: 1.6;
}

.program-sidebar .list-unstyled li:last-child {
    border-bottom: none;
}

.program-sidebar .list-unstyled li strong {
    color: var(--dark-color);
    font-weight: 600;
    min-width: 120px;
    display: inline-block;
}

.program-sidebar .badge {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Program Filters Styling */
.program-filters .btn-group .btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.program-filters .btn-group .btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Program Categories Styling */
.category-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.category-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.category-icon {
    color: var(--primary-color);
}

/* Program Semesters Styling */
.program-semesters .accordion-item {
    border: none;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.program-semesters .accordion-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1.25rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
}

.program-semesters .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    box-shadow: none;
}

.program-semesters .accordion-button:focus {
    box-shadow: none;
    border: none;
}

.program-semesters .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.program-semesters .accordion-body {
    padding: 1.5rem;
    background: white;
}

.program-semesters .accordion-body h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.program-semesters .accordion-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0;
}

/* Program Type Badge Styling */
.program-type-badge .badge {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Program Content */
@media (max-width: 768px) {
    .program-content h2 {
        font-size: 1.875rem;
    }
    
    .program-content h3 {
        font-size: 1.5rem;
    }
    
    .program-content h3::before {
        left: -0.75rem;
        width: 3px;
        height: 1.25rem;
    }
    
    .program-content .lead {
        font-size: 1.125rem;
        padding: 1rem;
    }
    
    .program-sidebar .card-title {
        font-size: 1.25rem;
    }
    
    .program-filters .btn-group .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* News Section */
.news-card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.news-meta {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: white !important;
}

.vision-mission-footer h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Back to Top Button */
#backToTop {
    z-index: 1000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Cards */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

/* Forms */
.form-control {
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Pagination */
.pagination .page-link {
    border: none;
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.375rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand span {
        font-size: 0.9rem;
    }
    
    .navbar-brand small {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .navbar-brand span {
        display: none;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    /* Enhanced Mobile Menu Styles */
    .navbar-collapse {
        background: white;
        border-radius: 0.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        padding: 1rem;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav .nav-item {
        border-bottom: 1px solid #f0f0f0;
        padding: 0.5rem 0;
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
        position: static !important;
        float: none;
        width: 100%;
        border-radius: 0.5rem;
        border-left: 3px solid var(--primary-color);
        margin-left: 1rem;
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block !important;
        animation: slideDown 0.3s ease-out;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 1000 !important;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.75rem 1rem;
        color: var(--text-color);
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
        font-size: 0.95rem;
        display: block;
        width: 100%;
        text-decoration: none;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: var(--primary-color);
        color: white;
        border-left-color: var(--accent-color);
        text-decoration: none;
    }
    
    .navbar-nav .dropdown-item:active {
        background-color: var(--primary-color);
        color: white;
    }
    
    .navbar-nav .dropdown-toggle {
        position: relative;
        cursor: pointer;
        user-select: none;
        padding-right: 2rem !important;
    }
    
    .navbar-nav .dropdown-toggle::after {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        content: "▼";
        font-size: 0.8rem;
        color: var(--primary-color);
    }
    
    .navbar-nav .dropdown-toggle[aria-expanded="true"]::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    .navbar-nav .dropdown-toggle:hover {
        background-color: rgba(128, 0, 0, 0.05);
    }
    
    .navbar-nav .dropdown-toggle:active {
        background-color: rgba(128, 0, 0, 0.1);
    }
    
    /* Apply Now button on mobile */
    .navbar .btn-primary {
        width: 100%;
        margin-top: 1rem;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Top bar responsive */
    .top-bar-info span {
        display: block;
        margin-bottom: 0.25rem;
        margin-right: 0;
    }
    
    .social-links {
        text-align: center;
        margin-top: 0.5rem;
    }
    
    /* Footer responsive */
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer ul li {
        margin-bottom: 0.75rem;
    }
    
    .footer ul li a {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .top-bar-info span {
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.8rem;
    }
    
    .social-links {
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .social-links a {
        font-size: 1.1rem;
        margin: 0 0.5rem;
    }
    
    /* Mobile menu improvements */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        width: 1.2rem;
        height: 1.2rem;
    }
    
    /* Card improvements for mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Button improvements for mobile */
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form improvements for mobile */
    .form-control {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
    
    /* Container padding for mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Page header improvements */
    .page-header {
        padding: 3rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    /* Breadcrumb improvements */
    .breadcrumb {
        font-size: 0.875rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .navbar-brand img {
        height: 50px;
    }
    
    .top-bar {
        padding: 0.5rem 0;
    }
    
    .top-bar-info span {
        font-size: 0.75rem;
    }
    
    .social-links a {
        font-size: 1rem;
        margin: 0 0.25rem;
    }
    
    /* Mobile menu further improvements */
    .navbar-collapse {
        padding: 0.75rem;
        margin-top: 0.75rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.95rem;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Footer further improvements */
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer h5 {
        font-size: 1rem;
    }
    
    .footer ul li a {
        font-size: 0.9rem;
    }
    
    /* Button sizing for very small screens */
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow);
}

.shadow-lg-custom {
    box-shadow: var(--shadow-lg);
}

.rounded-custom {
    border-radius: 1rem;
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Gallery Styles */
.gallery-featured-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.gallery-featured-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.gallery-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-featured-card:hover .gallery-featured-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.8) 0%, rgba(0, 102, 204, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-featured-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    color: white;
    padding: 2rem;
}

.gallery-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-info p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.image-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
}

.gallery-featured-content {
    padding: 2rem;
}

.gallery-featured-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.gallery-featured-content p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.gallery-card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.05);
}

.gallery-card-content {
    padding: 1.5rem;
}

.gallery-card-content h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-card-content p {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.gallery-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-color);
}

/* Admin Popup Styles */
#admin-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.admin-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-popup-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid #3498db;
}

.admin-popup-content .btn-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-popup-content .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.admin-popup-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.admin-popup-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.admin-popup-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.admin-popup-btn:hover {
    background: #2980b9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

@media (max-width: 768px) {
    .admin-popup-content {
        padding: 25px 20px;
        margin: 20px;
    }
    
    .admin-popup-title {
        font-size: 1.5rem;
    }
    
    .admin-popup-text {
        font-size: 0.95rem;
    }
    
    .admin-popup-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Modern Hero Section Styles */
.hero-section-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    animation: particles 20s linear infinite;
    z-index: 3;
}

@keyframes particles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

.hero-content {
    position: relative;
    z-index: 4;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.hero-title-modern {
    margin-bottom: 2rem;
}

.title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.hero-description-modern {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    display: block;
}

.hero-stats .stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-buttons-modern {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    z-index: 4;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-10px);
}

.hero-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.hero-card h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Quick Access Cards */
.quick-access {
    margin-top: -3rem;
    position: relative;
    z-index: 5;
}

.quick-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.quick-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.quick-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.quick-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.quick-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.quick-link:hover {
    color: var(--accent-color);
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* News Section */
.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-card.featured {
    border: 2px solid var(--primary-color);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-card.featured .news-image {
    height: 250px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.news-date {
    color: var(--text-color);
}

.news-category {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
}

.news-content h3, .news-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: var(--accent-color);
}

/* Modern Announcements */
.announcements-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 600px;
}

.announcements-header-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 1.5rem;
    text-align: center;
}

.announcements-header-modern h4 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.announcements-scroll-modern {
    height: 480px;
    overflow-y: auto;
    padding: 1rem;
}

.announcement-modern {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 15px;
    background: #f8fafc;
    transition: background 0.3s ease;
}

.announcement-modern:hover {
    background: #e2e8f0;
}

.announcement-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.announcement-content h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.announcement-content p {
    color: var(--text-color);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.announcement-time {
    font-size: 0.75rem;
    color: #64748b;
}

.view-all-announcements {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Principal Message Modern */
.principal-message-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.principal-card {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.principal-image-modern {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

.principal-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.principal-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.principal-content-modern h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.principal-content-modern .lead {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.principal-content-modern p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.message-highlights {
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.highlight-item i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Vision Mission Modern */
.vision-mission-card {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.vision-mission-card:hover {
    transform: translateY(-10px);
}

.vm-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.vision-mission-card h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.vision-mission-card p {
    color: var(--text-color);
    line-height: 1.7;
}

/* Programs Modern */
.program-card-modern {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

.program-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.program-card-modern h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.program-card-modern p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.program-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.program-type, .program-duration {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

.program-duration {
    background: var(--primary-color);
}

.program-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.program-link:hover {
    color: var(--accent-color);
}

/* Stats Modern */
.stats-modern {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    overflow: hidden;
}

.stats-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
}

.stat-card-modern {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-card-modern:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-card-modern p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
}

/* Responsive Design for Modern Layout */
@media (max-width: 992px) {
    .title-main {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons-modern {
        flex-direction: column;
    }
    
    .hero-buttons-modern .btn {
        width: 100%;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .title-main {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 1.25rem;
    }
    
    .hero-description-modern {
        font-size: 1rem;
    }
    
    .principal-card {
        margin-bottom: 2rem;
    }
    
    .announcements-modern {
        height: 500px;
    }
    
    .announcements-scroll-modern {
        height: 380px;
    }
}

/* Principal Message Section Styles */
.principal-message-section {
    background-color: #f8fafc;
}

.principal-image img {
    border: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.principal-image img:hover {
    transform: scale(1.05);
}

.principal-message-content {
    padding-left: 2rem;
}

.principal-message-content .lead {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.principal-message-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Announcements Auto-Scroll Box Styles */
.announcements-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.1);
    overflow: hidden;
    border: 2px solid var(--primary-color);
    height: 400px;
}

.announcements-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 1rem;
    text-align: center;
}

.announcements-header h5 {
    color: white;
    margin: 0;
    font-weight: 600;
}

.announcements-scroll {
    height: 320px;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.announcements-scroll .announcement-item {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    animation: scrollUp 25s linear infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

.announcements-scroll .announcement-item:nth-child(1) {
    animation-delay: 0s;
}

.announcements-scroll .announcement-item:nth-child(2) {
    animation-delay: 5s;
}

.announcements-scroll .announcement-item:nth-child(3) {
    animation-delay: 10s;
}

.announcements-scroll .announcement-item:nth-child(4) {
    animation-delay: 15s;
}

.announcements-scroll .announcement-item:nth-child(5) {
    animation-delay: 20s;
}

@keyframes scrollUp {
    0% {
        transform: translateY(400px);
        opacity: 0;
    }
    10% {
        transform: translateY(0);
        opacity: 1;
    }
    90% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-400px);
        opacity: 0;
    }
}

.announcement-content h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.announcement-content p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
}

/* Responsive adjustments for Principal Message Section */
@media (max-width: 992px) {
    .principal-message-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .announcements-box {
        margin-top: 2rem;
        height: 350px;
    }
    
    .announcements-scroll {
        height: 270px;
    }
}

@media (max-width: 768px) {
    .principal-image img {
        width: 200px !important;
        height: 200px !important;
    }
    
    .announcements-box {
        height: 300px;
    }
    
    .announcements-scroll {
        height: 220px;
    }
    
    .announcement-item {
        padding: 1rem !important;
    }
}

/* Professional Principal Message Section */
.principal-message-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.principal-message-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23800000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.principal-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(128, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.principal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.principal-card:hover::before {
    left: 100%;
}

.principal-photo-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-right: 1px solid rgba(128, 0, 0, 0.1);
    position: relative;
}

.principal-photo-wrapper {
    max-width: 280px;
}

.principal-photo {
    width: 100%;
    max-width: 280px;
    height: 320px;
    object-fit: cover;
    border: 4px solid white;
    transition: all 0.3s ease;
}

.principal-card:hover .principal-photo {
    transform: scale(1.02);
}

.photo-border {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid var(--primary-color);
    border-radius: 0.75rem;
    opacity: 0.3;
    z-index: 0;
}

.principal-name {
    font-size: 1.4rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.message-content {
    position: relative;
    z-index: 2;
}

.message-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #475569;
}

.message-text p {
    margin-bottom: 1.25rem;
}

.message-signature {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Professional News Updates Section */
.news-updates-section {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.news-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(128, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(128, 0, 0, 0.15);
    border-color: rgba(128, 0, 0, 0.2);
}

.news-image-wrapper {
    position: relative;
    overflow: hidden;
}

.news-image {
    transition: all 0.4s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.image-overlay {
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.1) 0%, rgba(169, 27, 32, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .image-overlay {
    opacity: 1;
}

.news-category .badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-content {
    padding: 1.75rem;
}

.news-title {
    color: #1e293b;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.news-card:hover .news-title {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
}

.news-meta {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.hover-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hover-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.3s ease;
}

.hover-btn:hover::before {
    left: 100%;
}

.hover-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}

.no-news-state,
.text-center.p-5.bg-white.rounded-3.shadow-sm {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(128, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.no-news-state::before,
.text-center.p-5.bg-white.rounded-3.shadow-sm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(128, 0, 0, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

/* Background Patterns */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    position: relative;
}

.bg-gradient-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1.5" fill="%23800000" opacity="0.03"/></pattern></defs><rect width="60" height="60" fill="url(%23dots)"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.bg-gradient-light > .container {
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .principal-photo-section {
        border-right: none;
        border-bottom: 1px solid rgba(128, 0, 0, 0.1);
    }
    
    .principal-card .row {
        --bs-gutter-x: 0;
    }
    
    .news-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }
    
    .principal-photo {
        max-width: 240px;
        height: 280px;
    }
    
    .news-content {
        padding: 1.25rem;
    }
    
    .title-divider {
        width: 60px;
        height: 3px;
    }
}

/* Home Page Principal Message Section */
.principal-message-home-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    position: relative;
}

.principal-message-home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><defs><pattern id="homePattern" width="80" height="80" patternUnits="userSpaceOnUse"><circle cx="40" cy="40" r="1.5" fill="%23800000" opacity="0.02"/></pattern></defs><rect width="80" height="80" fill="url(%23homePattern)"/></svg>');
    pointer-events: none;
}

.principal-home-card {
    border: 1px solid rgba(128, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.principal-home-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(128, 0, 0, 0.1);
}

.principal-photo-home {
    position: relative;
}

.principal-img {
    border: 3px solid white;
    transition: all 0.3s ease;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.1) 0%, transparent 100%);
    border-radius: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.principal-home-card:hover .photo-overlay {
    opacity: 1;
}

.principal-home-card:hover .principal-img {
    transform: scale(1.02);
}

.message-content-home .message-text {
    line-height: 1.7;
    color: #475569;
    font-size: 1rem;
}

.message-content-home .message-title {
    color: #1e293b;
    font-size: 1.4rem;
}

/* Latest Updates Panel */
.updates-panel {
    border: 1px solid rgba(128, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.updates-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.updates-content {
    max-height: 480px;
    overflow: hidden;
    position: relative;
}

/* Static updates container - no animation */
.updates-static-container {
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(128, 0, 0, 0.3) rgba(248, 250, 252, 0.5);
}

.updates-static-container::-webkit-scrollbar {
    width: 4px;
}

.updates-static-container::-webkit-scrollbar-track {
    background: rgba(248, 250, 252, 0.5);
    border-radius: 2px;
}

.updates-static-container::-webkit-scrollbar-thumb {
    background: rgba(128, 0, 0, 0.3);
    border-radius: 2px;
}

.updates-static-container::-webkit-scrollbar-thumb:hover {
    background: rgba(128, 0, 0, 0.5);
}

/* Legacy scroll container - keep for backward compatibility but remove animation */
.updates-scroll-container {
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0;
    /* Remove animation */
}

.update-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
}

.update-item:hover {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    transform: translateX(4px);
}

.update-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.update-item:hover::before {
    opacity: 1;
}

.update-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 10px;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.update-item:hover .update-icon {
    background: white;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.1);
    transform: scale(1.1);
}

.update-content {
    flex: 1;
    min-width: 0;
}

.update-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.update-text {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.update-date {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Update meta information */
.update-meta {
    margin-top: 0.5rem;
}

/* Update title links */
.update-title a {
    color: #1e293b;
    transition: color 0.3s ease;
}

.update-title a:hover {
    color: var(--primary-color);
}

.update-title .fa-external-link-alt {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.update-title a:hover .fa-external-link-alt {
    opacity: 1;
}

/* Download button styling */
.btn-xs {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-xs:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(128, 0, 0, 0.2);
}

/* No updates message */
.no-updates-message {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.5) 0%, rgba(241, 245, 249, 0.5) 100%);
    border-radius: 12px;
    border: 1px solid rgba(128, 0, 0, 0.05);
    margin: 1rem;
}

.updates-footer {
    background: rgba(248, 250, 252, 0.5);
}

/* Gradient Background Utility */
.bg-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

/* Color Utilities */
.text-purple {
    color: #7c3aed !important;
}

/* Responsive Design for Home Principal Section */
@media (max-width: 991.98px) {
    .principal-home-card .row {
        --bs-gutter-x: 1.5rem;
    }
    
    .updates-static-container,
    .updates-scroll-container {
        max-height: 360px;
    }
}

@media (max-width: 767.98px) {
    .principal-home-card {
        padding: 1.5rem !important;
    }
    
    .principal-img {
        width: 150px !important;
        height: 180px !important;
    }
    
    .message-content-home .message-title {
        font-size: 1.2rem;
    }
    
    .updates-panel {
        margin-top: 2rem;
    }
    
    .updates-content {
        max-height: 300px;
    }
    
    .update-item {
        padding: 0.75rem 1rem;
    }
    
    .update-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.75rem;
    }
    
    .update-title {
        font-size: 0.85rem;
    }
    
    .update-text {
        font-size: 0.75rem;
    }
}

/* Home Page News Section */
.news-home-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.news-home-card {
    border: 1px solid rgba(128, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-height: 520px;
}

.news-home-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(128, 0, 0, 0.1);
}

.news-scroll-container {
    max-height: 360px;
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0;
}

/* Auto-scrolling animation for news */
.news-scroll-container {
    animation: newsAutoScroll 20s linear infinite;
    animation-play-state: running;
}

.news-scroll-container:hover {
    animation-play-state: paused;
}

@keyframes newsAutoScroll {
    0% { transform: translateY(0); }
    20% { transform: translateY(0); }
    33.33% { transform: translateY(-120px); }
    53.33% { transform: translateY(-120px); }
    66.66% { transform: translateY(-240px); }
    86.66% { transform: translateY(-240px); }
    100% { transform: translateY(-360px); }
}

.news-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.news-item:hover {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
    border-color: rgba(128, 0, 0, 0.1);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.08);
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover::before {
    opacity: 1;
}

.news-image-wrapper {
    overflow: hidden;
    border-radius: 0.75rem;
    position: relative;
}

.news-thumb {
    transition: all 0.3s ease;
    border: 2px solid white;
}

.news-item:hover .news-thumb {
    transform: scale(1.05);
}

.news-item-title {
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-item:hover .news-item-title {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.news-item-meta .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    transition: all 0.3s ease;
}

.news-item-meta .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(128, 0, 0, 0.2);
}

/* Quick Links Panel */
.quick-links-panel {
    border: 1px solid rgba(128, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.quick-links-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-link-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-link-item:last-child {
    border-bottom: none;
}

.quick-link-item::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(128, 0, 0, 0.03), transparent);
    transition: left 0.3s ease;
}

.quick-link-item:hover::before {
    left: 100%;
}

.quick-link-item:hover {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.8) 100%);
    transform: translateX(4px);
}

.link-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.quick-link-item:hover .link-icon {
    background: white;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.1);
    transform: scale(1.1);
}

.link-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.quick-link-item:hover .link-content h6 {
    color: var(--primary-color) !important;
}

.quick-links-footer {
    background: rgba(248, 250, 252, 0.5);
}

/* No News State */
.no-news-home {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.5) 0%, rgba(241, 245, 249, 0.5) 100%);
    border-radius: 12px;
    border: 1px solid rgba(128, 0, 0, 0.05);
}

/* Responsive Design for News Section */
@media (max-width: 991.98px) {
    .news-home-card {
        max-height: none;
        margin-bottom: 2rem;
    }
    
    .news-scroll-container {
        max-height: none;
        animation: none;
    }
    
    .quick-links-panel {
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .news-home-card {
        padding: 1.5rem !important;
    }
    
    .news-item {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .news-item .row {
        --bs-gutter-x: 1rem;
    }
    
    .news-thumb {
        height: 60px !important;
    }
    
    .news-item-title {
        font-size: 0.9rem;
    }
    
    .news-excerpt {
        font-size: 0.8rem;
    }
    
    .quick-link-item a {
        padding: 0.75rem !important;
    }
    
    .link-icon {
        width: 35px;
        height: 35px;
    }
    
    .link-content h6 {
        font-size: 0.85rem;
    }
    
    @keyframes newsAutoScroll {
        0% { transform: translateY(0); }
        25% { transform: translateY(0); }
        50% { transform: translateY(-140px); }
        75% { transform: translateY(-280px); }
        100% { transform: translateY(-280px); }
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    #backToTop,
    .admin-popup {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .principal-card,
    .news-card,
    .principal-home-card,
    .updates-panel,
    .news-home-card,
    .quick-links-panel {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .updates-scroll-container,
    .updates-static-container,
    .news-scroll-container {
        animation: none !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* ===============================================
   SLIDER STYLES
   =============================================== */

.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.slide-overlayxxx {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(128, 0, 0, 0.8) 0%, 
        rgba(128, 0, 0, 0.6) 50%, 
        rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.8) 0%, rgb(128 0 0 / 14%) 50%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInUp 1s ease-out 0.4s both;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
    }
    
    .slide-background {
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: 1rem;
    }
    
    .next-btn {
        right: 1rem;
    }
    
    .slider-indicators {
        bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }
} 