
/* ===== BASE STYLES ===== */
:root {
    --primary: #1e6e3d;
    --primary-dark: #15522d;
    --secondary: #2c5f2d;
    --accent: #f9a825;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-green: #e8f5e9;
    --brown: #795548;
    --gold: #d4af37;
    --success: #28a745;
    --warning: #ffc107;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans Malayalam', 'Mukta Malar', sans-serif;
}

body {
    background-color: #f8faf7;
    color: var(--dark);
    line-height: 1.7;
    background-image: radial-gradient(circle at 10% 20%, rgba(232, 245, 233, 0.2) 0%, rgba(255, 255, 255, 0.8) 90%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER STYLES ===== */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 0 15px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--gold);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, #f9f9f9, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.date-time {
    font-weight: 500;
    background: rgba(0, 0, 0, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    background-color: var(--primary-dark);
    border-radius: 5px;
    overflow: hidden;
}

nav li {
    flex: 1;
    text-align: center;
}

nav a {
    color: white;
    display: block;
    padding: 12px 10px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1.1rem;
    position: relative;
}

nav a:hover, nav a.active {
    background-color: var(--accent);
    color: var(--dark);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
    transform: translateX(-50%);
}

nav a:hover::after, nav a.active::after {
    width: 80%;
}

/* ===== HERO SECTION ===== */
.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin: 40px 0;
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

.main-feature {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.main-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-image {
    height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    position: relative;
}

.feature-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 70%);
    z-index: 1;
}

.feature-image-content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: white;
}

.feature-content {
    padding: 25px;
}

.feature-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    line-height: 1.3;
}

.feature-content p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.tag {
    display: inline-block;
    background-color: var(--light-green);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 10px;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
}

.read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more:hover::after {
    width: 100%;
}

/* Side Features */
.side-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-feature {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    transition: var(--transition);
    height: 140px;
}

.side-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.side-feature-image {
    width: 140px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.side-feature-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.side-feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark);
    line-height: 1.3;
}

/* ===== CATEGORIES SECTION ===== */
.section-title {
    position: relative;
    padding-bottom: 10px;
    margin: 30px 0 20px;
    font-size: 1.8rem;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 25px;
    background: var(--primary);
    margin-right: 12px;
    border-radius: 2px;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.category-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.category-header {
    padding: 20px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
}

.category-header i {
    font-size: 2rem;
    margin-right: 15px;
    color: var(--gold);
}

.category-header h2 {
    font-size: 1.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.category-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
    border-radius: 4px;
    padding-left: 10px;
    padding-right: 10px;
}

.article-item:hover {
    background-color: rgba(232, 245, 233, 0.3);
}

.article-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
    line-height: 1.4;
}

.article-item p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), 
                url('https://images.unsplash.com/photo-1518834107812-67b0b7c58434?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    padding: 60px 50px;
    border-radius: 10px;
    margin: 50px 0;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--light-green);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(232, 245, 233, 0.3);
    z-index: 1;
}

.about > * {
    position: relative;
    z-index: 2;
}

.about h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent);
}

.about p {
    max-width: 800px;
    margin: 0 auto 25px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.about-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 15px;
    transition: var(--transition);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(30, 110, 61, 0.2);
}

.about-btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(30, 110, 61, 0.3);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    color: white;
    padding: 50px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--gold), var(--accent));
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer-section p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-links a {
    display: block;
    color: #ddd;
    margin-bottom: 10px;
    transition: color 0.3s;
    padding: 3px 0;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--gold);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    .feature-image {
        height: 250px;
    }
    
    .side-feature {
        flex-direction: column;
        height: auto;
    }
    
    .side-feature-image {
        width: 100%;
        height: 150px;
    }
    
    .about {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .about h2 {
        font-size: 1.8rem;
    }
    
    .about p {
        font-size: 1rem;
    }
    
    .article-item {
        padding: 12px 0;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-30 {
    margin-top: 30px;
}

/* ===== AGRICULTURE THEME ELEMENTS ===== */
.leaf-decoration {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.1;
    z-index: 0;
}

.leaf-1 {
    top: 10%;
    left: 5%;
    transform: rotate(15deg);
}

.leaf-2 {
    bottom: 15%;
    right: 5%;
    transform: rotate(-20deg);
}

.grain-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23155d27' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: -1;
}
