﻿/* ===============================
   YAGNIK EDUCATION GLOBAL THEME
================================ */

:root {
    /* ===== FONT SCALE (OPTIONAL ADVANCED) ===== */
    --fs-base: 1rem; /* 16px */
    --fs-sm: 0.875rem; /* 14px */
    --fs-lg: 1.25rem; /* 20px */
    --fs-xl: 1.5rem; /* 24px */
    /* ===== SPACING SYSTEM ===== */
    --space-xs: 0.5rem; /* 8px */
    --space-sm: 1rem; /* 16px */
    --space-md: 1.5rem; /* 24px */
    --space-lg: 2rem; /* 32px */
    --space-xl: 3rem; /* 48px */
    /* ===== BRAND COLORS ===== */
    --color-primary: #0248b8;
    --color-primary-dark: #0248b8b5;
    --color-primary-deep: #0248b8;
    --color-primary-soft: #dcfce7;
    --color-secondary: #facc15;
    /* ===== TITLES ===== */
    --color-title: #000000;
    --color-title-accent: #ffd54f;
    /* ===== TEXT ===== */
    --color-text-main: #333333;
    --color-text-soft: #6b7280;
    --color-text-light: #ffffff;
    --color-text-dark: #000000;
    /* ===== BACKGROUNDS ===== */
    --surface-main: #ffffff;
    --surface-section: #f0fdf4;
    --surface-glass: rgba(0, 0, 0, .35);
    --surface-border: rgba(255, 255, 255, .15);
    /* ===== SHADOWS ===== */
    --shadow-soft: 0 0.25rem 0.875rem rgba(22, 163, 74, .25);
    --shadow-strong: 0 0.5rem 1.25rem rgba(22, 163, 74, .35);
    /* ===== RADIUS ===== */
    --radius-sm: 0.625rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-full: 999px;
    /* ===== MOTION ===== */
    --motion-fast: .3s ease;
    /* ===== TYPOGRAPHY ===== */
    --font-main: 'Poppins', sans-serif;
}

::-webkit-scrollbar {
    display: none;
}

.gallery-img {
    cursor: pointer;
    border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
}

html {
    scrollbar-width: none;
    font-size: 16px;
}

@media (max-width: 1440px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
}

select {
    appearance: none;
}

/* ===============================
   HERO SECTION
================================ */

.hero-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, .65)0%, rgba(0, 0, 0, .45)35%, rgba(0, 0, 0, .2)60%, rgba(0, 0, 0, .05)100%);
}

#home h1 {
    letter-spacing: -0.0625rem;
    /* -1px */
    line-height: 1.15;
}

.nav-link {
    padding: 0.5rem 0.7rem; /* less padding */
    font-size: 0.85rem; /* thodu small */
}
/* ===============================
   TRUST BADGES
================================ */

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-full);
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    color: var(--color-text-light);
    font-size: 15px;
    border: 1px solid var(--surface-border);
    transition: var(--motion-fast);
}

    .trust-badge:hover {
        background: rgba(0, 0, 0, .5);
        transform: translateY(-0.125rem);
        /* -2px */
    }



/* ===============================
   BUTTONS
================================ */

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-light);
    padding: 1rem 2rem;
    /* 16px 32px */
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: var(--motion-fast);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        /* keep px (better animation) */
        box-shadow: var(--shadow-strong);
    }

.btn-secondary {
    background: var(--color-text-light);
    color: var(--color-primary);
    padding: 0.875rem 2rem;
    /* 14px 32px */
    border-radius: 0.75rem;
    /* 12px */
    font-weight: 600;
    border: 0.125rem solid var(--color-text-light);
    /* 2px */
}



.btn-gold {
    background: var(--color-secondary);
    color: #000;
    padding: 0.875rem 2rem;
    /* 14px 32px */
    border-radius: 0.75rem;
    font-weight: 600;
}

    .btn-gold:hover {
        background: #eab308;
    }

