/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .header-top .container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .contact-info span {
        margin-right: 1rem;
        font-size: 0.8rem;
    }
    
    .header-actions {
        gap: 1rem;
    }
    
    .main-navigation .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .design-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .design-image {
        order: -1;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .footer-bottom .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .copyright-legal {
        align-items: center;
    }
    
    .legal-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transition: top 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        top: 120px;
    }
    
    .nav-menu > li {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 1rem;
        border: none;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .communities-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .form-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    #newsletter-email {
        border-radius: 4px;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .btn-subscribe {
        border-radius: 4px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header-top .container {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .contact-info span {
        display: block;
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-header h2::after {
        width: 60px;
    }
    
    .search-section {
        margin-top: -60px;
    }
    
    .advanced-search-form {
        padding: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: var(--spacing-md);
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .site-header {
        position: relative;
    }
    
    .hero-section {
        margin-top: 0;
        height: 45vh;
        min-height: 300px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .search-section {
        margin-top: 0;
        padding-top: var(--spacing-lg);
    }
    
    .communities-grid,
    .articles-grid {
        gap: var(--spacing-md);
    }
    
    .community-card,
    .blog-post {
        margin-bottom: var(--spacing-md);
    }
    
    .card-image {
        height: 200px;
    }
    
    .post-image {
        height: 180px;
    }
}