/* Responsive Styles */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-section {
        height: 550px;
    }

    .choose-us-content,
    .story-content {
        gap: 30px;
    }

    .contact-columns {
        gap: 30px;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-section {
        height: 500px;
    }

    .choose-us-content,
    .story-content {
        grid-template-columns: 1fr;
    }

    .choose-us-image,
    .story-image {
        order: -1;
    }

    .contact-columns {
        grid-template-columns: 1fr;
    }

    .content-with-icon {
        flex-direction: column;
    }

    .content-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .article-header h1 {
        font-size: 36px;
    }

    .two-column-list {
        grid-template-columns: 1fr;
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }

    .section-padding {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: #fff;
        padding: 80px 20px;
        z-index: 101;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-speed);
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        margin: 0;
        border-bottom: 1px solid #edf2f7;
    }

    .main-nav a {
        display: block;
        padding: 15px 5px;
    }

    .hamburger-menu {
        display: flex;
        z-index: 102;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-section {
        height: 450px;
    }

    .blog-filters,
    .filter-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-options {
        width: 100%;
    }

    .filter-options select,
    .search-container {
        width: 100%;
    }

    .search-container input {
        width: 100%;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .article-header h1 {
        font-size: 30px;
    }

    .article-author-bio {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons button {
        width: 100%;
    }
}

/* Extra Small Devices (Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }

    .section-padding {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-section {
        height: 400px;
    }

    .pagination-btn {
        width: 35px;
        height: 35px;
    }

    .article-quote {
        padding: 20px;
        font-size: 18px;
    }

    .info-box {
        flex-direction: column;
    }

    .info-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .thank-you-section h1,
    .error-section h1 {
        font-size: 28px;
    }

    .error-code {
        font-size: 100px;
    }
}

/* Mobile Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}