.btn-apply {
    background: var(--color-primary);
    color: var(--color-text-light);
    padding: 0.75rem 1.75rem;
    /* 12px 28px */
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-soft);
}

    .btn-apply:hover {
        box-shadow: var(--shadow-strong);
    }

/* ===============================
   NAV LINKS
================================ */

.nav-link {
    padding: 0.625rem 0.9375rem;
    /* 10px 15px */
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    transition: var(--motion-fast);
}

    .nav-link:hover {
        color: var(--color-primary);
        background: var(--color-primary-soft);
    }

.dropdown-item {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    transition: 0.3s;
}

    .dropdown-item:hover {
        background: #f3f4f6;
        color: var(--color-primary);
    }

.dropdown-icon {
    font-size: 18px;
    transition: 0.3s ease;
    opacity: .7;
}

.group:hover .dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.mobile-sub-link {
    display: block;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
    color: #555;
}

    .mobile-sub-link:hover {
        background: #f3f4f6;
        color: var(--color-primary);
    }

.badge {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 14px;
    color: #334155;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ===============================
   SCROLL MOUSE
================================ */
.scroll-mouse {
    position: absolute;
    bottom: -2.5rem;
    /* -40px */
    left: 50%;
    transform: translateX(-50%);
    width: 1.625rem;
    /* 26px */
    height: 2.75rem;
    /* 44px */
    border: 0.125rem solid rgba(255, 255, 255, .7);
    /* 2px */
    border-radius: 1.25rem;
    /* 20px */
    display: flex;
    justify-content: center;
    padding-top: 0.375rem;
    /* 6px */
}

.scroll-wheel {
    width: 0.375rem;
    /* 6px */
    height: 0.375rem;
    /* 6px */
    background: #fff;
    border-radius: 50%;
    animation: scrollMove 1.6s infinite;
}

@keyframes scrollMove {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    60% {
        transform: translateY(10px);
        /* keep px (animation stable) */
        opacity: .4;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* ===============================
   COMMON UTILITIES
================================ */

.section-pattern {
    background-color: var(--surface-section);
}

.check-icon {
    width: 22px;
    height: 22px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.title-underline::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--color-primary);
    margin: 12px auto 0;
    border-radius: 999px;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 60px;
    color: rgba(22, 163, 74, .15);
}

.admission-banner {
    background: linear-gradient(135deg, var(--color-primary)0%, var(--color-primary-deep)100%);
}


/* ===============================
   GALLERY
================================ */
/* ===============================
   GALLERY SECTION
================================ */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--surface-glass), transparent);
    opacity: 0;
    transition: .3s;
    padding: 1.25rem;
    color: var(--color-text-light);
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* ===============================
   TEAM SECTION
================================ */

.team-row {
    display: flex;
    gap: 3.125rem;
    flex-wrap: wrap;
}

.card {
    background: var(--surface-main);
    text-align: center;
    width: 13.75rem;
}

    .card.large {
        width: 16.25rem;
    }

.img-box {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    height: 10rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.large .img-box {
    height: 16.25rem;
}

.img-box img {
    height: 120%;
    object-fit: cover;
    filter: grayscale(100%);
}

.info {
    background: var(--surface-section);
    padding: 0.75rem;
    color: var(--color-text-main);
}

/* ===== VERTICAL STRIP ===== */

.vertical-strip {
    height: 20.9375rem;
    width: 4.375rem;
    background: linear-gradient(180deg, var(--color-secondary), var(--color-primary-deep));
    display: flex;
    align-items: center;
    justify-content: center;
}

    .vertical-strip span {
        color: var(--color-text-light);
        font-weight: 700;
        font-size: 1.75rem;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
    }

/* ===============================
   MOBILE
================================ */

@media(max-width:48rem) {

    .logo {
        height: 6.25rem;
    }
}

/* ===== VERTICAL SCROLL PROGRESS ===== */

/* ===== VERTICAL SCROLL PROGRESS (THEME BASED) ===== */

#scrollProgressVertical {
    position: fixed;
    right: 0;
    top: 80px;
    width: 5px;
    height: 0%;
    border-radius: var(--radius-full);
    z-index: 9999;
    /* ROOT COLORS USE */
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 0 8px var(--color-primary-dark);
    transition: height 0.1s linear;
}

