/* ==================== ST. MARIA GORETTI S.S.S KATENDE ==================== */
/* Color Theme: Green (#2E7D32), Golden-Yellow (#F9A825), White (#FFFFFF), Black (#212121) */

* {
    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;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    border-radius: 5px;
    padding: 8px 16px;
    margin: 0 2px;
    color: #212121;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    background-color: #F9A825;
    color: #212121 !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background-color: #F9A825;
    color: #212121 !important;
    border-radius: 5px;
}

/* 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;
}

.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 {
    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;
}

/* Staff Card Styles */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.staff-card {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.staff-img {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
}

.staff-img img {
    width: 160px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.staff-card:hover .staff-img img {
    transform: scale(1.03);
}

.staff-info {
    padding: 5px 15px 20px 15px;
    background: #f8f9fa;
}

.staff-info h3 {
    color: #2E7D32;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.staff-info .title {
    color: #F9A825;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.staff-info .subjects {
    color: #666;
    font-size: 0.75rem;
}

.staff-info .subjects i {
    color: #F9A825;
    margin-right: 5px;
    width: 18px;
}

/* Director Message */
.director-message {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    padding: 20px;
    color: white;
}

.director-message:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.director-message::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: #F9A825;
    opacity: 0.2;
    font-family: serif;
}

.director-img {
    width: 100%;
    height: 200px;
    background: #F9A825;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.director-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Info Bar */
.contact-info-bar {
    background: #212121;
    color: white;
    padding: 20px 0;
}

.contact-info-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-info-bar i {
    color: #F9A825;
    margin-right: 8px;
}

/* Footer */
footer {
    background: #212121;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3, .footer-links h4, .footer-social h4 {
    color: #F9A825;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 10px;
    color: #cccccc;
}

.footer-info i {
    color: #F9A825;
    margin-right: 10px;
    width: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #F9A825;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #F9A825;
    color: #212121;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* 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;
    }
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .staff-img img {
        width: 140px;
        height: 160px;
    }
}

@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;
    }
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-info-bar .container {
        flex-direction: column;
        text-align: center;
    }
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@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;
    }
    .staff-img img {
        width: 150px;
        height: 170px;
    }
}

/* Tab Transitions */
.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
}

/* Image Loading */
img {
    image-rendering: auto;
    image-rendering: crisp-edges;
}