/**
 * PIIN Website - Responsive Styles
 * Mobile-first responsive design
 */

/* Tablet and Below (max-width: 992px) */
@media (max-width: 992px) {
    /* Section Spacing */
    section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .section-title p {
        font-size: 16px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 500px !important;
        padding-top: 100px !important;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-section .lead {
        font-size: 18px !important;
    }
    
    /* Cards */
    .card:hover {
        transform: translateY(-5px);
    }
    
    /* Buttons */
    .btn-lg {
        padding: 10px 25px;
        font-size: 16px;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    /* Section Spacing */
    section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 35px;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    .section-title p {
        font-size: 15px;
    }
    
    /* Page Header */
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 16px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 400px !important;
        padding-top: 80px !important;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section .lead {
        font-size: 16px !important;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    .display-3,
    .display-4,
    .display-5 {
        font-size: 2rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .d-flex.gap-3 {
        gap: 15px !important;
    }
    
    /* Cards */
    .card-body {
        padding: 20px;
    }
    
    /* Navbar */
    .navbar-nav {
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0 !important;
    }
    
    .btn-donate {
        margin-top: 15px;
        width: 100%;
    }
    
    /* Footer */
    footer {
        padding: 40px 0 20px;
        text-align: center;
    }
    
    footer .col-md-6,
    footer .col-lg-4,
    footer .col-lg-3,
    footer .col-lg-2 {
        margin-bottom: 30px;
    }
    
    /* Stats Section */
    .stat-card {
        padding: 20px !important;
    }
    
    .stat-card h2 {
        font-size: 2.5rem;
    }
    
    /* Gallery */
    .gallery-item img {
        height: 250px !important;
    }
    
    /* Contact Cards */
    .contact-info-box {
        margin-bottom: 15px;
    }
    
    /* Spacing Utilities */
    .mb-5,
    .my-5 {
        margin-bottom: 2rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Newsletter Section */
    .newsletter-section {
        padding: 40px 0 !important;
    }
    
    .newsletter-section .input-group {
        flex-direction: column;
    }
    
    .newsletter-section .input-group .form-control {
        margin-bottom: 10px;
        border-radius: 5px !important;
    }
    
    .newsletter-section .input-group .btn {
        border-radius: 5px !important;
    }
    
    /* Table Responsive */
    .table-responsive {
        font-size: 14px;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* Small Mobile Devices (max-width: 576px) */
@media (max-width: 576px) {
    /* Section Spacing */
    section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title p {
        font-size: 14px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 350px !important;
        padding-top: 60px !important;
    }
    
    .hero-section h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-section .lead {
        font-size: 14px !important;
    }
    
    /* Page Header */
    .page-header {
        padding: 30px 0;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    /* Buttons */
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Cards */
    .card-body {
        padding: 15px;
    }
    
    .card-img-top {
        height: 200px;
        object-fit: cover;
    }
    
    /* Stats */
    .stat-card h2 {
        font-size: 2rem;
    }
    
    .stat-card p {
        font-size: 14px;
    }
    
    /* Filter Buttons */
    .btn-group .btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Back to Top Button */
    #backToTop {
        width: 40px !important;
        height: 40px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 14px;
    }
    
    /* Map */
    #map {
        height: 300px !important;
    }
    
    /* Padding Adjustments */
    .p-4,
    .px-4,
    .py-4 {
        padding: 1.5rem !important;
    }
    
    .p-5,
    .px-5,
    .py-5 {
        padding: 2rem !important;
    }
}

/* Extra Small Devices (max-width: 375px) */
@media (max-width: 375px) {
    .hero-section h1 {
        font-size: 1.5rem !important;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .btn {
        font-size: 13px;
        padding: 8px 15px;
    }
    
    .display-3,
    .display-4,
    .display-5 {
        font-size: 1.75rem;
    }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        min-height: 300px !important;
    }
    
    .page-header {
        padding: 30px 0;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .modal,
    #backToTop,
    .newsletter-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
