* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a5490;
    --secondary-color: #ff6b35;
    --accent-color: #004e89;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f5f7fa;
    --bg-cream: #faf9f6;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-md: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Lora', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.25rem;
    font-family: 'Montserrat', sans-serif;
}

.logo-icon-img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--secondary-color);
}

.logo-text {
    color: var(--white);
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--secondary-color);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--secondary-color);
}

.burger-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.burger-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hero-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/2018_Proton_X70_1.8_TGDi_Premium_2WD_%2878%29.jpg/1920px-2018_Proton_X70_1.8_TGDi_Premium_2WD_%2878%29.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 84, 144, 0.85) 0%, rgba(0, 78, 137, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 800px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
}

.intro-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.features-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-cream) 0%, var(--white) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-md);
}

.feature-card-large {
    grid-column: 1 / -1;
}

.feature-card-medium {
    direction: rtl;
}

.feature-card-medium > * {
    direction: ltr;
}

.feature-card-small {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
}

.feature-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.1);
}

.feature-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.articles-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.article-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-md);
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    margin-bottom: 1rem;
}

.article-content h3 a {
    color: var(--text-dark);
}

.article-content h3 a:hover {
    color: var(--accent-color);
}

.read-more {
    display: inline-block;
    margin-top: auto;
    color: var(--secondary-color);
    font-weight: 600;
    padding-top: 1rem;
}

.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn.primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.cta-btn.primary:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-btn.secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.contact-hero {
    min-height: 400px;
}

.contact-intro-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.contact-intro-text {
    text-align: center;
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-dark);
    line-height: 1.8;
}

.contact-cards-section {
    padding: 5rem 0;
    background-color: var(--bg-cream);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-md);
}

.contact-card-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.icon-circle svg {
    width: 28px;
    height: 28px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-card-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-email {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.05rem;
    word-break: break-word;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: var(--secondary-color);
}

.faq-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-cream);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.content-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.content-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.article-page {
    min-height: 100vh;
}

.article-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
}

.article-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.article-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 3rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: var(--white);
}

.article-hero-content h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.article-content-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-body h2 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.main-footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a252f 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.9rem;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px var(--shadow-md);
    z-index: 10000;
    padding: 1.5rem;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-text h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-text p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.accept-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.accept-btn:hover {
    background-color: var(--accent-color);
}

.reject-btn {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.reject-btn:hover {
    background-color: #e0e4e8;
}

.cookie-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

@media (max-width: 968px) {
    .burger-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 10px var(--shadow);
    }

    .main-nav.active {
        max-height: 400px;
    }

    .nav-list {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 0.75rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .feature-card-large,
    .feature-card-medium,
    .feature-card-small {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .feature-card-medium > * {
        direction: ltr;
    }

    .contact-cards-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 2rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }
}
