/* Financial Literacy Platform - Responsive CSS */

/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.83rem;
    }
    
    h3 {
        font-size: 1.38rem;
    }
    
    /* Navigation adjustments */
    .navbar-brand {
        font-size: 1.36rem !important;
    }
    
    /* Hero section mobile */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.80rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1.01rem;
        margin-bottom: 1.58rem;
    }
    
    /* Cards mobile adjustments */
    .feature-card, 
    .feature-item,
    .service-card,
    .pricing-card,
    .review-card,
    .career-card,
    .info-card,
    .blog-card,
    .case-study-card {
        margin-bottom: 1.75rem;
        padding: 1.5rem;
    }
    
    /* Service cards on mobile */
    .service-card .card-img-top {
        height: 150px;
    }
    
    /* Pricing cards mobile */
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    /* Team section mobile */
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    /* Timeline mobile adjustments */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding: 0 0 0 3rem;
    }
    
    .timeline-item::before {
        left: 20px;
        transform: translateX(-50%);
    }
    
    /* Process steps mobile */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.31rem;
    }
    
    /* Contact form mobile */
    .contact-form .form-control {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    /* Gallery mobile */
    .gallery-image {
        margin-bottom: 1rem;
    }
    
    /* FAQ mobile */
    .accordion-button {
        padding: 1rem;
        font-size: 0.94rem;
    }
    
    /* Button adjustments */
    .btn-primary,
    .btn-outline-primary {
        padding: 0.625rem 1.5rem;
        font-size: 0.92rem;
    }
    
    /* Footer mobile */
    footer .container .row .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    .hero-section h1 {
        font-size: 2.35rem;
    }
    
    /* Cards in two columns */
    .feature-card,
    .service-card,
    .info-card {
        margin-bottom: 2rem;
    }
    
    /* Team grid adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process steps in rows */
    .process-step {
        margin-bottom: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-nav {
        text-align: center;
    }
    
    /* Hero section tablet */  
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 4rem 0;
    }
    
    .hero-section .row {
        align-items: center;
    }
    
    /* Service cards tablet */
    .service-card {
        margin-bottom: 2rem;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Pricing cards tablet */
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        transform: scale(1.02);
    }
    
    /* Timeline tablet */
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding: 0 0 0 4rem;
    }
    
    .timeline-item::before {
        left: 30px;
    }
    
    /* Contact form tablet */
    .contact-form {
        max-width: 600px;
        margin: 0 auto;
    }
    
    /* Gallery tablet */
    .gallery-image {
        margin-bottom: 1.73rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero section desktop */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 5rem 0;
    }
    
    /* Service cards desktop */
    .service-card .card-img-top {
        height: 200px;
    }
    
    /* Team section desktop */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Timeline desktop */
    .timeline::before {
        left: 50%;
    }
    
    .timeline-item {
        padding: 0 2rem;
    }
    
    .timeline-item::before {
        left: 50%;
    }
    
    /* Process steps desktop */
    .process-step {
        margin-bottom: 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Hero section large desktop */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 6rem 0;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    
    /* Cards enhanced for large screens */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .career-card,
    .info-card,
    .blog-card,
    .case-study-card {
        padding: 2.5rem;
    }
    
    /* Team photos larger */
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    /* Process steps enhanced */
    .step-number {
        width: 80px;
        height: 80px;
        font-size: 1.79rem;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Hero section ultra-wide */
    .hero-section h1 {
        font-size: 3.52rem;
    }
    
    /* Enhanced spacing */
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Orientation-specific styles */
@media (orientation: landscape) and (max-height: 500px) {
    /* Landscape mobile adjustments */
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.55rem;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhanced images for retina displays */
    .hero-image,
    .service-card .card-img-top,
    .blog-card .card-img-top,
    .case-study-card .card-img-top,
    .gallery-image,
    .team-photo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Note: Keeping light theme as requested for accessibility */
    /* This media query is here for future dark mode implementation */
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    .feature-card,
    .service-card,
    .pricing-card,
    .team-member,
    .process-step,
    .career-card,
    .info-card,
    .review-card,
    .blog-card,
    .case-study-card,
    .gallery-image,
    .btn-primary,
    .btn-outline-primary {
        transition: none !important;
        transform: none !important;
    }
    
    .fade-in-up {
        animation: none !important;
    }
}

/* Print styles for responsive design */
@media print {
    /* Hide mobile-only elements */
    .d-block.d-md-none {
        display: none !important;
    }
    
    /* Ensure proper spacing for print */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Adjust font sizes for print */
    h1 { font-size: 18pt !important; }
    h2 { font-size: 16pt !important; }
    h3 { font-size: 14pt !important; }
    h4 { font-size: 12pt !important; }
    h5 { font-size: 11pt !important; }
    h6 { font-size: 10pt !important; }
    
    /* Remove shadows and borders for print */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .career-card,
    .info-card,
    .blog-card,
    .case-study-card {
        box-shadow: none !important;
        border: 1px solid #d9c9ca !important;
    }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
    /* Enhanced contrast for accessibility */
    :root {
        --primary-color: #163e6e;
        --secondary-color: #298934;
        --accent-color: #d72a3f;
    }
    
    .btn-primary,
    .btn-outline-primary:hover {
        background-color: #1d384f !important;
        border-color: #18315f !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .btn-primary,
    .btn-outline-primary {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 2rem;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .team-member:hover,
    .process-step:hover,
    .career-card:hover,
    .info-card:hover,
    .review-card:hover,
    .blog-card:hover,
    .case-study-card:hover,
    .gallery-image:hover,
    .btn-primary:hover,
    .btn-outline-primary:hover {
        transform: none;
        box-shadow: inherit;
    }
}

/* Container fluid adjustments */
@media (min-width: 1200px) {
    .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Specific component responsive adjustments */

/* Accordion responsive */
@media (max-width: 767.98px) {
    .accordion-button {
        font-size: 1.00rem;
        padding: 1rem 0.75rem;
    }
}

/* Blog grid responsive */
@media (max-width: 575.98px) {
    #blog_grid .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Services grid responsive */
@media (max-width: 767.98px) {
    .service-card {
        max-width: 350px;
        margin: 0 auto 2rem;
    }
}

/* Contact form responsive */
@media (max-width: 767.98px) {
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .contact-info {
        text-align: center;
        margin-top: 2rem;
    }
}

/* Footer responsive improvements */
@media (max-width: 991.98px) {
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    footer .col-lg-4:last-child {
        margin-bottom: 0;
    }
} 