body {

    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- Topbar Main Style (Previous styles improved) --- */
.top-bar {
    background-color: #009B50;
    /* Deep Navy Blue */
    color: #ffffff;
    font-family: "montserrat", Times, serif;
    /* Serif Font */
    position: relative;
    /* For dropdown positioning */
    z-index: 1000;
    /* Ensures menu stays on top of content */
    border-bottom: 3px solid #fcbe15;
}

.school-name {
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fcbe15;
    font-family: "popins", Times, serif;
}

.separator {
    color: #fcbe15;
    /* Golden color for diamond */
    font-size: 0.8rem;
    margin: 0 5px;
}

/* --- Common Link Styles --- */
.top-link {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 15px;
    /* Added padding for better hover area */
    display: inline-block;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

/* --- Golden Hover Effect (for all top links) --- */
.top-link:hover,
.nav-item-dropdown:hover .top-link {
    color: #fcbe15 !important;
    /* Forces golden text on hover */
    text-decoration: none;
}

/*----------------topbar  dropdown-----------------*/


/* ==========================================================
   DROPDOWN MENU STYLING & ANIMATION
   ========================================================== */

/* 1. Parent Container for positioning */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

/* 2. The Dropdown Menu (hidden by default) */
.dropdown-menu-custom {
    display: block;
    /* We'll use opacity/visibility for animation */
    position: absolute;
    top: 100%;
    /* Sits right below the top-bar */
    left: 0;
    background-color: #009b50;
    /* Matching Navy Blue */
    min-width: 220px;
    /* Minimum width */
    padding: 0;
    margin: 0;
    list-style: none;
    border-top: 2px solid #fcbe15;
    /* Golden top border like image */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    /* Soft shadow */

    /* Animation initial state: Hidden, pushed up slightly, and invisible */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    /* Slide-down start position */
    transition: all 0.4s ease-in-out;
    /* Smooth transition */
}

/* 3. Dropdown Menu Trigger (Hover State) */
.nav-item-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
    /* Slides down to final position */
}

/* 4. Individual List Item Styling */
.dropdown-menu-custom li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* Thin white line divider */
}

/* Remove border from last item */
.dropdown-menu-custom li:last-child {
    border-bottom: none;
}

/* 5. Dropdown Link Styling */
.dropdown-menu-custom li a {
    color: #ffffff;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: left;
}

/* 6. Golden Hover Effect for Dropdown Items */
.dropdown-menu-custom li a:hover {
    background-color: rgba(184, 156, 98, 0.1);
    /* Very subtle golden background */
    color: #fcbe15;
    /* Golden text on hover */
    text-decoration: none;
}

/* Optional: Golden caret down arrow (▽) */
.dropdown-toggle-custom::after {
    content: ' ▽';
    font-size: 0.7rem;
    color: #fcbe15;
    margin-left: 5px;
    display: none;
}

/* ____  topbar end  ______  */



/*----------------marquee start -----------------*/
:root {
    --primary-y: #fcbe15;
    /* Snehkul Yellow */
    --secondary-g: #009b50;
    /* Snehkul Green */
}

.snehkul-ultra-marquee {
    display: flex;
    align-items: center;
    background: #ffffff;
    height: 42px;
    width: 100%;
    border-bottom: 3px solid var(--primary-y);
    overflow: hidden;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

/* 1. ✂️ Clip-Cut Label with SHINE Effect */
.marquee-label-shine {
    background: var(--primary-y);
    color: var(--secondary-g);
    padding: 0 35px 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
    z-index: 20;
    clip-path: polygon(0 0, 88% 0, 100% 100%, 0% 100%);
    position: relative;
    overflow: hidden;
}

.marquee-label-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: rotate(25deg);
    animation: shine-loop 3s infinite;
}

