/* ============================================
   IEPF.org.in — Design System & Styles
   Government-Inspired Clean Portal
   ============================================ */

/* ---------- Google Fonts Import ---------- */
/* Google Fonts loaded via <link> tag in header.php — no @import needed */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Primary Palette */
    --primary: #1a4b8c;
    --primary-dark: #0d2b52;
    --primary-darker: #091e3a;
    --primary-light: #e8f0fe;
    --primary-hover: #15407a;

    /* Accent Colors */
    --accent-green: #2e7d32;
    --accent-green-light: #e8f5e9;
    --cta-orange: #e65100;
    --cta-orange-hover: #d84315;
    --whatsapp: #25D366;
    --whatsapp-hover: #1ebe5d;

    /* Neutrals */
    --white: #ffffff;
    --bg-light: #f5f7fa;
    --bg-lighter: #fafbfd;
    --border: #e0e5ec;
    --border-light: #eef1f6;

    /* Text */
    --text-dark: #1a1a2e;
    --text-body: #374151;
    --text-muted: #5a6577;
    --text-light: #8896a6;
    --text-white: #ffffff;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Source Serif 4', Georgia, serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max: 1200px;
    --container-narrow: 800px;

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

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2.25rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

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

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

ul, ol { padding-left: 1.5rem; }

/* ---------- Layout ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

.section-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    position: relative;
    padding-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 16px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* ---------- Disclaimer Top Bar ---------- */
.disclaimer-top-bar {
    background: #fff3cd;
    color: #856404;
    text-align: center;
    padding: 10px 0;
    font-size: 0.92rem;
    font-weight: 600;
    border-bottom: 2px solid #ffeeba;
    position: relative;
    z-index: 1002;
    line-height: 1.4;
}
.disclaimer-top-bar strong {
    color: #e65100;
    background: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* ---------- Top Strip ---------- */
.top-strip {
    background: var(--primary-dark);
    color: var(--text-white);
    font-size: 0.82rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--primary);
}

.top-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-strip-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-strip-left a {
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.top-strip-left a:hover { color: #fff; }

.top-strip-right {
    color: rgba(255,255,255,0.7);
    font-size: 0.78rem;
}

/* ---------- Main Header ---------- */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    min-height: 72px;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
}
.logo a {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 4px;
}
.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.2;
    margin-top: 2px;
}


/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 2px;
}

.main-nav > ul > li > a {
    display: block;
    padding: 10px 18px;
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    position: relative;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 260px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    padding: 8px 0;
    z-index: 100;
    list-style: none;
}

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

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-body);
    font-size: 0.92rem;
    font-weight: 400;
    transition: var(--transition-fast);
}

.dropdown-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 24px;
}

.caret {
    font-size: 0.7em;
    margin-left: 4px;
    transition: var(--transition-fast);
}

.has-dropdown:hover .caret {
    transform: rotate(180deg);
}

/* Header CTA Button */
.nav-cta {
    margin-left: 12px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

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

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(26, 75, 140, 0.25);
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 75, 140, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-secondary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-cta {
    background: var(--cta-orange);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.25);
}
.btn-cta:hover {
    background: var(--cta-orange-hover);
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(230, 81, 0, 0.3);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: var(--text-white);
    border-radius: var(--radius-full);
}
.btn-whatsapp:hover {
    background: var(--whatsapp-hover);
    color: var(--text-white);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2d6bc4 100%);
    color: var(--text-white);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    border-radius: 50%;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content .section-label {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}

.hero h1 {
    color: var(--text-white);
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero h1 .highlight {
    color: #FFD166;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 550px;
    line-height: 1.8;
}

.hero .btn-group {
    margin-bottom: 2.5rem;
}

.hero .btn-secondary {
    border-color: rgba(255,255,255,0.4);
    color: var(--text-white);
    background: rgba(255,255,255,0.1);
}
.hero .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    color: var(--text-white);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 10px;
}

.hero-stat {
    text-align: left;
}

.hero-stat .stat-number {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 800;
    color: #FFD166;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat .stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    width: 100%;
    max-width: 380px;
}

.hero-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-weight: 700;
}

.hero-card .subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero-card .quick-form input,
.hero-card .quick-form select {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.hero-card .quick-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.hero-card .quick-form input:focus,
.hero-card .quick-form select:focus {
    border-color: #FFD166;
    background: rgba(255,255,255,0.12);
}

.hero-card .quick-form select option {
    background: var(--primary-dark);
    color: #fff;
}

.hero-card .btn {
    margin-top: 4px;
}

.hero-card .form-note {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
}

.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
}

