﻿/* ================== root file code ==================*/
:root {
    --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --accent-color: #ef4444;
    --text-main: #1e293b;
    --glass-bg: rgba(255, 255, 255, 0.95);
    /* main part */
    --primary-blue: #375ed3;
    --primary-dark: #1e3a8a;
    --accent-red: #ff3b3b;
/*    --glass-bg: rgba(255, 255, 255, 0.85);*/
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}



/* =========================== = = =======================================*/

@font-face {
    font-family: 'Kalimati';
    src: url('fonts/Kalimati.woff2') format('woff2'), url('fonts/Kalimati.ttf') format('truetype');
    font-display: swap;
}

body {
    font-family: 'Kalimati', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

/* ========================= navbar style ======================================*/

.sticky-top {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.navbar {
    background-color: var(--glass-bg);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 800;
    line-height: 1.4;
    color: #1e3a8a !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: #3b82f6;
        transition: width 0.3s;
    }

    .nav-link:hover::after {
        width: 100%;
    }

    .nav-link:hover {
        color: #3b82f6 !important;
    }

/* Social Links Styling */
.social-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .social-links p {
        margin: 0;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

        .social-links p:hover {
            transform: translateY(-3px);
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
        }

/* Language Switcher Styling */
.lang-switch {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.3s;
}

    .lang-switch:hover {
        background: rgba(255, 255, 255, 0.4);
    }

/* Modern Button */
.btn-custom {
    background: var(--primary-gradient);
    color: white !important;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .btn-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }


/* Header Contact */
.header-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.85rem;
}

.contact-info p {
    margin: 0;
    transition: opacity 0.3s;
}

    .contact-info p:hover {
        opacity: 0.8;
    }

    .header-contact .social-links {
        display: flex;
        gap: 15px;
        cursor: pointer;
    }

/* News Ticker */
.news-ticker {
    display: flex;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    align-items: stretch;
}

.news-title {
    background: var(--accent-color);
    color: white;
    padding: 10px 25px;
    font-weight: bold;
    display: flex;
    align-items: center;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
    z-index: 2;
}

marquee {
    color: #475569;
    font-weight: 500;
    padding: 10px 0;
}

/* Responsive Branding */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 14px !important;
    }

    .header-contact {
        justify-content: center;
        text-align: center;
    }
}


@media (max-width: 576px) {

    .header-contact p {
        font-size: 0.8rem;
    }
}



/*================================ body main part desing ========================================================== */
/* ======================== landing page design  ============================================*/

/* ====================================== Carousel  ======================================*/
/* --- Map Placeholder & Hero Section --- */
.map-placeholder {
    height: 75vh;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('../images/school.jpg');
    /* background-image: url('https://wallpapers.com/images/hd/4k-office-background-mpe59en2p6ctdca3.jpg');*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 0rem;
    font-size: 1.2rem;
    /*    color: darkblue;*/
    color: #121212;
    border: none;
    box-shadow: var(--card-shadow);
    animation: fadeIn 1.5s ease-out forwards;
    padding: 2rem;
    overflow: hidden;
}


/* --- Improved Text Slider --- */
.text-slider {
    display: inline-flex;
/*    font-size: 32px;*/
    height: 50px;
    overflow: hidden;
    vertical-align: middle;
    margin-left: 10px;
}

/*.slide-card {
    position: relative;
    width: 75%;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(0.1px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
}*/
/*.slide-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}*/

.text-slider ul {
    list-style: none;
    padding: 0;
    margin: 0;
    animation: slideUpModern 6s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}

.text-slider li {
    height: 50px;
    line-height: 50px;
    font-weight: 800;
    color: var(--accent-red);
    text-shadow: 1px 1px 10px rgba(0,0,0,0.2);
}

@keyframes slideUpModern {
    0%, 25% {
        transform: translateY(0);
    }

    50%, 75% {
        transform: translateY(-50px);
    }

    100% {
        transform: translateY(0);
    }
}


/* ========================================== विद्यालयहरु scroll card =====================================*/
/* Enhanced card styling with smooth color transitions and responsiveness */
.explore-cart {
    min-width: 300px;
    background: white;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 15px;
}

    /* Hover effect with subtle scaling and shadow enhancement */
    .explore-cart:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 40px rgba(55, 94, 211, 0.15);
    }

.card-img-container img {
    border-radius: 12px;
    transition: var(--transition);
}

.card-body a {
    display: inline-block;
    background: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(55, 94, 211, 0.3);

}
    .explore-cart.active {
        background-color: #e0f7fa;
        border: 3px solid #1e90ff;
        box-shadow: 0 6px 25px rgba(30, 144, 255, 0.4);
        transform: translateY(-6px);
    }



        .explore-cart.active .card-title,
        .explore-cart.active .card-text {
            color: #004d99;
        }
/* Pause animation on hover for slider */
.slider-container:hover .slider-wrapper {
    animation-play-state: paused;
}

/* Smoother background color animation with cohesive palette */
@keyframes bgPulse {
    0% {
        background-color: #f0f4ff;
    }

    25% {
        background-color: #d6e4ff;
    }

    50% {
        background-color: #c3d8ff;
    }

    75% {
        background-color: #e2d1ff;
    }

    100% {
        background-color: #f0f4ff;
    }
}

/* Link styling with smooth hover effects */
.card-body a {
    text-decoration: none;
    background: blue;
    color: #1a1a1a;
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    bottom: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease, border 0.3s ease;
}

    .card-body a:hover {
        /*        text-decoration: underline;*/
        background-color: #e6efff;
        border: 2px double #375ed3;
        transform: scale(1.03);
        margin: 8px 0;
        color: black;
    }

