/* Custom CSS for School Website (copied from original css/style.css for React app) */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f6f8fc;
    scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    min-height: 90px;
}

.custom-navbar {
    background: linear-gradient(135deg, #434861 0%, #e5b1f8 100%) !important;
    background-color: #4e3c71 !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 0 !important;
    padding-left: 0;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    display: flex;
    align-items: center;
    color: white;
}

.navbar-brand img,
.school-logo {
    height: 75px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    flex-shrink: 0;
}

.navbar-brand:hover .school-logo {
    transform: scale(1.05);
}

@media (max-width: 991.98px) {
    .school-logo {
        height: 60px;
        max-width: 75px;
        margin-right: 0 !important;
    }
}

.navbar-nav {
    gap: 0.25rem;
    flex-wrap: nowrap;
    align-items: center;
}

.navbar-nav .nav-link {
    margin: 0 4px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.4rem 0.6rem !important;
    white-space: nowrap;
    font-size: 0.95rem;
}

.navbar-nav .nav-item.dropdown .nav-link {
    padding-right: 1.5rem !important;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

.navbar-nav .nav-link.active {
    color: #ffc107 !important;
    font-weight: 600;
}

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

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

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

/* Home Section */
.home-section {
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
    padding-top: 90px;
    overflow: hidden;
}

.school-name-hero {
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    font-weight: 800;
    text-shadow: 2px 4px 12px rgba(7, 11, 25, 0.55);
    letter-spacing: 1.5px;
    line-height: 1.1;
    margin: 0.8rem 0 1.2rem;
    color: #ffffff;
}

@media (max-width: 768px) {
    .school-name-hero {
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }
    .home-section .display-4 {
        font-size: 1.75rem;
    }
    .home-section .lead {
        font-size: 1rem;
    }
}

.hero-overlay {
    position: relative;
    z-index: 1;
    background:
        linear-gradient(110deg, rgba(8, 15, 40, 0.86) 0%, rgba(8, 15, 40, 0.58) 48%, rgba(8, 15, 40, 0.36) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.redesigned-hero .hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.redesigned-hero .hero-description {
    color: #e5ecff;
    font-size: 1.2rem;
    max-width: 620px;
}

.hero-actions .btn {
    border-radius: 14px;
    padding: 0.8rem 1.6rem;
    font-weight: 700;
}

.hero-info-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    color: #ffffff;
    box-shadow: 0 14px 40px rgba(7, 11, 25, 0.28);
}

.hero-info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.hero-highlights li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    color: #f3f6ff;
}

.hero-highlights i {
    color: #74f2ce;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    text-align: center;
    padding: 0.6rem 0.35rem;
}

.stat-pill strong {
    display: block;
    line-height: 1.1;
    font-size: 1.15rem;
}

.stat-pill span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.hero-image {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
}

.hero-image i {
    font-size: 300px;
}

/* Main Page Section */
.main-page-section {
    background:
        radial-gradient(1200px 500px at -10% -10%, rgba(176, 190, 255, 0.25), transparent),
        radial-gradient(800px 420px at 110% 0, rgba(150, 223, 220, 0.24), transparent),
        #f6f8fc;
    padding-top: 70px;
}

.section-content {
    padding: 60px 0;
}

.section-content h2 {
    color: #132240;
    margin-bottom: 20px;
}

.underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 30px;
}

.redesigned-about .about-subtitle {
    color: #4b5563;
    max-width: 760px;
    font-size: 1.06rem;
}

.about-feature {
    background: #ffffff;
    border: 1px solid #e4e9f7;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 28px rgba(21, 41, 86, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(21, 41, 86, 0.15);
}

.about-feature h3 {
    color: #1a2f5c;
    margin: 0.8rem 0 0.7rem;
    font-size: 1.25rem;
}

.about-feature p {
    color: #4b5563;
    margin-bottom: 0;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: #ffffff;
    background: linear-gradient(135deg, #4f46e5 0%, #0ea5a8 100%);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.25);
}

.about-story {
    border-left: 5px solid #4f46e5;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 8px 20px rgba(21, 41, 86, 0.07);
}

.about-story h4 {
    color: #162a56;
    margin-bottom: 0.5rem;
}

.about-story p {
    color: #4b5563;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
    padding: 2rem;
}

/* Faculty Section */
.faculty-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Admission Section */
.admission-step {
    transition: transform 0.3s ease;
    padding: 1rem;
    border-radius: 10px;
}

.admission-step:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Gallery Section */
.gallery-item {
    transition: transform 0.3s ease;
}

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

.gallery-image {
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
}

/* Contact Section */
.contact-info i {
    font-size: 1.2rem;
}

.contact-info strong {
    display: block;
    margin-bottom: 5px;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #48dfbe;
}

.contact-link:active {
    color: #e0a800;
}

.contact-info .contact-link {
    color: #212529;
    font-weight: 600;
}

.footer-section .contact-link {
    color: inherit;
}

.footer-section .contact-link:hover {
    color: #ffc107;
}

.contact-intro p {
    color: #555;
}

.contact-highlight .contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.contact-highlight .contact-card ul li {
    font-weight: 600;
    color: #444;
}

.social-icons .social-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ddd;
    color: #0d6efd;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icons .social-circle:hover {
    background: #0d6efd;
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

.map-embed {
    width: 100%;
    border: none;
    min-height: 200px;
    border-radius: 10px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

/* Footer Section */
.footer-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    margin-top: 50px;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffc107 !important;
}

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: #ffc107 !important;
}

.footer-section ul li {
    margin-bottom: 10px;
}

/* Distinct layouts per page section */
.page-about .card {
    border-radius: 20px;
    border: 1px solid #dbe4ff;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.page-about .feature-item {
    background: #fff;
    border: 1px solid #edf1ff;
    border-radius: 16px;
    padding: 0.9rem;
}

.page-admission .card {
    border: none;
    border-radius: 24px;
    background: linear-gradient(140deg, #0f172a 0%, #1e293b 100%);
    color: #eef2ff;
}

.page-admission .card .card-title,
.page-admission .card h3,
.page-admission .card h4,
.page-admission .card h5 {
    color: #ffffff;
}

.page-admission .admission-step {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-academy .card {
    border-radius: 18px;
    border: 0;
    overflow: hidden;
    position: relative;
}

.page-academy .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(155deg, rgba(79, 70, 229, 0.12), rgba(16, 185, 129, 0.08));
    pointer-events: none;
}

.page-academy .card-body {
    position: relative;
}

.page-facility .card {
    border: 1px solid #d8e0ec;
    border-radius: 20px;
    background: #f7f9fc;
    box-shadow: 8px 8px 18px rgba(138, 153, 176, 0.2), -8px -8px 18px #ffffff !important;
}

.page-gallery .gallery-item .card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    background: #0f172a;
    color: #fff;
}

.page-gallery .gallery-image {
    border-radius: 0;
    height: 240px;
}

.page-gallery .gallery-item:hover {
    transform: translateY(-10px) rotate(-0.7deg);
}

.page-contact .contact-card {
    border-radius: 18px;
    border: 1px solid #dde6f5;
    background: linear-gradient(165deg, #ffffff 0%, #f4f7ff 100%);
}

.page-contact .contact-form-wrapper .card {
    border: 1px solid #dbe6ff;
    border-radius: 22px;
}

.page-mandatory .card {
    border: 1px solid #e9eef7;
    border-radius: 16px;
}

.page-mandatory .table thead th {
    background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
}

.page-mandatory .table tbody tr:nth-child(even) {
    background: #f8fbff;
}

/* Layout redesign v2 */
.about-layout-v2 .about-banner,
.admission-layout-v2 .admission-head,
.academy-layout-v2 .academy-head,
.facility-layout-v2 .facility-head,
.gallery-layout-v2 .gallery-head,
.contact-layout-v2 .contact-top,
.mandatory-layout-v2 .mandatory-head {
    border-radius: 18px;
    padding: 1.25rem 1.4rem;
    border: 1px solid #dbe4f5;
    background: linear-gradient(135deg, #ffffff 0%, #f1f6ff 100%);
    box-shadow: 0 8px 22px rgba(19, 34, 64, 0.08);
}

.about-layout-v2 .about-kicker {
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 0.78rem;
    color: #4f46e5;
    font-weight: 700;
}

.about-layout-v2 .about-panel {
    border-radius: 18px;
    border: 1px solid #e5ecff;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 10px 24px rgba(19, 34, 64, 0.08);
}

.about-layout-v2 .why-us-stack {
    border-radius: 18px;
    background: #f8faff;
    border: 1px dashed #cad7f6;
    padding: 1rem;
}

.admission-layout-v2 .admission-step {
    border-left: 4px solid rgba(110, 231, 183, 0.85);
    border-radius: 12px;
    padding: 1rem;
}

.academy-layout-v2 .academy-head {
    background: linear-gradient(120deg, #ecfeff 0%, #eef2ff 100%);
}

.facility-layout-v2 .card-body {
    text-align: left !important;
}

.gallery-layout-v2 .gallery-mosaic > div:nth-child(3n+1) .gallery-image {
    height: 300px;
}

.gallery-layout-v2 .gallery-mosaic > div:nth-child(3n+2) .gallery-image {
    height: 220px;
}

.gallery-layout-v2 .gallery-mosaic > div:nth-child(3n+3) .gallery-image {
    height: 260px;
}

.contact-layout-v2 .contact-top {
    text-align: left;
}

.mandatory-layout-v2 .mandatory-head {
    background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%);
    border-color: #ffd4d8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.back-to-top.show {
    display: block;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 1100;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    background-color: #1ebe5d;
    color: #fff;
}

/* Form Styles */
.form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 12px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 5px;
    padding: 12px 30px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Table Styles */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background-color: #667eea;
    color: white;
    font-weight: 600;
    padding: 15px;
}

.table td {
    padding: 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-image i {
        font-size: 150px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .section-content {
        padding: 40px 0;
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* User Panel */
.user-icon-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.user-icon-btn i {
    font-size: 1.3rem;
    color: #0d6efd;
}

.user-panel {
    --bs-offcanvas-width: min(420px, 90vw);
    transition: transform 0.45s ease !important;
}

.offcanvas .auth-toggle .btn {
    border-radius: 30px;
    font-weight: 600;
}

.offcanvas .auth-toggle .btn:not(.active) {
    background: transparent;
}

.offcanvas .auth-form form .form-label {
    font-weight: 600;
}

.offcanvas .auth-form form .btn {
    border-radius: 30px;
}

.auth-form .row .form-control,
.auth-form .row .form-select,
.auth-form textarea {
    min-height: 48px;
}

.auth-form textarea {
    resize: none;
}

/* Navbar responsive behaviour */
.navbar .container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: nowrap;
}

.navbar .navbar-brand {
    flex-shrink: 0;
    margin-right: 1rem;
}

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

.navbar .navbar-collapse {
    justify-content: flex-end;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.navbar .navbar-collapse.collapsing {
    opacity: 0;
    transform: translateY(-10px);
}

.navbar .navbar-collapse.collapse.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .navbar .container {
        flex-wrap: wrap;
        padding-right: 80px;
    }
    .navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(30, 60, 114, 0.98);
        padding: 1rem;
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
        width: 100%;
    }
    .navbar-toggler {
        position: absolute;
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1051;
        margin: 0 !important;
    }
    .navbar .user-icon-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1051;
        margin: 0 !important;
    }
    .navbar .navbar-nav {
        width: 100%;
        gap: 0;
    }
    .navbar .navbar-nav .nav-link {
        color: #fff;
        font-size: 1rem;
        padding: 0.75rem 0.5rem !important;
        margin: 0 !important;
        width: 100%;
        text-align: left;
    }
    .navbar .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: rgba(30, 60, 114, 0.95);
        border: none;
    }
    .navbar .navbar-nav .dropdown-item {
        color: #fff;
        padding: 0.5rem 1rem;
    }
    .navbar .navbar-nav .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #ffc107;
    }
    .navbar-brand {
        font-size: 1.2rem;
    }
    .navbar-brand img {
        height: 35px;
    }
}


