/*
Theme Name: MakkalSevai
Theme URI: https://makkalsevai.in
Author: MakkalSevai Team
Author URI: https://makkalsevai.in
Description: A professional, mobile-first WordPress theme for makkalsevai.in — a Central & State Government schemes, daily news and job alerts information portal. Features a royal blue / white / vibrant orange palette, card-based grid layout, breaking news ticker, hero with CTAs, WhatsApp & newsletter boxes, Tamil/English ready typography, and a custom "scheme" post type.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: makkalsevai
Tags: government, portal, responsive, mobile-first, news, schemes, custom-post-type, two-columns, right-sidebar
*/

/* ============================================================
   1. RESET & DESIGN TOKENS
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand palette — Royal Blue, White, Vibrant Orange */
    --royal: #1d4ed8;
    --royal-dark: #1e3a8a;
    --royal-darker: #172a6b;
    --royal-light: #e8effd;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #fff1e6;
    --red: #dc2626;
    --red-dark: #b91c1c;

    --white: #ffffff;
    --bg: #f4f7fc;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;

    --green: #16a34a;
    --green-dark: #15803d;
    --telegram: #229ED9;
    --youtube: #ff0000;

    --font: 'Inter', 'Noto Sans Tamil', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 2px 6px rgba(15, 23, 42, .08);
    --shadow-md: 0 8px 20px rgba(15, 23, 42, .10);
    --shadow-lg: 0 16px 40px rgba(29, 78, 216, .14);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    --container: 1200px;
    --header-h: 64px;
    --transition: .2s ease;
}

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

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--royal);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--royal-dark); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    color: var(--gray-900);
    line-height: 1.25;
    font-weight: 700;
}

input, button, textarea, select { font: inherit; }

/* ============================================================
   2. LAYOUT HELPERS
   ============================================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main { flex: 1 0 auto; }

.site-content { padding: 24px 0 40px; }

/* Accessibility helpers */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    background: var(--orange);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.ms-icon { flex-shrink: 0; vertical-align: middle; }

/* ============================================================
   3. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 0;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: var(--royal);
    color: #fff;
    box-shadow: 0 6px 16px rgba(29, 78, 216, .28);
}
.btn-primary:hover { background: var(--royal-dark); color: #fff; }

.btn-accent {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 6px 16px rgba(249, 115, 22, .30);
}
.btn-accent:hover { background: var(--orange-dark); color: #fff; }

.btn-block { width: 100%; }

/* ============================================================
   4. HEADER (top bar)
   ============================================================ */
.site-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-main { background: var(--white); }

.header-main-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
}

/* Branding */
.site-branding { flex: 0 0 auto; }
.site-branding img { max-height: 56px; width: auto; }

.brand-link { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--royal), var(--royal-dark));
    color: #fff;
    font-weight: 800;
    border-radius: 12px;
    letter-spacing: .5px;
    box-shadow: var(--shadow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-size: 1.45rem; font-weight: 800; color: var(--royal-dark); }
.brand-title span { color: var(--orange); }
.brand-tagline { font-size: .72rem; color: var(--muted); font-weight: 500; }

/* Search */
.header-search { flex: 1 1 280px; min-width: 200px; order: 3; }
.search-form { position: relative; display: flex; }
.search-field {
    width: 100%;
    padding: 11px 48px 11px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--gray-50);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-field:focus {
    outline: none;
    border-color: var(--royal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
.search-submit {
    position: absolute;
    right: 5px; top: 50%;
    transform: translateY(-50%);
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--royal);
    color: #fff;
    display: grid; place-items: center;
    cursor: pointer;
    transition: background var(--transition);
}
.search-submit:hover { background: var(--orange); }

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    order: 2;
}

