:root {
    --brand-green: #82b436;   /* Signature surgical green */
    --brand-black: #000000;   
    --brand-white: #ffffff;
    --soft-bg: #f9f9f9;
    --border-light: #eeeeee;
}

/* --- RESET & BASE --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

body { 
    overflow-x: hidden; 
    color: #1a1a1a; 
    background: var(--brand-white); 
    line-height: 1.6; 
    padding-top: 30px; 
}



/* --- Hero Section Styling --- */
.blog-hero {
    position: relative;
    background: #ffffff; /* Pure White Background */
    padding: 120px 8% 50px; 
    color: #0f172a; /* Black/Dark Navy Text */
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
}


.blog-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(#e2e8f0 1.2px, transparent 1.2px);
    background-size: 40px 40px;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(130, 180, 54, 0.1) 0%, transparent 80%);
}

.hero-tag {
    display: inline-block;
    background: #f0fdf4; /* Very light green tint */
    border: 1px solid var(--primary);
    color: var(--primary); /* Brand Green */
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #0f172a; /* Deep Black */
    margin-bottom: 24px;
}

.text-highlight {
    color: var(--primary); /* Brand Green */
}

.blog-hero p {
    color: #475569; /* Slate Gray */
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* --- Search Bar --- */
.search-container {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    background: #ffffff;
    border-radius: 100px;
    padding: 2px;
    /* Elegant shadow matching your homepage cards */
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.search-container:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(130, 180, 54, 0.12);
}

.search-container i {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
}

.search-container input {
    width: 100%;
    padding: 22px 30px 22px 70px;
    border-radius: 100px;
    border: 1px solid #f0f0f0;
    outline: none;
    font-size: 1.1rem;
    color: var(--midnight);
    transition: border-color 0.3s ease;
}

.search-container input:focus {
    border-color: var(--primary);
}


.search-container input::placeholder {
    color: #94a3b8;
}


/* --- Blog Grid & Cards --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid #eef2f6;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.blog-card img {
    height: 240px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card h3 {
    font-size: 1.5rem;
    margin: 20px 0 12px;
    color: var(--midnight);
    font-weight: 700;
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* --- Read More Button --- */
.read-more {
    color: var(--midnight);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary);
    gap: 12px;
}

/* --- Section Header --- */
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--midnight);
    letter-spacing: -1px;
}

.header-line {
    width: 50px;
    height: 5px;
    background: var(--primary);
    border-radius: 10px;
    margin-top: 10px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-hero { padding: 140px 20px 80px; }
}

@media (max-width: 360px) {
    .blog-grid { grid-template-columns: 1fr; }
    .search-container input { padding: 18px 20px 18px 60px; }
}
/* The initial 'hidden' state */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

/* The 'active' state triggered by JS */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Specific styling for the Hero Section to match your video */
.blog-header {
    position: relative;
    padding: 180px 0 120px; /* Increased top padding to match homepage hierarchy */
    background: #ffffff;
    text-align: center;
    overflow: hidden;
}

.badge {
    display: inline-block;
    background: rgba(130, 180, 54, 0.08); 
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    border: 1px solid rgba(130, 180, 54, 0.2);
}

.blog-header h1 {
    font-size: clamp(3rem, 7vw, 4.8rem);
    font-weight: 900;
    color: var(--midnight);
    line-height: 1;
    letter-spacing: -3px; /* Tight tracking for that premium agency look */
    margin-bottom: 25px;
}

.highlight-line {
    color: var(--primary);
    display: inline-block;
}

.blog-header p {
    font-size: 1.25rem;
    color: var(--slate);
    max-width: 700px;
    margin: 0 auto 55px;
    line-height: 1.7;
    font-weight: 400;
}