.trust-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.trust-item h4 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.trust-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ---------- Cards ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.card h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}
.card-link:hover {
    gap: 10px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

/* ---------- Step Process ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 4px 15px rgba(26, 75, 140, 0.25);
}

.step-card h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    max-width: 280px;
    margin: 0 auto;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--primary-light);
    line-height: 1;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-author h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.testimonial-author p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 2px 12px rgba(26, 75, 140, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--white);
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition-fast);
    gap: 16px;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.25rem;
    font-weight: 300;
    transition: var(--transition);
    flex-shrink: 0;
    color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 24px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-white);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.03));
}

.cta-banner .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-banner h2 {
    color: var(--text-white);
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-banner .btn-cta {
    font-size: 1.05rem;
    padding: 16px 40px;
}

/* ---------- Contact Form ---------- */
.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.contact-form .form-subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-lighter);
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

.form-success {
    background: var(--accent-green-light);
    color: var(--accent-green);
    padding: 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-align: center;
    display: none;
}

/* ---------- Blog Cards ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

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

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), #d4e4f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-card-content h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-content h3 a {
    color: var(--text-dark);
}
.blog-card-content h3 a:hover {
    color: var(--primary);
}

.blog-card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ---------- Page Banner ---------- */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-white);
    padding: 50px 0 55px;
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40L40 0H20L0 20zM40 40V20L20 40z' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E");
}

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

.page-banner h1 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.page-banner p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 650px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    padding: 14px 0;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    margin-right: 8px;
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--text-muted);
}
.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.current {
    color: var(--primary);
    font-weight: 600;
}

/* ---------- Content Page Layout ---------- */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    padding: var(--section-padding);
}