/* ===== FLIP CARD ===== */

.flip-card {
    perspective: 1000px;
    width: 100%;
    height: 220px;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform var(--motion-fast);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    backface-visibility: hidden;
    font-family: var(--font-main);
}

/* ===== FRONT ===== */
.flip-front {
    background: var(--surface-main);
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

/* ===== BACK ===== */
.flip-back {
    background: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 600;
    transform: rotateY(180deg);
    line-height: 1.6;
    box-shadow: var(--shadow-strong);
}

/* */
.vm-card {
    transition: all .4s ease;
}

    /* SOFT GLOW BORDER */
    .vm-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 16px;
        opacity: 0;
        transition: .4s;
    }

    .vm-card:hover::before {
        opacity: 1;
    }

    /* CARD MOVE */
    .vm-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
    }

/* ICON EFFECT */
.vm-icon {
    transition: .4s;
}

    /* ICON INSIDE */
    .vm-icon i {
        transition: .4s;
    }

/* chairman section subtle hover */
.group img {
    transition: .4s;
}

.group:hover img {
    transform: scale(1.04);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes float2 {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes float3 {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float2 {
    animation: float2 7s ease-in-out infinite;
}

.animate-float3 {
    animation: float3 5s ease-in-out infinite;
}

.scroll-section {
    scroll-margin-top: 120px;
}

.menu-link.active {
    background: #e5e7eb;
    color: #1e293b;
    font-weight: 600;
    position: relative;
}

    .menu-link.active::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: #f59e0b;
        border-radius: 6px;
    }

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.08);
}

.cultural-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}

.calendar-day:hover {
    transform: scale(1.1);
    color: #2563eb;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.glass-card {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: #0f172a;
    transition: 0.3s;
}

    .glass-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
    }

.academic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.sports-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
}

.award-card {
    transition: all .4s ease;
}

    .award-card:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    }

.star-card {
    transition: all .35s ease;
}

    .star-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    }

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

    .gallery-card img {
        transition: .5s ease;
    }

    .gallery-card:hover img {
        transform: scale(1.08);
    }

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 18px;
    color: white;
    font-weight: 600;
    background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent);
    opacity: 0;
    transition: .4s;
}

.gallery-card:hover .overlay {
    opacity: 1;
}

/* .counter-card{
  @apply bg-white rounded-2xl p-6 shadow-sm;
} */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    color: #64748b;
    font-weight: 500;
    transition: all .25s ease;
}

    .sidebar-link:hover {
        background: #e5e7eb;
        color: #1f3b63;
        transform: translateX(4px);
    }

.skill-bar {
    width: 0;
    transition: width 1.5s ease;
}

.eval-bar {
    width: 0;
    transition: width 1.5s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

    .faq-item.active .faq-icon {
        transform: rotate(45deg);
    }

.custom-scroll::-webkit-scrollbar {
    height: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #0248b8;
    border-radius: 10px;
}
/* ===== SLIDER IMAGE FADE ===== */

.slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .slide.active {
        opacity: 1;
    }


/* ===== TEXT ANIMATION ===== */

.hero-animate {
    animation: heroText 0.8s ease forwards;
}

@keyframes heroText {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a.active-link {
    background-color: var(--color-primary);
    color: white;
    border-radius: 10px;
}

#scrollTopBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

    /* Hover effect */
    #scrollTopBtn:hover {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 12px 25px rgba(0,0,0,0.3);
    }

    /* Click effect */
    #scrollTopBtn:active {
        transform: scale(0.95);
    }
