

:root {
    --green-900: #1b4332;
    --green-800: #1e5c3a;
    --green-700: #276d45;
    --green-600: #2d8653;
    --green-500: #40a469;
    --green-100: #d1fae5;
    --green-50: #f0fdf4;
    --gold: #f59e0b;
    --gold-light: #fef3c7;
    --brown: #78350f;
    --orange: #ea580c;
    --light: #ffffff;
    --light-2: #f8fafc;
    --border: #e2e8f0;
    --text-1: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;
    --radius-card: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
    --shadow-lg: 0 12px 40px rgba(27, 67, 50, .15);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-1);
    background: var(--light-2);
   
}

.tamil-font {
    font-family: 'Noto Sans Tamil', sans-serif;
    font-weight: 700;
}

/*  NAVBAR */
.navbar {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.45rem;
    color: var(--green-800) !important;
    letter-spacing: -.02em;
}

.navbar-brand i {
    color: var(--green-500);
}

.nav-link {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-2) !important;
    transition: color 2s;
}

.nav-link:hover {
    color: var(--green-700) !important;
}

.btn-nav-cta {
    background: var(--green-700);
    color: #fff !important;
    border-radius: 8px;
    padding: 0.45rem 1.1rem !important;
    font-size: .85rem !important;
    font-weight: 700 !important;
    transition: background 2s, transform .15s;
}

.btn-nav-cta:hover {
    background: var(--green-900);
    color: var(--light);
    transform: translateY(-1px);
}

/*  HERO  */
.hero-section {
    min-height: 82vh;
    background:
        linear-gradient(to bottom, rgba(27, 67, 50, .82) 0%, rgba(27, 67, 50, .72) 100%),
        url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?auto=format&fit=crop&q=80&w=2070');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
} 

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--light-2));
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, .18);
    border: 1px solid rgba(245, 158, 11, .4);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    line-height: 105px;
    color: #fff;
    
    margin-bottom: 0.5rem;
}

.hero-sub {
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    color: rgba(255, 255, 255, .75);
    margin-bottom: 1rem;
}

.hero-lead {
    color: rgba(255, 255, 255, .55);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.btn-hero-primary {
    background: var(--green-500);
    color: #fff;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
 
}

.btn-hero-primary:hover {
    background: var(--green-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(64, 164, 105, .5);
    color: #fff;
}

.btn-hero-outline {
    background: transparent;
   
    color: rgba(255, 255, 255, .85);
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, .3);
    font-size: 1rem;
 
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .6);
    transform: translateY(-2px);
    color: #fff;
}

/*  SECTION WRAPPER  */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green-600);
    margin-bottom: 0.4rem;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text-1);
    letter-spacing: -.02em;
    margin-bottom: 0;
}
.section-divider {
    display: block;
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: var(--gold);
    margin: 0.75rem auto 0;
} 

/*  MARKET  */

.best-today-pill {
    background: var(--gold-light);
    color: var(--brown);
    border: 1px solid #fde68a;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.market-section {
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.market-card {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--light);
    padding: 1.1rem 1.25rem;
    transition: transform .25s, box-shadow .25s;
    position: relative; 
    overflow: hidden;
}

.market-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 0;
    background: var(--green-500);
}

.market-card.down::before {
    background: #ef4444;
}

.market-card.stable::before {
    background: var(--gold);
}

.market-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.market-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-1);
}

.market-region {
    font-size: 0.75rem;
    color: var(--text-3);
    margin-top: 0.15rem;
}

.market-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1;
    margin-top: 0.5rem;
}

.market-price span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-3);
}

.market-change {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 100px;
}

.market-change.up {
    background: #dcfce7;
    color: #15803d;
}

.market-change.down {
    background: #fee2e2;
    color: #dc2626;
}

.market-change.flat {
    background: #fef9c3;
    color: #a16207;
}

/* CATEGORY HEADING */
.category-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--green-800);
    padding: 0.55rem 1.25rem;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: 10px;
}

.category-heading i {
    color: var(--green-500);
    font-size: 1rem;
}

/* FILTER PILLS */
.filter-pill {
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    transition: all .2s;
}

.filter-pill.active {
    background: var(--green-700);
    color: #fff;
    border-color: var(--green-700);
}

/*
   CROP CARD 
*/
.crop-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.5s ;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.crop-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* Card Header */
.crop-card__header {
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
    padding: 1.1rem 1.25rem 0.9rem;
    
}


.crop-card__name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    line-height: 1.3;
    margin: 0;
}

.crop-card__badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .85);
    border-radius: 4px;
    padding: 0.2rem 0.55rem;
    margin-top: 0.35rem;
    display: inline-block;
}

.crop-card__price-block {
    text-align: right;
    flex-shrink: 0;
}

.crop-card__price {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.crop-card__demand {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, .55);
    margin-top: 0.2rem;
}

/* Profit */
.profit-chip {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.22rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.profit-chip.high {
    background: #d1fae5;
    color: #065f46;
}

.profit-chip.v-high {
    background: #fef3c7;
    color: #92400e;
}

.profit-chip.medium {
    background: #fff7ed;
    color: #9a3412;
}

.crop-card__body {
    flex: 1;
    padding: 0;
}

.crop-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
 
}

.crop-info-item {
    padding: 0.62rem 0.9rem;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);

}


.crop-info-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-3);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.18rem;
}

.crop-info-label i {
    width: 12px;
    color: var(--green-500);
    font-size: .7rem;
}

.crop-info-value {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-1);
    white-space: nowrap; 
     overflow: hidden;
    text-overflow: ellipsis;
}

/* Water badge */
.water-badge {
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 4px;
}

.water-badge.low {
    background: #fef9c3;
    color: #92400e;
}

.water-badge.medium {
    background: #dbeafe;
    color: #1e40af;
}

.water-badge.high {
    background: #ede9fe;
    color: #5b21b6;
}

.water-badge.vlow {
    background: #fff1f2;
    color: #9f1239;
}

/* Description  */
.crop-card__desc {
    padding: 0.85rem 1rem;
    background: var(--green-50);
    border-top: 1px solid var(--green-100);
    font-size: 0.78rem;
    color: var(--text-2);
    line-height: 1.55;
}

.crop-card__desc strong {
    color: var(--green-800);
}

/*  SCHEMES */
.scheme-card {
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--light);
    transition: transform .25s, box-shadow .25s;
    overflow: hidden;
}

.scheme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.scheme-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--green-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--green-600);
    margin-bottom: 1rem;
}

.btn-scheme {
    background: var(--green-700);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.5rem 1.2rem;
    
}

.btn-scheme:hover {
    background: var(--green-900);
    color: #fff;
}

/* FOOTER */
#dept-footer {
    background: var(--green-900) !important;
    border-top: 3px solid var(--gold);
    position:fixed; bottom: 0px; z-index:1;

}


.text-green {
    color: var(--green-600);
}

.bg-section {
    background: var(--light-2);
}

.bg-white-section {
    background: var(--light);
}

/* RESPONSIVE */
@media (max-width: 576px) {
    html{
        font-size: 14px;
    }
    .hero-badge{
        margin-top: 15px;
    }
    .hero-title {
        font-size: 3.2rem;
    }

    .crop-info-grid {
        grid-template-columns: 1fr;
    }

    .crop-info-item {
        border-right: none;
    }

  

    .crop-card__price {
        font-size: 1.2rem;
    }

  
}



body {
    padding-bottom: 56px;
}

@media (max-width: 767px) {
    html{
        font-size: 15px;
    }
    body {
        padding-bottom: 110px;
    }
}