/* 
   GRAM PANCHAYAT PREMIUM THEME 
   Style: Royal Glass (Govt of Maharashtra)
   Author: AI Assistant
*/

:root {
    /* Royal Palette */
    --royal-blue: #0d47a1;
    --royal-blue-dark: #002171;
    --royal-gold: #ffb300;
    /* Saffron/Gold */
    --royal-orange: #ff6f00;
    --gov-green: #2e7d32;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --blur-strength: 10px;

    /* Text Colors */
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --text-muted: #666;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    background: #f0f2f5;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* =========================================
   UTILITIES
   ========================================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.glass-card-hover {
    transition: all 0.3s ease;
}

.glass-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--royal-gold);
}

.text-gradient {
    background: radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0.6;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--royal-blue), var(--royal-orange));
    border-radius: 2px;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.premium-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(13, 71, 161, 0.1);
    color: var(--royal-blue) !important;
}

/* =========================================
   HERO SECTION
   ========================================= */
.premium-hero {
    position: relative;
    height: 90vh;
    /* Premium full height */
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s linear;
    /* Ken Burns Effect */
    transform: scale(1);
}

.bg-slide.active {
    opacity: 1;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.hero-text-box {
    max-width: 600px;
    color: white;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-left: 5px solid var(--royal-orange);
    border-radius: 0 10px 10px 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Floating Dignitaries Cards */
.hero-dignitaries {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dignitary-card-glass {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 50px;
    /* Pill shape */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    backdrop-filter: blur(10px);
}

.dignitary-card-glass:hover {
    transform: translateX(-10px);
    background: #fff;
}

.dig-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--royal-gold);
    object-fit: cover;
}

/* =========================================
   VILLAGE STATS STRIP
   ========================================= */
.stats-premium-strip {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    /* Overlap Hero */
    margin-bottom: 60px;
}

.stats-grid-glass {
    display: flex;
    justify-content: space-around;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid var(--royal-blue);
}

.stat-item-premium {
    text-align: center;
}

.stat-icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(13, 71, 161, 0.1);
    color: var(--royal-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 15px;
    transition: all 0.3s;
}

.stat-item-premium:hover .stat-icon-circle {
    background: var(--royal-blue);
    color: white;
    transform: rotateY(180deg);
}

/* =========================================
   PROGRESS SECTION
   ========================================= */
.progress-modern-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #eee;
    height: 100%;
}

