/* === SCHOOL PROFILE - SAFE STYLES (NO GLOBAL CONFLICTS) === */

/* Only define what's unique to this page */
.school-header {
    position: relative;
    padding: 5rem 0;
    color: #ffffff;
    overflow: hidden;
    background: linear-gradient(120deg, #2563eb, #16a34a);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.school-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    pointer-events: none;
}

.school-header:not(.has-banner-image) .school-header-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.school-hero-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.school-logo-wrapper {
    flex: 0 0 auto;
    width: 140px;
    height: 140px;
    position: relative;
}

.school-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.school-logo-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 2.4rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.school-text-content {
    background-color: rgba(0, 0, 0, 0.822);
    width: 40%;
    padding: 16px;
    color: white;
    border-radius: 10px;
}

.school-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.8rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.school-tagline {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 0 0 0.6rem;
    opacity: 0.95;
    line-height: 1.4;
    max-width: 700px;
    font-family: 'Poppins', sans-serif;
}

.school-name-sub {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 0.5px;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* === SCHOOL NAVIGATION (under hero section on school profile) === */
.school-navigation {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-link {
    padding: 1.1rem 1.4rem;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
    font-family: 'Poppins', sans-serif;
}

.nav-link:hover,
.nav-link.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* === SCROLL BUTTONS FOR MOBILE NAV === */
.nav-links-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    scroll-behavior: smooth;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-scroll-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.nav-scroll-btn:hover {
    opacity: 1;
    background: #f8fafc;
    color: #2563eb;
}

.nav-scroll-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Hide scroll buttons on larger screens */
@media (min-width: 769px) {
    .nav-scroll-btn {
        display: none;
    }

    .nav-links-wrapper {
        justify-content: center;
    }
}

/* Optional: Add slight padding so buttons don’t overlap text */
@media (max-width: 768px) {
    .nav-links {
        padding: 0 10px;
    }
}

/* Global Navigation section style  */

.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: #0f4077;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: #1a1a1a;
    font-weight: 600;
    margin: 0 0.8rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #4361ee;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login {
    padding: 0.6rem 1.5rem;
    border: 2px solid #4361ee;
    color: #4361ee;
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-login:hover {
    background: #4361ee;
    color: white;
}

.btn-register {
    padding: 0.6rem 1.5rem;
    background: #0f4077;
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
    color: white;
}

/* Mobile menu toggle */
.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991px) {
    .auth-buttons {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    .btn-login,
    .btn-register {
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* === MAIN CONTENT LAYOUT === */
.school-main-content {
    padding: 2.5rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
    display: none;
}

.content-section.active {
    display: block;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
    position: relative;
    padding-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
}

.section-content p {
    color: #64748b;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

/* === QUICK FACTS === */
.quick-facts h3 {
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
    color: #0f172a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.fact-item:hover {
    transform: translateY(-2px);
}

.fact-item i {
    font-size: 1.4rem;
    color: #2563eb;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

/* === GALLERY === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.image-caption {
    padding: 0.75rem;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
}

/* === CURRICULUM === */
.curriculum-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.curriculum-item {
    padding: 1.4rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #2563eb;
    transition: box-shadow 0.2s ease;
}

.curriculum-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.curriculum-item h4 {
    margin-bottom: 0.6rem;
    color: #0f172a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.curriculum-item p {
    margin: 0;
    color: #64748b;
    font-family: 'Poppins', sans-serif;
}

/* === SIDEBAR SECTIONS (CONTACT, FEE, ETC.) === */
.sidebar-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #0f172a;
    position: relative;
    padding-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #16a34a;
    border-radius: 2px;
}

.contact-item,
.fee-item,
.action-btn {
    font-family: 'Poppins', sans-serif;
}

/* === CONTACT INFO === */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.contact-item i {
    color: #2563eb;
    font-size: 1rem;
    margin-top: 0.2rem;
}

.contact-item a {
    color: #64748b;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #2563eb;
}

/* === FEE STRUCTURE === */
.fee-info {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    padding: 0.9rem;
    background: rgba(37, 99, 235, 0.03);
    border-radius: 6px;
}

.fee-label {
    font-weight: 600;
    color: #0f172a;
}

.fee-amount {
    font-weight: 700;
    color: #16a34a;
}

/* === ACTION BUTTONS === */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.action-btn {
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.action-btn.primary {
    background: #2563eb;
    color: #ffffff;
}

.action-btn.primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.action-btn.secondary {
    background: #64748b;
    color: #ffffff;
}

.action-btn.secondary:hover {
    background: #475569;
    transform: translateY(-2px);
}

.action-btn.tertiary {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.action-btn.tertiary:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

/* === SOCIAL LINKS === */
.social-links {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #e2e8f0;
    border-radius: 50%;
    color: #64748b;
    transition: all 0.25s ease;
}

.social-link:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-3px);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 991px) {
    .content-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .school-text-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .school-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.8rem;
    }

    .school-title {
        font-size: 2.2rem;
    }

    .school-tagline {
        font-size: 1.25rem;
    }

    .school-logo-wrapper {
        width: 120px;
        height: 120px;
    }

    .school-text-content {
        width: 90%;
    }

    .facts-grid,
    .gallery-grid,
    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .review-header,
    .event-item {
        flex-direction: column;
        gap: 0.8rem;
    }

    .event-date {
        align-self: flex-start;
        min-width: auto;
        padding: 0.6rem 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .gallery-item,
    .facility-item,
    .review-item,
    .event-item,
    .branch-item,
    .action-btn {
        transition: none;
        transform: none;
    }
}




/* School Motto */
.school-motto {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    font-size: 1.1rem;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    padding-left: 15px;
}

.school-motto i {
    opacity: 0.7;
    margin: 0 5px;
}

/* School Statistics */
.school-statistics {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #4e73df;
}

.school-statistics h3 {
    margin-bottom: 1rem;
    color: #2e59d9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #4e73df;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Mission & Vision Section */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.mission-vision-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.mission-vision-item:hover {
    transform: translateY(-5px);
}

.mv-icon {
    font-size: 2.5rem;
    color: #4e73df;
    margin-bottom: 1rem;
}

.mission-vision-item h3 {
    color: #2e59d9;
    margin-bottom: 1rem;
}

.mission-vision-item p {
    line-height: 1.6;
    color: #6c757d;
}

/* Profile Info in Sidebar */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.profile-item i {
    font-size: 1.25rem;
    color: #4e73df;
    width: 30px;
}

.profile-label {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.profile-value {
    display: block;
    font-weight: 600;
    color: #495057;
}

/* Enhanced Quick Facts */
.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4e73df;
}

.fact-item i {
    font-size: 1.25rem;
    color: #4e73df;
    width: 25px;
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #4e73df;
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .school-motto {
        font-size: 1rem;
        margin-top: 8px;
    }
}