/*!
Theme Name: Jagur
Theme URI: http://underscores.me/
Author: Kirill Jagur
Description: Theme for jagur.tagtest.ee
Version: 1.1.0
Text Domain: tagtest
*/

/*--------------------------------------------------------------
# Generic & Normalize
--------------------------------------------------------------*/
html { line-height: 1.15; -webkit-text-size-adjust: 100%; box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body { margin: 0; background: #fff; color: #404040; font-family: sans-serif; font-size: 1rem; line-height: 1.5; overflow-x: hidden; }
main { display: block; }
h1, h2, h3, h4, h5, h6 { clear: both; margin: 0 0 0.5em; }
p { margin-bottom: 1.5em; }
a { color: #4169e1; text-decoration: none; transition: 0.3s; }
a:hover { color: #191970; }
img { height: auto; max-width: 100%; border-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/*--------------------------------------------------------------
# Navigation & Header (??????????: ???? ? ???, ????? ??????)
--------------------------------------------------------------*/
.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1000;
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-navigation ul {
    list-style: none !important; /* ??????? ?????-??????? */
    margin: 0;
    padding: 0;
    display: flex !important;    /* ??????????? ???? ? ??? */
    gap: 25px;                   /* ?????????? ????? ???????? */
}

.main-navigation li {
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

.main-navigation a:hover {
    color: #ff6b35; /* ????????? ??? ????????? */
}

/* ?????? ??????? */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-box {
    display: inline-block;
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger-inner, 
.hamburger-inner::before, 
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: #333;
    position: absolute;
    transition: 0.3s;
}

.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ""; top: -8px; left: 0; }
.hamburger-inner::after { content: ""; top: 8px; left: 0; }

/* ????????? ????????? ???? */
@media screen and (max-width: 992px) {
    .menu-toggle { display: block !important; }

    .main-navigation .menu-wrapper {
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #ffffff;
        padding: 80px 40px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
        z-index: 9999;
    }

    .main-navigation.is-open .menu-wrapper {
        right: 0 !important;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
}

/*--------------------------------------------------------------
# Archive & Category Pages (Uudised - ????? ????????)
--------------------------------------------------------------*/
.category-header {
    padding: 60px 0 30px;
}

.category-label {
    color: #ff6b35;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.category-header .page-title {
    color: #ff6b35;
    font-size: 48px;
    font-weight: 800;
    margin: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background: #fff;
    border-radius: 20px; /* ??????????? ??? ?? ???? */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: 0.3s;
    border: none;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.news-card__image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.placeholder-blue {
    width: 100%;
    height: 240px;
    background: #4a76bc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.news-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 12px;
}

.news-title a {
    color: #ff6b35 !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.read-more-link {
    color: #ff6b35;
    font-weight: bold;
    text-decoration: none;
    margin-top: auto;
}

/*--------------------------------------------------------------
# Hero Slider & News Swiper (??????? ????????)
--------------------------------------------------------------*/
.hero-swiper { width: 100%; height: 600px; }
.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.hero-slide .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.news-section { padding: 60px 0; background: #f9f9f9; }
.swiper-pagination-bullet-active { background: #4169e1 !important; }

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px;
}
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1.5em; }
.aligncenter { display: block; margin: 0 auto 1.5em; }