/*
Theme Name: EZ Hindi
Theme URI: https://ezhindi.com
Author: ezhindi.com
Description: A modern, fast, mobile-friendly, SEO-optimized custom theme for ezhindi.com
Version: 2.0
Text Domain: ezhindi
*/

:root {
    /* Colors */
    --primary: #F97316; /* Saffron/Orange */
    --primary-dark: #EA580C;
    --primary-light: #FFEDD5;
    
    --bg-main: #F8FAFC;
    --bg-card: #FFFFFF;
    
    --text-main: #0F172A;
    --text-muted: #64748B;
    
    --border: #E2E8F0;
    --focus-ring: rgba(249, 115, 22, 0.5);

    /* Typography */
    --font-base: 'Inter', 'Mukta', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition: 0.2s ease-in-out;
}

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

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

body {
    font-family: var(--font-base);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll completely */
}

/* Accessibility Focus States */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

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

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

/* Images & Media */
img, iframe, video {
    max-width: 100%;
    height: auto;
    display: block;
}

img {
    object-fit: cover; /* default object-fit for modern look */
}

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

.table-responsive {
    overflow-x: auto;
    max-width: 100%;
}

/* Prevent text overflow */
p, h1, h2, h3, h4, h5, h6, li, a {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: #FFF;
    border-radius: var(--radius-md);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
    min-height: 44px; /* Accessible touch target */
}

.btn:hover {
    background-color: var(--primary-dark);
    color: #FFF;
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: #FFF;
}

/* Form Elements */
input[type="text"], input[type="search"], input[type="email"], textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-base);
    font-size: 1rem;
    color: var(--text-main);
    background: var(--bg-card);
    transition: border-color var(--transition);
    min-height: 44px; /* Accessible touch target */
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

/* ==========================================================================
   Layouts
   ========================================================================== */
.container {
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    margin-right: auto;
    margin-left: auto;
}

/* Container breakpoints */
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 1024px) { .container { max-width: 960px; padding-right: 1.5rem; padding-left: 1.5rem; } }
@media (min-width: 1280px) { .container { max-width: 1140px; } }
@media (min-width: 1440px) { .container { max-width: 1200px; } }

/* Main Content Grid */
.main-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

@media (min-width: 1024px) {
    .main-wrapper {
        flex-direction: row;
        align-items: flex-start;
        padding: 3rem 0;
    }
    
    .content-primary {
        flex: 1 1 70%;
        min-width: 0; /* Prevent flex overflow */
    }
    
    .sidebar {
        flex: 0 0 300px; /* Fixed width sidebar on desktop */
        position: sticky;
        top: 90px; /* Below sticky header */
    }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: block;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Navigation */
.main-navigation {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-md);
    display: none; /* Hidden by default on mobile, handled via JS class */
    flex-direction: column;
    padding: 1rem;
    z-index: 40;
}

.main-navigation.is-open {
    display: flex;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.1rem;
}

.header-search {
    display: none; /* Hidden on mobile header, maybe in menu */
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
    
    .main-navigation {
        position: static;
        display: flex;
        flex-direction: row;
        width: auto;
        box-shadow: none;
        padding: 0;
        align-items: center;
    }
    
    .main-navigation ul {
        flex-direction: row;
        gap: 2rem;
    }
    
    .main-navigation a {
        padding: 0;
        font-size: 1rem;
    }
    
    .header-search {
        display: block;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background-color: var(--bg-card);
    padding: 3rem 1rem;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.hero-search form {
    display: flex;
    position: relative;
}

.hero-search input {
    padding-right: 100px; /* space for button */
    border-radius: 50px;
}

.hero-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    border-radius: 50px;
    padding: 0 1.5rem;
    min-height: auto;
}

.hero-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.cat-pill {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.cat-pill:hover {
    background-color: var(--primary);
    color: white;
}

@media (min-width: 768px) {
    .hero-section { padding: 4rem 2rem; }
    .hero-title { font-size: 2.75rem; }
    .hero-subtitle { font-size: 1.25rem; }
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (min-width: 1024px) {
    /* If full width container (no sidebar), 3 columns. If with sidebar, 2 columns */
    .content-primary .card-grid { grid-template-columns: repeat(2, 1fr); }
    .full-width-grid { grid-template-columns: repeat(3, 1fr); }
}

.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* For grid alignment */
    transition: var(--transition);
    position: relative;
}

/* Hover effects only for devices that support hover (desktop) */
@media (hover: hover) {
    .post-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: transparent;
    }
    
    .post-card:hover .post-thumbnail img {
        transform: scale(1.05);
    }
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.post-badge a { color: white; }

.post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--text-main);
}

@media (hover: hover) {
    .post-title a:hover { color: var(--primary); }
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes read-more to bottom */
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
}

.read-more-link svg {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    transition: transform var(--transition);
}

@media (hover: hover) {
    .read-more-link:hover svg {
        transform: translateX(4px);
    }
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

@media (min-width: 768px) {
    .single-post-wrapper { padding: 2.5rem; }
}

.breadcrumbs {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--text-muted);
}

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

.single-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .single-title { font-size: 2.5rem; }
}

.single-meta-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.meta-details {
    display: flex;
    flex-direction: column;
}

.meta-details .author-name {
    font-weight: 600;
    color: var(--text-main);
}

