/* Responsive Styles for Financial Literacy Template */

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title-1 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle-1 {
        font-size: 1.5rem;
    }
}

/* Large Devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title-1 {
        font-size: 3rem;
    }
    
    .hero-subtitle-1 {
        font-size: 1.35rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Medium Devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title-1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-1 {
        font-size: 1.25rem;
    }
    
    .services-grid, 
    .price-cards,
    .coreinfo-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 2rem;
    }
    
    .contact-form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Devices (landscape phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .hero-title-1 {
        font-size: 2rem;
    }
    
    .hero-subtitle-1 {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .navbar-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 999;
        flex-direction: column !important;
   
    }
    
    .navbar-nav.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    .services-grid, 
    .features-grid,
    .price-cards,
    .coreinfo-grid,
    .blog-grid,
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 2rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    .hero-title-1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle-1 {
        font-size: 1rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .navbar-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column !important;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 999;

    }
    
    .navbar-nav.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .navbar-toggler {
        display: block;
    }
    
    .services-grid, 
    .features-grid,
    .price-cards,
    .coreinfo-grid,
    .blog-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 1.5rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    h1, h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .accordion-item {
        margin-bottom: 10px;
    }
    
    .review-card {
        padding: 15px;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* Add breakpoint for mobile navigation on any screen width when menu is toggled */
.navbar-toggler:focus + .navbar-nav,
.navbar-toggler:active + .navbar-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Fix for iOS safari viewport height issues */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
} 