/**
 * Gram Panchayat Website - Clean Government UI
 * Inspired by ajgaon.com - Simple, Clean, Professional
 */

/* ==========================================
   CSS Variables - Clean Theme
   ========================================== */
:root {
    /* Primary - Forest Green */
    --primary-color: #1a5d1a;
    --primary-dark: #0f3d0f;
    --primary-light: #2e7d2e;
    --primary-50: #e8f5e9;

    /* Secondary - Warm Orange */
    --secondary-color: #f5a623;
    --secondary-dark: #e09000;
    --secondary-light: #ffb74d;

    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Status Colors */
    --success: #2e7d32;
    --success-light: #e8f5e9;
    --warning: #f57c00;
    --warning-light: #fff3e0;
    --error: #d32f2f;
    --error-light: #ffebee;
    --info: #1976d2;
    --info-light: #e3f2fd;

    /* Typography */
    --font-primary: 'Gotu', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

    /* Container */
    --container-max: 1200px;
}

/* ==========================================
   Base Reset
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-800);
    background-color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

body.lang-mr {
    font-family: 'Gotu', system-ui, sans-serif;
}

main {
    min-height: 60vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--gray-700);
}

/* ==========================================
   Container
   ========================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ==========================================
   Top Bar - Simple
   ========================================== */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3px 0;
    font-size: 0.75rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.top-bar-left {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0.9;
}

.top-bar-left i {
    color: var(--secondary-color);
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.2s;
}

.top-bar-link:hover {
    color: var(--secondary-color);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.language-switcher {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.1);
    padding: 2px;
    border-radius: var(--radius-full);
}

.lang-btn {
    padding: 2px 10px;
    background: transparent;
    color: rgba(255,255,255,0.8);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-btn:hover {
    color: var(--white);
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary-dark);
}

.skip-link {
    position: absolute;
    left: -9999px;
    background: var(--secondary-color);
    color: var(--white);
    padding: var(--space-sm) var(--space-md);
    z-index: 9999;
}

.skip-link:focus {
    left: var(--space-md);
    top: var(--space-sm);
}

/* ==========================================
   Main Header - Clean
   ========================================== */
.main-header {
    background: var(--white);
    padding: 8px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 70px;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-section {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    height: 100%;
}

.emblem {
    max-width: 50px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.logo {
    max-width: 45px;
    max-height: 45px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-title h1 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.2;
}

.site-title .subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 400;
    margin-top: 2px;
}

.site-title .tagline {
    display: block;
    font-size: 0.7rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: var(--primary-50);
    padding: 0;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-color);
}

.mobile-menu-toggle:hover .hamburger,
.mobile-menu-toggle:hover .hamburger::before,
.mobile-menu-toggle:hover .hamburger::after {
    background: var(--white);
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    position: relative;
    transition: background 0.2s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    transition: background 0.2s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Mobile Nav Close Button - Hidden on desktop */
.mobile-nav-close {
    display: none;
}

/* ==========================================
   Navigation - Clean Minimal
   ========================================== */
.main-nav {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--white);
    font-weight: 500;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
    background: rgba(255,255,255,0.15);
}

.nav-menu > li.active > a {
    background: rgba(255,255,255,0.2);
    position: relative;
}

.nav-menu > li.active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px 3px 0 0;
}

.nav-menu > li > a i.fa-chevron-down {
    font-size: 0.6rem;
    opacity: 0.8;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    color: var(--gray-700);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background: var(--primary-50);
    color: var(--primary-color);
    padding-left: var(--space-xl);
}

.dropdown-menu li a i {
    width: 16px;
    color: var(--primary-color);
}

/* ==========================================
   Hero - Creative Design
   ========================================== */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
}

/* Creative Hero Styles */
.hero-creative {
    min-height: 600px;
    overflow: hidden;
}

