/* Reset ir pagrindiniai stiliai */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #007bff;
    --text-dark: #000000;
    --text-gray: #666666;
    --text-light-gray: #999999;
    --bg-white: #ffffff;
    --bg-light-gray: #f5f5f5;
    --border-light: #e0e0e0;
    --border-dark: #000000;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1 {
    text-align: center;
    margin: 40px 0 !important;
}

img {margin: 0 auto !important;}

.container {
    max-width: 1000px !important;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;

}



/* Header Container */
.header-container {
    max-width: 1224px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 1225px) {
    .header-container {
        padding: 0;
    }
}

/* Utility Bar */
.utility-bar {
    background-color: var(--bg-white);
    /* border-bottom: 1px solid var(--border-dark); */
    padding: 8px 0;
    font-size: 13px;
}

.utility-bar .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.utility-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
}

.utility-link:hover {
    color: var(--primary-blue);
}

.separator-dot {
    color: var(--text-gray);
    font-size: 8px;
    margin: 0 4px;
    line-height: 1;
    display: inline-block;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0;
}

.language-link {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 13px;
    white-space: nowrap;
    margin-right: 4px;
}

.language-link:last-child {
    margin-right: 0;
}

.language-link.active {
    color: var(--primary-blue);
    font-weight: normal;
}

.language-link:hover:not(.active) {
    color: var(--primary-blue);
}

/* Main Navigation Bar */
.main-nav-bar {
    background-color: var(--bg-white);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav-bar .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo {
    height: 40px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.search-btn .fa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.search-btn .fa-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.search-btn:hover {
    color: var(--primary-blue);
}

.my-delfi-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.my-delfi-link:hover {
    color: var(--primary-blue);
}

.btn-subscribe {
    background-color: #3858f5;
    color: var(--bg-white);
    border: none;
    border-radius: 100px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-subscribe:hover {
    background-color: #0052a3;
}

.btn-subscribe img {
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0) invert(1);
}

.btn-login {
    background-color: #e5e5e5;
    color: var(--text-dark);
    border: none;
    border-radius: 100px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-login:hover {
    background-color: #d4d4d4;
}

/* Secondary Navigation Bar */
.secondary-nav-bar {
    background-color: var(--bg-white);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.secondary-nav-bar .header-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--text-dark);
    flex-shrink: 0;
}

.temperature {
    font-weight: 600;
}

.weather-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: block;
}

.nav-separator {
    width: 1px;
    height: 20px;
    background-color: var(--border-light);
    flex-shrink: 0;
}

.secondary-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    flex: 1;
}

.secondary-nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.secondary-nav-link:hover {
    color: var(--primary-blue);
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 0;
}

