* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Neue Haas Grotesk","Helvetica Neue",Inter,Arial,sans-serif; }
body { background-color: #ffffff; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* Blockquote styling */
blockquote {
    font-family: "Canela", "Tiempos Headline", Georgia, serif;
    font-size: 20px;
    font-style: normal;
    line-height: 1.75;
    color: #2B2B2A;
    
    /* Modern2 stiil */
    margin: 26px 0;
    padding: 8px 0 8px 18px;
    border-left: 2px solid #C9D6C3; /* --m2-sage */
    background: transparent;
    border-radius: 0;
}
blockquote p {
    margin: 0;
}
/* Vaikne jutumärk */
blockquote p::before {
    content: "“";
    color: #C9D6C3;
    margin-right: 6px;
}
/* Autor / allikas */
blockquote footer {
    margin-top: 10px;
    font-family: "Neue Haas Grotesk", "Helvetica Neue", Inter, Arial, sans-serif;
    font-size: 13px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #6b5b68; /* --m2-mauve */
}

/* Header */
.site-header {
    background: white;
    padding: 15px 40px 0 40px;
    box-shadow: none;
    position: relative;
    z-index: 9999; /* Raised so menu panel sits above everything */
}
.logo { font-size: 28px; font-weight: 600; color: #000; letter-spacing: 1px; }
.logo img { height: 50px; width: auto; display: block; max-width: 100%; object-fit: contain; }
.logo span { color: #999; font-weight: normal; }
.header-main { display: flex; justify-content: space-between; align-items: center; margin: 0 auto 20px auto; max-width: 1200px; width: 100%; }
.header-actions { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.search-bar { flex: 1; margin: 0 60px; max-width: 500px; position: relative; }
.search-bar input {
    width: 100%; padding: 4px 40px 4px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px;
    background-color: #fafafa;
}
.search-bar input:focus {
    outline: none;
    border: 1px solid #666;
}
.search-bar-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.search-bar-btn:hover { color: #333; }
.search-bar-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; }
.lang-selector { font-size: 14px; color: #666; white-space: nowrap; font-weight: 500; }
.icons { display: flex; gap: 25px; font-size: 14px; }
.icons i { margin-right: 5px; }

/* Navigation */
nav {
    background: white;
    padding: 0 40px; /* Eemaldame vertikaalse paddingu, et li elemendid ulatuksid ääreni */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
/* Eemaldame päises olevalt menüült tausta ja äärised */
.header-main nav {
    padding: 0;
    border: none;
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: stretch; /* Venitame elemendid täiskõrgusesse, et hover töötaks paremini */
    font-weight: 500;
    text-transform: uppercase;
    font-size: clamp(16px, 2vw, 22px);
    gap: 85px;
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}
nav > ul > li {
    position: static; /* Vajalik täislaiuses dropdowni jaoks */
    padding: 15px 0; /* Lisame paddingu siia, et hiir ei kaoks menüü ja sisu vahelt */
    display: flex; align-items: center;
}
nav > ul > li > a:hover {
    text-decoration: none;
}

/* Peamenüü lingid (Nav H1) */
.nav-h1 {
    font-family: "Neue Haas Grotesk", "Helvetica Neue", Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2B2B2A;
    line-height: 1;
    display: flex;
    align-items: center;
}
nav ul li a:hover, nav ul li.open > .nav-h1 {
    color: #2B2B2A;
}

/* Eraldiseisev nav element (Tegevusala | kontaktid) */
.nav-special {
    display: flex;
    align-items: center;
    position: relative;
    top: 10px; /* Nihutab elementi alla ilma menüüriba kõrgust muutmata */
}
.nav-special p {
    font-family: "Neue Haas Grotesk", "Helvetica Neue", Inter, Arial, sans-serif;
    font-size: 10px;
    color: #7A7A76;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 0;
}

/* Menüü nooleke */
.dropdown-arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
    transform: rotate(-90deg);
}
nav ul li:hover .dropdown-arrow,
nav ul li.open .dropdown-arrow {
    transform: rotate(0deg);
}

/* Dropdown Menu (Multimenüü) */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    gap: 20px;
    z-index: 9998;
    border-top: 3px solid #6b5b68;
    margin-top: -1px; /* Katab navi alumise ääre, et ei tekiks auku */
    text-align: left;
    max-height: 80vh; /* Piirame kõrgust desktopil */
    overflow-y: auto; /* Lisame kerimisriba, kui sisu on palju */
}
/* Desktop-only overlay behavior */
@media (min-width: 901px) {
    nav ul li:hover .dropdown, nav ul li.open .dropdown { 
        display: flex; 
        align-items: flex-start; /* Joondame sisu üles */
    }
}

.dropdown-links {
    flex: 3;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px; /* Resetime fondi suuruse, et ei päriks peamenüü suurt fonti */
}

/* Dünaamiline paigutus veergudega */
.dropdown-links:not(.layout-static) {
    display: block;
    column-count: 5; /* Vaikimisi */
    column-gap: 25px;
}
.dropdown-links.cols-3:not(.layout-static) { column-count: 3; }
.dropdown-links.cols-4:not(.layout-static) { column-count: 4; }

/* Staatiline paigutus gridiga */
.dropdown-links.layout-static {
    display: grid;
    gap: 0px 25px; /* Vahe ainult tulpade vahel */
}
.dropdown-links.layout-static.cols-2 { grid-template-columns: repeat(2, 1fr); }

nav .dropdown-links li {
    break-inside: avoid;
    display: inline-block; /* Aitab hoida gruppi koos veergudes */
    width: 100%;
    margin-bottom: 5px; /* Vahe gruppide vahel */
    vertical-align: top;
    padding: 0 !important; /* Eemaldame nav ul li päritud paddingu (15px) jõuga */
}
/* 4-veerulise paigutuse puhul lubame sisu poolitamist, et täita veerud */
/* 3- ja 4-veerulise paigutuse puhul lubame sisu poolitamist, et täita veerud ühtlasemalt */
.dropdown-links.cols-3 li,
.dropdown-links.cols-4 li {
    display: block;
    break-inside: auto;
}

.dropdown-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dropdown-image img {
    max-width: 100%;
    border-radius: 4px;
}
/* Navigatsiooni artiklikaart */
.nav-article-card {
    display: block;
    width: 75%;
    margin: 0 auto;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.nav-article-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: block;
}
.nav-article-title {
    display: block;
    font-family: "Neue Haas Grotesk", "Helvetica Neue", Inter, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
.nav-article-card:hover .nav-article-title {
    color: #000;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.95);
}

/* Alammenüü pealkiri (Nav H2) */
.nav-h2 {
    font-family: "Neue Haas Grotesk", "Helvetica Neue", Inter, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #2B2B2A;
    margin-top: 0; /* Eemaldame margin-top, kuna li margin-bottom teeb töö */
    margin-bottom: 5px;
    break-after: avoid; /* Hoiab pealkirja koos järgneva sisuga */
}
/* Eemaldame esimeselt pealkirjalt ülemise vahe, et see oleks kastiga tasa */
.dropdown-links > li:first-child .nav-h2 { margin-top: 0; }

/* Alammenüü link (Nav H3) */
.nav-h3 {
    font-family: "Neue Haas Grotesk", "Helvetica Neue", Inter, Arial, sans-serif;
    text-transform: none;
    font-size: 16px;
    color: #2B2B2A;
    padding: 0 0 0 15px;
    margin: 0;
    display: block;
    font-weight: 400;
    line-height: 1.4;
    position: relative;
}
.nav-h3:hover { color: #000; padding-left: 5px; transition: 0.2s; text-decoration: none; }
.nav-h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #C9D6C3;
}
.nav-h3:hover { color: #000; padding-left: 20px; transition: 0.2s; text-decoration: none; }

/* Slogan & Secondary Nav (Info Bar) */
.info-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0px;
    padding: 0px 40px 0px 40px;
    background-color: #fff;
    border-bottom: none;
}
.info-bar::after {
    content: "";
    display: block;
    width: 100%;
    max-width: 1280px;
    height: 1px;
    background-color: #f0f0f0;
    margin-top: 10px;
}
.slogan {
    font-family: "Canela", serif;
    font-size: 24px;
    color: #2B2B2A;
    letter-spacing: 0.5px;
}
.info-bar nav { padding: 0; border: none; background: transparent; }
.info-bar nav ul {
    gap: 20px;
    font-size: 14px;
    text-transform: none; /* Eristub peamenüüst (pole trükitähed) */
    color: #2B2B2A;
}
.info-bar nav ul li {
    padding: 0; /* Eemaldame paddingu, et slogan oleks lähemal */
}
.info-bar nav ul a:hover { text-decoration: none; }

/* Hero Section */
.hero {
    background: #F2F1EE;
    padding: 30px 40px;
    text-align: center;
    position: relative;
}
.hero h1 { font-family: "Canela", "Tiempos Headline", Georgia, serif; font-size: 48px; margin: 20px 0; color: #2c3e50; font-weight: 400; line-height: 1.1; }
.hero h2 { font-family: "Canela", "Tiempos Headline", Georgia, serif; font-size: 40px; margin: 20px 0; color: #2c3e50; font-weight: 400; }
.hero p { font-size: 18px; color: #7f8c8d; margin-bottom: 30px; }
.benefits { font-size: 14px; color: #95a5a6; margin-bottom: 40px; }
.benefits span { margin: 0 20px; }

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}
.promo {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Joondab kõik elemendid vaikimisi vasakule */
    flex: 0 0 35%; /* Teeme tekstikasti kitsamaks (35% laiusest) */
    z-index: 2; /* Et tekst jääks vajadusel pildi peale */
    padding-left: 50px;
}
.promo .subtitle {
    font-family: "Neue Haas Grotesk", "Helvetica Neue", Inter, Arial, sans-serif;
    font-size: 14px;
    color: #6b5b68;
    font-weight: 500;
    align-self: center;
    margin-top: 30px;
    margin-bottom: 0;
}
.promo h2 {
    font-family: "Canela", "Tiempos Headline", Georgia, serif;
    font-size: 30px;
    margin-bottom: 35px;
    color: #2B2B2A;
    line-height: 1.1;
    text-align: left;
    align-self: flex-start;
}
.promo .sale {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.promo .btn {
    align-self: center; /* Muuda siit nupu asukohta: flex-start (vasak), center (keskel), flex-end (parem) */
}
.btn {
    background: #6b5b68;
    color: white;
    padding: 10px 30px;
    font-weight: 500;
    border-radius: 4px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
}
/* Fix for Bootstrap buttons overridden by .btn */
.btn.btn-outline-secondary {
    background: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
}
.btn.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}
.hero-image {
    flex: 1;
    text-align: right;
    position: relative;
}
.hero-image img {
    width: 90%; /* Teeme pildi veidi väiksemaks, et kõrgus ei läheks liiga suureks */
    max-width: none;
    margin-right: 50px;
    margin-top: 30px; /* Nihutame veidi üles */
    margin-bottom: -100px; /* Nihutame veidi alla */
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    aspect-ratio: 3/2;
    object-fit: cover;
}

/* Small Promos */
.small-promos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 180px auto 100px auto;
    max-width: 1200px;
}
.small-promo {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.small-promo a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}
.small-promo img {
    width: 100%;
    height: 220px; /* Fikseeritud kõrgus */
    object-fit: cover; /* Kärbib pildi proportsionaalselt */
    border-radius: 8px;
    margin-bottom: 20px;
}
.small-promo h3 {
    min-height: 81px; /* Reserveerime ruumi 3 rea jaoks */
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Piirame teksti max 3 reaga */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- MODERN COMPANY CARD --- */
.company-card {
    display: flex;
    font-family: "Canela", "Tiempos Headline", Georgia, serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: center;
    gap: 25px;
    border: 1px solid #f0f0f0;
}
.company-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.company-card-logo {
    flex: 0 0 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.company-card-logo img {
    width: auto;
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}
.company-card-logo img[src$=".svg"], .company-card-logo img[src$=".SVG"] {
    width: 100%;
}
.company-logo-fallback {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #ccc;
    text-decoration: none;
}
.company-card-content {
    flex: 1;
}
.company-card-title {
    font-size: 23px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #2B2B2A;
    margin-top: 0;
    font-family: "Canela", "Tiempos Headline", Georgia, serif !important;
    font-style: normal;
}
.company-card-title a {
    color: inherit;
    text-decoration: none;
    font-family: inherit;
}
.company-card-desc {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    font-family: "Canela", "Tiempos Headline", Georgia, serif;
}
.company-card-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px; /* 5px vertikaalne vahe, 15px horisontaalne */
    font-size: 13px;
    color: #555;
}
.company-card-contacts a {
    color: #4E4E4A;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #B8C7B1;
    text-underline-offset: 2px;
    transition: font-size 0.2s ease;
}
.company-card-contacts a:hover {
    font-size: calc(1em + 1px);
}
.c-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.c-icon {
    font-size: 14px;
    opacity: 0.7;
}
.company-card-action {
    flex: 0 0 auto;
}
.btn-view-profile {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid #6b5b68;
    color: #6b5b68;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-view-profile:hover {
    background-color: #6b5b68;
    color: #fff;
    text-decoration: none;
}

/* Sidebar Articles (Right Column) */
.sidebar-article-card {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-article-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.sidebar-article-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}
.sidebar-article-link:hover {
    text-decoration: none;
}
.sidebar-article-image {
    flex: 0 0 110px;
    width: 110px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.sidebar-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.sidebar-article-link:hover .sidebar-article-image img {
    transform: scale(1.05);
}
.sidebar-article-content {
    flex: 1;
}
.sidebar-article-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 5px 0;
    color: #333;
    transition: color 0.2s;
    font-family: "Canela", "Tiempos Headline", Georgia, serif;
}
.sidebar-article-link:hover .sidebar-article-title {
    color: #6b5b68;
}
.sidebar-article-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article List Card (Modern style for lists) */
.article-list-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}
.article-list-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: transparent;
}
.article-list-link {
    display: flex;
    align-items: flex-start;
    padding: 25px;
    padding: 15px;
    position: relative;
    color: inherit;
    text-decoration: none;
}
.article-list-link::after {
    content: "";
    display: table;
    clear: both;
}
.article-list-link:hover { text-decoration: none; color: inherit; }

.article-list-image {
    flex: 0 0 130px;
    width: 130px;
    height: 130px;
    height: 90px;
    margin-right: 20px;
    margin-bottom: 0;
    border-radius: 6px;
    overflow: hidden;
}
.article-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.article-list-card:hover .article-list-image img {
    transform: scale(1.05);
}

.article-list-content {
    flex: 1;
    min-width: 0;
    padding-right: 30px;
}
.article-list-content h3, .article-list-content .article-card-title {
    font-size: 17px;
    font-weight: 400;
    margin: 0 0 15px 0;
    color: #2B2B2A;
    line-height: 1.3;
    font-family: "Canela", "Tiempos Headline", Georgia, serif;
}
.article-list-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
    clear: none;
}

.article-list-action {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #ddd;
    transition: all 0.3s ease;
}
.article-list-card:hover .article-list-action {
    color: #6b5b68;
    transform: translate(5px, -50%);
}
.arrow-icon { font-size: 20px; }

/* Product News Box (Tooteuudised) */
.product-news-section {
    max-width: 1200px !important; /* Joondub täpselt sisu ja logoga (1200px) */
    padding: 0 !important; /* Eemaldame konteineri paddingu, et valge kast ulatuks ääreni */
    margin-top: 0 !important; /* Vähendame vahet eelneva sektsiooniga */
    margin-bottom: 30px !important; /* Vähendame vahet järgneva bänneriga */
}
.product-news-box {
    background: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.product-news-section .cat-label h3 {
    font-family: "Canela", "Tiempos Headline", Georgia, serif;
    font-weight: 400;
    text-transform: none;
    color: #2B2B2A;
}

/* Main Articles Grid Container */
.main-articles-container {
    max-width: 1280px; /* 1200px sisu + 2*40px padding */
    margin: 120px auto 40px auto !important; /* Force margin */
    padding: 0 40px; /* Ühtib päise paddinguga */
    width: 100%;
}

/* Product News Hero (Left column on desktop) */
@media (min-width: 992px) {
    .product-news-hero {
        aspect-ratio: 1/1;
        padding: 0;
        position: relative;
        overflow: hidden;
        border: 1px solid #f0f0f0;
    }
    .product-news-hero .article-list-link {
        height: 100%;
        padding: 0;
        display: block;
    }
    .product-news-hero .article-list-image {
        width: 100%;
        height: 100%;
        float: none;
        margin: 0;
        border-radius: 0;
    }
    .product-news-hero .article-list-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }
    .product-news-hero .article-list-content {
        position: absolute;
        bottom: 20px;
        left: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.9);
        padding: 15px;
        border-radius: 4px;
        text-align: center;
    }
    .product-news-hero .article-list-content h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    .product-news-hero .article-list-action {
        display: none;
    }
}

@media (min-width: 992px) {
    .cat-grid.main-articles-container {
        grid-template-columns: repeat(6, 1fr);
    }
    .cat-grid.main-articles-container .cat-item {
        grid-column: span 2;
    }
    .cat-grid.main-articles-container .cat-item:nth-child(4),
    .cat-grid.main-articles-container .cat-item:nth-child(5) {
        grid-column: span 3;
    }

    /* Esimene rida (3 artiklit): kõrgem pealkirjakast */
    .cat-grid.main-articles-container .cat-item:nth-child(-n+3) .cat-label {
        min-height: 120px !important;
    }
    /* Teine rida (2 artiklit): madalam pealkirjakast, kuna kast on laiem */
    .cat-grid.main-articles-container .cat-item:nth-child(n+4) .cat-label {
        min-height: 90px !important;
    }
}

/* Top Categories */
.categories {
    max-width: 1280px;
    margin: 80px auto;
    padding: 0 40px;
}
.categories h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #2c3e50;
}
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 6 artiklit jaotuvad paremini 3 veergu */
    gap: 15px 13px;
}
.cat-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3 / 2;
    background-color: #f5f5f5;
}
.cat-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.cat-item:hover img { transform: scale(1.05); }
.cat-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    padding: 10px 20px;
    max-width: 85%; /* Piirame laiust, et ei kataks tervet pilti */
}
.cat-label h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}
.cat-label p {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
}

