/* style.css - Agrodiena.lt Modernus Centruotas Dizainas (FINAL) */

/* --- 1. PAGRINDINIAI NUSTATYMAI --- */
:root {
    --primary: #166534;       /* Sodri miško žalia */
    --primary-hover: #14532d;
/* --accent: #dc2626;        /* Ryškus akcentas (BNS raudona) */
    --light-bg: #f8fafc;      /* Fonas */
    --text: #1e293b;          /* Tekstas */
    --text-light: #64748b;    /* Šviesesnis tekstas */
    --border: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05);
}

/* SVARBU: Visų elementų dydžio skaičiavimas įskaitant rėmelius */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', 'Roboto', sans-serif;
    background-color: var(--light-bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
a:hover { color: var(--primary); }

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    margin: 0 0 15px 0;
    color: #0f172a;
    line-height: 1.3;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- 2. HEADER & NAVIGACIJA --- */
.main-header { 
    background: var(--white); 
    padding: 30px 0; 
    text-align: center; 
}

/* PATAISYTA: Logotipas su Flexbox */
.logo { 
    font-family: 'Merriweather', serif;
    font-size: 36px; 
    font-weight: 900; 
    color: var(--primary); 
    letter-spacing: -1px; 
    text-transform: uppercase; 
    text-decoration: none;
    line-height: 1;

    /* Išdėstymas su ikona */
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Nauja klasė ikonai */
.logo-icon {
    width: 38px;
    height: 38px;
    stroke: var(--primary);
    margin-top: -4px;
}

.logo span { color: #0f172a; }

.nav-bar { 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: var(--shadow-md); 
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-list { 
    list-style: none; margin: 0; padding: 0; 
    display: flex; justify-content: center; gap: 35px; 
    font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 1px;
}

.nav-list li a { 
    color: #334155; padding: 20px 0; display: block; position: relative;
}

/* Animacija meniu punktams */
.nav-list li a::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    width: 0; height: 3px; background: var(--primary);
    transition: all 0.3s ease; transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
}
.nav-list li a:hover { color: var(--primary); }
.nav-list li a:hover::after { width: 100%; }

/* --- 3. IŠDĖSTYMAS --- */
.main-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; /* Turiniui daugiau vietos nei šoninei juostai */
    gap: 40px; 
    margin-top: 40px; margin-bottom: 60px; 
}

/* --- 4. KOMPONENTAI --- */
.section-title { 
    font-size: 18px; font-weight: 800; text-transform: uppercase; 
    border-left: 5px solid var(--primary); padding-left: 15px; 
    margin-bottom: 25px; color: #334155; letter-spacing: 0.5px;
}

/* BAZINĖ BADGE KLASĖ */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
    line-height: 1;
    vertical-align: middle;
}

/* BADGE SPALVOS */
.badge-bns { background-color: #dc2626; color: white; }
.badge-nma { background-color: #166534; color: white; }
.badge-zum { background-color: #1e40af; color: white; }
.badge-vmvt { background-color: #0891b2; color: white; }
.badge-vat { background-color: #d97706; color: white; }
.badge-other { background-color: #64748b; color: white; }
.badge-lzukt { background-color: #4d7c0f; color: white; } 


/* --- 5. PAGRINDINIS PUSLAPIS --- */
.hero-wrap { margin-bottom: 50px; }

.hero-big { 
    position: relative; height: 450px; border-radius: 12px; overflow: hidden; 
    margin-bottom: 30px; box-shadow: var(--shadow-lg); 
}
.hero-big img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.hero-big:hover img { transform: scale(1.05); }

.hero-overlay { 
    position: absolute; bottom: 0; left: 0; right: 0; 
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent); 
    padding: 40px; color: white; 
}

.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }

.sub-card { 
    background: white; border-radius: 12px; overflow: hidden; 
    box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease; 
    border: 1px solid #f1f5f9; display: flex; flex-direction: column;
}
.sub-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.sub-card img { width: 100%; height: 180px; object-fit: cover; }
.sub-content { padding: 20px; flex: 1; }
.sub-card h3 { font-size: 17px; margin: 0; line-height: 1.4; color: #1e293b; font-weight: 700; }

.news-list { display: flex; flex-direction: column; gap: 20px; }

.news-item { 
    display: flex; gap: 25px; background: white; padding: 25px; 
    border-radius: 12px; box-shadow: var(--shadow-sm); transition: 0.3s; 
    border: 1px solid #f1f5f9;
}
.news-item:hover { transform: translateX(5px); box-shadow: var(--shadow-md); border-color: #e2e8f0; }

/* Naujienos paveikslėlis sąraše */
.news-item img { 
    width: 200px; height: 130px; object-fit: cover; 
    border-radius: 8px; flex-shrink: 0; 
}

.news-content h3 { font-size: 20px; margin-bottom: 10px; font-weight: 800; color: #1e293b; }
.news-desc { font-size: 15px; color: #64748b; line-height: 1.6; }

/* --- 6. SIDEBAR --- */
aside { position: sticky; top: 90px; height: fit-content; }

.sidebar-box {
    background: #fff; border-radius: 12px; padding: 25px;
    margin-bottom: 25px; box-shadow: var(--shadow-sm); border: 1px solid #f1f5f9;
}

.weather-widget-clean { 
    background: linear-gradient(145deg, #ffffff, #f0fdf4);
    padding: 25px; margin-bottom: 25px; border-radius: 12px; 
    box-shadow: var(--shadow-sm); text-align: center; border: 1px solid #dcfce7;
}
.w-temp { font-size: 42px; font-weight: 900; color: var(--primary); }

.w-more-btn { 
    display: inline-block; margin-top: 15px; font-size: 11px; font-weight: 800; 
    color: white; background: var(--primary); padding: 8px 16px; 
    border-radius: 20px; transition: 0.3s; box-shadow: 0 4px 6px rgba(22, 101, 52, 0.2);
}
.w-more-btn:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* --- 7. STRAIPSNIO PUSLAPIS --- */
.article-wrap { 
    background: white; padding: 50px; border-radius: 12px; 
    box-shadow: var(--shadow-sm); border: 1px solid #f1f5f9; margin-bottom: 40px; 
}
.main-image { width: 100%; max-height: 500px; object-fit: cover; border-radius: 12px; margin-bottom: 30px; }

/* --- 8. FOOTER --- */
footer { 
    background: #0f172a; color: #94a3b8; padding: 60px 0; 
    font-size: 14px; text-align: center; margin-top: 80px; 
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .main-grid { grid-template-columns: 1fr; } /* Mobiliam viskas viename stulpelyje */
    
    .news-item { flex-direction: column; } /* Naujienos foto viršuje, tekstas apačioje */
    .news-item img { width: 100%; height: 220px; }
    
    .hero-big { height: 300px; }
    .hero-overlay h2 { font-size: 24px; }
    
    .nav-list { flex-direction: column; gap: 0; }
    .nav-list li a { padding: 15px; border-bottom: 1px solid #f1f5f9; }
    
    .sub-grid { grid-template-columns: 1fr; }
    .article-wrap { padding: 25px; }

    /* Mobili logotipo versija */
    .logo { font-size: 28px; justify-content: center; }
    .logo-icon { width: 30px; height: 30px; }
}