/* 2. 🌫️ FADE-OUT EDGES Effect */
.marquee-fade-window {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.marquee-fade-window::before,
.marquee-fade-window::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.marquee-fade-window::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.marquee-fade-window::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

/* 3. 💓 PULSING BADGE Effect */
.mq-pulse-dot {
    background: var(--secondary-g);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: bold;
    animation: pulse-green 1.5s infinite;
}

.alert-bg {
    background: #d9534f;
}

/* Red for Alert */

/* 4. 🎞️ Smooth Infinite Animation */
.marquee-track-main {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: marquee-scroll 28s linear infinite;
}

.mq-link-item {
    text-decoration: none !important;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    padding: 0 40px;
    transition: 0.3s;
}

.mq-link-item:hover {
    color: var(--secondary-g);
}

.mq-divider {
    color: var(--primary-y);
    font-weight: bold;
}

/* 📽️ KEYFRAMES */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes shine-loop {
    0% {
        left: -100%;
    }

    30% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 155, 80, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(0, 155, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 155, 80, 0);
    }
}

/* Pause on Hover */
.snehkul-ultra-marquee:hover .marquee-track-main {
    animation-play-state: paused;
}

/*----------------marquee end -----------------*/





/*_____Menu bar start_______*/


/* Desktop Mode: Logo ko centre karne ke liye */
@media (min-width: 992px) {
    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    .logo-container img {
        height: 54px;
        width: auto !important;
        max-height: 60px;
        transition: 0.3s;
        border-radius: 33%;
    }

    .logo-container img:hover {
        height: 60px;
        width: auto !important;
        max-height: 70px;
        transition: 0.3s;
        transform: scale(1.03);
    }

    .my-custom-nav .nav-link {
        color: #009b50 !important;
        font-size: 15px;
    }

    .my-custom-nav .nav-link:hover {
        color: #fcbe15 !important;

    }

    .navbar-nav {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
}

/* 1. Desktop par bina click kiye Dropdown khulne ke liye (Hover Effect) */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s ease-in-out;
    }
}

/* 2. Dropdown Main Box Styling */
.custom-dropdown {
    background: #ffffff;
    border: none;
    border-top: 4px solid #fcbe15;
    /* Yellow Top Border */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 240px !important;
    width: 240px !important;
    height: auto !important;
}

/* 3. Triangle Notch (Upar chota teer) - Sirf Desktop par */
@media (min-width: 992px) {
    .custom-dropdown::before {
        content: "";
        position: absolute;
        top: -12px;
        left: 20px;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid #fcbe15;
        /* Yellow Arrow */
    }
}

/* 4. Dropdown Links Styling */
.custom-dropdown .dropdown-item {
    color: #009b50;
    /* Green Text */
    font-weight: 600;
    padding: 12px 20px;
    font-size: 14px;
    position: relative;
    transition: all 0.3s ease;
    white-space: normal !important;
}

/* 5. Best Hover Effect (Green background with left border) */
.custom-dropdown .dropdown-item:hover {
    background-color: rgba(0, 155, 80, 0.05);
    /* Halka Green tint */
    color: #009b50 !important;
    padding-left: 28px;
    /* Smoothly right shift */
}

/* Hover par ek choti vertical line dikhane ke liye */
.custom-dropdown .dropdown-item::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 70%;
    background-color: #fcbe15;
    /* Yellow line on hover */
    transition: width 0.2s ease;
}

.custom-dropdown .dropdown-item:hover::after {
    width: 5px;
    /* Hover par yellow border dikhega side mein */
}

/* Mobile Mode: Logo ko normal (left) rakhne ke liye */
@media (max-width: 991px) {
    .logo-container {
        position: static;
        transform: none;


    }

    .logo-container img {
        height: 70px;
        width: auto !important;
        max-height: 70px;
        transition: 0.3s;
    }

    .logo-container img:hover {
        height: 70px;
        width: auto !important;
        max-height: 70px;
        transition: 0.3s;
        transform: scale(1.03);
    }

    .navbar-nav {
        text-align: center;
    }

    /* Menu items ko ek ke niche ek dikhane ke liye */
    .navbar-nav .d-lg-flex {
        display: block !important;
    }
}