/* Image container for consistent alignment */
.card-img-container {
    width: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content area with flexible width */
.card-content {
    width: 75%;
    padding: 0 10px;
}

/* Horizontal scroll container */
.slider-container {
    overflow-x: auto;
    position: relative;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #375ed3 transparent;
    margin-bottom: 1.5rem;
}

    /* Scrollbar styling for WebKit browsers */
    .slider-container::-webkit-scrollbar {
        height: 8px;
    }

    .slider-container::-webkit-scrollbar-thumb {
        background-color: #375ed3;
        border-radius: 4px;
    }

/* Slider wrapper for smooth animation */
.slider-wrapper {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    animation: slideLeft 25s linear infinite;
}

/* Smooth sliding animation */
@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-180%);
    }
}

/* Margin for row separation */
.slider-row {
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .explore-cart {
        min-width: 250px;
    }

    .card-img-container {
        width: 30%;
    }

    .card-content {
        width: 70%;
        font-size: 0.9rem;
    }

    .card-body a {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .explore-cart {
        min-width: 220px;
    }

    .card-img-container {
        width: 35%;
    }

    .card-content {
        width: 65%;
        font-size: 0.8rem;
    }

    .card-body a {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}


/*  -------------------------- Section Title  -------------------------------------*/
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
    opacity: 0;
    animation: fadeInUp 1s ease-in-out forwards;
}

    .section-title h2 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        font-weight: 700;
        color: #375ed3;
        position: relative;
        display: inline-block;
    }

        .section-title h2::after {
            content: '';
            width: 50%;
            height: 3px;
            background: #375ed3;
            position: absolute;
            bottom: -10px;
            left: 25%;
            transform: scaleX(0);
            animation: underline 0.8s ease-in-out forwards 0.5s;
        }

    .section-title h4 {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        color: #375ed3;
        font-weight: 600;
    }

/* Member Card */
.member {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: calc(0.2s * var(--i));
}

    .member:hover {
        transform: translateY(-10px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .member img {
        border-radius: 8px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .member:hover img {
        transform: scale(1.05);
    }

.member-info {
    margin-top: 1rem;
}

.member-title h4 {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #333;
    margin-bottom: 0.5rem;
}

.member-detail a {
    color: #375ed3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

    .member-detail a:hover {
        color: #1e3a8a;
        text-decoration: underline;
    }

/* Info Box */
/* Section Base */
.contact-us {
    background: #f8f9fa;
    overflow: hidden;
}

.section-title h2 {
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.title-line {
    width: 60px;
    height: 3px;
    background: #375ed3;
    margin: 0 auto;
}

/* Info Card Design */
.info-card {
    background: #ffffff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
    /* Initial state for animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

    .info-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(55, 94, 211, 0.15);
        border-color: #375ed3;
    }

/* Icon Styling */
.icon-wrapper {
    width: 70px;
    height: 70px;
    background: #fff;
    border: 2px dashed #375ed3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    transition: 0.4s;
}

    .icon-wrapper i {
        font-size: 34px;
        color: #375ed3;
        transition: 0.4s;
    }
    .icon-wrapper .svg-inline--fa {
        height: 2em !important;
        color: #375ed3;
    }

.info-card:hover .icon-wrapper {
    background: #375ed3;
    border-style: solid;
}

.info-card:hover .icon-wrapper {
    background: var(--primary-blue);
    transform: rotate(360deg);
}

.info-card:hover .svg-inline--fa {
    color: #fff;
    transform: rotateY(360deg);
}

/* Typography */
.info-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2d3436;
}

.info-card p, .info-card a {
    color: #636e72;
    text-decoration: none;
    font-size: 16px;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* ============================== Footer= ================================================ */
.footer-top {
    background-color: #e9ecef;
    padding: 3rem 0;
}

.footer-info a.navbar-brand {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #375ed3;
    text-decoration: none;
    font-weight: 700;
}

.footer-links h4 {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #375ed3;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

    .footer-links ul li {
        margin-bottom: 0.75rem;
    }

        .footer-links ul li a {
            color: #333;
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.3s ease;
        }

            .footer-links ul li a:hover {
                color: #375ed3;
            }


.map-placeholder-small {
    height: 250px;
    width: 100%;
    background-color: #d3d3d3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1rem;
    color: #555;
    border: 1px solid #ccc;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {

    .map-placeholder-small {
        height: 200px;
    }

    .footer-info,
    .footer-links {
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .footer-links ul li a {
        font-size: 0.85rem;
    }
}





/* Responsive Adjustments */
@media (max-width: 992px) {
    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        margin: 5px 0;
    }

    .btn-custom {
        margin: 5px auto;
        display: block;
        width: fit-content;
    }

    .slide-card {
        width: 60%;
    }

    .header-contact {
        flex-direction: column;
        gap: 10px;
    }

    .map-placeholder {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.6rem;
    }

    .section-title h4 {
        font-size: 1.2rem;
    }

    .member {
        padding: 1rem;
    }

    .info-box {
        padding: 1rem;
    }

    .slide-card {
        width: 80%;
    }

    .map-placeholder {
        height: 300px;
    }

    .map-placeholder-small {
        height: 200px;
    }

    .footer-info,
    .footer-links {
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .member img {
        width: 120px;
        height: 150px;
    }

    .slide-card {
        width: 100%;
    }

    .info-box-in-icon i {
        font-size: 1.5rem;
        padding: 8px;
    }

    .footer-links ul li a {
        font-size: 0.85rem;
    }

    .header-contact p {
        font-size: 0.8rem;
    }
}
