/* 
   Great Sanatan - Responsive Stylesheet
   Ensures the website is fully responsive across all device sizes
*/

/* ===== Large Devices (Desktops, less than 1200px) ===== */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
}

/* ===== Medium Devices (Tablets, less than 992px) ===== */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .intro-content,
    .community-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .intro-text,
    .intro-image,
    .community-image,
    .community-text {
        flex: none;
        width: 100%;
    }
    
    .intro-image,
    .community-image {
        order: -1;
    }
    
    .principles-grid,
    .featured-grid,
    .tools-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-body {
        flex-direction: column;
    }
    
    .article-text,
    .article-sidebar {
        width: 100%;
    }
    
    .article-hero .container {
        flex-direction: column;
    }
    
    .article-hero-content,
    .article-hero .article-image {
        width: 100%;
    }
}

/* ===== Small Devices (Landscape Phones, less than 768px) ===== */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
    
    /* Navigation for mobile */
    .hamburger {
        display: block;
    }
    
    /* Ensure language selector is visible on mobile */
    .language-selector {
        order: -1;
        margin-left: 0;
        margin-right: 1rem;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-item {
        margin: 0;
    }
    
    .nav-link {
        padding: 1rem 0;
        display: block;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 0;
    }
    
    .article-text p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    img.section-image {
        max-width: 100%;
    }
    
    .article-hero {
        padding: 60px 0;
    }
    
    .article-hero h1 {
        font-size: 2rem;
    }
    
    .article-hero .article-subtitle {
        font-size: 1rem;
    }
    
    .article-hero .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== Extra Small Devices (Portrait Phones, less than 576px) ===== */
@media (max-width: 575.98px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .principles-grid,
    .featured-grid,
    .tools-slider {
        grid-template-columns: 1fr;
    }
    
    .community-features {
        grid-template-columns: 1fr;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
    
    .quote-box p {
        font-size: 1rem;
    }
    
    .quote-box i {
        font-size: 1.5rem;
    }
    
    .article-hero h1 {
        font-size: 1.75rem;
    }
    
    .article-hero .article-subtitle {
        font-size: 0.95rem;
    }
    
    .article-text h2 {
        font-size: 1.8rem;
    }
    
    .article-text h3 {
        font-size: 1.5rem;
    }
}