.circular-chart {
    display: block;
    margin: 10px auto;
    max-width: 120px;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

.percentage {
    fill: #666;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 0.5em;
    text-anchor: middle;
}

/* Breaking News Ticker */
.news-ticker-area {
    background: linear-gradient(90deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.news-label {
    background: #b71c1c;
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-label::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    border-top: 40px solid transparent;
    border-left: 20px solid #b71c1c;
    border-bottom: 0 solid transparent;
}

.flash-badge {
    background: #ffeb3b;
    color: #b71c1c;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    animation: flash 1s infinite alternate;
}

@keyframes flash {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.5;
    }
}

/* E-Dawandi Section */
.e-dawandi-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff9800;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.e-dawandi-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    border-bottom: 2px dashed #ffb74d;
    padding-bottom: 8px;
}

.dawandi-icon {
    font-size: 1.8rem;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: shake 2s infinite;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

.dawandi-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dawandi-content li {
    background: rgba(255, 255, 255, 0.6);
    padding: 8px;
    margin-bottom: 5px;
    border-left: 4px solid #ff9800;
    font-size: 0.95rem;
}

/* =========================================
   PREMIUM STATS & INFO STRIP
   ========================================= */
.quick-info-strip {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-radius: 12px;
    padding: 15px !important;
    margin: 20px 0 !important;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.info-item {
    transition: transform 0.3s ease;
    padding: 10px !important;
    border-radius: 8px;
    border-right: none !important;
    /* Remove old borders */
    background: rgba(255, 255, 255, 0.5);
}

.info-item:hover {
    transform: translateY(-5px);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* =========================================
   NEW SECTIONS (Success & Emergency)
   ========================================= */
.section-header-premium {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.success-story-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.success-story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.emergency-strip {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 15px 5px;
}

.emergency-card {
    flex: 1;
    min-width: 120px;
    background: linear-gradient(to bottom right, #ffebee, #ffcdd2);
    border: 1px solid #ef9a9a;
    border-radius: 10px;
    text-align: center;
    padding: 15px;
    color: #c62828;
    text-decoration: none;
    transition: transform 0.2s;
}

.emergency-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2);
}

.partners-strip {
    display: flex;
    gap: 30px;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
}

.partner-logo {
    height: 60px;
    opacity: 0.8;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* =========================================
   VILLAGE DIRECTORY
   ========================================= */
/* =========================================
   VILLAGE DIRECTORY
   ========================================= */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 15px;
}

.directory-category {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.directory-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(13, 71, 161, 0.15);
    border-color: #bbdefb;
}

.directory-category h4 {
    color: #0d47a1;
    font-size: 1.2rem;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.directory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.directory-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.95rem;
    color: #455a64;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.directory-list li::before {
    content: "•";
    color: #ffb300;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 10px;
    line-height: 1;
}

.directory-list li:hover {
    color: #0d47a1;
    padding-left: 5px;
}

.directory-list li:last-child {
    border-bottom: none;
}

/* =========================================
   OFFICIALS SIDEBAR CARDS
   ========================================= */
.official-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.official-card:hover {
    transform: translateX(5px);
    border-color: #bbdefb;
}

.official-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e3f2fd;
    flex-shrink: 0;
}

.official-card .info {
    overflow: hidden;
}

.official-card .name {
    font-weight: 600;
    color: #1565c0;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.official-card .post {
    font-size: 0.85rem;
    color: #666;
}



/* =========================================
   3-COLUMN HOMEPAGE LAYOUT
   ========================================= */

/* News Ticker */
.news-ticker {
    background: linear-gradient(90deg, #d32f2f 0%, #b71c1c 100%);
    color: white;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.news-label {
    background: #b71c1c;
    padding: 10px 20px;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Main 3-Column Container */
.main-container {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px 30px;
}

/* Sidebar Boxes (Left & Right) */
.sidebar-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    color: white;
    padding: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 3px solid #ffb300;
}

.sidebar-content {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

/* Sidebar Person Cards */
.sidebar-person {
    text-align: center;
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.sidebar-person:hover {
    background: #f8f9fa;
}

.sidebar-person img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e3f2fd;
    margin-bottom: 10px;
}

.sidebar-person h4 {
    margin: 8px 0 4px;
    color: #0d47a1;
    font-size: 1rem;
}

.sidebar-person p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

/* Main Content Area */
main {
    background: transparent;
}

/* Welcome Box / Content Boxes */
.welcome-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.welcome-box h2,
.welcome-box h3 {
    color: #0d47a1;
    margin-top: 0;
}

.welcome-box ul {
    padding-left: 20px;
}

.welcome-box ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Gallery Strip */
.gallery-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}

.gallery-strip::-webkit-scrollbar {
    height: 6px;
}

.gallery-strip::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.gallery-thumb {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 240px 1fr 240px;
        gap: 15px;
    }

    .sidebar-box {
        top: 70px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sidebar-box {
        position: relative;
        top: 0;
        max-height: none;
    }

    .premium-hero {
        height: auto;
        flex-direction: column;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero-text-box {
        background: rgba(0, 0, 0, 0.6);
        border: none;
        text-align: center;
    }

    .hero-dignitaries {
        flex-direction: row;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 20px;
        justify-content: flex-start;
    }

    .dignitary-card-glass {
        min-width: 260px;
    }

    .stats-grid-glass {
        flex-direction: column;
        gap: 30px;
    }
}

/* =========================================     PREMIUM FOOTER     ========================================= */
.premium-footer {
    background: linear-gradient(to right, #002147, #004d40);
    /* Deep Blue to Green */
    color: #e0e0e0;
    padding-top: 60px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;

}

.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/14/Wavy_line.svg/2560px-Wavy_line.svg.png');
    /* Or CSS SVG */
    background-size: cover;
    opacity: 0.1;

}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;

}

.footer-col h3 {
    color: #ffb300;
    /* Royal Gold */
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;

}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background: #ff6f00;

}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;

}

.footer-links li {
    margin-bottom: 12px;

}

.footer-links a {
    color: #b0bec5;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;

}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);

}

.footer-contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;

}

.footer-icon {
    background: rgba(255, 255, 255, 0.1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;

}

.visitor-counter {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;

}

.visitor-count {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4caf50;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;

}

.copyright-bar {
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #90a4ae;

}

.social-circle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 1.2rem;

}

.social-circle:hover {
    background: var(--royal-blue);
    transform: translateY(-3px);

}

/* =========================================     ENHANCED HERO SLIDER     ========================================= */
.center-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;

}

.slider-img.active {
    opacity: 1;

}

/* Slider Controls */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;

}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0, 0, 0, 0.8);

}

.slider-prev {
    left: 10px;

}

.slider-next {
    right: 10px;

}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;

}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;

}

.dot.active {
    background: white;
    transform: scale(1.2);

}


/* ======================================== MOBILE OPTIMIZATIONS FOR QR & CALENDAR ======================================== */

/* QR Payment Section Mobile */
@media (max-width: 768px) {
    .welcome-box h3 {
        font-size: 1.3rem;
    }

    .welcome-box p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {

    /* QR Cards Stack on Mobile */
    .welcome-box>div[style*='grid-template-columns'] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Smaller QR placeholder */
    .welcome-box div[style*='width: 150px'] {
        width: 120px !important;
        height: 120px !important;
    }

    .welcome-box h4 {
        font-size: 1.1rem;
    }

    .welcome-box p {
        font-size: 0.85rem;
    }
}
/* Before/After Slider Styles */
.comparison-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 450px;
    background: #f0f0f0;
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.comparison-slider .img-after {
    clip-path: inset(0 50% 0 0);
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: white;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #ff6f00;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slider-label {
    position: absolute;
    top: 20px;
    padding: 5px 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 5;
    font-weight: bold;
}

.label-before { right: 20px; }
.label-after { left: 20px; }