.lang-toggle {
    display: inline-flex;
    background: var(--gray-100);
    border-radius: var(--radius-pill);
    padding: 3px;
}
.lang-btn {
    border: 0;
    background: transparent;
    color: var(--gray-600);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    transition: var(--transition);
}
.lang-btn.is-active {
    background: var(--royal);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-login {
    background: var(--orange);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(249, 115, 22, .28);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.btn-login:hover { background: var(--orange-dark); color: #fff; }

/* ============================================================
   5. MAIN NAVIGATION (full-width, icons)
   ============================================================ */
.main-navigation {
    background: linear-gradient(90deg, var(--royal-dark), var(--royal));
    box-shadow: var(--shadow);
}
.nav-inner { display: flex; align-items: center; }

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.nav-menu li { position: relative; }
.nav-menu > li > a,
.nav-menu .menu-item > a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    padding: 14px 18px;
    font-weight: 600;
    font-size: .95rem;
    border-bottom: 3px solid transparent;
    transition: background var(--transition), border-color var(--transition);
}
.nav-menu > li > a:hover,
.nav-menu .menu-item > a:hover,
.nav-menu .current-menu-item > a {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-bottom-color: var(--orange);
}
.nav-menu .ms-icon { opacity: .92; }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    background: transparent;
    border: 0;
    cursor: pointer;
    margin: 6px 0;
}
.menu-toggle-bar {
    display: block;
    width: 24px; height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   6. BREAKING NEWS TICKER (red themed)
   ============================================================ */
.breaking-news {
    background: linear-gradient(90deg, var(--red-dark), var(--red));
    color: #fff;
    overflow: hidden;
}
.breaking-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.breaking-label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, .18);
    padding: 9px 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: .8rem;
}
.breaking-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #fff;
    animation: ms-blink 1s steps(2, start) infinite;
}
@keyframes ms-blink { to { visibility: hidden; } }

.breaking-track-wrap { overflow: hidden; flex: 1; }
.breaking-track {
    display: inline-flex;
    gap: 48px;
    white-space: nowrap;
    will-change: transform;
    animation: ms-ticker 32s linear infinite;
}
.breaking-news:hover .breaking-track { animation-play-state: paused; }
.breaking-item { padding: 9px 0; font-size: .9rem; font-weight: 500; }
@keyframes ms-ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   7. HOME TOP: HERO + SIDEBAR
   ============================================================ */
.home-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 36px;
}

/* Hero */
.hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--royal-dark);
    box-shadow: var(--shadow-md);
    min-height: 320px;
    display: flex;
    align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    color: rgba(255,255,255,.25);
    background: linear-gradient(135deg, var(--royal), var(--royal-darker));
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(23,42,107,.15) 0%, rgba(23,42,107,.55) 55%, rgba(23,42,107,.92) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 32px 28px;
    color: #fff;
    max-width: 640px;
}
.hero-badge {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}
.hero-title {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 10px;
}
.hero-subtitle {
    color: rgba(255,255,255,.9);
    font-size: 1.02rem;
    margin-bottom: 22px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Home sidebar boxes */
.home-sidebar { display: grid; gap: 18px; align-content: start; }
.side-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.side-box-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: grid; place-items: center;
    color: #fff;
    margin-bottom: 12px;
}
.side-box-title { font-size: 1.15rem; margin-bottom: 6px; }
.side-box-text { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }

/* WhatsApp box */
.side-box-whatsapp { border-top: 4px solid var(--green); }
.side-box-whatsapp .side-box-icon { background: var(--green); }
.side-box-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: var(--radius-pill);
    transition: transform var(--transition), background var(--transition);
}
.side-box-link:hover { background: #15803d; color: #fff; }
.side-box-link:hover .ms-icon { transform: translateX(4px); }
.side-box-link .ms-icon { transition: transform var(--transition); }

/* Newsletter box */
.side-box-newsletter { border-top: 4px solid var(--orange); }
.side-box-newsletter .side-box-icon { background: var(--orange); }
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .14);
}
.newsletter-message {
    font-size: .85rem;
    margin-top: 8px;
    min-height: 1em;
}
.newsletter-message.is-success { color: var(--green); }
.newsletter-message.is-error { color: var(--red); }

/* ============================================================
   8. SECTION HEADINGS
   ============================================================ */