.navbar-toggler {
    background: white;
    padding: 8px;
    border: 2px solid transparent !important;
    background-image: linear-gradient(white, white),
        linear-gradient(to right, #009b50, #fcbe15);
    /* Green se Yellow gradient */
    background-origin: border-box;
    background-clip: content-box, border-box;
    border-radius: 5px;
}


@media (max-width: 991px) {

    /* Dropdown container ko center karne ke liye */
    .dropdown-menu.custom-dropdown {
        position: absolute !important;
        left: 75% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        /* Ye center mein layega */
        width: 50% !important;
        /* Screen se thoda chota dikhega jo professional lagta hai */
        margin: 0 auto !important;
        text-align: center;
        /* Text ko bhi center karne ke liye */
    }

    /* Dropdown ke links ko center align karne ke liye */
    .dropdown-menu.custom-dropdown .dropdown-item {
        justify-content: center;
        display: flex;
        padding: 12px 0;
    }
}

/* Custom styling for the gif */
.new-badge-icon {
    height: 18px;
    /* Aap apne hisab se height adjust kar sakte hain */
    width: auto;
    object-fit: contain;
    margin-left: 10px;
}

/*----------- notice -----------------*/
/* Optional: Hover effect taaki dropdown smooth lage */
.dropdown-item:hover .new-badge-icon {
    transform: scale(1.1);
    transition: 0.3s;
}

/*-----------end-----------------*/


/*-----------slider start-----------------*/

/* --- Snehkul Clean Auto-Slider (No Buttons) --- */
#snehkulSlider {
    width: 100%;
    height: 85vh;
    background-color: #000;
    overflow: hidden;
    position: relative;
}

.carousel-item {
    height: 85vh;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 8s linear;
    /* Smooth zoom animation */
}

.carousel-item.active img {
    transform: scale(1.15);
}

/* Premium Caption Box */
.carousel-caption {
    bottom: 18% !important;
    text-align: left;
    left: 8%;
    right: auto;
    max-width: 680px;
    padding: 55px 45px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    border-left: 10px solid #fcbe15;
    /* School Yellow Accent */
    border-radius: 0 20px 20px 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.cap-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    background: #009b50;
    /* School Green */
    padding: 7px 18px;
    margin-bottom: 25px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cap-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cap-title span {
    color: #fcbe15;
}

.cap-description {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 35px;
    line-height: 1.6;
}

.btn-snehkul-action {
    background: #fcbe15;
    color: #000 !important;
    padding: 15px 40px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 5px;
    border: none;
    transition: 0.4s;
    text-decoration: none;
    display: inline-block;
}

.btn-snehkul-action:hover {
    background: #009b50;
    color: #fff !important;
    transform: translateY(-5px);
}

/* Custom Indicators (Dots) */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fcbe15;
    border: none;
    margin: 0 6px;
    opacity: 0.5;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #009b50;
    width: 35px;
    /* Active dot thoda lamba dikhega */
    border-radius: 10px;
}

@media (max-width: 768px) {

    #snehkulSlider,
    .carousel-item {
        height: 60vh;
    }

    .carousel-caption {
        bottom: 5% !important;
        left: 5%;
        right: 5%;
        padding: 30px 20px;
    }

    .cap-title {
        font-size: 2.2rem;
    }
}

/*________________ slider end__________*/



/*----------footer start------------*/


/* Main Footer Style */
.custom-footer {
    background-color: #fcbe15;
    /* Primary Gold */
    border-top: 3px solid #009b50;
    /* Secondary Green */
    color: #000;
    overflow: hidden;
    /* Animation smoothly dikhne ke liye */
}