/* Floating Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: float 20s ease-in-out infinite;
}

.floating-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -50px;
    animation-delay: 0s;
}

.floating-shape.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -50px;
    animation-delay: -5s;
}

.floating-shape.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: 30%;
    animation-delay: -10s;
}

.floating-shape.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 20%;
    animation-delay: -15s;
}

.floating-shape.shape-5 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    right: 20%;
    animation-delay: -8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
        opacity: 0.8;
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInDown 0.8s ease-out;
}

.hero-badge i {
    color: var(--secondary-color);
}

/* Hero Title Animation */
.hero-title-animated {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle-animated {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Button Glow Effect */
.btn-glow {
    position: relative;
    overflow: hidden;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

/* Button Shine Effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.3;
        transform: translateX(-50%) translateY(12px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-color) 100%);
    opacity: var(--hero-overlay-opacity, 0.65);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: var(--space-3xl) 0;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   Buttons - Simple Clean
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-xl);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

/* Default buttons - for use on light backgrounds */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--gray-900);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    color: var(--gray-900);
    border-color: var(--secondary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-success {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}

.btn-success:hover {
    background: #1b5e20;
    border-color: #1b5e20;
}

/* Hero buttons - for use on dark backgrounds */
.hero .btn-primary {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

.hero .btn-primary:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

.hero .btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.hero .btn-outline:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.125rem;
}

/* ==========================================
   Sections - Clean Spacing
   ========================================== */
.section {
    padding: var(--space-3xl) 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
}

.section-header h2 i {
    color: var(--secondary-color);
}

.section-header p {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   Cards - Clean Simple
   ========================================== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: var(--space-lg);
}

/* Card content padding fallback for cards without .card-body */
.card-content {
    padding: var(--space-lg);
}

.card-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-dark);
}

.card-text {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.85rem;
    color: var(--gray-500);
}

.card-meta i {
    color: var(--primary-color);
}

/* ==========================================
   Grid System
   ========================================== */
.grid {
    display: grid;
    gap: var(--space-lg);
    align-items: stretch;
}

.grid > * {
    min-height: 100%;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================
   Quick Links - Clean Cards
   ========================================== */
.quick-links-section {
    margin-top: var(--space-xl);
    position: relative;
    z-index: 10;
    padding-bottom: var(--space-2xl);
}

/* When news ticker is NOT present, pull cards up to overlap hero */
.hero + .quick-links-section {
    margin-top: -60px;
}

/* When news ticker IS present, don't overlap - normal spacing */
.news-ticker-section + .quick-links-section {
    margin-top: var(--space-xl);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    align-items: stretch;
}

.quick-link-card {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    border: 1px solid var(--gray-100);
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.quick-link-card p {
    margin-top: auto;
    margin-bottom: 0;
}

.quick-link-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.quick-link-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.quick-link-card:hover .icon {
    transform: scale(1.1);
}

.quick-link-card .icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.quick-link-card h3 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: var(--space-xs);
}

.quick-link-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
}

/* Creative Quick Link Cards */
.card-hover-lift {
    position: relative;
    overflow: hidden;
}

.card-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, var(--primary-50) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.card-hover-lift:hover .card-bg-pattern {
    opacity: 1;
}

.card-hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 93, 26, 0.15);
}

.icon-bounce {
    transition: transform 0.3s ease;
}

.card-hover-lift:hover .icon-bounce {
    transform: scale(1.15) rotate(-5deg);
    animation: iconPulse 0.5s ease;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1.15) rotate(-5deg); }
    50% { transform: scale(1.2) rotate(0deg); }
}

.card-arrow {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.card-hover-lift:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.card-arrow i {
    font-size: 0.8rem;
}

/* Quick Link Card Border Gradient on Hover */
.card-hover-lift::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.card-hover-lift:hover::before {
    transform: scaleX(1);
}

/* ==========================================
   Notice Board - Simple
   ========================================== */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.notice-item {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s;
}

.notice-item:hover {
    border-left-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

.notice-item.urgent {
    border-left-color: var(--error);
    background: linear-gradient(90deg, var(--error-light) 0%, var(--white) 20%);
}

.notice-date {
    flex-shrink: 0;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-md);
    min-width: 70px;
}

.notice-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.notice-date .month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.9;
    margin-top: 4px;
}

.notice-content h4 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    color: var(--gray-800);
}

.notice-content p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
}

.notice-badge {
    display: inline-flex;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

.notice-badge.gramsabha { background: var(--info-light); color: var(--info); }
.notice-badge.announcement { background: var(--primary-50); color: var(--primary-color); }
.notice-badge.tender { background: var(--warning-light); color: var(--warning); }
.notice-badge.urgent { background: var(--error-light); color: var(--error); }

/* ==========================================
   Projects - Progress Cards
   ========================================== */
.project-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.project-card .card-image {
    height: 180px;
    flex-shrink: 0;
}

.project-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
}