.section-head { margin-bottom: 20px; text-align: center; }
.service-cards-section { margin-bottom: 40px; }
.section-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: "";
    display: block;
    width: 56px; height: 4px;
    background: var(--orange);
    border-radius: var(--radius-pill);
    margin: 10px auto 0;
}
.content-area .section-title::after { margin-left: 0; }
.content-area .section-head { text-align: left; }
.section-sub { color: var(--muted); margin-top: 4px; }

/* ============================================================
   9. SERVICE CARDS (4 equal-width)
   ============================================================ */
.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: grid; place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--royal), var(--royal-dark));
}
.service-card-central .service-card-icon { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.service-card-state .service-card-icon   { background: linear-gradient(135deg, #f97316, #ea580c); }
.service-card-news .service-card-icon    { background: linear-gradient(135deg, #dc2626, #991b1b); }
.service-card-jobs .service-card-icon    { background: linear-gradient(135deg, #16a34a, #15803d); }

.service-card-title { font-size: 1.15rem; margin-bottom: 8px; }
.service-card-desc { color: var(--muted); font-size: .92rem; flex: 1; margin-bottom: 16px; }
.service-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--orange);
    font-weight: 700;
    font-size: .92rem;
}
.service-card-link .ms-icon { transition: transform var(--transition); }
.service-card-link:hover { color: var(--orange-dark); }
.service-card-link:hover .ms-icon { transform: translateX(4px); }

/* ============================================================
   10. POST GRID (latest updates)
   ============================================================ */
.content-area { background: transparent; }
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.post-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--royal-light);
    overflow: hidden;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.post-card-thumb-fallback {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    color: var(--royal);
}
.post-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.post-card-cat {
    align-self: flex-start;
    background: var(--royal-light);
    color: var(--royal-dark);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
}
.post-card-title { font-size: 1.1rem; line-height: 1.35; margin-bottom: 8px; }
.post-card-title a { color: var(--gray-900); }
.post-card-title a:hover { color: var(--royal); }
.post-card-meta { color: var(--gray-400); font-size: .8rem; margin-bottom: 10px; }
.post-card-excerpt { color: var(--muted); font-size: .92rem; flex: 1; margin-bottom: 14px; }
.post-card-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--orange);
}
.post-card-more:hover { color: var(--orange-dark); }

/* No posts */
.no-posts {
    background: #fff;
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
}
.no-posts .ms-icon { color: var(--royal); margin: 0 auto 12px; }
.no-posts h3 { margin-bottom: 6px; }

/* ============================================================
   11. PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}
.pagination .page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 42px; height: 42px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--line);
    color: var(--gray-700);
    font-weight: 600;
}
.pagination .page-numbers:hover { border-color: var(--royal); color: var(--royal); }
.pagination .page-numbers.current {
    background: var(--royal);
    border-color: var(--royal);
    color: #fff;
}

/* ============================================================
   12. GENERIC CONTENT (pages / single)
   ============================================================ */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
.entry-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.entry-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.entry-meta { color: var(--gray-400); font-size: .85rem; margin-bottom: 18px; }
.entry-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.entry-content { line-height: 1.8; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.6rem; }
.entry-content a { text-decoration: underline; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote {
    border-left: 4px solid var(--orange);
    background: var(--orange-light);
    padding: 14px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--gray-700);
}

/* Sidebar widgets */
.sidebar .widget,
.widget {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.widget-title {
    font-size: 1.05rem;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--royal-light);
    position: relative;
}
.widget-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 44px; height: 2px;
    background: var(--orange);
}
.widget ul li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.widget ul li:last-child { border-bottom: 0; }

/* ============================================================
   13. FOOTER
   ============================================================ */
.site-footer {
    background: var(--royal-darker);
    color: #cdd7ee;
    margin-top: auto;
}
.footer-top { padding: 44px 0 28px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.footer-col-title {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 38px; height: 3px;
    background: var(--orange);
    border-radius: var(--radius-pill);
}
.footer-brand { display: inline-block; margin-bottom: 14px; }
.footer-brand img { max-height: 48px; width: auto; }
.footer-brand-text { font-size: 1.5rem; font-weight: 800; color: #fff; }
.footer-brand-text span { color: var(--orange); }
.footer-about-text { font-size: .9rem; line-height: 1.8; color: #aebbd9; }

.footer-menu li { margin-bottom: 9px; }
.footer-menu a { color: #aebbd9; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.footer-menu a::before { content: "›"; color: var(--orange); font-weight: 700; }
.footer-menu a:hover { color: #fff; padding-left: 4px; transition: padding var(--transition); }

.footer-connect-text { font-size: .9rem; color: #aebbd9; margin-bottom: 14px; }
.social-icons { display: flex; gap: 10px; }
.social-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    color: #fff;
    background: rgba(255,255,255,.10);
    transition: transform var(--transition), background var(--transition);
}
.social-icon:hover { transform: translateY(-3px); color: #fff; }
.social-whatsapp:hover { background: var(--green); }
.social-telegram:hover { background: #229ED9; }
.social-youtube:hover  { background: #ff0000; }

.footer-bottom {
    background: rgba(0,0,0,.25);
    padding: 16px 0;
}
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    font-size: .85rem;
    color: #aebbd9;
}
.footer-copy a { color: #fff; }
.footer-copy a:hover { color: var(--orange); }
.footer-love { display: inline-flex; align-items: center; gap: 6px; }
.footer-heart {
    color: #ff5b6e;
    animation: ms-heart 1.4s ease-in-out infinite;
    display: inline-block;
}
@keyframes ms-heart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

/* ============================================================
   14. RESPONSIVE — tablet & up (progressive enhancement)
   ============================================================ */
@media (min-width: 600px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .container { padding: 0 24px; }
    .home-top { grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); }
    .service-cards { grid-template-columns: repeat(2, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (min-width: 992px) {
    .service-cards { grid-template-columns: repeat(4, 1fr); }
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
    .hero { min-height: 380px; }
}

/* ============================================================
   15. RESPONSIVE — mobile nav & header (max-width)
   ============================================================ */
@media (max-width: 991px) {
    .menu-toggle { display: flex; }
    .nav-inner { flex-wrap: wrap; }
    .nav-menu {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .3s ease, opacity .3s ease;
    }
    .nav-menu.active {
        max-height: 640px;
        opacity: 1;
        padding-bottom: 8px;
    }
    .nav-menu .menu-item > a,
    .nav-menu > li > a {
        padding: 13px 6px;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .nav-menu > li > a:hover,
    .nav-menu .menu-item > a:hover { border-bottom-color: rgba(255,255,255,.12); }
}

@media (max-width: 767px) {
    .header-main-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand actions"
            "search search";
        align-items: center;
        gap: 12px;
    }
    .site-branding { grid-area: brand; }
    .header-actions { grid-area: actions; margin-left: 0; }
    .header-search { grid-area: search; order: 0; }

    .btn-login span { display: none; }
    .btn-login { padding: 10px; }

    .hero-content { padding: 24px 20px; }
    .hero-cta .btn { flex: 1; }

    .footer-bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
    .lang-btn { padding: 6px 9px; font-size: .78rem; }
    .brand-title { font-size: 1.2rem; }
    .service-cards { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   16. UTILITIES & REDUCED MOTION
   ============================================================ */
.alignwide { width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}


/* ============================================================
   17. BREADCRUMB NAVIGATION
   ============================================================ */
.breadcrumb {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    margin-bottom: 20px;
    font-size: .88rem;
    box-shadow: var(--shadow-sm);
}
.breadcrumb a { color: var(--royal); font-weight: 500; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: var(--gray-400); margin: 0 6px; }
.breadcrumb-current { color: var(--gray-600); font-weight: 600; }

/* ============================================================
   18. RELATED POSTS
   ============================================================ */
.related-posts {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid var(--line);
}
.related-posts .section-title { text-align: left; margin-bottom: 20px; }
.related-posts .section-title::after { margin-left: 0; }
.post-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 992px) {
    .post-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .post-grid-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   19. TRENDING POSTS WIDGET
   ============================================================ */
.trending-posts-list { display: flex; flex-direction: column; gap: 12px; }
.trending-posts-list li {
    border: 0 !important;
    padding: 0 !important;
}
.trending-posts-list a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    transition: background var(--transition), transform var(--transition);
}
.trending-posts-list a:hover {
    background: var(--royal-light);
    transform: translateX(4px);
}
.trending-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--line);
}
.trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trending-title {
    flex: 1;
    font-size: .9rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
}

/* ============================================================
   20. WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}
.whatsapp-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    box-shadow: 0 8px 24px rgba(22, 163, 74, .40);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: ms-pulse 2.5s ease-in-out infinite;
}
.whatsapp-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(22, 163, 74, .50);
    color: #fff;
}
@keyframes ms-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(22, 163, 74, .40); }
    50% { box-shadow: 0 8px 36px rgba(22, 163, 74, .65); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-float-btn {
        width: 56px;
        height: 56px;
    }
}

/* ============================================================
   21. LATEST JOBS & AGRICULTURE SECTIONS
   ============================================================ */
.latest-jobs-section,
.agriculture-section {
    margin-bottom: 40px;
}
.job-card .post-card-cat {
    background: var(--green-dark);
    color: #fff;
}
.agriculture-card .post-card-cat {
    background: var(--orange-light);
    color: var(--orange-dark);
}
.post-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) {
    .post-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .post-grid-4 { grid-template-columns: 1fr; }
}

.section-footer {
    text-align: center;
    margin-top: 24px;
}
.btn-outline {
    background: transparent;
    color: var(--royal);
    border: 2px solid var(--royal);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--royal);
    color: #fff;
    border-color: var(--royal);
}

/* ============================================================
   22. POST NAVIGATION
   ============================================================ */
.post-nav {
    margin-top: 28px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.post-nav-prev,
.post-nav-next {
    flex: 1 1 auto;
    min-width: 200px;
}
.post-nav a {
    display: block;
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background var(--transition), color var(--transition);
}
.post-nav a:hover {
    background: var(--royal-light);
    color: var(--royal);
}
.post-nav-next { text-align: right; }

/* ============================================================
   23. ENTRY FOOTER (TAGS)
   ============================================================ */
.entry-footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.entry-tags a {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: .82rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    transition: background var(--transition), color var(--transition);
}
.entry-tags a:hover {
    background: var(--royal);
    color: #fff;
}


/* ============================================================
   24. TOOLS CENTER
   ============================================================ */

/* Tools Center Header */
.tools-center-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
    padding: 32px 20px;
}
.tools-center-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--royal), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tools-center-desc {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* Tool Card */
.service-card {
    background: #fff;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 240px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--royal);
    color: inherit;
}
.service-card-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: grid; place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--royal), var(--royal-dark));
}
.service-card-central .service-card-icon { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.service-card-state .service-card-icon   { background: linear-gradient(135deg, #f97316, #ea580c); }
.service-card-news .service-card-icon    { background: linear-gradient(135deg, #dc2626, #991b1b); }
.service-card-jobs .service-card-icon    { background: linear-gradient(135deg, #16a34a, #15803d); }

.service-card-title { font-size: 1.15rem; margin-bottom: 8px; color: var(--gray-900); }
.service-card-desc { color: var(--muted); font-size: .92rem; flex: 1; margin-bottom: 16px; }
.service-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--orange);
    font-weight: 700;
    font-size: .92rem;
    margin-top: auto;
}
.service-card:hover .service-card-link { color: var(--orange-dark); }
.service-card-link .ms-icon { transition: transform var(--transition); }
.service-card:hover .service-card-link .ms-icon { transform: translateX(4px); }

/* Tool Sections */
.tools-calculators {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.tool-section {
    scroll-margin-top: 80px;
}

/* ============================================================
   25. CALCULATOR COMPONENTS
   ============================================================ */

/* Tool Container */
.ms-tool {
    background: #fff;
    border: 2px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition);
}
.ms-tool:hover {
    box-shadow: var(--shadow-lg);
}

/* Tool Header */
.ms-tool-header {
    background: linear-gradient(135deg, var(--royal-light), var(--royal-lighter, #f0f4fd));
    padding: 28px;
    border-bottom: 2px solid var(--line);
}
.ms-tool-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--royal-dark);
}
.ms-tool-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.ms-tool-desc {
    color: var(--gray-600);
    font-size: .95rem;
    line-height: 1.5;
}

/* Tool Body */
.ms-tool-body {
    padding: 32px 28px;
}

/* Form Elements */
.ms-form-row {
    margin-bottom: 20px;
}
.ms-form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: .95rem;
}
.ms-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--gray-50);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.ms-form-input:focus {
    outline: none;
    border-color: var(--royal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
.ms-form-input::placeholder {
    color: var(--gray-400);
}

/* Tool Actions */
.ms-tool-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.ms-calculate,
.ms-reset {
    flex: 1;
    min-width: 140px;
}

/* Tool Result */
.ms-tool-result {
    margin-top: 32px;
    padding: 24px;
    background: var(--royal-light);
    border-radius: var(--radius);
    border: 2px solid var(--royal);
}
.ms-result-title {
    font-size: 1.15rem;
    color: var(--royal-dark);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Result Grid (for Age, EMI, Pension) */
.ms-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}
.ms-result-item {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.ms-result-item.ms-result-primary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--orange-light), #fff);
    border: 2px solid var(--orange);
}
.ms-result-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--royal-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}
.ms-result-primary .ms-result-value {
    font-size: 2.2rem;
    color: var(--orange-dark);
}
.ms-result-label {
    display: block;
    font-size: .85rem;
    color: var(--gray-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.ms-result-primary .ms-result-label {
    order: -1;
    margin-bottom: 8px;
}

/* Result List (for Land Converter) */
.ms-result-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ms-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.ms-result-row .ms-result-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: .95rem;
    text-transform: none;
}
.ms-result-row .ms-result-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--royal-dark);
    margin: 0;
}

/* Eligibility Checker Specific */
.ms-eligibility-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ms-eligibility-item {
    background: #fff;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--green);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}
.ms-eligibility-item:hover {
    transform: translateX(4px);
}
.ms-eligibility-item.not-eligible {
    border-left-color: var(--gray-300);
    opacity: 0.7;
}
.ms-eligibility-scheme-name {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 1.05rem;
    margin-bottom: 4px;
    display: block;
}
.ms-eligibility-scheme-desc {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.4;
}
.ms-eligibility-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-top: 8px;
}
.ms-eligibility-badge.eligible {
    background: var(--green-dark);
    color: #fff;
}
.ms-eligibility-badge.not-eligible {
    background: var(--gray-300);
    color: var(--gray-600);
}

/* SEO Content Section */
.tools-seo-content {
    margin-top: 48px;
    padding: 32px 28px;
    background: var(--gray-50);
    border-radius: var(--radius);
}
.seo-content-block {
    margin-bottom: 24px;
}
.seo-content-block:last-child {
    margin-bottom: 0;
}
.seo-content-block h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--royal-dark);
}
.seo-content-block h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--gray-900);
}
.seo-content-block p {
    color: var(--gray-700);
    line-height: 1.7;
}

/* ============================================================
   26. LANGUAGE SWITCHING FOR TOOLS
   ============================================================ */

/* Hide language-specific content by default */
.lang-ta,
.lang-en {
    display: none;
}

/* Show Tamil by default */
[data-lang="ta"] .lang-ta,
html:not([data-lang]) .lang-ta {
    display: inline;
}

/* Show English when selected */
[data-lang="en"] .lang-en {
    display: inline;
}

/* For block elements */
.lang-ta.block,
.lang-en.block {
    display: none;
}
[data-lang="ta"] .lang-ta.block,
html:not([data-lang]) .lang-ta.block {
    display: block;
}
[data-lang="en"] .lang-en.block {
    display: block;
}

/* ============================================================
   27. TOOLS RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .ms-tool-header {
        padding: 20px;
    }
    
    .ms-tool-body {
        padding: 24px 20px;
    }
    
    .ms-tool-title {
        font-size: 1.3rem;
        flex-direction: column;
        text-align: center;
    }
    
    .ms-tool-actions {
        flex-direction: column;
    }
    
    .ms-calculate,
    .ms-reset {
        width: 100%;
        min-width: 0;
    }
    
    .ms-result-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-center-header {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .tool-card {
        padding: 20px;
        min-height: 200px;
    }
    
    .tool-card-icon {
        font-size: 2.8rem;
    }
    
    .ms-result-value {
        font-size: 1.5rem;
    }
    
    .ms-result-primary .ms-result-value {
        font-size: 1.8rem;
    }
    
    .ms-result-row {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ============================================================
   28. PRINT STYLES FOR CALCULATORS
   ============================================================ */

@media print {
    .ms-tool-actions,
    .tool-card-link,
    .site-header,
    .site-footer,
    .whatsapp-float,
    .breadcrumb {
        display: none !important;
    }
    
    .ms-tool {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .ms-tool-result {
        border: 2px solid #000;
        background: #f5f5f5;
    }
}


/* ============================================================
   29. PHASE 3: AJAX SEARCH, SOCIAL SHARE, MOBILE UX
   ============================================================ */

/* AJAX Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid var(--royal);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: -1px;
}
.search-results-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.search-result-item {
    border-bottom: 1px solid var(--line);
}
.search-result-item:last-child {
    border-bottom: 0;
}
.search-result-item a {
    display: block;
    padding: 12px 16px;
    color: var(--ink);
    transition: background var(--transition);
}
.search-result-item a:hover {
    background: var(--royal-light);
}
.result-type {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-size: .7rem;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    margin-bottom: 4px;
}
.search-result-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--royal-dark);
}
.search-result-item p {
    font-size: .85rem;
    color: var(--muted);
    margin: 0;
}

/* Social Share Buttons */
.social-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.social-share-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-right: 4px;
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform var(--transition), opacity var(--transition);
    border: 0;
    cursor: pointer;
}
.share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}
.share-whatsapp { background: #25D366; }
.share-telegram { background: #229ED9; }
.share-facebook { background: #1877F2; }
.share-copy { background: var(--gray-600); }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--royal);
    color: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-4px);
    background: var(--royal-dark);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid var(--line);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--gray-600);
    font-size: .7rem;
    padding: 4px 8px;
    transition: color var(--transition);
    text-decoration: none;
}
.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--royal);
}
.mobile-bottom-nav svg {
    flex-shrink: 0;
}

