/* Stella College of Medical, Education and Allied Sciences - Main Stylesheet */

:root {
    --primary-color: #800000;
    --secondary-color: #ffffff;
    --accent-color: #0066cc;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --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);
}

/* 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);
}

/* Admission Banner Styles */
#admission-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.admission-banner-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;
}

.admission-banner-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: bannerPulse 2s infinite;
}

@keyframes bannerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.admission-banner-content .btn-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admission-banner-content .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.banner-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.banner-subtext {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 30px;
}

.banner-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    font-weight: 700;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.banner-btn:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .admission-banner-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-text {
        font-size: 1.1rem;
    }
    
    .banner-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    #backToTop,
    .admission-banner {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
} 