/* ===========================================
   BHAVYA FOUNDATION - RESPONSIVE STYLES
   Mobile-first responsive design
   =========================================== */

/* ===========================================
   HEADER RESPONSIVE
   =========================================== */

/* Mobile (default - up to 767px) */
@media (max-width: 767px) {
    body {
        padding-top: 62px;
    }
    
    .header-nav {
        padding: 0.5rem 0.75rem;
        min-height: 60px;
    }
    
    .header-logo img {
        height: 2rem;
    }
    
    .btn-donate {
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .btn-join-mobile {
        padding: 0.375rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .mobile-menu-btn {
        padding: 0.375rem;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
    body {
        padding-top: 85px;
    }
    
    .header-nav {
        padding: 0.875rem 1.25rem;
        min-height: 70px;
    }
    
    .header-logo img {
        height: 2.75rem;
    }
    
    .btn-donate {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .btn-join-mobile {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .mobile-menu-btn {
        padding: 0.5rem;
    }
    
    .header-mobile-actions {
        gap: 0.5rem;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    body {
        padding-top: 86px;
    }
    
    .header-nav {
        padding: 1rem 1.5rem;
        min-height: 80px;
    }
    
    .header-logo {
        flex: 0 0 auto;
    }
    
    .header-logo img {
        height: 3.25rem;
    }
    
    .header-desktop-nav {
        display: flex !important;
        flex: 1 1 auto;
        justify-content: center;
    }
    
    .header-donate-desktop {
        display: flex !important;
        flex: 0 0 auto;
    }
    
    .header-mobile-actions {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .header-nav {
        padding: 1rem 2rem;
    }
    
    .header-logo img {
        height: 3.5rem;
    }
    
    .header-desktop-nav {
        gap: 2.5rem;
    }
    
    .btn-join,
    .btn-donate {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Extra Large Desktop (1536px and up) */
@media (min-width: 1536px) {
    .header-logo img {
        height: 3.75rem;
    }
    
    .header-desktop-nav {
        gap: 3rem;
    }
}

/* ===========================================
   CONTAINER RESPONSIVE
   =========================================== */

@media (max-width: 575px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 1140px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1320px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* ===========================================
   SECTION RESPONSIVE
   =========================================== */

@media (max-width: 767px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-text {
        font-size: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .section {
        padding: 4rem 0;
    }
}

/* ===========================================
   HERO SLIDER RESPONSIVE
   =========================================== */

@media (max-width: 767px) {
    .hero-content {
        padding: 60px 0;
        min-height: 450px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-text {
        font-size: 1rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-content {
        padding: 80px 0;
        min-height: 550px;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
}

/* ===========================================
   STATS SECTION RESPONSIVE
   =========================================== */

@media (max-width: 575px) {
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .stat-card {
        padding: 2rem 1.25rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ===========================================
   BLOG & VIDEO GRID RESPONSIVE
   =========================================== */

@media (max-width: 575px) {
    .blog-grid,
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .blog-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .blog-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .blog-grid,
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .blog-grid,
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===========================================
   COLLABORATORS RESPONSIVE
   =========================================== */

@media (max-width: 767px) {
    .collaborator-logo {
        width: 120px;
        height: 60px;
        margin: 0 0.75rem;
    }
    
    .collaborators-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .collaborator-logo {
        width: 160px;
        height: 80px;
        margin: 0 1.25rem;
    }
}

/* ===========================================
   IMAGE TEXT SECTION RESPONSIVE
   =========================================== */

@media (max-width: 991px) {
    .image-text-section img {
        height: 300px;
        margin-bottom: 2rem;
    }
    
    .image-text-section .content-title,
    .image-text-section .content-text {
        text-align: center;
    }
    
    .image-text-section .btn-link-custom {
        display: flex;
        justify-content: center;
    }
}

/* ===========================================
   BUTTONS RESPONSIVE
   =========================================== */

@media (max-width: 575px) {
    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }
    
    .btn-white,
    .btn-outline-white {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===========================================
   BREADCRUMB RESPONSIVE
   =========================================== */

@media (max-width: 767px) {
    .modern-breadcrumb {
        padding: 50px 0 40px;
        margin-top: 0 !important;
    }
    
    /* Remove extra spacing between header and breadcrumb on mobile */
    .modern-header + .modern-breadcrumb,
    header + .modern-breadcrumb,
    .modern-header ~ main .modern-breadcrumb:first-child {
        margin-top: 0 !important;
        padding-top: 40px;
    }
    
    .breadcrumb-title {
        font-size: 2rem;
    }
    
    .breadcrumb-path {
        font-size: 0.875rem;
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ===========================================
   HIDE JOIN BUTTON ON MOBILE
   =========================================== */

@media (max-width: 767px) {
    .btn-join-mobile {
        display: none !important;
    }
}

/* ===========================================
   PAGINATION RESPONSIVE
   =========================================== */

@media (max-width: 640px) {
    .pagination-content {
        gap: 0.125rem;
    }
    
    .pagination-link {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.8125rem;
        padding: 0 0.375rem;
    }
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
    
    .text-center-mobile {
        text-align: center !important;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
    
    .show-desktop {
        display: block !important;
    }
}

/* ===========================================
   TEAM & VOLUNTEER PAGES RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
    .page-section-header p {
        display: none;
    }
    
    .page-section-header {
        margin-bottom: 1.5rem;
    }
    
    .page-hero-section {
        padding: 80px 0;
    }
    
    .page-hero-section h1 {
        font-size: 2.25rem;
    }
    
    .team-section,
    .volunteers-section {
        padding: 60px 0;
    }
    
    .page-join-section {
        padding: 40px 0 80px;
    }
    
    .page-cta-section {
        padding: 60px 0;
    }
}

/* ===========================================
   DONATE PAGE RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
    .donate-section-header {
        margin: 0 auto 40px;
    }
    
    .donate-section-header h2,
    .donate-section-title {
        font-size: 1.75rem;
    }
    
    .donate-section-header p,
    .donate-section-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .why-donate-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .why-donate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop - Perfect Symmetry */
@media (min-width: 1024px) {
    .donation-container {
        align-items: stretch;
        min-height: 600px;
    }
    
    .impact-content-column,
    .donation-form-column {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        width: 50%;
    }
    
    .impact-visual-card,
    .donation-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 50px 40px;
        border-radius: 0.5rem;
    }
    
    /* Force single-row layout for donation amounts */
    .amount-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        gap: 10px;
    }
    
    .amount-option {
        flex: 1;
        min-width: 0;
        max-width: none;
    }
    
    .amount-label {
        padding: 18px 12px;
        font-size: 1.1rem;
        white-space: nowrap;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .donation-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .impact-content-column {
        flex: none;
    }
    
    .donation-form-column {
        flex: none;
    }
    
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .why-donate-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .donate-section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .donate-hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-main-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-trust-badges {
        flex-direction: column;
        gap: 15px;
    }
    
    .trust-badge {
        justify-content: center;
    }
    
    .why-donate-section,
    .impact-stats-section,
    .main-donation-wrapper {
        padding: 50px 0;
    }
    
    .donate-section-title {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* MOBILE STRETCH OPTIMIZATION - 95% WIDTH */
    .main-donation-wrapper .container {
        width: 95% !important;
        max-width: 95% !important;
        padding-left: 2.5% !important;
        padding-right: 2.5% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .donation-container {
        width: 100%;
        padding: 0;
        gap: 40px;
    }
    
    /* PERFECT MIRROR COLUMNS */
    .impact-content-column,
    .donation-form-column {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
    }
    
    /* IDENTICAL CARD STYLING */
    .impact-visual-card,
    .donation-card {
        width: 100% !important;
        padding: 30px 20px !important;
        margin: 0 !important;
        border-radius: 0.5rem !important;
        border: 2px solid #E5E7EB !important;
        max-height: none;
        max-width: none !important;
        overflow-y: visible;
    }
    
    /* FORCE HORIZONTAL ROW - 4 amount labels in single line */
    .amount-grid {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }
    
    .amount-option {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
    }
    
    .amount-label {
        padding: 14px 6px !important;
        font-size: 0.95rem !important;
        white-space: nowrap !important;
        width: 100%;
    }
    
    /* REMOVE WIDTH CONSTRAINTS FROM DONATION FORM */
    .donation-form-section {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }
    
    .donation-form-section .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .donation-form-section .row {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .donation-form-section .col-lg-8 {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        flex: none !important;
    }
    
    /* Offline Donation Mobile */
    .offline-donation-section .container {
        width: 95% !important;
        max-width: 95% !important;
        padding-left: 2.5% !important;
        padding-right: 2.5% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .offline-donation-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        width: 100% !important;
    }
    
    .bank-details-text {
        text-align: center !important;
        width: 100% !important;
        max-width: none !important;
    }
    
    .bank-qr-image {
        margin: 20px auto 0 !important;
        width: auto !important;
    }
}

@media (max-width: 576px) {
    .hero-main-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* MAINTAIN HORIZONTAL ROW */
    .amount-grid {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 5px !important;
        flex-wrap: nowrap !important;
    }
    
    .amount-option {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .amount-label {
        padding: 12px 4px !important;
        font-size: 0.85rem !important;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap !important;
    }
    
    .inline-qr-image {
        max-width: 200px;
    }
    
    .donate-section-title {
        font-size: 1.5rem;
    }
    
    .donate-hero-section {
        padding: 60px 0 40px;
    }
    
    .donation-card,
    .impact-visual-card {
        padding: 25px 15px !important;
    }
    
    .custom-amount-input {
        padding: 18px;
        font-size: 1.1rem;
        min-height: 56px;
    }
}