/* WhatsApp Banner */
.whatsapp-banner {
    background: linear-gradient(135deg, #128C7E, #25D366);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 40px 0;
    box-shadow: var(--shadow-lg);
}
.whatsapp-banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.whatsapp-banner-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.whatsapp-banner-content {
    flex: 1;
    min-width: 200px;
}
.whatsapp-banner-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.whatsapp-banner-text {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}
.btn-whatsapp {
    background: #fff;
    color: #128C7E;
    flex-shrink: 0;
}
.btn-whatsapp:hover {
    background: rgba(255,255,255,0.9);
    color: #128C7E;
}

/* 404 Page Styles */
.error-404 {
    text-align: center;
    max-width: 800px;
    margin: 60px auto;
    padding: 40px 20px;
}
.error-404-icon {
    position: relative;
    margin-bottom: 32px;
}
.error-404-number {
    font-size: 8rem;
    font-weight: 800;
    color: var(--royal-light);
    line-height: 1;
    display: block;
}
.error-404-icon .ms-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--royal);
}
.error-404-title {
    font-size: 2rem;
    margin-bottom: 16px;
}
.error-404-text {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}
.error-404-search {
    margin: 40px 0;
}
.error-404-search .search-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 20px auto;
}
.error-404-search .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
}
.error-404-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.error-link-card {
    padding: 20px;
    background: var(--gray-50);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all var(--transition);
}
.error-link-card:hover {
    background: var(--royal-light);
    border-color: var(--royal);
    transform: translateY(-4px);
}
.error-404-whatsapp {
    max-width: 400px;
    margin: 40px auto 0;
}

@media (max-width: 768px) {
    .whatsapp-banner-inner {
        text-align: center;
        justify-content: center;
    }
    .whatsapp-banner-title {
        font-size: 1.2rem;
    }
    .social-share-buttons {
        justify-content: center;
    }
    .back-to-top {
        bottom: 70px;
        right: 16px;
    }
}