.meta-details .post-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.single-thumbnail {
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.single-content {
    font-size: 1.125rem; /* Larger font for readability (18px) */
    line-height: 1.8;
    color: #334155; /* Slightly softer dark text for reading */
}

/* Hindi readability optimizations */
.single-content p {
    margin-bottom: 1.5rem;
}

.single-content h2, .single-content h3, .single-content h4 {
    color: var(--text-main);
    margin: 2rem 0 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.single-content h2 { font-size: 1.75rem; }
.single-content h3 { font-size: 1.5rem; }

.single-content ul, .single-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.single-content li {
    margin-bottom: 0.5rem;
}

.single-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--bg-main);
    font-style: italic;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Table of Contents Styling */
.toc-container {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: inline-block;
    min-width: 50%;
}

.toc-title {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Social Share */
.social-share-box {
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.social-share-title {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Sidebar & Widgets
   ========================================================================== */
.widget {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li a {
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
}

@media (hover: hover) {
    .widget ul li a:hover {
        color: var(--primary);
        padding-left: 4px; /* Subtle interaction */
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #0F172A;
    color: #F8FAFC;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-widgets { grid-template-columns: repeat(3, 1fr); }
}

.footer-widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #FFF;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: #CBD5E1;
}

@media (hover: hover) {
    .footer-widget a:hover {
        color: var(--primary);
        padding-left: 4px;
    }
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1E293B;
    color: #94A3B8;
    font-size: 0.875rem;
}

/* Pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 500;
}

.nav-links .page-numbers.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (hover: hover) {
    .nav-links a.page-numbers:hover {
        background: var(--primary-light);
        color: var(--primary-dark);
        border-color: var(--primary-light);
    }
}

/* ==========================================================================
   Forms & Lead Capture
   ========================================================================== */
.ez-form-wrapper {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.ez-form-group {
    margin-bottom: 1.5rem;
}

.ez-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.ez-form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-base);
    font-size: 1rem;
    color: var(--text-main);
    background: var(--bg-card);
    min-height: 44px;
}

.ez-form-msg {
    display: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.ez-form-msg.success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #34D399;
}

.ez-form-msg.error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #F87171;
}

/* ==========================================================================
   Banners & CTA
   ========================================================================== */
.global-cta-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
}

.global-cta-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.global-cta-banner p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

/* ==========================================================================
   Ad Placeholders
   ========================================================================== */
.ad-placeholder {
    background-color: #F1F5F9;
    border: 2px dashed #CBD5E1;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    margin: 2rem auto;
    font-size: 0.875rem;
    font-weight: 500;
}

.ad-leaderboard {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.ad-rectangle {
    width: 100%;
    max-width: 300px;
    height: 250px;
}

.ad-responsive {
    width: 100%;
    min-height: 100px;
}

/* ==========================================================================
   Tool & Download Specific UI
   ========================================================================== */
.tool-interface {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.tool-output {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    min-height: 100px;
}

/* ==========================================================================
   Dictionary Module
   ========================================================================== */
.word-hero { background: linear-gradient(135deg, #F97316, #C2410C); color: white; padding: 2rem; border-radius: var(--radius-lg); margin-bottom: 2rem; }
.word-hero h1 { color: white; font-size: 2.5rem; margin-bottom: 0.5rem; }
.word-hero .word-meta { opacity: 0.9; font-size: 1rem; }
.word-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.word-tag { background: var(--primary-light); color: var(--primary-dark); padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.word-meaning-box { background: #F8FAFC; border: 1px solid var(--border); border-left: 4px solid var(--primary); padding: 1.5rem; border-radius: var(--radius-md); margin: 1.5rem 0; }
.word-example { background: #FFFBEB; border-left: 3px solid #D97706; padding: 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0.75rem 0; font-style: italic; }
.share-btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.btn-copy { background: #475569; color: white; }
.btn-copy:hover { background: #334155; }

/* ==========================================================================
   Quiz Module
   ========================================================================== */
.quiz-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.quiz-option { display: block; width: 100%; text-align: left; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 0.5rem; cursor: pointer; transition: all 0.2s; background: white; font-family: var(--font-base); font-size: 1rem; }
.quiz-option:hover { border-color: var(--primary); background: var(--primary-light); }
.quiz-option.correct { background: #D1FAE5; border-color: #10B981; color: #065F46; }
.quiz-option.wrong { background: #FEE2E2; border-color: #EF4444; color: #991B1B; }

/* ==========================================================================
   Module Badge Colors
   ========================================================================== */
.badge-grammar { background: #EDE9FE; color: #5B21B6; }
.badge-career { background: #DBEAFE; color: #1D4ED8; }
.badge-festival { background: #FEF3C7; color: #B45309; }
.badge-business { background: #D1FAE5; color: #065F46; }
.badge-kids { background: #FCE7F3; color: #9D174D; }
.badge-pdf { background: #FEE2E2; color: #991B1B; }
.badge-ai { background: #E0E7FF; color: #3730A3; }

/* ==========================================================================
   Quiz Engine Styles
   ========================================================================== */
#ez-quiz-container { font-family: var(--font-base); }

.ez-quiz-header { margin-bottom: 1.5rem; }

.ez-quiz-progress-bar {
    width: 100%; height: 8px;
    background: #E2E8F0; border-radius: 999px; overflow: hidden;
    margin-bottom: 0.75rem;
}
.ez-quiz-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--primary), #C2410C);
    border-radius: 999px;
    transition: width 0.4s ease;
}
.ez-quiz-meta {
    display: flex; justify-content: space-between;
    font-size: 0.9rem; color: var(--text-muted); font-weight: 600;
}

.ez-question-block {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    animation: fadeSlideIn 0.3s ease;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ez-q-number {
    display: inline-block; background: var(--primary); color: white;
    font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.6rem;
    border-radius: 999px; margin-bottom: 1rem;
}
.ez-q-text {
    font-size: 1.15rem; font-weight: 600; color: var(--text-main);
    line-height: 1.6; margin-bottom: 1.25rem;
}
.ez-options { display: flex; flex-direction: column; gap: 0.6rem; }

.quiz-option {
    display: block; width: 100%; text-align: left;
    padding: 0.85rem 1.1rem; border: 2px solid #E2E8F0;
    border-radius: var(--radius-md); cursor: pointer;
    background: white; font-family: var(--font-base);
    font-size: 1rem; color: var(--text-main);
    transition: all 0.2s ease; font-weight: 500;
}
.quiz-option:hover:not(:disabled) {
    border-color: var(--primary); background: var(--primary-light);
    transform: translateX(4px);
}
.quiz-option.correct {
    border-color: #10B981 !important; background: #D1FAE5 !important;
    color: #065F46 !important;
}
.quiz-option.correct::after { content: ' ✓'; font-weight: 800; }
.quiz-option.wrong {
    border-color: #EF4444 !important; background: #FEE2E2 !important;
    color: #991B1B !important;
}
.quiz-option.wrong::after { content: ' ✗'; font-weight: 800; }
.quiz-option:disabled { cursor: not-allowed; }

.ez-explanation {
    margin-top: 1rem; padding: 0.85rem 1rem;
    background: #FFFBEB; border-left: 4px solid #D97706;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.95rem; color: #92400E;
    animation: fadeSlideIn 0.3s ease;
}

.ez-quiz-nav {
    display: flex; justify-content: space-between;
    margin-top: 1.25rem; gap: 1rem;
}
.btn-outline {
    background: transparent; color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

/* ==========================================================================
   HOMEPAGE — Hero Section
   ========================================================================== */
.hp-hero {
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.hp-hero::before {
    content:'';position:absolute;top:-60px;right:-60px;
    width:400px;height:400px;border-radius:50%;
    background:radial-gradient(circle,rgba(249,115,22,0.15),transparent 70%);
    pointer-events:none;
}
.hp-hero::after {
    content:'';position:absolute;bottom:-80px;left:-80px;
    width:350px;height:350px;border-radius:50%;
    background:radial-gradient(circle,rgba(139,92,246,0.12),transparent 70%);
    pointer-events:none;
}
.hp-hero-inner { position:relative; z-index:2; }

.hp-badge {
    display:inline-block; background:rgba(249,115,22,0.15);
    border:1px solid rgba(249,115,22,0.4); color:#FB923C;
    padding:0.35rem 1rem; border-radius:999px; font-size:0.85rem;
    font-weight:600; margin-bottom:1.25rem; letter-spacing:0.02em;
}
.hp-hero-title {
    font-size:clamp(2rem,5vw,3.25rem); font-weight:800;
    color:#F8FAFC; line-height:1.2; margin-bottom:1rem;
}
.hp-hero-highlight {
    background:linear-gradient(90deg,#F97316,#FBBF24);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
    background-clip:text;
}
.hp-hero-sub {
    color:#94A3B8; font-size:1.1rem; margin-bottom:2.5rem;
    max-width:580px;
}

/* Search */
.hp-search-wrap { max-width:700px; }
.hp-search-form {
    display:flex; align-items:center; gap:0;
    background:#1E293B; border:2px solid rgba(249,115,22,0.5);
    border-radius:16px; overflow:hidden;
    box-shadow:0 8px 32px rgba(0,0,0,0.4);
    transition:border-color 0.2s;
}
.hp-search-form:focus-within { border-color:#F97316; }
.hp-search-icon { padding:0 1rem; color:#64748B; display:flex; align-items:center; flex-shrink:0; }
.hp-search-input {
    flex:1; padding:1rem 0.5rem; background:transparent;
    border:none; outline:none; color:#F1F5F9; font-size:1.05rem;
    font-family:var(--font-base);
}
.hp-search-input::placeholder { color:#475569; }
.hp-search-btn {
    padding:1rem 1.75rem; background:linear-gradient(135deg,#F97316,#EA580C);
    color:white; border:none; cursor:pointer; font-size:1rem;
    font-weight:700; font-family:var(--font-base);
    transition:opacity 0.2s; flex-shrink:0;
}
.hp-search-btn:hover { opacity:0.9; }

/* Trending tags */
.hp-trending {
    display:flex; flex-wrap:wrap; gap:0.5rem;
    align-items:center; margin-top:1rem;
}
.hp-trend-label { color:#64748B; font-size:0.85rem; font-weight:600; }
.hp-trend-tag {
    background:rgba(255,255,255,0.07); color:#CBD5E1;
    padding:0.3rem 0.75rem; border-radius:999px; font-size:0.82rem;
    border:1px solid rgba(255,255,255,0.1); text-decoration:none;
    transition:all 0.2s;
}
.hp-trend-tag:hover { background:rgba(249,115,22,0.2); color:#FB923C; border-color:rgba(249,115,22,0.4); }

/* Stats bar */
.hp-stats-bar {
    display:flex; gap:2rem; flex-wrap:wrap;
    margin-top:2.5rem; padding-top:2rem;
    border-top:1px solid rgba(255,255,255,0.08);
}
.hp-stat { display:flex; flex-direction:column; }
.hp-stat-num { font-size:1.75rem; font-weight:800; color:#F97316; line-height:1; }
.hp-stat span:last-child { color:#64748B; font-size:0.85rem; margin-top:0.2rem; }

/* ==========================================================================
   HOMEPAGE — General Section Layout
   ========================================================================== */
.hp-section { padding:3.5rem 0; }
.hp-section-alt { background:#F8FAFC; padding:3.5rem 0; }
.hp-section-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:1.75rem; }
.hp-section-title {
    font-size:1.4rem; font-weight:800; color:var(--text-main);
    display:flex; align-items:center; gap:0.75rem; margin:0;
}
.hp-section-line { display:inline-block; width:40px; height:3px; background:var(--primary); border-radius:999px; }
.hp-view-all { color:var(--primary); font-weight:600; font-size:0.9rem; text-decoration:none; white-space:nowrap; }
.hp-view-all:hover { text-decoration:underline; }

/* ==========================================================================
   MODULE GRID
   ========================================================================== */
.hp-modules-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
    gap:1rem;
}
.hp-module-card {
    display:flex; flex-direction:column; align-items:center;
    justify-content:center; padding:1.25rem 0.75rem;
    background:white; border:1.5px solid #E2E8F0;
    border-radius:var(--radius-lg); text-decoration:none;
    transition:all 0.25s ease; text-align:center;
    box-shadow:0 1px 3px rgba(0,0,0,0.06);
    position:relative; overflow:hidden;
}
.hp-module-card::before {
    content:''; position:absolute; inset:0;
    background:linear-gradient(135deg, color-mix(in srgb, var(--mc) 10%, transparent), transparent);
    opacity:0; transition:opacity 0.25s;
}
.hp-module-card:hover { transform:translateY(-4px); box-shadow:0 8px 24px rgba(0,0,0,0.1); border-color:var(--mc); }
.hp-module-card:hover::before { opacity:1; }
.hp-module-icon { font-size:2rem; margin-bottom:0.5rem; line-height:1; position:relative; }
.hp-module-name { font-weight:700; font-size:0.9rem; color:var(--text-main); position:relative; }
.hp-module-desc { font-size:0.72rem; color:var(--text-muted); margin-top:0.2rem; position:relative; }

/* ==========================================================================
   DICTIONARY WORD GRID
   ========================================================================== */
.hp-word-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1rem; }
.hp-word-card {
    background:white; border:1px solid #E2E8F0;
    border-radius:var(--radius-md); padding:1.25rem;
    text-decoration:none; transition:all 0.2s;
    border-top:3px solid var(--primary);
}
.hp-word-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); }
.hp-word-title { font-size:1.3rem; font-weight:800; color:var(--primary-dark); margin-bottom:0.4rem; }
.hp-word-meaning { font-size:0.875rem; color:var(--text-muted); line-height:1.5; margin-bottom:0.75rem; }
.hp-word-cta { font-size:0.8rem; color:var(--primary); font-weight:600; }

/* ==========================================================================
   LIST CARDS (Quiz, Career, etc.)
   ========================================================================== */
.hp-list-cards { display:flex; flex-direction:column; gap:0.5rem; }
.hp-list-item {
    display:flex; align-items:center; gap:0.75rem; padding:0.75rem 1rem;
    background:white; border:1px solid #E2E8F0; border-radius:var(--radius-md);
    text-decoration:none; transition:all 0.2s; color:var(--text-main);
}
.hp-list-item:hover { border-color:var(--primary); background:#FFF7ED; transform:translateX(4px); }
.hp-list-num { width:24px;height:24px;border-radius:50%;background:var(--primary);color:white;display:flex;align-items:center;justify-content:center;font-size:0.75rem;font-weight:700;flex-shrink:0; }
.hp-list-icon { font-size:1.1rem; flex-shrink:0; }
.hp-list-text { flex:1; font-size:0.92rem; font-weight:500; }
.hp-list-arrow { color:var(--primary); font-size:0.9rem; flex-shrink:0; }

/* ==========================================================================
   TOOL CARDS
   ========================================================================== */
.hp-tool-card {
    display:flex; flex-direction:column; align-items:center; text-align:center;
    padding:1.25rem 0.75rem; background:white; border:1px solid #E2E8F0;
    border-radius:var(--radius-lg); text-decoration:none; transition:all 0.2s;
}
.hp-tool-card:hover { border-color:#0EA5E9; box-shadow:0 4px 16px rgba(14,165,233,0.15); transform:translateY(-3px); }
.hp-tool-icon { font-size:2rem; margin-bottom:0.5rem; }
.hp-tool-name { font-size:0.88rem; font-weight:700; color:var(--text-main); margin-bottom:0.4rem; }
.hp-tool-use { font-size:0.75rem; color:#0EA5E9; font-weight:600; }

/* ==========================================================================
   FESTIVAL & KIDS CHIPS
   ========================================================================== */
.hp-festival-chips, .hp-kids-chips { display:flex; flex-wrap:wrap; gap:0.6rem; }
.hp-festival-chip {
    background:#FEF3C7; color:#92400E; border:1px solid #FDE68A;
    padding:0.45rem 0.9rem; border-radius:999px; font-size:0.85rem;
    font-weight:600; text-decoration:none; transition:all 0.2s;
}
.hp-festival-chip:hover { background:#D97706; color:white; border-color:#D97706; }
.hp-kids-chip {
    background:#FCE7F3; color:#9D174D; border:1px solid #FBCFE8;
    padding:0.45rem 0.9rem; border-radius:999px; font-size:0.85rem;
    font-weight:600; text-decoration:none; transition:all 0.2s;
}
.hp-kids-chip:hover { background:#DB2777; color:white; }

/* ==========================================================================
   TUTOR CARDS
   ========================================================================== */
.hp-tutor-card { text-align:center; padding:1.5rem 1rem; text-decoration:none; display:block; }
.hp-tutor-avatar { font-size:3rem; margin-bottom:0.5rem; }
.hp-tutor-name { font-weight:700; color:var(--text-main); font-size:1rem; margin-bottom:0.3rem; }
.hp-tutor-meta { font-size:0.8rem; color:var(--text-muted); margin-bottom:0.75rem; }
.hp-tutor-btn { display:inline-block; background:var(--primary); color:white; padding:0.4rem 1rem; border-radius:999px; font-size:0.82rem; font-weight:600; }

/* ==========================================================================
   TWO-COLUMN LAYOUT
   ========================================================================== */
.hp-two-col { display:grid; grid-template-columns:1fr 1fr; gap:3rem; }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.hp-cta-banner {
    background:linear-gradient(135deg,#0F172A,#1E1B4B);
    padding:3rem 0;
}
.hp-cta-inner {
    display:flex; flex-wrap:wrap; gap:2rem;
    align-items:center; justify-content:space-between;
}
.hp-cta-title { color:#F8FAFC; font-size:1.5rem; font-weight:800; margin:0 0 0.5rem; }
.hp-cta-sub { color:#94A3B8; font-size:1rem; margin:0; }
.hp-cta-form { display:flex; flex-wrap:wrap; gap:0.75rem; align-items:center; }
.hp-cta-input { padding:0.75rem 1rem; border-radius:var(--radius-md); border:none; font-size:0.95rem; min-width:160px; background:#1E293B; color:#F1F5F9; border:1px solid rgba(255,255,255,0.1); }
.hp-cta-btn { padding:0.75rem 1.5rem; background:linear-gradient(135deg,#F97316,#EA580C); color:white; border:none; border-radius:var(--radius-md); font-size:1rem; font-weight:700; cursor:pointer; font-family:var(--font-base); }
.hp-cta-btn:hover { opacity:0.9; }

/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */
@media(max-width:768px) {
    .hp-two-col { grid-template-columns:1fr; gap:2rem; }
    .hp-modules-grid { grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); }
    .hp-hero { padding:2.5rem 0 2rem; }
    .hp-stats-bar { gap:1.25rem; }
    .hp-cta-inner { flex-direction:column; }
    .hp-cta-form { width:100%; }
    .hp-word-grid { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); }
}
@media(max-width:480px) {
    .hp-modules-grid { grid-template-columns:repeat(4,1fr); }
    .hp-search-btn { padding:1rem; font-size:0.9rem; }
}

/* ==========================================================================
   PROFESSIONAL HEADER
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.12); }

.header-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 0 1.5rem;
    display: flex; align-items: center; gap: 2rem;
    height: 68px;
}

/* Logo */
.site-logo {
    display: flex; align-items: center; gap: 0.6rem;
    text-decoration: none; flex-shrink: 0;
}
.logo-mark { display: flex; align-items: center; }
.logo-text { display: flex; align-items: baseline; gap: 0; }
.logo-name {
    font-size: 1.45rem; font-weight: 900;
    color: #0F172A; letter-spacing: -0.03em;
    line-height: 1;
}
.logo-tagline { font-size: 1.45rem; font-weight: 900; color: #F97316; line-height: 1; }

/* Primary Nav */
.primary-nav { flex: 1; display: flex; justify-content: center; }
.nav-list {
    display: flex; align-items: center;
    list-style: none; margin: 0; padding: 0; gap: 0.25rem;
}
.nav-item { position: relative; }
.nav-link {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.55rem 0.9rem; border-radius: 8px;
    font-size: 0.9rem; font-weight: 600; color: #374151;
    text-decoration: none; white-space: nowrap;
    transition: all 0.18s ease;
}
.nav-link:hover, .nav-item.active > .nav-link { color: #F97316; background: #FFF7ED; }
.nav-chevron { transition: transform 0.2s; flex-shrink: 0; }
.nav-item.has-mega:hover .nav-chevron,
.nav-item.has-mega.mega-open .nav-chevron { transform: rotate(180deg); }

/* ---- Mega Menu ---- */
.mega-menu {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(0);
    margin-top: 8px; /* Visual gap managed by padding/invisible area */
    background: white; border: 1px solid #E5E7EB;
    border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.14);
    padding: 1.5rem; display: flex; gap: 2rem;
    min-width: 480px; opacity: 0; visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    z-index: 100;
}
/* Invisible bridge to prevent hover loss */
.mega-menu::after {
    content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.mega-menu::before {
    content: ''; position: absolute; top: -6px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px; background: white;
    border-left: 1px solid #E5E7EB; border-top: 1px solid #E5E7EB;
}
.nav-item.has-mega:hover .mega-menu,
.nav-item.has-mega.mega-open .mega-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
    pointer-events: all;
}
.mega-col { display: flex; flex-direction: column; gap: 0.2rem; min-width: 140px; }
.mega-col-title {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: #9CA3AF; padding: 0 0.6rem;
    margin-bottom: 0.4rem;
}
.mega-link {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 0.6rem; border-radius: 8px;
    font-size: 0.875rem; font-weight: 500; color: #374151;
    text-decoration: none; transition: all 0.15s;
}
.mega-link:hover { background: #FFF7ED; color: #F97316; transform: translateX(3px); }

/* ---- Header Actions ---- */
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.header-icon-btn {
    width: 40px; height: 40px; border-radius: 10px;
    border: 1.5px solid #E5E7EB; background: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #374151;
    transition: all 0.18s;
}
.header-icon-btn:hover { border-color: #F97316; color: #F97316; background: #FFF7ED; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; width: 40px; height: 40px; border-radius: 10px;
    border: 1.5px solid #E5E7EB; background: white; cursor: pointer; padding: 8px;
    transition: all 0.18s;
}
.hamburger span {
    display: block; height: 2px; width: 100%;
    background: #374151; border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   SEARCH MODAL
   ========================================================================== */
.search-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 80px;
}
.search-modal[hidden] { display: none; }
.search-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.search-modal-box {
    position: relative; z-index: 2;
    width: 100%; max-width: 680px; margin: 0 1rem;
    background: white; border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: slideDown 0.25s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideDown { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }

.search-modal-form {
    display: flex; align-items: center; gap: 0;
    padding: 0.25rem; border-bottom: 1px solid #F3F4F6;
}
.search-modal-form > svg { margin: 0 0.75rem; color: #9CA3AF; flex-shrink: 0; }
.search-modal-input {
    flex: 1; padding: 1rem 0.5rem; border: none; outline: none;
    font-size: 1.1rem; font-family: var(--font-base); color: #0F172A;
    background: transparent;
}
.search-modal-input::placeholder { color: #9CA3AF; }
.search-modal-close {
    padding: 0.5rem 1rem; border: none; background: #F3F4F6;
    border-radius: 10px; cursor: pointer; font-size: 1rem;
    margin-right: 0.5rem; color: #6B7280; transition: all 0.15s;
}
.search-modal-close:hover { background: #FEE2E2; color: #DC2626; }

.search-suggestions { padding: 1.25rem 1.5rem 1.5rem; }
.search-sugg-label { font-size: 0.8rem; font-weight: 700; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.search-sugg-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-sugg-chip {
    background: #F8FAFC; border: 1px solid #E5E7EB;
    color: #374151; padding: 0.4rem 0.9rem;
    border-radius: 999px; font-size: 0.85rem; font-weight: 500;
    text-decoration: none; transition: all 0.15s;
}
.search-sugg-chip:hover { background: #FFF7ED; border-color: #F97316; color: #F97316; }

/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */
.mobile-drawer {
    position: fixed; top: 0; left: 0; height: 100%; width: 290px;
    background: white; z-index: 9998;
    box-shadow: 4px 0 30px rgba(0,0,0,0.15);
    transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
}
.mobile-drawer[hidden] { display: block !important; }
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #F3F4F6; background: #FAFAFA;
}
.mobile-close {
    width: 36px; height: 36px; border-radius: 8px; border: 1px solid #E5E7EB;
    background: white; font-size: 1rem; cursor: pointer; color: #6B7280;
}
.mobile-nav { padding: 0.75rem 0; }
.mobile-nav-link {
    display: block; padding: 0.8rem 1.5rem; font-size: 0.95rem;
    font-weight: 600; color: #374151; text-decoration: none;
    border-bottom: 1px solid #F9FAFB; transition: all 0.15s;
}
.mobile-nav-link:hover { background: #FFF7ED; color: #F97316; padding-left: 2rem; }

.mobile-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 9997; opacity: 0; visibility: hidden;
    transition: all 0.3s; backdrop-filter: blur(2px);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

/* ==========================================================================
   RESPONSIVE — hide/show hamburger
   ========================================================================== */
@media (max-width: 1024px) {
    .primary-nav { display: none; }
    .hamburger { display: flex; }
}
@media (min-width: 1025px) {
    .hamburger { display: none; }
    .mobile-drawer, .mobile-overlay { display: none !important; }
}

/* ==========================================================================
   SINGLE PAGE — Master Layout
   ========================================================================== */
.ez-single-wrap {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    align-items: start;
}
.ez-single-main { min-width: 0; }

/* Breadcrumb */
.ez-breadcrumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem;
    font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.5rem;
}
.ez-breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 500; }
.ez-breadcrumb a:hover { text-decoration: underline; }
.ez-bc-sep { color: #CBD5E1; }
.ez-bc-current { color: #374151; font-weight: 600; }

/* Article */
.ez-single-article { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

.ez-article-header { padding: 2rem 2rem 0; }
.ez-article-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800;
    color: #0F172A; line-height: 1.3; margin: 0.75rem 0 1rem;
}
.ez-article-meta {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.75rem; padding-bottom: 1.5rem;
    border-bottom: 1px solid #F1F5F9;
}
.ez-meta-author { display: flex; align-items: center; gap: 0.65rem; }
.ez-meta-avatar { border-radius: 50% !important; }
.ez-meta-name { display: block; font-weight: 700; font-size: 0.9rem; color: #0F172A; }
.ez-meta-date { display: block; font-size: 0.8rem; color: var(--text-muted); }
.ez-meta-read { font-size: 0.82rem; color: var(--text-muted); background: #F8FAFC; padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid #E5E7EB; }
.ez-article-cat { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.3rem 0.75rem; border-radius: 999px; text-decoration: none; }

/* Thumbnail */
.ez-article-thumb { margin: 0; }
.ez-thumb-img { width: 100%; height: auto; max-height: 420px; object-fit: cover; display: block; }

/* Article Body */
.ez-article-body {
    padding: 2rem;
    font-size: 1.05rem; line-height: 1.85;
    color: #1E293B;
}
.ez-article-body h2 { font-size: 1.4rem; font-weight: 800; margin: 2rem 0 0.75rem; color: #0F172A; padding-bottom: 0.5rem; border-bottom: 2px solid #FFF7ED; }
.ez-article-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: #0F172A; }
.ez-article-body p { margin-bottom: 1.25rem; }
.ez-article-body ul, .ez-article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.ez-article-body li { margin-bottom: 0.5rem; }
.ez-article-body blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.25rem; background: #FFF7ED; border-radius: 0 8px 8px 0; margin: 1.5rem 0; font-style: italic; }
.ez-article-body img { max-width: 100%; border-radius: 10px; margin: 1rem 0; }
.ez-article-body a { color: var(--primary); text-decoration: underline; }
.ez-meta-subhead { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 2rem 0.5rem; color: #0F172A; }

/* Tags */
.ez-article-tags { padding: 0 2rem 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; border-top: 1px solid #F1F5F9; padding-top: 1.25rem; margin-top: 1.25rem; }
.ez-tags-label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); }
.ez-tag-chip { background: #F1F5F9; border: 1px solid #E2E8F0; color: #374151; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.82rem; text-decoration: none; transition: all 0.15s; }
.ez-tag-chip:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }

/* Social Share */
.ez-share-section { padding: 1.5rem 2rem; background: #F8FAFC; border-top: 1px solid #F1F5F9; }
.ez-share-heading { font-size: 0.9rem; font-weight: 700; color: #374151; margin-bottom: 0.75rem; }
.ez-share-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.ez-share-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.ez-share-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 0.9rem; border-radius: 8px;
    font-size: 0.82rem; font-weight: 600; text-decoration: none;
    border: none; cursor: pointer; font-family: var(--font-base);
    transition: all 0.15s;
}
.ez-share-wa  { background: #25D366; color: white; }
.ez-share-fb  { background: #1877F2; color: white; }
.ez-share-tw  { background: #000; color: white; }
.ez-share-tg  { background: #0088CC; color: white; }
.ez-share-copy { background: #F1F5F9; color: #374151; border: 1px solid #E2E8F0; }
.ez-share-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* Author Box */
.ez-author-box {
    display: flex; gap: 1rem; padding: 1.5rem 2rem;
    background: #F8FAFC; border-top: 1px solid #F1F5F9; align-items: flex-start;
}
.ez-author-avatar { border-radius: 50% !important; width: 72px !important; height: 72px !important; flex-shrink: 0; }
.ez-author-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); display: block; }
.ez-author-name { display: block; font-weight: 800; font-size: 1rem; color: #0F172A; margin: 0.2rem 0; }
.ez-author-bio { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.6; }

/* Inline CTA */
.ez-inline-cta {
    margin: 0; padding: 2rem;
    background: linear-gradient(135deg, #0F172A, #1E1B4B);
    color: white;
}
.ez-icta-text { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; }
.ez-icta-icon { font-size: 2rem; flex-shrink: 0; margin-top: 0.2rem; }
.ez-icta-text h3 { font-size: 1.1rem; margin: 0 0 0.3rem; color: white; }
.ez-icta-text p { font-size: 0.875rem; color: #94A3B8; margin: 0; }
.ez-icta-form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ez-icta-form input { flex: 1; min-width: 140px; padding: 0.65rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: white; font-size: 0.9rem; font-family: var(--font-base); }
.ez-icta-form input::placeholder { color: #64748B; }
.ez-icta-form .btn-whatsapp { flex-shrink: 0; }

/* Related */
.ez-related { padding: 2rem; border-top: 1px solid #F1F5F9; }
.ez-section-heading { font-size: 1.1rem; font-weight: 800; color: #0F172A; margin-bottom: 1rem; }
.ez-related-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 1rem; }
.ez-related-card { text-decoration: none; display: block; border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden; transition: all 0.2s; background: white; }
.ez-related-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(249,115,22,0.12); transform: translateY(-2px); }
.ez-related-thumb img, .ez-related-thumb { width: 100%; height: 100px; object-fit: cover; display: block; }
.ez-related-thumb-ph { width: 100%; height: 100px; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: #F8FAFC; }
.ez-related-body { padding: 0.75rem; }
.ez-related-title { font-size: 0.85rem; font-weight: 700; color: #0F172A; margin: 0 0 0.3rem; line-height: 1.4; }
.ez-related-date { font-size: 0.75rem; color: var(--text-muted); }

/* Module Grid */
.ez-module-grid-section { padding: 2rem; border-top: 1px solid #F1F5F9; background: #FAFAFA; }
.ez-module-mini-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 0.75rem; }
.ez-module-mini-card {
    display: flex; flex-direction: column; gap: 0.2rem;
    padding: 0.85rem; border: 1.5px solid #E5E7EB; border-radius: 12px;
    text-decoration: none; background: white; transition: all 0.2s;
}
.ez-module-mini-card:hover { border-color: var(--mc); background: color-mix(in srgb,var(--mc) 6%,white); transform: translateY(-2px); }
.ez-mmcard-label { font-size: 0.85rem; font-weight: 700; color: #0F172A; }
.ez-mmcard-desc { font-size: 0.72rem; color: var(--text-muted); }

/* PDF Gate */
.ez-pdf-gate { padding: 2rem; background: linear-gradient(135deg,#FFF7ED,#FFEDD5); border-top: 4px solid var(--primary); text-align: center; }
.ez-pdf-gate-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.ez-pdf-gate h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.ez-pdf-gate p { color: var(--text-muted); margin-bottom: 1.25rem; }
.ez-pdf-form input { padding: 0.65rem 1rem; border: 1px solid #E2E8F0; border-radius: 8px; font-size: 0.95rem; font-family: var(--font-base); }

/* Comments */
.ez-comments-wrap { padding: 2rem; border-top: 1px solid #F1F5F9; }

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.ez-sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 80px; }
.ez-widget { background: white; border-radius: 14px; padding: 1.25rem; box-shadow: 0 1px 4px rgba(0,0,0,0.06); border: 1px solid #F1F5F9; }
.ez-widget-title { font-size: 0.95rem; font-weight: 800; color: #0F172A; margin: 0 0 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid #FFF7ED; }

/* Sidebar Search */
.sidebar-search-form { display: flex; border: 1.5px solid #E5E7EB; border-radius: 10px; overflow: hidden; }
.sidebar-search-input { flex: 1; padding: 0.6rem 0.75rem; border: none; outline: none; font-size: 0.9rem; font-family: var(--font-base); color: #0F172A; }
.sidebar-search-btn { padding: 0 0.75rem; background: var(--primary); border: none; color: white; cursor: pointer; display: flex; align-items: center; }

/* Quick Links */
.sidebar-quicklinks { display: flex; flex-direction: column; gap: 0.2rem; }
.sidebar-qlink { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: 8px; font-size: 0.875rem; font-weight: 500; color: #374151; text-decoration: none; transition: all 0.15s; }
.sidebar-qlink:hover { background: #FFF7ED; color: var(--primary); padding-left: 0.9rem; }
.sidebar-qlink span { width: 20px; text-align: center; }

/* Word Chips */
.sidebar-word-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sidebar-word-chip { background: #FFF7ED; border: 1px solid #FED7AA; color: var(--primary-dark); padding: 0.3rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: all 0.15s; }
.sidebar-word-chip:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Sidebar Posts */
.sidebar-posts { display: flex; flex-direction: column; gap: 0.85rem; }
.sidebar-post-item { display: flex; gap: 0.75rem; align-items: flex-start; text-decoration: none; padding: 0.4rem; border-radius: 8px; transition: all 0.15s; }
.sidebar-post-item:hover { background: #FFF7ED; }
.sidebar-post-thumb { width: 64px; height: 52px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #F1F5F9; }
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.sidebar-post-info { flex: 1; min-width: 0; }
.sidebar-post-title { display: block; font-size: 0.82rem; font-weight: 600; color: #0F172A; line-height: 1.4; margin-bottom: 0.25rem; }
.sidebar-post-date { font-size: 0.72rem; color: var(--text-muted); }

/* Quiz CTA Widget */
.ez-widget-quiz-cta { background: linear-gradient(135deg,#7C3AED,#4F46E5); text-align: center; color: white; }
.ez-widget-quiz-btn { display: inline-block; background: white; color: #4F46E5; padding: 0.5rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: 0.875rem; text-decoration: none; }

/* Newsletter Widget */
.ez-widget-newsletter { border: 2px solid var(--primary-light); }
.sidebar-nl-input { width: 100%; padding: 0.6rem 0.75rem; border: 1.5px solid #E5E7EB; border-radius: 8px; font-size: 0.875rem; font-family: var(--font-base); margin-bottom: 0.5rem; box-sizing: border-box; }

/* Sidebar Categories */
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.sidebar-cat-list li a { display: flex; justify-content: space-between; padding: 0.4rem 0.5rem; border-radius: 7px; font-size: 0.875rem; color: #374151; text-decoration: none; transition: all 0.15s; }
.sidebar-cat-list li a:hover { background: #FFF7ED; color: var(--primary); }

/* ==========================================================================
   RESPONSIVE — Single Layout
   ========================================================================== */
@media (max-width: 1024px) {
    .ez-single-wrap { grid-template-columns: 1fr; }
    .ez-sidebar { position: static; }
}
@media (max-width: 640px) {
    .ez-single-wrap { padding: 1rem 0.75rem 3rem; gap: 1.5rem; }
    .ez-article-header, .ez-article-body, .ez-share-section,
    .ez-author-box, .ez-inline-cta, .ez-related, .ez-module-grid-section, .ez-pdf-gate { padding: 1.25rem; }
    .ez-article-title { font-size: 1.4rem; }
    .ez-icta-form { flex-direction: column; }
    .ez-related-grid { grid-template-columns: repeat(2,1fr); }
    .ez-module-mini-grid { grid-template-columns: repeat(2,1fr); }
}

/* ==========================================================================
   ARCHIVE / LISTING PAGES
   ========================================================================== */

/* Outer wrapper */
.arc-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* ── Hero Banner ── */
.arc-hero {
    position: relative;
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 60%, #0F172A 100%);
    padding: 3.5rem 1.5rem 3rem;
    overflow: hidden;
}
.arc-hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 70% 50%, color-mix(in srgb, var(--arc-color) 18%, transparent), transparent 65%);
}
.arc-hero-content {
    position: relative; z-index: 2;
    max-width: 700px; margin: 0 auto; text-align: center;
}
.arc-hero-icon { font-size: 3rem; margin-bottom: 0.75rem; line-height: 1; }
.arc-hero-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
    color: #F8FAFC; margin: 0 0 0.75rem; line-height: 1.25;
}
.arc-hero-sub { color: #94A3B8; font-size: 1rem; margin: 0 0 2rem; line-height: 1.6; }

/* Archive Search */
.arc-search-form {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 12px; overflow: hidden; gap: 0;
    transition: border-color 0.2s;
    backdrop-filter: blur(8px);
}
.arc-search-form:focus-within { border-color: var(--arc-color); }
.arc-search-form > svg { margin: 0 0.75rem; color: #64748B; flex-shrink: 0; }
.arc-search-input {
    flex: 1; padding: 0.85rem 0.5rem; background: transparent;
    border: none; outline: none; color: #F1F5F9;
    font-size: 0.95rem; font-family: var(--font-base);
}
.arc-search-input::placeholder { color: #475569; }
.arc-search-btn {
    padding: 0.85rem 1.5rem; background: var(--arc-color);
    border: none; color: white; cursor: pointer;
    font-size: 0.9rem; font-weight: 700; font-family: var(--font-base);
    flex-shrink: 0; transition: opacity 0.2s;
}
.arc-search-btn:hover { opacity: 0.88; }

/* Breadcrumb inside archive */
.arc-breadcrumb { padding: 1rem 1.5rem; }

/* Category filter pills (blog) */
.arc-cat-filter {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    padding: 0 1.5rem 1.25rem;
}
.arc-cat-pill {
    padding: 0.4rem 1rem; border-radius: 999px;
    border: 1.5px solid #E5E7EB; background: white;
    font-size: 0.82rem; font-weight: 600; color: #374151;
    text-decoration: none; transition: all 0.18s;
    display: flex; align-items: center; gap: 0.3rem;
}
.arc-cat-pill:hover, .arc-cat-pill.active {
    background: var(--primary); color: white; border-color: var(--primary);
}
.arc-cat-count {
    background: rgba(0,0,0,0.08); border-radius: 999px;
    padding: 0.05rem 0.45rem; font-size: 0.72rem;
}
.arc-cat-pill.active .arc-cat-count { background: rgba(255,255,255,0.25); }

/* Ad */
.arc-ad { margin: 0 1.5rem 1.5rem; }

/* Main grid: cards + sidebar */
.arc-main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding: 0 1.5rem;
    align-items: start;
}
.arc-cards { min-width: 0; }

/* Result count */
.arc-count { font-size: 0.82rem; color: var(--text-muted); font-weight: 600; margin-bottom: 1rem; }

/* ── Card Grid ── */
.arc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.arc-card {
    background: white; border: 1px solid #E5E7EB;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: all 0.22s ease;
    display: flex; flex-direction: column;
}
.arc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

/* Thumb */
.arc-card-thumb { display: block; overflow: hidden; height: 180px; }
.arc-thumb-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.arc-card:hover .arc-thumb-img { transform: scale(1.04); }
.arc-thumb-fallback {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; font-size: 3rem;
}

/* Card Body */
.arc-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.arc-card-cat {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--primary); text-decoration: none;
}
.arc-card-cat:hover { text-decoration: underline; }
.arc-card-title { font-size: 1rem; font-weight: 700; color: #0F172A; margin: 0; line-height: 1.4; }
.arc-card-title a { text-decoration: none; color: inherit; }
.arc-card-title a:hover { color: var(--primary); }
.arc-card-excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin: 0; flex: 1; }
.arc-card-meta { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.arc-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid #F1F5F9; }
.arc-card-date { font-size: 0.75rem; color: var(--text-muted); }
.arc-card-cta {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.85rem; font-weight: 700; color: var(--primary);
    text-decoration: none; margin-top: auto; padding-top: 0.75rem;
    border-top: 1px solid #F1F5F9;
    transition: gap 0.15s;
}
.arc-card-cta:hover { gap: 0.55rem; }
.arc-card-cta span { transition: transform 0.15s; }
.arc-card-cta:hover span { transform: translateX(3px); }

/* Pagination */
.arc-pagination { margin-top: 2rem; }
.arc-pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.arc-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid #E5E7EB;
    font-size: 0.9rem; font-weight: 600; color: #374151; text-decoration: none;
    transition: all 0.15s;
}
.arc-pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); background: #FFF7ED; }
.arc-pagination .page-numbers.current { background: var(--primary); color: white; border-color: var(--primary); }
.arc-pagination .prev, .arc-pagination .next { width: auto; padding: 0 1rem; }

/* Empty state */
.arc-empty { text-align: center; padding: 4rem 2rem; }
.arc-empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.arc-empty h3 { font-size: 1.3rem; color: #374151; margin-bottom: 0.5rem; }
.arc-empty p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── Archive CTA Strip ── */
.arc-cta-strip {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #0F172A, #1E1B4B);
    padding: 2rem 1.5rem; margin-top: 3rem;
}
.arc-cta-text { display: flex; align-items: center; gap: 1rem; color: white; }
.arc-cta-icon { font-size: 2rem; flex-shrink: 0; }
.arc-cta-text strong { display: block; font-size: 1.1rem; margin-bottom: 0.2rem; }
.arc-cta-text span { font-size: 0.875rem; color: #94A3B8; }
.arc-cta-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-start; }
.arc-cta-input {
    padding: 0.65rem 1rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08); color: white;
    font-size: 0.9rem; font-family: var(--font-base); min-width: 140px;
}
.arc-cta-input::placeholder { color: #64748B; }

/* ── More Modules ── */
.arc-more-modules { padding: 2.5rem 1.5rem; background: #F8FAFC; }
.arc-more-title { font-size: 1.2rem; font-weight: 800; color: #0F172A; margin-bottom: 1.25rem; }
.arc-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.85rem;
}
.arc-more-card {
    display: flex; flex-direction: column; gap: 0.2rem;
    padding: 1rem; border: 1.5px solid #E5E7EB; border-radius: 12px;
    background: white; text-decoration: none; transition: all 0.2s;
}
.arc-more-card:hover {
    border-color: var(--mc);
    background: color-mix(in srgb, var(--mc) 6%, white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.arc-more-label { font-size: 0.875rem; font-weight: 700; color: #0F172A; }
.arc-more-desc { font-size: 0.72rem; color: var(--text-muted); }

/* ==========================================================================
   RESPONSIVE — Archives
   ========================================================================== */
@media (max-width: 1024px) {
    .arc-main-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .arc-hero { padding: 2.5rem 1rem 2rem; }
    .arc-main-grid, .arc-breadcrumb, .arc-cat-filter, .arc-ad { padding-left: 1rem; padding-right: 1rem; }
    .arc-card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .arc-cta-strip { flex-direction: column; align-items: flex-start; }
    .arc-more-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
@media (max-width: 480px) {
    .arc-card-grid { grid-template-columns: 1fr; }
    .arc-more-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
@media (max-width: 768px) {
    .contact-page-content { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

/* ==========================================================================
   WPForms Custom Styling for Ezhindi Theme
   ========================================================================== */
div.wpforms-container-full .wpforms-form .wpforms-field-label {
    display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.4rem; color: #374151;
}
div.wpforms-container-full .wpforms-form input[type=text],
div.wpforms-container-full .wpforms-form input[type=email],
div.wpforms-container-full .wpforms-form input[type=tel],
div.wpforms-container-full .wpforms-form input[type=number],
div.wpforms-container-full .wpforms-form select,
div.wpforms-container-full .wpforms-form textarea {
    width: 100% !important; padding: 0.75rem !important; border-radius: 10px !important; border: 1px solid #CBD5E1 !important; box-sizing: border-box !important; font-family: inherit !important; font-size: 1rem !important;
}
div.wpforms-container-full .wpforms-form input:focus,
div.wpforms-container-full .wpforms-form select:focus,
div.wpforms-container-full .wpforms-form textarea:focus {
    border-color: #F97316 !important; outline: none !important; box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1) !important;
}
div.wpforms-container-full .wpforms-form button[type=submit] {
    width: 100% !important; padding: 1rem !important; font-size: 1rem !important; font-weight: 700 !important; border-radius: 12px !important; border: none !important; background: linear-gradient(135deg, #F97316, #EA580C) !important; color: white !important; cursor: pointer !important; transition: opacity 0.2s !important; text-align: center !important;
}
div.wpforms-container-full .wpforms-form button[type=submit]:hover {
    opacity: 0.9 !important;
}
