/* Design System & Variables */
:root {
    --primary: #0056b3;
    /* Corporate Blue */
    --primary-dark: #004494;
    --secondary: #8cc63f;
    /* Neerava Green */
    --secondary-dark: #7ab332;
    --accent: #0056b3;
    --background: #ffffff;
    /* More white background */
    --surface: #f8f9fa;
    /* Light grey for sections */
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */
    --border: #e2e8f0;
    /* Slate 200 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button,
.btn {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.text-center {
    text-align: center;
}

/* Components */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Header */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    /* Align to right */
    align-items: center;
}

.top-contact {
    display: flex;
    gap: 1.5rem;
}

.top-contact a {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.top-contact a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
        /* Hide on mobile to keep it clean */
    }
}

header {
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 40, 100, 0.8)), url('assets/hero_bg_manufacturing_v3.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 0;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: #f1f5f9;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features/Intro */
.features-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.features-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

/* Products Preview */
.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--light);
}

.product-info {
    padding: 1.5rem;
}

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 5rem 0;
    }
}

/* Badge / Size Selector */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--background);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.badge.active,
.badge:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

:root {
    --light: #f1f5f9;
    --dark: #0f172a;
}

/* Category Grid (Neerava Style) */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.cat-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.cat-icon {
    width: 70px;
    height: 70px;
    background-color: #f0f9ff;
    /* Light Sky Blue */
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.cat-card:hover .cat-icon {
    background-color: var(--primary);
    color: white;
}

.cat-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0;
    color: var(--text-main);
}

/* Reviews & Testimonials Section */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.review-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.review-stars {
    color: #f59e0b; /* Gold/Amber stars */
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 0.975rem;
    color: #334155;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.reviewer-profile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.reviewer-info h4 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
    color: var(--text-main);
}

.reviewer-info p {
    font-size: 0.825rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #16a34a; /* Green */
    font-weight: 600;
    background-color: #f0fdf4;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    margin-top: 0.25rem;
}

/* Customer Segment Toggle Bar */
.segment-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.segment-toggle {
    display: inline-flex;
    background: #e2e8f0;
    padding: 0.35rem;
    border-radius: 9999px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    gap: 0.25rem;
}

.segment-btn {
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #475569;
    background: transparent;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.segment-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.25);
}

.segment-btn:hover:not(.active) {
    color: var(--primary-dark);
}

