:root {
    --maroon: #800020;
    --maroon-dark: #5a0015;
    --maroon-light: #a0002a;
    --gold: #D4AF37;
    --gold-light: #F4E4BC;
    --gold-dark: #B8941F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navbar */
.bg-maroon {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    border-radius: 5px;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--gold);
    color: var(--maroon) !important;
    transform: translateY(-2px);
}

/* Slider Section */
.slider-section {
    position: relative;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(128, 0, 32, 0.4), rgba(90, 0, 21, 0.6));
    z-index: 1;
}

.carousel-item {
    position: relative;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
}

.slider-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.slider-description {
    font-size: 1.25rem;
    color: var(--gold-light);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1.2s ease;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--gold);
    border-radius: 50%;
    padding: 10px;
}

.carousel-indicators button {
    background-color: var(--gold);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--maroon);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon), var(--gold));
    border-radius: 2px;
}

.section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(128, 0, 32, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.feature-card h4 {
    color: var(--maroon);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Teacher/Student Cards */
.teacher-card,
.student-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
}

.teacher-card:hover,
.student-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(128, 0, 32, 0.2);
}

.teacher-card img,
.student-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.teacher-card-body,
.student-card-body {
    padding: 1.5rem;
}

.teacher-card-body h5,
.student-card-body h5 {
    color: var(--maroon);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Facility Cards */
.facility-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(128, 0, 32, 0.2);
}

.facility-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.facility-card-body {
    padding: 1.5rem;
}

.facility-card-body h5 {
    color: var(--maroon);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 32, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--maroon);
    color: var(--maroon);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background: var(--maroon);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
.footer-section {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
}

.footer-section h5 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--gold) !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .slider-title {
        font-size: 2rem;
    }
    
    .slider-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 50px 0;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    color: white;
    padding: 80px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--gold-light);
}

/* Principal Section */
.principal-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.principal-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--gold);
    margin: 0 auto 1.5rem;
    display: block;
}

/* History Timeline */
.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2rem;
    border-left: 3px solid var(--gold);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--maroon);
    border: 3px solid var(--gold);
}

.timeline-year {
    color: var(--maroon);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Vision Mission */
.vision-mission-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    height: 100%;
}

.vision-mission-card h3 {
    color: var(--maroon);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--gold);
}

.vision-mission-card ul {
    list-style: none;
    padding: 0;
}

.vision-mission-card ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.vision-mission-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--gold);
}

/* Contact Section */
.contact-info-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-info-card i {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.contact-info-card h5 {
    color: var(--maroon);
    font-weight: 600;
    margin-bottom: 1rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
