/* Responsive Styles */

/* Large Devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    :root {
        --container-width: 960px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .banner-image img {
        max-width: 100%;
    }
    
    .team-image img {
        max-width: 100%;
    }
}

/* Medium Devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    :root {
        --container-width: 720px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .banner-content {
        flex-direction: column;
    }
    
    .banner-text {
        order: 1;
        text-align: center;
    }
    
    .banner-image {
        order: 0;
        margin-bottom: 30px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .team-content {
        flex-direction: column;
    }
    
    .team-image {
        margin-bottom: 30px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Small Devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
    :root {
        --container-width: 540px;
        --header-height: 70px;
    }
    
    body {
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        position: relative;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: var(--box-shadow);
        border-radius: var(--border-radius);
        padding: 10px 0;
        z-index: 1000;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 10px 20px;
    }
    
    nav ul li a:after {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-form {
        order: 1;
    }
    
    .contact-info {
        order: 0;
        margin-bottom: 40px;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-links {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    .newsletter-content {
        flex-direction: column;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    :root {
        --container-width: 100%;
        --header-height: 60px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .stat {
        width: 100%;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .testimonial {
        padding: 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .article-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-image {
        margin: 0 auto 10px;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .thanks-actions {
        flex-direction: column;
    }
    
    .thanks-actions .btn {
        width: 100%;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
    
    .logo span {
        display: none;
    }
    
    .banner {
        padding: 100px 0 50px;
    }
    
    .about-section, 
    .services-section, 
    .team-section, 
    .testimonials-section, 
    .contact-section, 
    .blog-preview-section,
    .blog-articles,
    .newsletter-section {
        padding: 50px 0;
    }
    
    .thanks-section,
    .policy-section,
    .article-page {
        padding: 100px 0 50px;
    }
    
    .blog-banner {
        padding: 100px 0 40px;
    }
}