.content-main h2 {
    font-size: 1.75rem;
    margin-top: 40px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-main h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

.content-main p {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.content-main ul,
.content-main ol {
    margin-bottom: 1.25rem;
}

.content-main li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Sidebar */
.content-sidebar {
    position: relative;
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.sidebar-links {
    list-style: none;
    padding: 0;
}

.sidebar-links li {
    margin-bottom: 8px;
}

.sidebar-links li a {
    display: block;
    padding: 10px 14px;
    color: var(--text-body);
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.sidebar-links li a:hover,
.sidebar-links li a.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* Step List in Content */
.step-list {
    list-style: none;
    padding: 0;
}

.step-list li {
    padding: 20px 20px 20px 24px;
    margin-bottom: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
    position: relative;
}

/* Document Table */
.doc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 20px 0 30px;
}

.doc-table thead {
    background: var(--primary);
    color: var(--text-white);
}

.doc-table th {
    padding: 14px 18px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
}

.doc-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.doc-table tbody tr:last-child td {
    border-bottom: none;
}

.doc-table tbody tr:nth-child(even) {
    background: var(--bg-lighter);
}

.doc-table tbody tr:hover {
    background: var(--primary-light);
}

/* Info Box */
.info-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
}

.info-box.warning {
    background: #fff8e1;
    border-left-color: #f59e0b;
}

.info-box.success {
    background: var(--accent-green-light);
    border-left-color: var(--accent-green);
}

.info-box h4 {
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.info-box p {
    margin-bottom: 0;
    font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.main-footer {
    background: var(--primary-darker);
    color: rgba(255,255,255,0.8);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-about .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.footer-about .footer-logo .domain {
    color: #FFD166;
}

.footer-about p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
    max-width: 320px;
}

.footer-col h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.footer-col ul li a:hover {
    color: #FFD166;
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.footer-contact-item .icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Footer Disclaimer */
.footer-disclaimer {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.disclaimer-text {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-text strong {
    color: rgba(255,255,255,0.7);
}

/* Footer Bottom */
.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0;
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
}
.footer-bottom a:hover {
    color: #FFD166;
}

/* ---------- Sticky CTA ---------- */
.sticky-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.sticky-wa-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.sticky-wa-btn:hover {
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.sticky-consult-btn {
    background: var(--cta-orange);
    color: #fff;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 16px rgba(230, 81, 0, 0.35);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    animation: pulse-shadow 2.5s infinite;
}

.sticky-consult-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    background: var(--cta-orange-hover);
}

@keyframes pulse-shadow {
    0%, 100% { box-shadow: 0 4px 16px rgba(230, 81, 0, 0.35); }
    50% { box-shadow: 0 4px 30px rgba(230, 81, 0, 0.55); }
}

/* Mobile Bottom Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    display: none;
    padding: 10px 16px;
    gap: 10px;
}

.mobile-bottom-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.mobile-bottom-bar .mobile-call {
    background: var(--primary);
    color: #fff;
}

.mobile-bottom-bar .mobile-wa {
    background: var(--whatsapp);
    color: #fff;
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- What is IEPF ---------- */
.what-iepf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.what-iepf-content .section-label {
    margin-bottom: 12px;
}

.what-iepf-visual {
    display: flex;
    justify-content: center;
}

.iepf-visual-card {
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.iepf-visual-card .visual-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.iepf-visual-card .visual-stat:last-child {
    border-bottom: none;
}

.iepf-visual-card .visual-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.iepf-visual-card .visual-info h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 2px;
}

.iepf-visual-card .visual-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ---------- Blog Post Content ---------- */
.blog-post-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.blog-content {
    max-width: 750px;
    margin: 0 auto;
}

.blog-content h2 {
    margin-top: 40px;
}

.blog-content p {
    line-height: 1.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: 2;
        margin-top: -20px;
    }

    .hero-card {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .what-iepf-grid {
        grid-template-columns: 1fr;
    }

    .what-iepf-visual {
        order: -1;
    }
}

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

    .top-strip { display: none; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 24px 24px;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }

    .main-nav > ul > li > a {
        padding: 14px 16px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        display: none;
    }

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

    .nav-cta {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 50px 0 60px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-stats {
        gap: 24px;
    }

    .trust-bar-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .steps-grid::before {
        display: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
    }

    .sticky-whatsapp {
        display: none;
    }

    .mobile-bottom-bar {
        display: flex;
    }

    body {
        padding-bottom: 70px;
    }

    .page-banner h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .trust-bar-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 28px 20px;
    }
}

/* Nav overlay for mobile */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- Blog Post Template Styles ---------- */
.progress-container { width: 100%; height: 5px; background: #ccc; position: fixed; top: 0; z-index: 1001; }
.progress-bar { height: 5px; background: var(--cta-orange); width: 0%; transition: width 0.1s ease; }

.blog-content-full h2 {
    margin-top: 50px;
    color: var(--primary-dark);
    font-weight: 800;
    border-left: 5px solid var(--cta-orange);
    padding-left: 15px;
    background: #f8fafc;
    padding-block: 10px;
    border-radius: 0 8px 8px 0;
}

.blog-section {
    margin-bottom: 50px;
    line-height: 1.8;
    color: #334155;
    font-size: 1.1rem;
}

.table-of-contents {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.table-of-contents h4 {
    margin-top: 0;
    color: var(--primary-dark);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--cta-orange);
    display: inline-block;
}

.table-of-contents ul { list-style: none; padding: 0; margin: 0; }
.table-of-contents li { margin-bottom: 10px; }
.table-of-contents a { color: #475569; text-decoration: none; transition: color 0.2s; font-weight: 500; }
.table-of-contents a:hover { color: var(--primary); }

.mid-post-cta {
    background: linear-gradient(135deg, var(--primary-dark), #1e293b);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 50px 0;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.mid-post-cta h4 { color: #fff; margin-top: 0; font-size: 1.5rem; }
.mid-post-cta .btn { margin-top: 20px; padding: 12px 30px; font-size: 1.1rem; }

/* Blog Accordion */
.accordion-header {
    width: 100%;
    text-align: left;
    padding: 18px;
    background: #f1f5f9;
    border: none;
    font-weight: 700;
    margin-bottom: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    font-size: 1.05rem;
    color: var(--primary-dark);
    transition: background 0.3s;
    gap: 12px;
    font-family: var(--font-body);
}

.accordion-header:hover { background: #e2e8f0; }

.accordion-icon {
    font-size: 1.25rem;
    font-weight: 300;
    transition: transform 0.3s;
    flex-shrink: 0;
    color: var(--primary);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid transparent;
    margin-bottom: 8px;
    border-radius: 0 0 8px 8px;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 15px 20px;
    border-color: #f1f5f9;
}

.section-text p { margin-bottom: 20px; }
.section-text ul, .section-text ol { margin-bottom: 25px; padding-left: 25px; }
.section-text li { margin-bottom: 12px; }
.section-text strong { color: var(--primary-dark); }

/* Author Box */
.author-box {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    margin-top: 50px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.author-info h4 {
    margin: 0;
    color: var(--primary-dark);
    font-family: var(--font-body);
}

.author-info p {
    margin: 5px 0 0;
    font-size: 0.95rem;
    color: #64748b;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-body);
    text-decoration: none;
    transition: var(--transition);
}

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

.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .disabled {
    color: var(--text-light);
    pointer-events: none;
    opacity: 0.5;
}

/* Blog card icon (FontAwesome) */
.blog-card-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    .mid-post-cta {
        padding: 28px 20px;
    }
}
