/* ==================== ST. MARIA GORETTI S.S.S KATENDE ==================== */
/* Color Theme: Green (#2E7D32), Golden-Yellow (#F9A825), White (#FFFFFF), Black (#212121) */

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #212121;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background-color: #212121;
    color: #ffffff;
    font-size: 14px;
    padding: 8px 0;
}

/* Navigation */
.navbar {
    background-color: white !important;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

/* Hero Section */
.hero-section {
    height: 95vh;
    min-height: 550px;
    position: relative;
}

.carousel,
.carousel-inner,
.carousel-item {
    height: 100%;
}

.hero-slide {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Lighter overlay for better image visibility */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 80px;
}

/* Hero Content */
.hero-content {
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content .motto {
    font-style: italic;
    font-size: 2rem;
    font-family: 'Georgia', serif;
    color: #F9A825;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-content .lead {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0.7;
}

.carousel-control-prev {
    left: 0;
    justify-content: flex-start;
    padding-left: 15px;
}

.carousel-control-next {
    right: 0;
    justify-content: flex-end;
    padding-right: 15px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    background-size: 60% 60%;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #2E7D32;
    transform: scale(1.1);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-indicators button.active {
    background-color: #F9A825;
}

/* Buttons */
.btn-primary-custom {
    background-color: #2E7D32;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: #1B5E20;
    color: white;
    transform: translateY(-2px);
}

.btn-admission {
    background-color: #F9A825;
    color: #212121;
    padding: 8px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-admission:hover {
    background-color: #F57F17;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-golden {
    background-color: transparent;
    color: #F9A825;
    border: 2px solid #F9A825;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-golden:hover {
    background-color: #F9A825;
    color: #212121;
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #F9A825;
}

/* Value Cards */
.value-card {
    background: white;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Stats Section */
.stat-box {
    text-align: center;
    padding: 20px;
}

.stat-box h2 {
    font-size: 3rem;
    font-weight: 700;
}

/* Event Items */
.event-item {
    transition: all 0.3s;
    background: white;
    border-radius: 8px;
}

.event-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.event-date h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 125, 50, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #F9A825;
    font-size: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content .motto {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-slide .container {
        padding-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 90vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .motto {
        font-size: 1.2rem;
    }
    
    .hero-content .lead {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn-primary-custom, 
    .btn-outline-golden {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 35px;
        height: 35px;
    }
    
    .hero-slide .container {
        padding-bottom: 40px;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

/* Teaching Staff - Director Message Side by Side */
.director-message {
    position: relative;
    overflow: hidden;
}

.director-message::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: #F9A825;
    opacity: 0.2;
    font-family: serif;
}

.staff-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .row.g-4 {
        flex-direction: column;
    }
    .col-lg-4, .col-lg-8 {
        width: 100%;
    }
    .director-message {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 85vh;
        min-height: 450px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content .motto {
        font-size: 1rem;
    }
    
    .stat-box h2 {
        font-size: 2rem;
    }
}