.content {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

p {
    padding-right: 20px;
    padding-left: 20pz;
}

.video-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.responsive-video {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.article-content {
    margin-top: 2rem;
}

.article-paragraph {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.article-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    text-align: center;
}

.article-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Footer */
.site-footer {
    margin-top: auto;
}

.footer-container {
    max-width: 1224px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media (min-width: 1225px) {
    .footer-container {
        padding: 0;
    }
}

.footer-top {
    background-color: #f5f5f5;
    padding: 40px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-link {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    white-space: nowrap;
}

.footer-link:hover {
    color: var(--primary-blue);
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-link {
    color: #666666;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    width: 24px;
    height: 24px;
}

.social-link:hover {
    color: var(--primary-blue);
}

.social-link svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-bottom {
    background-color: #3858f5;
    color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #333333;
}

.footer-bottom .footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 14px;
}

.footer-email {
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 768px) {

    .footer-top {
        padding: 30px 0;
    }

    .footer-links {
        gap: 16px;
        margin-bottom: 24px;
    }

    .footer-link {
        font-size: 13px;
    }

    .footer-social {
        gap: 16px;
    }

    .social-link {
        width: 20px;
        height: 20px;
    }

    .footer-bottom {
        padding: 16px 0;
    }

    .footer-bottom .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-copyright,
    .footer-email {
        font-size: 13px;
    }

    .container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 16px;
    }

    .footer-top {
        padding: 24px 0;
    }

    .footer-links {
        gap: 12px;
        margin-bottom: 20px;
    }

    .footer-link {
        font-size: 12px;
    }

    .footer-social {
        gap: 12px;
    }

    .social-link {
        width: 18px;
        height: 18px;
    }

    .footer-bottom {
        padding: 14px 0;
    }

    .footer-copyright,
    .footer-email {
        font-size: 12px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive design */
@media (max-width: 1224px) {
    .header-container {
        padding: 0 16px;
    }
}

@media (min-width: 769px) and (max-width: 1224px) {
    .main-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--border-light) transparent;
    }

    .main-nav::-webkit-scrollbar {
        height: 4px;
    }

    .main-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .main-nav::-webkit-scrollbar-thumb {
        background-color: var(--border-light);
        border-radius: 2px;
    }

    .main-nav::-webkit-scrollbar-thumb:hover {
        background-color: var(--text-light-gray);
    }

    .nav-left {
        overflow: hidden;
    }

    .secondary-nav-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--border-light) transparent;
    }

    .secondary-nav-bar::-webkit-scrollbar {
        height: 4px;
    }

    .secondary-nav-bar::-webkit-scrollbar-track {
        background: transparent;
    }

    .secondary-nav-bar::-webkit-scrollbar-thumb {
        background-color: var(--border-light);
        border-radius: 2px;
    }

    .secondary-nav-bar::-webkit-scrollbar-thumb:hover {
        background-color: var(--text-light-gray);
    }

    .secondary-nav-bar .header-container {
        min-width: max-content;
    }

    .secondary-nav {
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    .utility-bar {
        display: none;
    }

    .content {
        padding: 1.5rem;
    }

    .article-content {
        margin-top: 1.5rem;
    }

    .article-paragraph {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 1.25rem;
        text-align: left;
    }

    .article-image-wrapper {
        margin: 1.5rem 0;
    }

    .article-image {
        border-radius: 6px;
    }

    .main-nav-bar {
        padding: 12px 0;
        position: relative;
    }

    .main-nav-bar .header-container {
        gap: 12px;
    }

    .nav-left {
        gap: 12px;
        flex: 1;
        min-width: 0;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .logo {
        height: 32px;
        flex-shrink: 0;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        border-bottom: 1px solid var(--border-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

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

    .main-nav .nav-link {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-light);
        font-size: 14px;
    }

    .main-nav .nav-link:last-child {
        border-bottom: none;
    }

    .nav-right {
        gap: 8px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .my-delfi-link {
        display: none;
    }

    .btn-subscribe {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
    }

    .btn-subscribe img {
        width: 14px;
        height: 14px;
    }

    .btn-login {
        padding: 8px 16px;
        font-size: 13px;
    }

    .search-btn {
        padding: 6px;
    }

    .search-btn .fa-icon {
        width: 18px;
        height: 18px;
    }

    .search-btn .fa-icon svg {
        width: 18px;
        height: 18px;
    }

    .secondary-nav-bar {
        padding: 8px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .secondary-nav-bar .header-container {
        gap: 8px;
        min-width: max-content;
    }

    .weather-info {
        font-size: 14px;
        gap: 4px;
        flex-shrink: 0;
    }

    .temperature {
        font-weight: 500;
    }

    .weather-icon {
        width: 24px;
        height: 24px;
    }

    .nav-separator {
        height: 16px;
        flex-shrink: 0;
    }

    .secondary-nav {
        gap: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .secondary-nav::-webkit-scrollbar {
        display: none;
    }

    .secondary-nav-link {
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
    }

    .main-nav-bar {
        padding: 10px 0;
    }

    .nav-left {
        gap: 10px;
    }

    .main-nav {
        padding: 12px 16px;
    }

    .main-nav .nav-link {
        padding: 10px 0;
        font-size: 13px;
    }

    .logo {
        height: 28px;
    }

    .nav-right {
        gap: 6px;
    }

    .btn-subscribe {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .btn-subscribe img {
        width: 12px;
        height: 12px;
    }

    .btn-login {
        padding: 6px 12px;
        font-size: 12px;
    }

    .secondary-nav-bar {
        padding: 6px 0;
    }

    .secondary-nav {
        gap: 10px;
    }

    .secondary-nav-link {
        font-size: 12px;
    }

    .weather-info {
        font-size: 13px;
    }

    .weather-icon {
        width: 20px;
        height: 20px;
    }

    .content {
        padding: 1rem;
    }

    .video-wrapper {
        border-radius: 4px;
    }

    .article-content {
        margin-top: 1.5rem;
    }

    .article-paragraph {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .article-image-wrapper {
        margin: 1.5rem 0;
    }

    .article-image {
        border-radius: 4px;
    }
}

.accent-link {
    color: #007bff;
    font-weight: bold;
}