/* Responsive Styles for Spugnperco */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Base */
    :root {
        --h1-size: 2rem;
        --h2-size: 1.75rem;
        --h3-size: 1.4rem;
        --h4-size: 1.1rem;
        --body-size: 0.95rem;
        --small-size: 0.85rem;
    }
    
    .section-padding {
        padding: var(--spacing-lg) 0;
    }
    
    /* Header */
    .logo {
        height: 40px;
    }
    
    /* Banner */
    .banner {
        padding: calc(var(--spacing-lg) + 60px) 0 var(--spacing-md);
        text-align: center;
    }
    
    .banner h1 {
        font-size: 2.2rem;
    }
    
    /* About */
    .about .col-lg-6:first-child {
        margin-bottom: var(--spacing-md);
    }
    
    /* Courses */
    .course-card {
        margin-bottom: var(--spacing-md);
    }
    
    /* Testimonials */
    .testimonial-card {
        margin-bottom: var(--spacing-md);
    }
    
    /* Blog */
    .blog-card {
        margin-bottom: var(--spacing-md);
    }
    
    /* Contact */
    .contact-info {
        margin-bottom: var(--spacing-md);
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .footer h4:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .copyright {
        text-align: center;
        margin-top: var(--spacing-md);
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    /* Cookie Consent */
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Articles */
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-navigation .col-6 {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .article-prev, .article-next {
        text-align: center;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Base */
    :root {
        --h1-size: 2.2rem;
        --h2-size: 1.8rem;
        --h3-size: 1.45rem;
        --h4-size: 1.15rem;
    }
    
    .section-padding {
        padding: var(--spacing-lg) 0;
    }
    
    /* Banner */
    .banner {
        padding: calc(var(--spacing-lg) + 60px) 0 var(--spacing-md);
        text-align: center;
    }
    
    /* About */
    .about .col-lg-6:first-child {
        margin-bottom: var(--spacing-md);
    }
    
    /* Footer */
    .footer-newsletter input {
        width: 60%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Base */
    :root {
        --h1-size: 2.3rem;
        --h2-size: 1.9rem;
    }
    
    /* Banner */
    .banner {
        padding: calc(var(--spacing-xl) + 60px) 0 var(--spacing-lg);
    }
    
    /* About */
    .about .col-lg-6:first-child {
        margin-bottom: var(--spacing-md);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Banner */
    .banner {
        padding: calc(var(--spacing-xl) + 60px) 0 var(--spacing-xl);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Banner */
    .banner {
        padding: calc(var(--spacing-xl) * 1.5 + 60px) 0 var(--spacing-xl);
    }
}

/* Responsive for all devices */
@media (max-width: 991.98px) {
    /* Navbar */
    .navbar-collapse {
        background-color: var(--white);
        padding: var(--spacing-sm);
        border-radius: var(--border-radius-md);
        box-shadow: var(--shadow-md);
        margin-top: 10px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .nav-link:after {
        display: none;
    }
    
    /* Consultancy */
    .consultancy .col-lg-6:last-child {
        margin-top: var(--spacing-md);
    }
    
    /* Footer */
    .footer-about, .footer-links, .footer-newsletter {
        margin-bottom: var(--spacing-md);
    }
}

/* Print styles */
@media print {
    body {
        background-color: #fff !important;
        color: #000 !important;
    }
    
    .header, .footer, .back-to-top, .cookie-consent, .social-links, .article-share, .article-navigation, .related-articles {
        display: none !important;
    }
    
    a {
        text-decoration: underline;
        color: #000 !important;
    }
    
    .container {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .section-padding {
        padding: 20px 0 !important;
    }
    
    .article-header {
        background-color: #fff !important;
        color: #000 !important;
        padding: 20px 0 !important;
    }
    
    .article-header h1 {
        color: #000 !important;
    }
    
    .article-author {
        background-color: transparent !important;
    }
}
