:root {
    --sokol-red: #E30613;
    --sokol-blue: #00479A;
    --dark: #1A1A1A;
    --light: #F8F8F8;
    --white: #FFFFFF;
    --gray: #666666;
    --gray-light: #F0F0F0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

@media (max-width: 1200px) {
    html { font-size: 14px; }
}

body {
    font-family: 'Barlow Condensed', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.5;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }

/* --- Header --- */
.header-main {
    background: var(--sokol-red);
    color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
    min-height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--white);
    flex-shrink: 0;
}

.logo-img {
    height: clamp(40px, 6vw, 70px);
    width: auto;
    background: transparent;
    padding: 0;
    transition: height 0.3s ease;
}

/* --- Header Toggle --- */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 2000;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-main ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

/* --- Header Menu --- */
.nav-main a {
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.98rem;
    transition: 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
    white-space: nowrap;
}

.nav-main a:hover {
    border-bottom-color: var(--white);
}

/* --- Banner Full Width --- */
.banner-area-full {
    width: 100%;
    overflow: hidden;
}

.banner-area-full img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Layout --- */
.main-wrapper {
    padding: 2rem 0;
}

.main-container {
    display: flex;
    gap: 50px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.main-content img {
    max-width: 100%;
    height: auto;
}

/* --- Sidebar Styling --- */
.sidebar-right {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-right .module,
.sidebar-right [class*="module"],
.sidebar-right .mod-list {
    background: var(--light);
    border: 1px solid var(--gray-light);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    overflow: hidden;
}

.sidebar-right h3, 
.sidebar-right .module-title {
    display: block !important;
    visibility: visible !important;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--sokol-red);
    display: inline-block;
    padding-bottom: 5px;
}

.sidebar-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-right ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.sidebar-right ul li:last-child {
    border-bottom: none;
}

.sidebar-right ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    display: block;
    transition: color 0.3s ease, padding-left 0.3s ease;
    font-size: 1.05rem;
}

.sidebar-right ul li a:hover {
    color: var(--sokol-red);
    padding-left: 10px;
}

.sidebar-right .nav.flex-column li a {
    background: var(--white);
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
}

.sidebar-right .nav.flex-column li a:hover {
    background: var(--sokol-red);
    color: var(--white);
    border-color: var(--sokol-red);
    padding-left: 15px;
}

/* --- Components --- */
h1, h2, h3, h4 {
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    border-left: 8px solid var(--sokol-red);
    padding-left: 1rem;
}

/* --- Footer --- */
.footer-main {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 2rem 0;
    margin-top: 4rem;
    border-top: 10px solid var(--sokol-red);
}

.footer-top-area {
    padding-bottom: 2rem;
}

.footer-top-area ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
}

.footer-top-area img {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-top-area img:hover {
    transform: scale(1.05);
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 2rem 0;
}

.footer-bottom-area p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* --- Blog Content --- */
.grid-container {
    display: grid;
    gap: 30px;
}

.grid-container.columns-1 { grid-template-columns: 1fr; }
.grid-container.columns-2 { grid-template-columns: repeat(2, 1fr); }
.grid-container.columns-3 { grid-template-columns: repeat(3, 1fr); }
.grid-container.columns-4 { grid-template-columns: repeat(4, 1fr); }

.blog-card {
    background: var(--white);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.card-image {
    position: relative;
    padding-top: 56.25%;
    background: #f0f0f0;
    overflow: hidden;
}

.card-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.card-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.card-category { color: var(--sokol-red); font-weight: 800; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 8px; }
.card-title { margin-bottom: 15px; font-size: 1.4rem; line-height: 1.2; }
.card-title a { color: var(--dark); text-decoration: none; }
.card-intro { font-size: 1rem; color: var(--gray); margin-bottom: 20px; flex: 1; }

/* --- Pagination --- */
.pagination__wrapper { margin-top: 5rem; display: flex; justify-content: center; }
.pagination { display: flex; list-style: none; padding: 0; gap: 8px; }
.pagination .page-link {
    display: flex; align-items: center; justify-content: center; min-width: 45px; height: 45px;
    background: var(--white); border: 1px solid #ddd; color: var(--sokol-blue); text-decoration: none; font-weight: 700;
}
.pagination .page-item.active .page-link { background: var(--sokol-red); border-color: var(--sokol-red); color: var(--white); }

/* --- Responsive Breakpoints --- */

@media (max-width: 1150px) {
    .menu-toggle { display: flex; }
    
    .nav-main {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--sokol-red);
        z-index: 1500;
        flex-direction: column;
        align-items: center;
        padding: 3rem 2rem;
        overflow-y: auto;
    }

    .nav-main.active {
        display: flex;
    }

    .nav-main ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        margin: auto 0;
        width: 100%;
    }

    .nav-main a {
        font-size: 2rem;
    }

    /* Landscape and short screen refinements */
    @media (max-height: 500px) {
        .nav-main {
            padding: 2rem;
        }
        .nav-main ul {
            gap: 1rem;
            margin: 0; /* Align to top when space is tight to ensure starting point visibility */
        }
        .nav-main a {
            font-size: 1.5rem;
        }
    }

    .header-main { padding: 1rem 2rem; }
}

@media (max-width: 992px) {
    .main-container { flex-direction: column; }
    .sidebar-right { width: 100%; order: 2; }
    .grid-container { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
    html { font-size: 12px; }
    .grid-container { grid-template-columns: 1fr !important; gap: 20px; }
    .logo-img { height: 40px; }
    .header-main { padding: 0.8rem 1rem; }
    .footer-top-area ul { gap: 1rem; }
    .footer-top-area img { max-height: 40px; }
}
