body {
    font-family: 'Arial', sans-serif;
    margin: 0;
}

/* --- TOP BAR (DITTO) --- */
.top-bar {
    background: linear-gradient(90deg, #000 0%, #008a3d 100%);
    /* Black to Green Gradient */
    color: #fff;
    font-size: 13px;
    padding: 3px 0;
    border-bottom: 2px solid #ffc107;
    /* Yellow bottom line */
}

/* Icon Styling */
.top-info a,
.top-info span {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    display: inline-flex;
    align-items: center;
    transition: 0.3s;
}

.top-info i {
    color: #ffc107;
    /* Bright Yellow Icons */
    margin-right: 8px;
    font-size: 15px;
}

.top-info a:hover {
    color: #ffc107;
    transform: translateY(-2px);
}

/* Social Icons Styling */
.top-social {
    display: flex;
    align-items: center;
}

.top-social span {
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 11px;
    text-transform: uppercase;
}

.social-btn {
    background: rgba(255, 255, 255, 0.1);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 8px;
    color: #fff !important;
    transition: 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover Effects for Social Buttons */
.social-btn:hover {
    background: #ffc107;
    color: #000 !important;
    transform: rotate(360deg);
    border-color: #ffc107;
}

/* Animation for the whole bar on load */
.top-bar {
    animation: fadeInDown 0.8s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SINGLE LINE NAVBAR (LOGO + MENU) --- */
.header-main {
    background: #fff;
    padding: 5px 0;
    transition: 0.3s;
}

.navbar-brand img {
    height: 55px;
    /* Logo Size */
    width: auto;
    object-fit: cover;
}

.school-text-header h1 {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    color: #000;
    font-family: 'Times New Roman', serif;
    line-height: 1;
}

.school-text-header p {
    font-size: 10px;
    margin: 0;
    color: #ff6600;
    font-weight: bold;
    text-transform: uppercase;
}

/* Menu Items Styling */
.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding: 10px 15px !important;
    transition: 0.3s;
}

/* Hover Effect: Text Green aur Bottom Border */
.navbar-nav .nav-link:hover {
    color: #ff6600 !important;
}

/* Dropdown Style */
.dropdown-menu {
    border-radius: 0 !important;
    border-top: 3px solid#ff6600 !important;
    background: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-item {
    font-size: 12px;
    font-weight: 600;
    padding: 10px 20px;
}

.dropdown-item:hover {
    background-color:#ff6600 !important;
    color: #fff !important;
}

.navbar-brand {
    padding: 5px 0;
}

.navbar-brand img {
    height: 100px;
    /* Pehle 70px tha, ab bada kar diya */
    width: auto;
    transition: 0.3s;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.1));
    /* Halka sa shadow logo par */
}

.school-text-header {
    border-left: 3px solid #ff6600 !important;
    /* Border thodi moti ki hai */
    padding-left: 15px !important;
}

.school-text-header h1 {
    font-size: 32px;
    /* Pehle 24px tha, ab bada hai */
    font-weight: 900;
    margin: 0;
    color: #000;
    letter-spacing: 1px;
    font-family: 'Times New Roman', serif;
    line-height: 1.1;
}

.school-text-header p {
    font-size: 13px;
    /* Address thoda clear dikhega */
    margin: 0;
    color:#ff6600;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Jab page scroll ho to logo thoda shrink ho jaye (Optional sticky effect) */
.sticky-top.header-main.shadow-sm .navbar-brand img {
    height: 65px;
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 70px;
    }

    .school-text-header h1 {
        font-size: 20px;
    }

    .school-text-header p {
        font-size: 10px;
    }
    .text-m{
        color: #492004;
    }
}

@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        /* Alignment sahi karne ke liye */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: all 0.3s ease;
    }

    .navbar-nav .nav-item.dropdown .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }
}


/* Mobile View Toggle */
.navbar-toggler {
    border: none;
    font-size: 25px;
}

.navbar-toggler:focus {
    /* shadow: none; */
    outline: none;
}

@media (max-width: 1200px) {
    .school-text-header h1 {
        font-size: 18px;
    }

    .navbar-nav .nav-link {
        padding: 10px 8px !important;
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 50px !important;
        /* Mobile par logo thoda chhota taaki naam fit aa jaye */
    }

    .school-text-header {
        border-left: 2px solid #ff6600 !important;
        padding-left: 10px !important;
    }

    .school-text-header h1 {
        font-size: 14px !important;
        /* Mobile par naam ka size */
        letter-spacing: 0;
    }

    .school-text-header p {
        font-size: 8px !important;
        /* Mobile par chhota address */
    }
}

/* Notice mobile single line fix */
.notice-ticker-section marquee {
    white-space: nowrap;
}

/* Slider mobile height */
@media (max-width:576px){
    .carousel-item img{
        height:220px;
        object-fit:cover;
    }
}

