/* assets/css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body - dynamic padding for fixed navbar */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: #ffffff;
    padding-top: 90px;           /* desktop – safe starting value */
}

/* Navbar core */
.navbar {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%) !important;
    padding: 0.6rem 0;           /* slightly less padding than before */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.school-logo {
    height: 55px;                /* slightly smaller than 60px */
    width: auto;
    border-radius: 50%;
    background: white;
    padding: 4px;
}

.brand-text span {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: white;
    line-height: 1.2;
}

.brand-text small {
    font-size: 0.72rem;
    color: #FFD700;
    font-style: italic;
    display: block;
}

/* Mobile-first adjustments */
@media (max-width: 991px) {     /* below lg breakpoint – navbar collapses */
    body {
        padding-top: 70px !important;   /* smaller for mobile */
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .school-logo {
        height: 45px;
    }

    .brand-text span {
        font-size: 1.1rem;
    }

    .brand-text small {
        font-size: 0.65rem;
    }

    /* Make sure toggler is visible and nice */
    .navbar-toggler {
        border: none;
        padding: 0.4rem 0.6rem;
    }

    .navbar-toggler-icon {
        filter: brightness(0) invert(1);   /* white icon on brown bg */
    }

    /* Prevent brand from taking too much space */
    .navbar-brand {
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {     /* very small phones */
    body {
        padding-top: 65px !important;
    }

    .brand-text span {
        font-size: 1rem;
    }
    
    .brand-text small {
        font-size: 0.6rem;
    }

    .school-logo {
        height: 42px;
    }
}

/* Active link underline - make it more visible on mobile too */
.nav-link.active {
    color: #FFD700 !important;
}

.nav-link.active::after {
    width: 100% !important;
}

/* Dropdown improvements */
.dropdown-menu {
    background: #fff !important;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #8B4513, #D2691E) !important;
    color: white !important;
}
.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    color: white !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: #FFD700 !important;
}

.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 10px;
}

.dropdown-item {
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    transform: translateX(5px);
}

/* Hero Carousel */
.hero {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 90vh;
    min-height: 550px;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 1.3rem;
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

/* Cards Styling */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    height: 100%;
    border: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #8B4513;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

.stat-card {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #8B4513;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 3px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
    color: white;
    padding: 80px 0 50px;
    margin-top: -1px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
}

.content-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.content-card h3 {
    color: #8B4513;
    font-weight: 700;
    margin-bottom: 1rem;
    border-left: 4px solid #D2691E;
    padding-left: 15px;
}

.content-card p {
    color: #555;
    line-height: 1.8;
}

/* Ethos List */
.ethos-list {
    list-style: none;
    padding: 0;
}

.ethos-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.ethos-list li:last-child {
    border-bottom: none;
}

.ethos-number {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.ethos-text {
    flex: 1;
    color: #555;
    line-height: 1.6;
}

/* Rules Grid */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.rule-card {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid #D2691E;
}

.rule-card:hover {
    transform: translateX(5px);
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.rule-card h4 {
    color: #8B4513;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.rule-card p {
    color: #666;
    margin-bottom: 0;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(139, 69, 19, 0.9));
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    color: white;
    margin: 0;
}

/* Contact Form */
.contact-info-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    font-size: 2rem;
    color: white;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    background: #faf9f8;
}

.footer h5 {
    color: #8B4513;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #8B4513;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: #999;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .brand-text span {
        font-size: 0.9rem;
    }
    
    .brand-text small {
        font-size: 0.65rem;
    }
    
    .school-logo {
        height: 45px;
    }
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}