/* 1. Page Load Animation (Fade & Slide Up) */
.animate-fade-in {
    display: inline-block;
    animation: fadeInUp 0.8s ease-out forwards;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Link Hover Animation (Text Color & Underline Slide) */
.footer-links {
    font-size: 11px;
}

.nav-anim {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-anim::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #009b50;
    /* Secondary Green Underline */
    transition: width 0.3s ease;
}

.nav-anim:hover {
    color: #009b50;
    /* Text turns green on hover */
}

.nav-anim:hover::after {
    width: 100%;
    /* Underline expands on hover */
}

/* 3. Subtle Pulse Animation on the Credit */
.footer-links li:last-child a {
    animation: pulseLight 3s infinite;
}

@keyframes pulseLight {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Mobile responsive fix */
@media (max-width: 768px) {
    .footer-text {

        font-size: 10px;
    }

    .footer-links {
        margin-top: 8px;
        font-size: 10px;
    }
}


/*----------footer start------------*/




/*--------------- image- gallery page ka style hai------------*/


/* --- Header Section --- */
.gallery-header {
    background: linear-gradient(135deg, #009b50 0%, #007a3f 100%);
    padding: 5px 0;
    color: white;
    border-bottom: 6px solid #fcbe15;
    margin-bottom: 50px;
    border-radius: 0 0 40px 40px;
}

/* --- Flip Card Core CSS --- */
.flip-card {
    background-color: transparent;
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #ffffff;
}

.flip-card-front img,
.flip-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-back {
    background-color: #009b50;
    color: white;
    transform: rotateY(180deg);
    border-color: #fcbe15;
}

/* --- Labels --- */
.flip-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    color: #009b50;
    padding: 8px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
}

.flip-label-back {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fcbe15;
    color: #000;
    padding: 8px;
    font-weight: 800;
    font-size: 11px;
}

/* --- Floating Home --- */
.home-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #fcbe15;
    color: #000;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9999;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.home-float:hover {
    background: #009b50;
    color: #fff;
    transform: scale(1.1);
}


/*----------------image-gallery end----------*/




/*----------------notice board css  start----------*/


/* Color Palette: Green (#009b50) & Gold (#fcbe15) */


.text-green {
    color: #009b50;
}

.text-gold {
    color: #fcbe15;
}



/* Notice Cards */
.section-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e0e6ed;
}

.card-header-main {
    background: #009b50;
    padding: 20px;
    color: white;
}

.btn-filter {
    background: #f0f2f5;
    border: 1px solid #ddd;
    color: #555;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 13px;
    transition: 0.3s;
}

.btn-filter.active {
    background: #009b50;
    color: white;
    border-color: #009b50;
}

.notice-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: 0.3s;
    position: relative;
}

.notice-card:hover {
    background: #fffdf5;
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Left Date Box */
.notice-date {
    min-width: 70px;
    height: 75px;
    background: #f0f2f5;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #009b50;
    border: 1px solid #dee2e6;
}

.notice-date span {
    font-size: 24px;
    color: #333;
    display: block;
    line-height: 1;
}

/* Notice Specific Colors */
.notice-card.urgent {
    border-left: 5px solid #ff4d4d;
}

.notice-card.academic {
    border-left: 5px solid #3498db;
}

.notice-card.admission {
    border-left: 5px solid #009b50;
}

.notice-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
}

.notice-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Buttons & Badges */
.btn-download {
    text-decoration: none;
    color: #009b50;
    border: 1px solid #009b50;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-download:hover {
    background: #009b50;
    color: #fff;
}

.badge-blink {
    background: #ff4d4d;
    color: #fff;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 3px;
    animation: blinker 1s linear infinite;
}

.badge-new {
    background: #fcbe15;
    color: #000;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 3px;
}

/* Side Cards */
.info-side-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e0e6ed;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.info-title {
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.contact-gradient {
    background: linear-gradient(135deg, #009b50, #007d41);
    border: none;
}

/* Animations */
@keyframes blinker {
    50% {
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .notice-card {
        flex-direction: column;
    }

    .notice-date {
        width: 60px;
        height: 60px;
    }
}


/*---------------- notice board css  end----------*/