/* testimonials */
.testimonial-section {
    padding: 80px 20px;
    background: #f2f4f7;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 50px;
    color: #2c3e50;
}

.swiper {
    padding-bottom: 50px;
}

.testimonial-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-card img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    margin: 10px 0;
}

.testimonial-card h4 {
    margin: 5px 0;
    font-size: 18px;
}

.testimonial-card span {
    font-size: 13px;
    color: #888;
}

.stars {
    margin-top: 10px;
    color: #f4b400;
    font-size: 18px;
}

/* Arrows */
.swiper-button-next,
.swiper-button-prev {
    color: #999;
}

/* Dots */
.swiper-pagination-bullet {
    background: #ccc;
}

.swiper-pagination-bullet-active {
    background: #007bff;
}

/* slider */
/* Slider Height Adjustment */
.carousel-item img {
    height: 600px;
    object-fit: cover;
}

/* Notice Board Styling */
.notice-ticker-section {
    border-bottom: 2px solid #008a3d;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.notice-ticker-section marquee span {
    font-size: 14px;
    cursor: pointer;
}

.notice-ticker-section marquee span:hover {
    color: #ffc107;
}

.btn-success {
    background-color: #008a3d !important;
    border: none;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #000 !important;
    transform: scale(1.05);
}

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

.counter-box i {
    opacity: 0.8;
}

.counter-box h2 {
    font-size: 3rem;
}

.counter-box i {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);

    /* counters */
}

.counter-value {
    display: inline-block;
}

/* Modal Background Blur */
#galleryModal {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

/* Modal Image Size */
.custom-modal-img {
    max-height: 85vh;
    object-fit: contain;
    border: 5px solid white;
}

/* Control Buttons Styling */
.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

/* Default (Desktop) */
.carousel-item img {
    height: 600px;
    object-fit: cover;
}

/* Tablet */
@media (max-width: 992px) {
    .carousel-item img {
        height: 400px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .carousel-item img {
        height: 220px;
    }
}




/* Image Hover Effect in Gallery */
.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
    border-color: #198754 !important;
    /* Success color border */
}

#galleryModal .modal-content {
    backdrop-filter: blur(8px);
}

/* --- TOPPER SECTION STYLING --- */
.topper-card {
    transition: 0.4s ease-in-out;
    border-radius: 15px;
    margin: 10px;
}

.topper-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 138, 61, 0.2) !important;
}

.topper-card .img-box img {
    width: 130px;
    height: 130px;
    object-fit: cover;
}

.topper-card h5 {
    color: #333;
    font-size: 18px;
}

.topperSwiper {
    padding: 20px 10px 50px 10px;
}

/* Bullet Dots Color */
.swiper-pagination-bullet-active {
    background: #008a3d !important;
}

/* News Animation */
.news-scroller {
    position: absolute;
    width: 100%;
    animation: scroll-up 15s linear infinite;
}

/* Jab mouse upar le jaye toh scroll ruk jaye */
.news-scroll-box:hover .news-scroller {
    animation-play-state: paused;
}

@keyframes scroll-up {
    0% {
        top: 0;
    }

    100% {
        top: -200px;
    }

    /* Adjust based on content height */
}


.news-item {
    transition: 0.3s;
}

.news-item:hover {
    background: #f8f9fa;
    padding-left: 10px !important;
}

.notice-board li {
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.notice-board li:hover {
    border-left-color: #008a3d;
    background: #f0fdf4 !important;
    /* Halka green hover */
}

/* new and events */

/* Featured */
.featured-event {
    position: relative;
}

.overlay-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* List */
.event-list {
    transition: all 0.3s ease;
}

.event-list:hover {
    transform: translateX(10px);
}

/* Date Box */
.event-date-box {
    min-width: 60px;
    font-size: 14px;
}

.teacher-card {
    transition: all 0.3s ease;
    border-top: 3px solid #ff6600;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}


.footer-links a {
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ff6600 !important;
    padding-left: 5px;
}

.social-links a {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-links a:hover {
    background-color: #ff6600;
    border-color:#ff6600;
    color: #fff;
    transform: translateY(-3px);
}

#contact-section .form-control:focus,
#contact-section .form-select:focus {
    border-color: #008a3d;
    box-shadow: 0 0 0 0.25rem rgba(0, 138, 61, 0.25);
}

/* Swiper container ko thodi padding do taaki shadow na kate */
.topperSwiper {
    padding: 20px 5px 60px 5px !important;
}

.topper-card {
    transition: 0.4s ease-in-out;
    border-radius: 15px;
    height: 100%;
    /* Saare cards ek barabar dikhenge */
}

.topper-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 138, 61, 0.15) !important;
}
.swiper-pagination-bullet-active {
    background: #ff6600 !important;
}

.custom-btn {
    background: linear-gradient(45deg, #ff6600, #ff8533);
    color: #fff;
    border: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.custom-btn:hover {
    background: linear-gradient(45deg, #cc5200, #ff6600);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #fff;
}