/* Mobile Menu Toggle default state */
.menu-toggle { display: none; font-size: 28px; cursor: pointer; color: #333; line-height: 1; z-index: 1100; position: relative; }

/* Peidetud elemendid, mis ilmuvad ainult mobiilis */
.mobile-only { display: none; }

/* Mobile nav elements (Search & Lang in drawer) - hidden on desktop */
.mobile-nav-element { display: none !important; }

/* Responsive */
/* Vahemik 601px - 900px (Tahvelarvuti) */
@media (max-width: 900px) {
    .hero-content { flex-direction: column; gap: 0; }
    .hero-content { flex-direction: column; gap: 15px; }
    .hero-content { flex-direction: column; gap: 20px; }
    
    /* Muudame järjestust mobiilis: Pealkiri -> Pilt -> Nupp */
    .promo, .hero-image { display: contents; }
    
    .promo .subtitle { display: none; } /* Peidame laiendi */
    
    .promo h2 { 
        order: 1; 
        text-align: center; 
        width: 100%; 
        margin-bottom: 0; 
        margin-top: 0;
    }
    
    .hero-image a { 
        order: 2; 
        width: 100%; 
        display: block; 
        margin-bottom: 5px; 
        margin-bottom: 0; 
        text-align: center;
        line-height: 0; /* Eemaldab lingi elemendi sisemise reavahe */
    }
    .hero-image img { 
        width: 100%; 
        margin: 0; 
        max-width: 100%; 
        display: block; /* Eemaldab pildi alumise tühimiku (baseline) */
        box-shadow: none; /* Eemaldab desktopi varju, mis tekitab visuaalset müra */
    }
    
    .promo .btn { order: 3; margin: 0 auto; }

    .small-promos { grid-template-columns: 1fr; margin-top: 60px; }
    .small-promo { width: 100%; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    /* Logo tekst vahepealses suuruses */
    .logo span { font-size: 14px; display: block; margin-top: 5px; line-height: 1.4; }
    .logo img { height: 35px; }
    .main-articles-container { margin-top: 10px !important; }
    .main-articles-container { margin-top: 30px !important; }

    /* Company Card Mobile */
    .company-card {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }
    .company-card-logo {
        margin-bottom: 10px;
        flex: 0 0 auto; /* Mobiilis laseme kõrgusel olla automaatne */
        order: 1;
    }
    .company-card-content {
        order: 2;
    }
    .company-card-desc {
        order: 3;
        padding-top: 0 !important; /* Eemaldame inline paddingu, et vahe oleks ühtlane */
    }
    .company-card-contacts {
        justify-content: center;
    }
    .company-card-action {
        margin-top: 0;
        text-align: center;
        order: 4;
    }
    .product-news-box { padding: 30px 20px; } /* Väiksem padding tahvlis */

    /* Peida sektsioonide kirjeldused mobiilis */
    .section-desc { display: none !important; }

    /* --- PÄIS JA NAVIGATSIOON MOBIILIS --- */
    
    /* 1. Päise paigutus: Logo vasakul, nupud paremal, otsing all */
    .header-main { flex-wrap: wrap; justify-content: space-between; }
    .logo { order: 1; }
    .header-actions { order: 2; display: flex; align-items: center; gap: 15px; }
    .header-actions { order: 2; display: flex; align-items: center; gap: 15px; margin-right: 0; }
    .search-bar { display: none !important; }
    
    /* Keelevalik nähtav päises */
    .lang-selector { display: none !important; }

    /* Menüü nupp */
    .menu-toggle { 
        display: block; 
        z-index: 11001; 
        background: rgba(255, 255, 255, 0.95); 
        border: 1px solid #eee; 
        padding: 5px 12px; 
        font-size: 26px; 
        cursor: pointer; 
        position: fixed;
        top: 15px;
        right: 15px;
        border-radius: 4px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    /* 2. Mobiilimenüü (Sahtel/Drawer) */
    nav > ul {
        display: block !important; /* Kasutame block, et vältida flexi probleeme */
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        transform: translateX(100%); /* Peidetud paremale */
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: white !important;
        padding: 80px 20px 40px 20px !important;
        padding: 20px 20px 40px 20px !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1) !important;
        z-index: 11000 !important;
        overflow-y: auto !important;
        transition: transform 0.3s ease; /* Sujuv libisemine */
        margin: 0 !important;
        border-radius: 0 !important;
        color: #333 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    nav > ul.active {
        transform: translateX(0) !important;
    }

    /* Menüü elemendid */
    nav ul li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        border-bottom: 1px solid #f5f5f5 !important;
        padding: 0 !important;
        background: transparent !important;
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
    }
    nav ul li:last-child { border-bottom: none; }
    
    /* Reset nav-special positsioon mobiilis */
    .nav-special {
        display: block !important;
        top: 0 !important;
        margin-bottom: 10px !important;
    }

    nav ul li .nav-h1 {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 0 !important;
        font-size: 16px !important;
        line-height: 1.4 !important;
        width: 100% !important;
        color: #333 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* 3. Alammenüü (Accordion) */
    .dropdown {
        display: none;
        position: static; /* Oluline! Lükkab sisu alla, ei hõlju peal */
        width: 100%;
        box-shadow: none;
        border: none;
        background: #fafafa; /* Õrn taust eristamiseks */
        padding: 10px 15px;
        max-height: none;
        overflow: visible;
    }
    
    /* Näita alammenüüd, kui vanem on avatud */
    nav ul li.open > .dropdown {
        display: block;
    }

    /* Alammenüü lingid */
    .dropdown-links, .dropdown-links.layout-static {
        display: block !important;
        column-count: 1 !important;
        gap: 0;
        padding: 0;
        margin: 0;
    }
    /* Mobiilis nav-h3 on nüüd a tag li sees */
    .dropdown-links li a.nav-h3 {
        display: block;
        padding: 2px 0;
        font-size: 15px;
        color: #333; /* Tumedam värv parema nähtavuse jaoks */
        text-transform: none;
    }
    .dropdown-links li a.nav-h3::before {
        content: "- ";
        color: #ccc;
        margin-right: 5px;
        display: none;
    }

    /* Eemaldame parempoolse veeru eraldusjoone mobiilis */
    .dropdown .border-left {
        border-left: none !important;
        padding-left: 0 !important;
    }

    /* Peida pildid mobiilimenüüs */
    .dropdown-image { display: none; }

    /* Taust (Backdrop) */
    .menu-backdrop {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .menu-backdrop.visible { display: block; }
    
    /* Muud peidetud elemendid */
    .secondary-nav { display: none; }
    .info-bar { flex-direction: column; text-align: center; gap: 10px; }
    .info-bar { flex-direction: column; text-align: center; gap: 10px; padding-top: 20px; }
    .info-bar { flex-direction: column; text-align: center; gap: 0; padding-top: 10px; }
    
    /* Mobiili lisalingid */
    nav ul li.mobile-only { display: block; border-top: none; }
    nav ul li.mobile-only a { font-size: 14px; color: #555; }
    
    /* Keela hover efekt mobiilis */
    nav ul li:hover .dropdown { display: none; }
    nav ul li.open .dropdown { display: block; }

    /* --- MOBILE NAV ELEMENTS (DRAWER) --- */
    .mobile-nav-element { display: block !important; }

    /* Search Item */
    .mobile-nav-element.search-item {
        padding: 0 0 20px 0 !important;
        border-bottom: 1px solid #eee !important;
        margin-bottom: 10px !important;
    }
    .mobile-search-bar { position: relative; width: 100%; }
    .mobile-search-bar input {
        width: 100%;
        padding: 12px 45px 12px 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
        background: #f9f9f9;
    }
    .mobile-search-bar button {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        padding: 8px;
        color: #666;
    }

    /* Lang Item in Drawer */
    .mobile-nav-element.lang-item {
        text-align: left !important;
        padding: 0 0 15px 0 !important;
        margin-bottom: 0 !important;
        border-bottom: none !important;
    }
    .mobile-lang-selector {
        font-size: 13px;
        color: #666;
    }
    .mobile-lang-selector a {
        text-decoration: none;
        color: #666;
    }
    .mobile-lang-selector a[style*="bold"] {
        color: #000;
        text-decoration: underline;
    }
}

/* Vahemik kuni 600px (Mobiil) */
@media (max-width: 600px) {
    /* Vähendame ääri mobiilis, et sisu mahuks paremini */
    .site-header, .hero, .categories { padding-left: 20px; padding-right: 20px; }
    .site-header, .categories { padding-left: 20px; padding-right: 20px; }
    .hero { padding: 15px 20px; }
    nav { padding: 0; }

    /* Logo tekst veel väiksemaks */
    .logo span { font-size: 12px; }
    
    /* Tekstide suurused väiksemaks */
    .hero h1 { font-size: 32px; }
    .promo h2 { font-size: 24px; }
    .cat-grid { grid-template-columns: 1fr; } /* Kategooriad üksteise alla */
    .main-articles-container { padding: 0 20px; } /* Väiksem padding mobiilis */
    
    .article-list-image { flex: 0 0 100px; height: 100px; }
    .article-list-image { width: 100px; height: 70px; }
    .article-list-content h3 { font-size: 15px; }
}

/* Lihtne artiklite ruudustik (kasutusel avalehel ja teemade lehel) */
.simple-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}
@media (max-width: 1200px) {
    .simple-article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.simple-article-item {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    transition: all 0.3s ease;
}
.simple-article-item:hover {
    box-shadow: none;
    transform: none;
}
.simple-article-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}
.simple-article-item h3, .simple-article-item .article-card-title {
    font-size: 21px;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.3;
    color: #333;
    text-align: left;
    font-family: "Canela", "Tiempos Headline", Georgia, serif;
}
.simple-article-item p { 
    font-size: 16px; 
    color: #666; 
    line-height: 1.5; 
    margin-bottom: 0; 
    text-align: left; 
    font-family: "Canela", "Tiempos Headline", Georgia, serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.simple-article-item a { text-decoration: none; color: inherit; display: block; height: 100%; }
.simple-article-item a:hover h3 { color: #6b5b68; }

@media (max-width: 992px) { .simple-article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .simple-article-grid { grid-template-columns: 1fr; } }

/* Expert Profile */
.expert-profile {
    margin-bottom: 50px;
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #f5f5f5;
}
.expert-image {
    width: 110px !important;
    height: 110px !important;
    min-width: 110px; /* Tagab, et pilti ei suruta kokku */
    object-fit: cover;
    border-radius: 10px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.expert-profile h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2c3e50;
}
.expert-job {
    font-weight: 600;
    color: #6b5b68;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}
.expert-bio {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

/* Banner Frame */
.banner-frame {
    width: 100%;
    background-color: #fcfcfc;
    border: 1px solid #f0f0f0;
    padding: 30px;
    border-radius: 0; /* Eemaldame ümarad nurgad täislaiuse puhul */
}
@media (max-width: 768px) {
    .banner-frame { padding: 15px; }
}

/* Footer Links - eemaldame allkriipsud */
footer a, footer a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Category Page Title */
.category-title {
    font-family: "Canela", "Tiempos Headline", Georgia, serif;
    font-weight: 400;
    color: #2B2B2A;
    font-size: 1.7rem;
    line-height: 1.1;
}

@media (max-width: 900px) {
    .category-title {
        font-family: "Neue Haas Grotesk", "Helvetica Neue", Inter, Arial, sans-serif !important;
        font-size: 14px !important;
        color: #7A7A76 !important;
        text-transform: uppercase !important;
        line-height: 1.2 !important;
    }
}

/* Topic Page Styles */
.topic-page-title {
    font-family: "Canela", "Tiempos Headline", Georgia, serif;
    font-weight: 400;
    color: #2B2B2A;
    font-size: 30px;
}

@media (max-width: 900px) {
    .topics-sidebar-row { display: none !important; }
    
    .topic-page-title {
        font-family: "Neue Haas Grotesk", "Helvetica Neue", Inter, Arial, sans-serif !important;
        font-size: 14px !important;
        color: #7A7A76 !important;
        text-transform: uppercase !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
}

/* Useful Links */
.useful-link {
    font-size: 19px;
    color: #555;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.useful-link:hover {
    color: #6b5b68;
    font-size: 20px;
    text-decoration: none !important;
}

/* Global Page Container (1280px width) */
.page-container {
    max-width: 1280px !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
@media (max-width: 600px) {
    .page-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* --- KASULIKUD VIITED (CARD STYLE) --- */
.useful-links-wrapper {
    background-color: #fff;
    box-shadow: 0 0 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
}

.useful-links-header {
    font-family: "Canela", "Tiempos Headline", Georgia, serif;
    font-size: 21px;
    font-weight: 400;
    color: #2B2B2A;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: center; /* Joondame pealkirja keskele nagu teistel sektsioonidel */
}

.useful-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    color: #444;
    text-decoration: none !important;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
    border: 1px solid #eee;
    font-size: 15px;
    line-height: 1.3;
}

.useful-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #000;
    border-color: #ddd;
}

.useful-link-arrow {
    font-size: 24px;
    color: #ccc;
    margin-left: 10px;
    line-height: 1;
    margin-top: -4px; /* Visuaalne korrektsioon */
}

.useful-link-card:hover .useful-link-arrow {
    color: #6b5b68; /* Kasutame lehe aktsentvärvi (lilla/pruun) */
}

/* Navigatsiooni kategooria nupp (dropdownis) */
.nav-cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    min-height: 90px;
}
.nav-cat-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.nav-cat-btn h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: "Neue Haas Grotesk","Helvetica Neue",Inter,Arial,sans-serif;
    line-height: 1.2;
    color: inherit;
}
.nav-cat-btn h3 span {
    display: block;
    font-size: 10px;
    opacity: 0.8;
    margin-bottom: 4px;
    font-weight: 400;
}
.nav-cat-btn .arrow {
    font-size: 18px;
    margin-top: 5px;
    line-height: 1;
}

/* Bännerite kast (Gridis) */
.banner-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Baassuhe, et kastil oleks kuju, aga venib naabrite järgi */
    overflow: hidden;
}
.banner-box > div {
    margin: 0 !important; /* Eemaldame bänneri funktsiooni lisatud marginid */
    padding: 0 !important;
    flex: 1;
    display: flex;
    align-items: center;
    align-items: flex-start;
    justify-content: center;
    min-height: 0; /* Lubab flex-lapsel kahaneda */
}
.banner-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain; /* Pilt skaleerub kasti sisse */
    object-position: top;
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
    margin: 0 !important; /* Eemaldame figure-img margin-bottom */
}

.youtube-embed-wrapper {
    margin-bottom: 30px !important;
}

/* --- VOGUE STIILIS PÕHIARTIKLID (CLEAN + RISING EFFECT) --- */
.main-articles-container .cat-item {
    aspect-ratio: auto !important; /* Eemaldame fikseeritud suhte, et tekst mahuks alla */
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible; /* Muudame visible-ks, et vari oleks nähtav */
    margin-bottom: 0px; /* Ruum pealkirja jaoks pildi all */
    height: auto !important;
    position: relative;
}

.main-articles-container .cat-item a {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}

.main-articles-container .cat-item img {
    aspect-ratio: 3/2;
    width: 100%;
    height: auto !important; /* Tagab, et pilt ei veniks, kui tekstiosa on kõrgem */
    object-fit: cover;
    border-radius: 4px;
    z-index: 1;
    transition: none !important; /* Eemaldame zoom efekti */
}

.main-articles-container .cat-item:hover img {
    transform: none !important;
}

/* Silt asub nüüd pildi all (mitte peal) */
.main-articles-container .cat-label {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px !important;
    background: #fff !important; /* Valge taust, et katta pilti tõustes */
    background: rgba(255, 255, 255, 0.9) !important; /* Läbipaistev valge taust */
    text-align: left !important;
    border-radius: 0 !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.4s ease, padding 0.4s ease !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start; /* Joondame sisu üles */
    height: auto !important; /* Fikseeritud kõrgus asendatud automaatsega */
    min-height: 100px !important; /* Minimaalne kõrgus ühtluse säilitamiseks */
    min-height: 120px !important; /* Minimaalne kõrgus ühtluse säilitamiseks */
    z-index: 2;
    border: none; /* Eemaldame konkreetse joone, et jääks ainult pehme vari */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); /* Tugevam vari, et oleks paremini näha */
}

@media (max-width: 900px) {
    .main-articles-container .cat-label {
        min-height: auto !important;
    }
    .main-articles-container .cat-item h3 {
        max-height: none !important;
        overflow: visible !important;
        font-size: 19px !important;
    }
}

/* Tüpograafia: Sama font mis Hero pealkirjal */
.main-articles-container .cat-item h3 {
    font-family: "Canela", "Tiempos Headline", Georgia, serif;
    font-weight: 400;
    color: #2B2B2A;
    text-transform: none; /* Eemaldame trükitähed puhtama ilme jaoks */
    text-shadow: none;
    margin-bottom: 0;
    font-size: 21px; /* 1px suurem */
    line-height: 1.4;
    max-height: 100px; /* Fikseeritud kõrgus asendatud max-kõrgusega */
    overflow: hidden;
}

/* Kirjeldus: Absoluutne positsioon, et ei mõjutaks konteineri kõrgust (väldib hüppamist) */
.main-articles-container .cat-label p {
    position: relative;
    width: auto;
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
    transition: all 0.4s ease;
    display: block !important; /* Tagame, et on olemas */
}

/* HOVER EFEKT: Silt tõuseb pildi peale */
@media (min-width: 992px) {
    .main-articles-container .cat-label p {
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(255, 255, 255, 0.9);
        padding: 0 15px 15px 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        margin-top: -1px;
    }

    .main-articles-container .cat-item:hover {
        z-index: 50; /* Tõstame hõljuva elemendi teiste kohale, et see ei jääks alumiste nuppude alla */
    }

    .main-articles-container .cat-item:hover .cat-label {
        transform: translateY(-100%) !important; /* Tõuseb täpselt oma kõrguse võrra üles */
        box-shadow: 0 -5px 15px rgba(0,0,0,0.1); /* Vari üleval */
    }

    .main-articles-container .cat-item:hover .cat-label p {
        max-height: 200px;
        margin-top: 10px;
        opacity: 1;
    }
}

/* Category Grid Ordering (Mobile: Button before Links) */
.simple-article-grid .useful-links-wrapper {
    order: 0;
}
.simple-article-grid .load-more-wrapper {
    order: 100;
    grid-column: 1 / -1;
    width: 100%;
}

@media (max-width: 900px) {
    .simple-article-grid .useful-links-wrapper {
        order: 20; /* Lingid viimaseks */
        background-color: #fafafa; /* Eristuvam taust */
        border-color: #e0e0e0;
    }
    .simple-article-grid .load-more-wrapper {
        order: 10; /* Nupp enne linke */
        border-bottom: 1px solid #eee; /* Eraldusjoon */
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
}

/* --- SEARCH PAGE ARTICLES (Separate from Home) --- */
.search-articles-container {
    max-width: 1280px;
    margin: 40px auto !important;
    padding: 0 40px;
    width: 100%;
}
.search-articles-container .cat-item {
    aspect-ratio: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
    margin-bottom: 0px;
    height: auto !important;
    position: relative;
}
.search-articles-container .cat-item a {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}
.search-articles-container .cat-item img {
    aspect-ratio: 3/2;
    width: 100%;
    height: auto !important;
    object-fit: cover;
    border-radius: 4px;
    z-index: 1;
    transition: none !important;
}
.search-articles-container .cat-item:hover img { transform: none !important; }
.search-articles-container .cat-label {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    text-align: left !important;
    border-radius: 0 !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background 0.4s ease, padding 0.4s ease !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    height: auto !important;
    min-height: 120px !important;
    z-index: 2;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.search-articles-container .cat-item h3 {
    font-family: "Canela", "Tiempos Headline", Georgia, serif;
    font-weight: 400;
    color: #2B2B2A;
    text-transform: none;
    text-shadow: none;
    margin-bottom: 0;
    font-size: 21px;
    line-height: 1.4;
    max-height: 100px;
    overflow: hidden;
}
.search-articles-container .cat-label p {
    position: relative;
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    display: block !important;
}

@media (max-width: 900px) {
    .search-articles-container .cat-label { min-height: auto !important; }
    .search-articles-container .cat-item h3 { max-height: none !important; overflow: visible !important; font-size: 19px !important; }
}

@media (min-width: 992px) {
    .cat-grid.search-articles-container {
        grid-template-columns: repeat(6, 1fr);
    }
    /* Vaikimisi: span 2 (3 tk reas) - see kehtib nüüd 2. reale */
    .cat-grid.search-articles-container .cat-item {
        grid-column: span 2;
    }

    /* Label kõrgused */
    .cat-grid.search-articles-container .cat-item .cat-label {
        min-height: 120px !important;
    }

    /* Hover efektid */
    .search-articles-container .cat-label p {
        position: absolute;
        top: 100%; left: 0;
        background: rgba(255, 255, 255, 0.9);
        padding: 0 15px 15px 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        margin-top: -1px;
    }
    .search-articles-container .cat-item:hover { z-index: 50; }
    .search-articles-container .cat-item:hover .cat-label {
        transform: translateY(-100%) !important;
        box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    }
    .search-articles-container .cat-item:hover .cat-label p {
        max-height: 200px;
        margin-top: 10px;
        opacity: 1;
    }
}