/* Filter Pills */
.filter-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: white;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Redesigned Product V2 Cards */
.product-card-v2 {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(0, 86, 179, 0.15);
    border-color: #93c5fd;
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.card-badge.badge-oem {
    background: #0284c7; /* Sky blue */
}

.card-badge.badge-hot {
    background: #ef4444; /* Red */
}

.product-v2-img-wrap {
    height: 280px;
    background: radial-gradient(circle, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
}

.product-v2-img-wrap img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card-v2:hover .product-v2-img-wrap img {
    transform: scale(1.06);
}

.product-v2-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.product-v2-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.category-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-stars-mini {
    color: #f59e0b;
    font-size: 0.85rem;
}

.product-v2-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.product-v2-desc {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.price-box {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f1f5f9;
}

.retail-price-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.retail-price-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.bulk-price-tag {
    font-size: 0.785rem;
    color: #16a34a;
    font-weight: 600;
    background: #dcfce7;
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
}

.variant-btn-group {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.v-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 0.35rem;
    border: 1px solid var(--border);
    background: white;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition);
}

.v-btn.active,
.v-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.card-cta-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* OEM & B2B Spec Cards */
.oem-step-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.oem-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.step-number {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 1.25rem;
}

.b2b-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

/* Hero Banners for Retail & Private Label */
.page-hero-retail {
    background: linear-gradient(135deg, #0056b3 0%, #0284c7 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.page-hero-oem {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0056b3 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.page-hero-retail h1,
.page-hero-oem h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-hero-retail p,
.page-hero-oem p {
    color: #e2e8f0;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   Comprehensive Mobile & Desktop Responsive Design System
   ========================================================================== */

/* Tablet & Smaller Screens (max-width: 992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 1.25rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.85rem;
    }

    .hero {
        padding: 6rem 0;
    }

    .page-hero-retail,
    .page-hero-oem {
        padding: 4rem 0;
    }

    .nav-container {
        position: relative;
    }

    .mobile-menu-btn {
        display: block;
        padding: 0.5rem;
        font-size: 1.6rem;
        color: var(--primary);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        border-top: 1px solid var(--border);
        z-index: 9999;
    }

    .nav-links.active {
        display: flex;
        animation: fadeInDown 0.25s ease forwards;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links a.btn {
        margin: 1rem 1.5rem;
        text-align: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* Mobile Phones (max-width: 768px) */
@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }

    h1 {
        font-size: 2.1rem !important;
        line-height: 1.25;
    }

    h2 {
        font-size: 1.65rem !important;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    p {
        font-size: 0.95rem;
    }

    .top-bar {
        display: none; /* Hide top bar on mobile for clutter-free header */
    }

    .hero p,
    .page-hero-retail p,
    .page-hero-oem p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    /* Segment toggle mobile layout */
    .segment-toggle-wrapper {
        margin-bottom: 1.5rem;
    }

    .segment-toggle {
        width: 100%;
        flex-direction: column;
        border-radius: 1rem;
        padding: 0.4rem;
    }

    .segment-btn {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.875rem;
        border-radius: 0.6rem;
    }

    /* Filter Pills Mobile */
    .filter-pills {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .filter-pill {
        padding: 0.45rem 0.9rem;
        font-size: 0.825rem;
    }

    /* Product Cards Mobile */
    #products-grid,
    .review-grid {
        grid-template-columns: 1fr !important;
    }

    .product-v2-img-wrap {
        height: 220px;
    }

    .product-v2-body {
        padding: 1.25rem;
    }

    .price-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .bulk-price-tag {
        align-self: flex-start;
    }

    .b2b-form-card {
        padding: 1.5rem;
    }

    /* WhatsApp floating button on mobile */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.65rem;
        bottom: 1.25rem;
        right: 1.25rem;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer {
        padding: 3rem 0 1.5rem;
    }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.8rem !important;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .flex.justify-center {
        flex-direction: column;
    }

    .card-cta-group {
        grid-template-columns: 1fr;
    }

    .variant-btn-group {
        gap: 0.3rem;
    }

    .v-btn {
        font-size: 0.775rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   BLOG & ADMIN DASHBOARD STYLES
   ========================================== */

.page-hero-blog {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0d9488 100%);
    color: white;
    padding: 4.5rem 0 3.5rem;
    text-align: center;
}

.blog-search-bar {
    max-width: 550px;
    margin: 1.5rem auto 0;
    position: relative;
}

.blog-search-input {
    width: 100%;
    padding: 0.95rem 1.25rem 0.95rem 3rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    outline: none;
}

.blog-search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #7dd3fc;
}

.blog-card-img-wrap {
    height: 210px;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-card-img-wrap img {
    transform: scale(1.05);
}

.blog-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.825rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.blog-card-title a {
    color: inherit;
    transition: var(--transition-fast);
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured Blog Hero */
.featured-blog-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.featured-blog-img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.featured-blog-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Blog Article Post Styling */
.article-container {
    max-width: 820px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.4rem;
    line-height: 1.3;
    margin: 1rem 0;

}

.article-cover-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.85;
    color: #334155;
}

.article-body h2 {
    font-size: 1.7rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.article-body h3 {
    font-size: 1.35rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-dark);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

/* Admin Dashboard */
.admin-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.925rem;
}

.admin-table th {
    background: #f8fafc;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-btn-action {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.admin-btn-edit {
    background: #e0f2fe;
    color: #0369a1;
}

.admin-btn-edit:hover {
    background: #bae6fd;
}

.admin-btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

.admin-btn-delete:hover {
    background: #fca5a5;
}

/* Admin Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;

}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

@media (max-width: 768px) {
    .featured-blog-card {
        grid-template-columns: 1fr;
    }
    .featured-blog-body {
        padding: 1.5rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}