.project-card .card-title {
    font-size: 1.05rem;
    min-height: 2.5em;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

.project-card .card-text {
    flex: 1;
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.project-card .card-meta {
    margin-top: auto;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--gray-100);
}

.project-status {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.project-status.ongoing {
    background: var(--warning);
    color: var(--white);
}

.project-status.completed {
    background: var(--success);
    color: var(--white);
}

.project-status.upcoming {
    background: var(--info);
    color: var(--white);
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--space-sm);
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success));
    border-radius: var(--radius-full);
    transition: width 0.5s;
}

/* ==========================================
   Officials - Clean Cards
   ========================================== */
.official-card {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.official-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg);
}

.official-card .card-title {
    font-size: 1.1rem;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.official-card .card-text {
    margin-bottom: var(--space-sm);
}

.official-card .official-contact {
    margin-top: auto;
}

.official-card .card-image {
    height: auto;
    flex-shrink: 0;
    padding: var(--space-lg);
    padding-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.official-card .card-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.official-card:hover .card-image img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.official-designation {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.official-contact {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.official-contact a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.2s;
}

.official-contact a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ==========================================
   Officials - Circular Photo Cards
   ========================================== */
.official-card-circular {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.official-photo-circular {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: var(--space-md);
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.official-photo-circular.small {
    width: 80px;
    height: 80px;
    border-width: 3px;
}

.official-photo-circular img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.official-card-circular:hover .official-photo-circular img {
    transform: scale(1.1);
}

.official-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.official-photo-circular.small .official-photo-placeholder {
    font-size: 1.5rem;
}

.official-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.official-info h3 {
    font-size: 1.1rem;
    margin: var(--space-xs) 0;
    color: var(--gray-800);
}

.official-role {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.member-card {
    padding: var(--space-lg) var(--space-md);
}

.member-card .official-info h3 {
    font-size: 0.95rem;
}

/* Responsive adjustments for circular cards */
@media (max-width: 768px) {
    .official-photo-circular {
        width: 100px;
        height: 100px;
    }

    .official-photo-circular.small {
        width: 70px;
        height: 70px;
    }

    .official-info h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .official-photo-circular {
        width: 80px;
        height: 80px;
    }

    .official-photo-circular.small {
        width: 60px;
        height: 60px;
    }

    .official-card-circular {
        padding: var(--space-md);
    }

    .official-info h3 {
        font-size: 0.9rem;
    }

    .official-photo-placeholder {
        font-size: 1.8rem;
    }

    .official-photo-circular.small .official-photo-placeholder {
        font-size: 1.2rem;
    }
}

/* ==========================================
   Services - Icon Cards
   ========================================== */
.service-card {
    padding: var(--space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.service-card > * {
    margin-left: 0;
    margin-right: 0;
}

.service-card .btn {
    margin-top: auto;
}

.service-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.service-card:hover .icon {
    transform: scale(1.1);
}

.service-card .icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--gray-800);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
    margin-bottom: var(--space-md);
    flex: 1;
}

/* ==========================================
   Gallery - Grid
   ========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

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

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 0.85;
}

.gallery-item .overlay i {
    font-size: 2rem;
    color: var(--white);
}

/* ==========================================
   Stats Section
   ========================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
}

.stats-section .section-header h2 {
    color: white;
}

.stats-section .section-header h2 i {
    color: var(--secondary-color);
}

.stats-section .section-header p {
    color: rgba(255,255,255,0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    padding: var(--space-lg);
}

.stat-item .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item .icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-item .label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Creative Stats Section */
.stats-creative {
    position: relative;
    overflow: hidden;
}

.stats-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.stat-card-creative {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card-creative:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.stat-card-creative:hover .stat-icon-circle {
    transform: scale(1.1) rotate(10deg);
}

.stat-icon-circle i {
    font-size: 1.75rem;
    color: white;
}

.stat-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

/* Counter Animation */
.counter {
    display: inline-block;
    transition: transform 0.2s ease;
}

.counter.counting {
    animation: countPulse 0.3s ease;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ==========================================
   Footer - Clean
   ========================================== */
.main-footer {
    background: var(--footer-bg, var(--gray-900));
    color: var(--footer-text, var(--gray-400));
}

.footer-top {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-lg);
}

.footer-section h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

.footer-section p {
    font-size: 0.875rem;
    color: var(--gray-400);
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--secondary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-links li {
    position: relative;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-block;
    padding: 2px 0;
    position: relative;
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: var(--space-sm);
    font-size: 0.75rem;
    opacity: 0;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: var(--space-sm);
}

.footer-links a:hover::before {
    opacity: 1;
    color: var(--secondary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-info li {
    display: flex;
    gap: var(--space-sm);
    font-size: 0.85rem;
}

.contact-info i {
    color: var(--secondary-color);
    width: 18px;
}

.contact-info a {
    color: var(--gray-400);
}

.contact-info a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: var(--space-sm) 0;
    background: rgba(0,0,0,0.3);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom-links a {
    color: var(--gray-500);
    font-size: 0.8rem;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.gov-disclaimer {
    text-align: center;
    padding: var(--space-md);
    background: var(--primary-dark);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* Visitor Counter */
.visitor-counter-section {
    padding: var(--space-lg) 0;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.visitor-counter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.counter-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.counter-item:hover {
    background: rgba(255,255,255,0.1);
}

.counter-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.counter-item.total i {
    color: var(--primary-light);
}

.counter-info {
    display: flex;
    flex-direction: column;
}

.counter-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
}

.counter-label {
    font-size: 0.75rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .visitor-counter {
        gap: var(--space-md);
    }
    .counter-item {
        padding: var(--space-sm) var(--space-md);
    }
    .counter-item i {
        font-size: 1.25rem;
    }
    .counter-value {
        font-size: 1.1rem;
    }
}

/* ==========================================
   Back to Top
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    font-size: 1.25rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-4px);
}

/* ==========================================
   Page Header
   ========================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color), var(--secondary-color));
    padding: var(--space-md) 0;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>') repeat;
    background-size: 50px 50px;
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 2px;
    font-size: 1.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255,255,255,0.5);
}

/* ==========================================
   Forms
   ========================================== */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--white);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-50);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23757575' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-control.error {
    border-color: var(--error);
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

/* ==========================================
   Tables
   ========================================== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.table th,
.table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.table th:first-child {
    border-radius: var(--radius-md) 0 0 0;
}

.table th:last-child {
    border-radius: 0 var(--radius-md) 0 0;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* ==========================================
   Pagination
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-xl);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.pagination a {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .active {
    background: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.pagination .disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

/* ==========================================
   Alerts
   ========================================== */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background: var(--error-light);
    color: var(--error);
    border: 1px solid var(--error);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.alert-info {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid var(--info);
}

/* ==========================================
   Lightbox
   ========================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.lightbox-close:hover {
    background: var(--secondary-color);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    .container {
        padding: 0 var(--space-md);
    }

    .top-bar-left { display: none; }
    .top-bar-content { justify-content: center; }

    /* Header mobile adjustments */
    .main-header { height: auto; min-height: 60px; padding: 8px 0; }
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-sm);
    }
    .logo-section {
        flex: 1;
        min-width: 0;
    }
    .logo-link {
        gap: var(--space-sm);
    }
    .emblem, .logo { max-width: 40px; max-height: 40px; }
    .site-title h1 {
        font-size: 0.95rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .site-title .tagline {
        font-size: 0.6rem;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 200;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.active { left: 0; }

    /* Mobile menu close button */
    .mobile-nav-close {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.15);
        border: none;
        border-radius: var(--radius-md);
        color: white;
        font-size: 1.25rem;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        z-index: 201;
        transition: background 0.2s ease;
    }

    .mobile-nav-close:hover {
        background: rgba(255,255,255,0.25);
    }

    .nav-menu {
        flex-direction: column;
        padding-top: 60px;
    }

    .nav-menu > li > a {
        display: block;
        width: 100%;
    }

    /* Ensure dropdown items are clickable */
    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-menu li a {
        display: block;
        width: 100%;
    }

    .nav-menu > li > a {
        padding: var(--space-md) var(--space-lg);
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        display: none;
    }

    .has-dropdown.open .dropdown-menu { display: block; }

    .dropdown-menu li a {
        color: rgba(255,255,255,0.9);
        border-color: rgba(255,255,255,0.1);
        padding-left: var(--space-2xl);
    }

    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }

    /* Creative hero responsive */
    .hero-creative { min-height: 500px; }
    .hero-wave { display: none; }
    .scroll-indicator { display: none; }
    .floating-shape { opacity: 0.3; }
    .hero-badge { font-size: 0.8rem; padding: 6px 15px; }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }

    .quick-links-section { margin-top: var(--space-lg); }
    .hero + .quick-links-section { margin-top: -40px; }
    .news-ticker-section + .quick-links-section { margin-top: var(--space-lg); }
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
    .quick-link-card {
        min-height: 160px;
        padding: var(--space-lg);
    }
    .quick-link-card .icon {
        width: 50px;
        height: 50px;
    }
    .quick-link-card .icon i {
        font-size: 1.25rem;
    }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-content { flex-direction: column; text-align: center; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .notice-item { flex-direction: column; }
    .notice-date {
        flex-direction: row;
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        width: fit-content;
        padding: var(--space-xs) var(--space-md);
    }
    .notice-date .day, .notice-date .month {
        display: inline;
        font-size: 0.9rem;
    }

    .section { padding: var(--space-2xl) 0; }

    /* Cards responsive */
    .official-card {
        min-height: 320px;
    }
    .official-card .card-image img {
        width: 130px;
        height: 130px;
    }

    .project-card {
        min-height: 320px;
    }
    .project-card .card-image {
        height: 150px;
    }

    .service-card {
        padding: var(--space-lg);
    }
    .service-card .icon {
        width: 60px;
        height: 60px;
    }

    /* Stats section mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    .stat-item .number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    .main-header { height: auto; min-height: 60px; padding: 8px 0; }
    .logo-link { gap: var(--space-sm); }
    .emblem, .logo { max-width: 40px; max-height: 40px; }
    .site-title h1 { font-size: 0.9rem; line-height: 1.2; }
    .site-title .subtitle { font-size: 0.65rem; }
    .site-title .tagline {
        display: block;
        font-size: 0.6rem;
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

    .hero { min-height: 350px; }
    .hero-creative { min-height: 400px; }
    .hero-content { padding: var(--space-xl) 0; }
    .hero-content h1 { font-size: 1.5rem; }
    .hero-content p { font-size: 0.9rem; }
    .hero-buttons { flex-direction: column; gap: var(--space-sm); }
    .hero-buttons .btn { width: 100%; }
    .hero-badge { margin-bottom: 1rem; }
    .floating-shape { display: none; }

    .btn { padding: var(--space-sm) var(--space-md); font-size: 0.875rem; }

    .quick-links-section { margin-top: var(--space-md); }
    .hero + .quick-links-section { margin-top: -30px; }
    .news-ticker-section + .quick-links-section { margin-top: var(--space-md); }
    .quick-links-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
    .quick-link-card {
        min-height: 140px;
        padding: var(--space-md);
    }
    .quick-link-card h3 { font-size: 0.9rem; }
    .quick-link-card p { font-size: 0.75rem; }

    .gallery-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { padding: var(--space-md); }
    .stat-item .number { font-size: 1.75rem; }
    .stat-item .label { font-size: 0.85rem; }

    .section-header { margin-bottom: var(--space-lg); }
    .section-header h2 { font-size: 1.25rem; }
    .section-header p { font-size: 0.9rem; }

    /* Cards on very small screens */
    .official-card { min-height: 280px; }
    .official-card .card-image img { width: 110px; height: 110px; }
    .official-card .card-title { font-size: 1rem; min-height: auto; }

    .project-card { min-height: 280px; }
    .project-card .card-image { height: 130px; }

    .service-card { padding: var(--space-md); }
    .service-card .icon { width: 50px; height: 50px; }
    .service-card .icon i { font-size: 1.5rem; }

    .notice-item { padding: var(--space-md); }

    .back-to-top { width: 40px; height: 40px; bottom: 20px; right: 15px; font-size: 1rem; }

    /* Footer mobile */
    .footer-section { text-align: center; }
    .footer-section h3 { margin-bottom: var(--space-md); }
    .social-links { justify-content: center; }
    .footer-bottom-links { flex-direction: column; gap: var(--space-sm); }

    /* Page header mobile */
    .page-header {
        padding: var(--space-sm) 0;
    }
    .page-header h1 {
        font-size: 1rem;
    }

    /* Contact page mobile */
    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* Form mobile */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Mobile tap targets */
    a, button, .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.hidden { display: none !important; }
.visible { display: block !important; }

/* ==========================================
   Image Carousels
   ========================================== */

/* Gallery Carousel */
.gallery-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: var(--space-md) 0;
}

.gallery-carousel {
    display: flex;
    gap: var(--space-md);
    animation: scrollGallery 30s linear infinite;
    width: max-content;
}

.gallery-carousel:hover {
    animation-play-state: paused;
}

.gallery-carousel-item {
    flex-shrink: 0;
    width: 300px;
    height: 220px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-carousel-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.gallery-carousel-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-carousel-item:hover .overlay {
    transform: translateY(0);
}

.gallery-carousel-item .overlay h4 {
    color: white;
    font-size: 0.95rem;
    margin: 0;
}

.gallery-carousel-item .overlay span {
    font-size: 0.8rem;
    opacity: 0.8;
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Achievements/Features Carousel */
.achievements-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    padding: var(--space-3xl) 0;
    overflow: hidden;
    position: relative;
}

.achievements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.achievements-section .section-header h2 {
    color: white;
}

.achievements-section .section-header p {
    color: rgba(255,255,255,0.8);
}

.achievements-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.achievements-carousel {
    display: flex;
    gap: var(--space-lg);
    animation: scrollAchievements 25s linear infinite;
    width: max-content;
}

.achievements-carousel:hover {
    animation-play-state: paused;
}

.achievement-card {
    flex-shrink: 0;
    width: 280px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.achievement-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.achievement-icon i {
    font-size: 2rem;
    color: white;
}

.achievement-card h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.achievement-card p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-size: 0.95rem;
}

@keyframes scrollAchievements {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* News Ticker */
.news-ticker-section {
    background: var(--primary-dark);
    padding: var(--space-sm) 0;
    overflow: hidden;
    position: relative;
    z-index: 20;
}

.news-ticker-wrapper {
    display: flex;
    align-items: center;
}

.news-ticker-label {
    flex-shrink: 0;
    background: var(--secondary-color);
    color: white;
    padding: var(--space-sm) var(--space-md);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border-radius: var(--radius-md);
    margin-right: var(--space-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.news-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.news-ticker-content {
    display: flex;
    gap: var(--space-3xl);
    animation: tickerScroll 30s linear infinite;
    width: max-content;
}

.news-ticker-content:hover {
    animation-play-state: paused;
}

.news-ticker-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    white-space: nowrap;
}

.news-ticker-item i {
    color: var(--secondary-color);
}

.news-ticker-item a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
}

.news-ticker-item a:hover {
    color: var(--secondary-color);
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Officials Carousel */
.officials-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.officials-carousel {
    display: flex;
    gap: var(--space-lg);
    animation: scrollOfficials 35s linear infinite;
    width: max-content;
}

.officials-carousel:hover {
    animation-play-state: paused;
}

.officials-carousel .official-card {
    flex-shrink: 0;
    width: 280px;
}

@keyframes scrollOfficials {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Partner Logos Carousel */
.partners-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: var(--space-lg) 0;
}

.partners-carousel {
    display: flex;
    align-items: center;
    gap: var(--space-3xl);
    animation: scrollPartners 20s linear infinite;
    width: max-content;
}

.partners-carousel:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex-shrink: 0;
    height: 60px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s;
}

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

@keyframes scrollPartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev { left: var(--space-md); }
.carousel-nav.next { right: var(--space-md); }

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active,
.carousel-indicator:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Image Slider with Thumbnails */
.image-slider-container {
    position: relative;
}

.image-slider-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--gray-100);
}

.image-slider-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-slider-thumbnails {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    overflow-x: auto;
    padding: var(--space-sm) 0;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.thumbnail-item.active,
.thumbnail-item:hover {
    border-color: var(--primary-color);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Carousels */
@media (max-width: 768px) {
    .gallery-carousel-item {
        width: 260px;
        height: 180px;
    }

    .achievement-card {
        width: 240px;
        padding: var(--space-lg);
    }

    .achievement-icon {
        width: 60px;
        height: 60px;
    }

    .achievement-icon i {
        font-size: 1.5rem;
    }

    .achievement-card h3 {
        font-size: 1.5rem;
    }

    .news-ticker-label {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.75rem;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .gallery-carousel-item {
        width: 220px;
        height: 160px;
    }

    .achievement-card {
        width: 200px;
    }

    .carousel-nav {
        display: none;
    }
}

/* Print */
@media print {
    /* Hide non-essential elements */
    .top-bar, .main-nav, .back-to-top, .mobile-menu-toggle,
    .hero, .footer, .quick-links-section, .breadcrumb,
    .btn, button, .social-links, .language-switcher {
        display: none !important;
    }

    /* Reset styles for print */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000 !important;
        background: #fff !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Headers */
    .main-header {
        background: none !important;
        padding: 10px 0;
        border-bottom: 2px solid #000;
    }

    .site-title h1 {
        color: #000 !important;
        font-size: 18pt;
    }

    /* Cards and sections */
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .section {
        padding: 20px 0;
    }

    /* Page headers */
    .page-header {
        background: none !important;
        color: #000 !important;
        padding: 15px 0;
        border-bottom: 2px solid #000;
    }

    .page-header h1 {
        color: #000 !important;
        font-size: 16pt;
    }

    /* Tables */
    table {
        border-collapse: collapse;
        width: 100%;
    }

    th, td {
        border: 1px solid #000;
        padding: 8px;
    }

    /* Links */
    a {
        color: #000 !important;
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }

    a[href^="#"]:after,
    a[href^="javascript"]:after,
    a[href^="tel"]:after,
    a[href^="mailto"]:after {
        content: "";
    }

    /* Images */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    /* Page breaks */
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* ==========================================
   HANDWRITTEN FONT STYLES
   ========================================== */

/* Utility classes for handwritten font */
.font-handwritten,
.handwritten {
    font-family: var(--font-handwritten);
}

/* Handwritten text sizes */
.handwritten-sm {
    font-family: var(--font-handwritten);
    font-size: 1rem;
}

.handwritten-md {
    font-family: var(--font-handwritten);
    font-size: 1.25rem;
}

.handwritten-lg {
    font-family: var(--font-handwritten);
    font-size: 1.5rem;
}

.handwritten-xl {
    font-family: var(--font-handwritten);
    font-size: 2rem;
}

.handwritten-xxl {
    font-family: var(--font-handwritten);
    font-size: 2.5rem;
}

/* Handwritten quote style */
.handwritten-quote {
    font-family: var(--font-handwritten);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gray-700);
    position: relative;
    padding: var(--space-lg) var(--space-xl);
    line-height: 1.8;
}

.handwritten-quote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    left: 0;
    top: -10px;
    font-family: Georgia, serif;
}

/* Handwritten label/badge */
.handwritten-label {
    font-family: var(--font-handwritten);
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    display: inline-block;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Handwritten note style (post-it effect) */
.handwritten-note {
    font-family: var(--font-handwritten);
    font-size: 1.1rem;
    background: linear-gradient(180deg, #fef9c3 0%, #fef08a 100%);
    padding: var(--space-lg);
    border-radius: 2px;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.15);
    transform: rotate(-1deg);
    position: relative;
    line-height: 1.6;
    color: #44403c;
}

.handwritten-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 30px;
    height: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 0 0 3px 3px;
}

/* Handwritten signature style */
.handwritten-signature {
    font-family: var(--font-handwritten);
    font-size: 1.75rem;
    color: var(--primary-dark);
    font-weight: 700;
}

/* Hero section with handwritten accent */
.hero-handwritten-accent {
    font-family: var(--font-handwritten);
    font-size: 1.5rem;
    color: var(--secondary-color);
    display: block;
    margin-top: var(--space-sm);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Card title with handwritten style */
.card-title-handwritten {
    font-family: var(--font-handwritten);
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.card-title-handwritten::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    transform: rotate(-1deg);
}

/* Welcome message handwritten style */
.welcome-handwritten {
    font-family: var(--font-handwritten);
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.welcome-handwritten::after {
    content: '~';
    display: block;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: var(--space-xs);
}
