/* 🌟 Global Premium Styles (Extracted from index.html) 🌟 */

/* 1. Global Variables & Base */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

body {
    background-color: #f8f9fa;
}

/* Unified Section Spacing */
.section {
    padding: 60px 0;
}

/* 2. Modern Section Titles */
h2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* 3. Card Glassmorphism & Lift */
.stat-card,
.about-card,
.service-card,
.official-card,
#leaders .container div div {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.stat-card:hover,
.about-card:hover,
.service-card:hover,
.official-card:hover,
#leaders .container div div:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
    border-color: #764ba2;
}

/* 4. Button Polish */
.filter-btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    background: #e9ecef;
    color: #555;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 5. Mobile Adjustments */
@media (max-width: 768px) {
    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .section {
        padding: 40px 0;
    }
}

/* 6. Utility & Animations */

/* 🗑️ Hide Redundant Slider */
.slider-wrap,
#officeSlider2 {
    display: none !important;
}

/* 🔢 Counter Up Animation */
.counter {
    display: inline-block;
    min-width: 50px;
}

/* 🧲 3D Tilt Effect on Cards */
.tilt-card {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* 🌊 Footer Wave */
.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(186% + 1.3px);
    height: 70px;
    transform: rotateY(180deg);
}

.footer-wave .shape-fill {
    fill: #1a1a1a;
    /* Match footer background */
}

/* 🎾 Icon Bounce on Hover */
.service-card:hover .service-icon,
.stat-card:hover .stat-icon {
    animation: icon-bounce 0.6s ease infinite alternate;
}

@keyframes icon-bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-8px);
    }
}

/* 📰 Modern News Ticker */
.news-ticker-container {
    display: flex;
    align-items: center;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10;
    overflow: hidden;
    height: 50px;
}

.ticker-title {
    background: #d32f2f;
    color: white;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
    z-index: 12;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.blink-dot {
    color: #fff;
    margin-right: 8px;
    animation: blink 1.5s infinite;
}

.ticker-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    padding: 0 30px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.ticker-item:hover {
    color: #d32f2f;
}

.badge-new {
    background: #e53935;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    margin-right: 0;
}

.badge-notice {
    background: #1976d2;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ⌨️ Hero Typing Effect */
.typing-text {
    border-right: 3px solid rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    display: inline-block;
    max-width: 100%;
    vertical-align: bottom;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: rgba(255, 255, 255, 0.75);
    }
}

/* ✨ Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .ticker-title {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .ticker-item {
        font-size: 0.9rem;
    }
}

/* 🌟 Welcome Popup Premium Styles 🌟 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInOverlay 0.5s ease-out;
}

.popup-content {
    background: rgba(255, 255, 255, 0.95);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: scaleInPopup 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.popup-close:hover {
    color: #333;
}

.popup-logo {
    width: 80px;
    margin-bottom: 10px;
    animation: floatLogo 3s ease-in-out infinite;
}

.popup-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popup-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.popup-message-box {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: #1a1a1a;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.popup-message-box h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #4a148c;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popup-daily-thought {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
}

.popup-info p {
    color: #555;
    margin-bottom: 20px;
    font-weight: 600;
}

.premium-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleInPopup {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulseBorder {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 82, 82, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
    }
}

@keyframes pulseScale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.popup-news-box {
    background: #fff5f5;
    border-left: 4px solid #ff5252;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease-out;
}