/* =====================================================
   GP VAVI - PROFESSIONAL GREEN GOVERNMENT THEME
   Color Palette: Sage Green + Deep Teal + Amber
   ===================================================== */

/* === OVERRIDE ALL CSS VARIABLES === */
:root {
    /* User's specified palette */
    --gp-bg-primary: #EEF6F2 !important;       /* Primary Background */
    --gp-header: #5F8F87 !important;            /* Header/Navbar */
    --gp-header-dark: #4A756D !important;       /* Header dark shade */
    --gp-bg-secondary: #F8FBF9 !important;      /* Secondary Sections */
    --gp-card: #FFFFFF !important;              /* Cards */
    --gp-btn-primary: #5F8F87 !important;       /* Primary Button */
    --gp-btn-hover: #4A756D !important;         /* Button Hover */
    --gp-accent: #D8A54C !important;            /* Accent (important actions) */
    --gp-accent-light: #E8BD71 !important;      /* Lighter accent */
    --gp-text: #2F3E46 !important;              /* Text */
    --gp-text-light: #4B5563 !important;        /* Lighter text */
    --gp-text-white: #FFFFFF !important;

    /* Override old navy variables with green equivalents */
    --navy-primary: #5F8F87 !important;
    --navy-dark: #4A756D !important;
    --navy-medium: #3A8078 !important;
    --navy-light: #4A9A8F !important;
    --saffron: #D8A54C !important;
    --saffron-light: #E8BD71 !important;
    --saffron-accent: #D8A54C !important;
    --saffron-soft: #FEF5E7 !important;
    --off-white: #F8FBF9 !important;
    --light-blue: #EEF6F2 !important;
    --text-dark: #333333;
    --text-mid: #374151 !important;
    --text-muted: #6B7280 !important;

    /* Gradients with new palette */
    --grad-header: linear-gradient(135deg, #1D4D47 0%, #5F8F87 60%, #3A8078 100%) !important;
    --grad-nav: linear-gradient(90deg, #1D4D47 0%, #5F8F87 100%) !important;
    --grad-saffron: linear-gradient(135deg, #D8A54C 0%, #E8BD71 100%) !important;
    --grad-hero: linear-gradient(135deg, #5F8F87 0%, #3A8078 100%) !important;
    --grad-card: linear-gradient(145deg, #FFFFFF 0%, #F8FBF9 100%) !important;
    --grad-footer: linear-gradient(135deg, #1D4D47 0%, #5F8F87 100%) !important;

    /* Shadows using green palette */
    --shadow-xs: 0 2px 6px rgba(47, 111, 104, 0.08) !important;
    --shadow-sm: 0 4px 12px rgba(47, 111, 104, 0.12) !important;
    --shadow-md: 0 8px 24px rgba(47, 111, 104, 0.16) !important;
    --shadow-lg: 0 16px 40px rgba(47, 111, 104, 0.22) !important;
    --shadow-xl: 0 24px 60px rgba(47, 111, 104, 0.28) !important;
    --shadow-saffron: 0 8px 24px rgba(230, 154, 42, 0.35) !important;
}

/* ====================================================
   GLOBAL BODY & BACKGROUND
   ==================================================== */
body {
    background: var(--gp-bg-primary) !important;
    color: var(--gp-text) !important;
    font-family: 'Poppins', sans-serif !important;
}

.main-container,
.site-wrapper {
    background: var(--gp-bg-primary) !important;
}

.content-wrapper {
    background: transparent !important;
}

/* ====================================================
   HEADER - Deep Teal
   ==================================================== */
.main-header {
    background: var(--grad-header) !important;
    box-shadow: 0 4px 20px rgba(29, 77, 71, 0.45) !important;
}

.village-name {
    background: linear-gradient(135deg, #FFFFFF 0%, #A7D6CB 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.lgd-code {
    color: rgba(255, 255, 255, 0.80) !important;
}

.seal-img:hover {
    filter: drop-shadow(0 6px 18px rgba(230, 154, 42, 0.55)) !important;
}

/* Language Selector */
.lang-selector select {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
}

.lang-selector select option {
    background: #5F8F87 !important;
    color: white !important;
}

.lang-selector select:hover,
.lang-selector select:focus {
    background: rgba(230, 154, 42, 0.20) !important;
    border-color: var(--gp-accent) !important;
    box-shadow: 0 0 0 3px rgba(230, 154, 42, 0.18) !important;
}

/* Logo Container */
.logo-container:hover {
    box-shadow: 0 8px 28px rgba(230, 154, 42, 0.40) !important;
}

/* ====================================================
   LEADERSHIP ROW - White with green text
   ==================================================== */
.leadership-row,
.leadership-wrapper,
.leadership-container {
    background: #FFFFFF !important;
    border-bottom: 2px solid rgba(47, 111, 104, 0.25) !important;
    border-top: none !important;
    box-shadow: 0 2px 12px rgba(47, 111, 104, 0.10) !important;
}

.leader-item {
    border: 1px solid rgba(47, 111, 104, 0.12) !important;
    background: rgba(234, 245, 240, 0.60) !important;
}

.leader-item:hover {
    background: rgba(47, 111, 104, 0.08) !important;
    transform: translateY(-3px) !important;
}

.leader-img {
    border: 2px solid rgba(47, 111, 104, 0.35) !important;
}

.leader-info span {
    color: var(--gp-accent) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
}

.leader-info p {
    color: var(--gp-text) !important;
}

/* ====================================================
   NAVBAR - Deep Teal
   ==================================================== */
.navbar {
    background: var(--grad-nav) !important;
    border-top: 2px solid rgba(230, 154, 42, 0.40) !important;
    box-shadow: 0 4px 16px rgba(29, 77, 71, 0.35) !important;
}

.nav-item {
    color: rgba(255, 255, 255, 0.90) !important;
    font-weight: 600 !important;
}

.nav-item::before {
    background: var(--grad-saffron) !important;
}

.nav-item:hover,
.nav-item.active,
.nav-item.selected {
    color: #FFFFFF !important;
}

/* Mobile nav */
.nav-links.open,
.navbar ul.open {
    background: #5F8F87 !important;
}

/* ====================================================
   HERO SECTION - White card with curved teal side
   ==================================================== */
.hero-section.modern-hero {
    background: #FFFFFF !important;
    border: 1.5px solid #B8D9CD !important;
    box-shadow: 0 8px 40px rgba(47, 111, 104, 0.14) !important;
}

.hero-section.modern-hero::before {
    background: linear-gradient(180deg, var(--gp-accent) 0%, var(--gp-header) 100%) !important;
}

.hero-section.modern-hero::after {
    color: rgba(47, 111, 104, 0.08) !important;
}

/* Hero content on dark teal background (curved hero) */
.hero-content {
    background: var(--grad-hero) !important;
    box-shadow: 10px 0 30px rgba(29, 77, 71, 0.20) !important;
}

.hero-title {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
}

.hero-info-text {
    color: rgba(255, 255, 255, 0.90) !important;
}

.hero-info-text strong {
    color: var(--gp-accent-light) !important;
    font-weight: 700 !important;
}

.hero-badge {
    background: rgba(199, 225, 212, 0.20) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
}

/* Hero Slider frame */
.hero-visual {
    border-color: #B8D9CD !important;
    box-shadow: 0 12px 36px rgba(47, 111, 104, 0.18) !important;
}

.hero-slider-frame {
    background: var(--gp-bg-secondary) !important;
}

/* ====================================================
   BUTTONS
   ==================================================== */
.btn-primary {
    background: var(--grad-saffron) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    box-shadow: var(--shadow-saffron) !important;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow: 0 12px 32px rgba(230, 154, 42, 0.50) !important;
    background: linear-gradient(135deg, #CF8A22 0%, #D8A54C 100%) !important;
}

.btn-secondary {
    background: transparent !important;
    color: var(--gp-btn-primary) !important;
    border: 2px solid var(--gp-btn-primary) !important;
    -webkit-text-fill-color: var(--gp-btn-primary) !important;
}

.btn-secondary:hover {
    background: var(--gp-btn-primary) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    border-color: var(--gp-btn-primary) !important;
}

/* On dark hero background, btn-secondary should be white-bordered */
.hero-content .btn-secondary {
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

.hero-content .btn-secondary:hover {
    background: #FFFFFF !important;
    color: var(--gp-header) !important;
    -webkit-text-fill-color: var(--gp-header) !important;
}

/* ====================================================
   ALERTS / NEWS SECTION
   ==================================================== */
.alerts-section {
    background: var(--gp-bg-secondary) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
}

.section-header-compact h2 {
    color: var(--gp-header) !important;
}

.section-header-compact h2::after {
    background: var(--grad-saffron) !important;
}

.alert-card {
    background: white !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-sm) !important;
}

.alert-card:hover {
    box-shadow: 0 8px 24px rgba(47, 111, 104, 0.15) !important;
    border-color: var(--gp-btn-primary) !important;
}

.alert-card.priority-high {
    border-left-color: #DC2626 !important;
}

.alert-card.priority-medium {
    border-left-color: var(--gp-accent) !important;
}

.alert-card.priority-info {
    border-left-color: var(--gp-header) !important;
}

.alert-content h4 {
    color: var(--gp-header) !important;
}

.alert-content p {
    color: var(--gp-text-light) !important;
}

/* ====================================================
   POPULATION / CENSUS SECTION
   ==================================================== */
.population-section {
    background: var(--gp-bg-secondary) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
    border: 1px solid #B8D9CD !important;
}

.pop-title,
.katra-pop-header {
    color: var(--gp-header) !important;
}

.katra-pop-table-wrap {
    background: #FFFFFF !important;
    border: 1px solid #B8D9CD !important;
    border-radius: 12px !important;
}

.katra-pop-header {
    background: linear-gradient(90deg, #5F8F87 0%, #3A8078 100%) !important;
    color: white !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 0.8rem 1.2rem !important;
}

.katra-village-badge,
.katra-census-badge {
    color: white !important;
}

.katra-pop-inline-row {
    background: white !important;
}

.kstat-val {
    color: var(--gp-header) !important;
    font-weight: 800 !important;
    font-size: 1.8rem !important;
}

.kstat-label {
    color: var(--gp-text-light) !important;
}

.kstat-icon {
    color: var(--gp-accent) !important;
}

.katra-stat-divider {
    background: #B8D9CD !important;
}

/* ====================================================
   FEATURES / SERVICES CARDS
   ==================================================== */
.features-section {
    background: var(--gp-bg-secondary) !important;
    border-radius: 16px !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.2rem !important;
}

.feature-card {
    background: #FFFFFF !important;
    border: 1px solid #B8D9CD !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-sm) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    cursor: pointer !important;
    padding: 1.5rem !important;
    text-align: center !important;
}

.feature-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 32px rgba(47, 111, 104, 0.18) !important;
    border-color: var(--gp-btn-primary) !important;
}

.feature-icon {
    font-size: 2.2rem !important;
    margin-bottom: 0.7rem !important;
}

.feature-card h3 {
    color: var(--gp-header) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
}

.feature-card p {
    color: var(--gp-text-light) !important;
    font-size: 0.85rem !important;
}

/* ====================================================
   ELECTED REPRESENTATIVES / GP MEMBERS
   ==================================================== */
.home-members-section {
    margin: 1.5rem 0 !important;
}

.section-header h2 {
    color: var(--gp-header) !important;
    font-weight: 700 !important;
}

.section-header h2::after {
    background: var(--grad-saffron) !important;
}

.btn-text {
    color: var(--gp-btn-primary) !important;
    background: rgba(47, 111, 104, 0.08) !important;
    border: 1px solid rgba(47, 111, 104, 0.25) !important;
    padding: 0.4rem 1rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.btn-text:hover {
    background: var(--gp-btn-primary) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
}

/* Member cards home */
.members-grid-home {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
    gap: 15px !important;
    justify-content: center !important;
}

.member-card-home {
    background: #FFFFFF !important;
    border: 1px solid #B8D9CD !important;
    border-radius: 14px !important;
    flex-direction: column !important;
    text-align: center !important;
    padding: 1.2rem 0.8rem !important;
    box-shadow: 0 2px 10px rgba(47, 111, 104, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    max-width: 200px !important;
    align-self: start !important;
}

.member-card-home:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 28px rgba(47, 111, 104, 0.15) !important;
    border-color: var(--gp-btn-primary) !important;
}

/* Profile frame circle */
.member-card-home .profile-frame-home {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 0.8rem !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 3px solid var(--gp-accent) !important;
    padding: 0 !important;
    margin-right: auto !important;
    background: var(--gp-bg-secondary) !important;
}

.member-card-home .profile-img-home,
.member-card-home .member-img-circle {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    margin: 0 !important;
}

.member-card-home .profile-info-home,
.member-card-home .profile-info {
    text-align: center !important;
    flex: none !important;
}

.member-card-home .profile-name {
    color: var(--gp-header) !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    margin-bottom: 3px !important;
    display: block !important;
}

.member-card-home .profile-role,
.member-card-home .profile-desg {
    color: var(--gp-accent) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

/* Inner page members */
.member-ref-card {
    background: #FFFFFF !important;
    border: 1px solid #B8D9CD !important;
    border-radius: 14px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: 0 2px 10px rgba(47, 111, 104, 0.08) !important;
    transition: transform 0.3s ease !important;
}

.member-ref-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--gp-btn-primary) !important;
}

.member-img-circle {
    border: 3px solid var(--gp-accent) !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.member-name-ref {
    color: var(--gp-header) !important;
    font-weight: 700 !important;
}

.member-role-ref {
    color: var(--gp-accent) !important;
    font-weight: 600 !important;
}

/* ====================================================
   SCHEME CARDS
   ==================================================== */
.schemes-page .schemes-grid,
.scheme-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 1.2rem !important;
}

.scheme-card {
    background: #FFFFFF !important;
    border: 1px solid #B8D9CD !important;
    border-radius: 14px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 10px rgba(47, 111, 104, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.scheme-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 32px rgba(47, 111, 104, 0.18) !important;
    border-color: var(--gp-btn-primary) !important;
}

.scheme-icon {
    font-size: 2.5rem !important;
    margin-bottom: 0.8rem !important;
}

.scheme-card h3 {
    color: var(--gp-header) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem !important;
}

.scheme-card p {
    color: var(--gp-text-light) !important;
    font-size: 0.82rem !important;
}

/* Scheme detail page */
.scheme-detail-box {
    background: #FFFFFF !important;
    border-radius: 14px !important;
    padding: 2rem !important;
    border: 1px solid #B8D9CD !important;
}

.scheme-detail-box h3 {
    color: var(--gp-header) !important;
}

.detail-subtitle {
    color: var(--gp-header) !important;
    border-left: 4px solid var(--gp-accent) !important;
    padding-left: 0.8rem !important;
}

.back-btn {
    background: var(--gp-btn-primary) !important;
    color: white !important;
    border-radius: 999px !important;
    padding: 0.5rem 1.2rem !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    margin-bottom: 1.2rem !important;
}

.back-btn:hover {
    background: var(--gp-btn-hover) !important;
}

.scheme-link-external {
    display: inline-block !important;
    margin-top: 1rem !important;
    background: var(--gp-btn-primary) !important;
    color: white !important;
    padding: 0.7rem 1.5rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.3s ease !important;
}

.scheme-link-external:hover {
    background: var(--gp-btn-hover) !important;
}

/* ====================================================
   CERTIFICATES PAGE
   ==================================================== */
.certificates-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1.2rem !important;
    margin-top: 1.5rem !important;
}

.cert-card {
    background: #FFFFFF !important;
    border: 1px solid #B8D9CD !important;
    border-radius: 14px !important;
    padding: 1.5rem !important;
    text-align: center !important;
    box-shadow: 0 2px 10px rgba(47, 111, 104, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center !important;
}

.cert-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 28px rgba(47, 111, 104, 0.15) !important;
    border-color: var(--gp-btn-primary) !important;
}

.cert-title {
    color: var(--gp-header) !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
}

.btn-download-outline,
.download-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    background: var(--gp-btn-primary) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 0.5rem 1.2rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.3s ease, transform 0.3s ease !important;
}

.btn-download-outline:hover,
.download-btn:hover {
    background: var(--gp-btn-hover) !important;
    transform: translateY(-2px) !important;
    color: white !important;
    -webkit-text-fill-color: white !important;
}

/* ====================================================
   CONTACT PAGE
   ==================================================== */
.contact-page .contact-card {
    background: #FFFFFF !important;
    border: 1px solid #B8D9CD !important;
    border-radius: 14px !important;
    box-shadow: var(--shadow-sm) !important;
}

.contact-page .contact-card:hover {
    border-color: var(--gp-btn-primary) !important;
    box-shadow: var(--shadow-md) !important;
}

/* ====================================================
   PAGE TITLES / SECTION HEADERS
   ==================================================== */
.page-title,
.page-container h2,
.gp-members-section h2 {
    color: var(--gp-header) !important;
    position: relative !important;
    padding-bottom: 0.5rem !important;
    display: inline-block !important;
}

.page-title::after,
.page-container h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 60px !important;
    height: 3px !important;
    background: var(--grad-saffron) !important;
    border-radius: 3px !important;
}

.page-intro {
    color: var(--gp-text-light) !important;
}

.page-container {
    background: var(--gp-bg-secondary) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    min-height: 60vh !important;
}

/* ====================================================
   FOOTER
   ==================================================== */
.main-footer {
    background: var(--grad-footer) !important;
    color: #FFFFFF !important;
}

.footer-section h4,
.footer-section h3 {
    color: var(--gp-accent-light) !important;
}

.footer-section p,
.footer-section a,
.footer-section li {
    color: rgba(255, 255, 255, 0.82) !important;
}

.footer-section a:hover {
    color: var(--gp-accent) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.70) !important;
}

.footer-disclaimer {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 0.78rem !important;
}

/* ====================================================
   GALLERY PAGE
   ==================================================== */
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 1rem !important;
}

.gallery-card {
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 2px solid #B8D9CD !important;
    box-shadow: 0 4px 12px rgba(47, 111, 104, 0.10) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    background: #FFFFFF !important;
}

.gallery-card:hover {
    transform: scale(1.04) !important;
    box-shadow: 0 12px 32px rgba(47, 111, 104, 0.22) !important;
    border-color: var(--gp-btn-primary) !important;
}

.gallery-card img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block !important;
}

/* ====================================================
   GP SERVICES PAGE
   ==================================================== */
.gp-services-list li {
    background: #FFFFFF !important;
    border: 1px solid #B8D9CD !important;
    border-radius: 10px !important;
    margin-bottom: 0.5rem !important;
    padding: 0.7rem 1rem !important;
    color: var(--gp-text) !important;
    transition: background 0.3s ease !important;
}

.gp-services-list li:hover {
    background: var(--gp-bg-secondary) !important;
    border-color: var(--gp-btn-primary) !important;
}

/* ====================================================
   POPULATION STAT CARDS
   ==================================================== */
.katra-stat-cell {
    padding: 1rem 1.5rem !important;
    text-align: center !important;
    flex: 1 !important;
}

/* ====================================================
   ANIMATIONS
   ==================================================== */
@keyframes fadeInGreen {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-section,
.alerts-section,
.population-section,
.features-section,
.home-members-section,
.page-container {
    animation: fadeInGreen 0.7s ease-out forwards !important;
}

/* Hover lift for cards */
.scheme-card, .member-card-home, .alert-card, .feature-card, .cert-card, .member-ref-card {
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.35s ease,
                border-color 0.35s ease !important;
}

/* ====================================================
   MOBILE RESPONSIVE
   ==================================================== */
@media (max-width: 768px) {
    .features-section {
        grid-template-columns: 1fr !important;
    }

    .members-grid-home {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero-content {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        flex: 1 1 100% !important;
    }

    /* .hero-visual { display: none !important; } removed so slider shows */

    .hero-section.modern-hero {
        flex-direction: column !important;
    }

    /* Mobile Header - show rajmudra inline */
    .header-content {
        padding: 0.7rem 1rem !important;
    }

    .brand-section {
        display: flex !important;
        align-items: center !important;
        gap: 0.6rem !important;
    }

    .header-controls {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }

    .seal-container {
        display: flex !important;
        align-items: center !important;
    }

    .seal-img {
        width: 36px !important;
        height: 36px !important;
    }

    .village-name {
        font-size: 1.1rem !important;
    }

    .lgd-code {
        font-size: 0.68rem !important;
    }

    .logo-container {
        width: 52px !important;
        height: 52px !important;
    }

    .nav-links {
        background: #5F8F87 !important;
    }

    .page-container {
        padding: 1.2rem !important;
    }

    .katra-pop-inline-row {
        flex-wrap: wrap !important;
    }

    .katra-stat-cell {
        flex: 1 1 45% !important;
    }
}

@media (max-width: 480px) {
    .members-grid-home {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero-title {
        font-size: 1.6rem !important;
    }

    .alerts-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .mobile-break {
        display: block !important;
    }
}
