/* Mobile-First Responsive Design & Touch Interactions */

/* Touch-friendly base styles */
* {
    -webkit-tap-highlight-color: rgba(209, 104, 6, 0.2);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow text selection for content */
p, span, h1, h2, h3, h4, h5, h6, li, td {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Touch-friendly buttons and links */
button, a, .btn, .clickable {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Enhanced touch feedback */
.btn, button, a.btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn:active, button:active, a.btn:active {
    transform: scale(0.98);
    opacity: 0.8;
}

/* Touch ripple effect */
.btn::after, button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn:active::after, button:active::after {
    width: 300px;
    height: 300px;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 8px 12px;
        min-height: 48px;
        min-width: 48px;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:active {
        background: rgba(209, 104, 6, 0.1);
        transform: translateX(10px);
    }
}

/* Enhanced Mobile Header Navigation */
@media (max-width: 767px) {
    /* Language Switcher Mobile Optimization */
    .header-top .dropdown {
        position: static;
    }
    
    .header-top .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        left: 10px !important;
        right: 10px !important;
        width: calc(100% - 20px) !important;
        max-width: none !important;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        z-index: 1060;
    }
    
    /* Logo Scaling for Small Screens */
    .brand-logo-css {
        max-height: 45px;
        width: auto;
    }
    
    /* Enhanced Hamburger Menu */
    .navbar-toggler {
        min-height: 52px;
        min-width: 52px;
        padding: 10px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(209, 104, 6, 0.3);
    }
    
    .navbar-icon {
        width: 32px;
        height: 32px;
    }
    
    /* Mobile Search Optimization */
    .search .form-control {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 12px 45px 12px 16px;
        border-radius: 25px;
        min-height: 48px;
    }
    
    .search .position-absolute {
        padding: 14px;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Offcanvas Mobile Menu Enhancement */
    .offcanvas-end {
        width: min(90vw, 350px);
    }
    
    .offcanvas-header {
        padding: 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .offcanvas-body {
        padding: 0;
    }
    
    .navbar-nav {
        width: 100%;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        padding: 0 1.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 16px 0;
        font-size: 1.1rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        color: #333;
        transition: all 0.2s ease;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: var(--gms-primary);
        background: rgba(209, 104, 6, 0.05);
        padding-left: 8px;
    }
    
    /* Mobile Dropdown Enhancement */
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.02);
        margin: 8px 0;
        border-radius: 8px;
        position: static;
        float: none;
    }
    
    .dropdown-item {
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 6px;
        margin: 2px 8px;
        transition: all 0.2s ease;
    }
    
    .dropdown-item:hover {
        background: var(--gms-primary);
        color: white;
        transform: translateX(4px);
    }
    
    /* Mobile Search in Menu */
    .offcanvas .search {
        margin: 1rem 1.5rem 0.5rem;
    }
    
    .offcanvas .search .form-control {
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* Tablet Hero CTA Optimization */
@media (max-width: 991px) and (min-width: 769px) {
    .hero-cta {
        margin-bottom: 2.5rem;
        margin-top: 1.5rem;
        display: flex;
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-cta .btn {
        flex: 0 0 auto;
        min-width: 160px;
        margin: 0;
        padding: 14px 28px;
    }
    
    .hero-cta .btn-lg {
        padding: 16px 32px;
        min-height: 50px;
    }
}

/* Extra Small Screens (320-375px) */
@media (max-width: 375px) {
    /* Language Switcher for Very Small Screens */
    .header-top {
        padding: 8px 0;
    }
    
    .header-top .dropdown button {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    .flag-emoji {
        font-size: 14px;
    }
    
    /* Logo Further Scaling */
    .brand-logo-css {
        max-height: 40px;
    }
    
    /* Container Padding Adjustment */
    .container-fluid.padding-side {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Navbar Adjustments */
    .navbar {
        padding: 12px 0;
    }
    
    /* Search Input Optimization */
    .search .form-control {
        padding: 10px 40px 10px 14px;
        font-size: 15px;
    }
}

/* Enhanced Mobile Form Design */
.form-control, .form-select {
    min-height: 48px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 8px;
    transition: all 0.3s ease;
    padding: 12px 16px;
}

.form-control:focus, .form-select:focus {
    border-width: 2px;
    box-shadow: 0 0 0 0.25rem rgba(209, 104, 6, 0.15);
}

/* Mobile Form Layout Optimization */
@media (max-width: 768px) {
    /* Force single column on mobile */
    .form-row .col-md-6,
    .form-row .col-md-4,
    .form-row .col-md-8,
    .row .col-md-6,
    .row .col-md-4,
    .row .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Form Card Optimization */
    .card {
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-bottom: 2rem;
    }
    
    .card-header {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 16px 16px 0 0;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    /* Form Section Headers */
    .section-header h4 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    /* Enhanced Form Controls */
    .form-control, .form-select {
        font-size: 16px;
        padding: 14px 16px;
        border-radius: 12px;
        border: 2px solid #e9ecef;
        transition: all 0.2s ease;
    }
    
    .form-control:focus, .form-select:focus {
        border-color: var(--gms-primary);
        box-shadow: 0 0 0 0.2rem rgba(209, 104, 6, 0.1);
        transform: translateY(-1px);
    }
    
    /* Form Labels */
    .form-label {
        font-weight: 600;
        color: #495057;
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }
    
    /* Required Indicator */
    .text-danger {
        color: #dc3545 !important;
        font-weight: bold;
    }
    
    /* File Upload Enhancement */
    .form-control[type="file"] {
        padding: 12px;
        border: 2px dashed #dee2e6;
        background: #f8f9fa;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .form-control[type="file"]:hover {
        border-color: var(--gms-primary);
        background: rgba(209, 104, 6, 0.05);
    }
    
    /* Textarea Optimization */
    textarea.form-control {
        min-height: 120px;
        resize: vertical;
        line-height: 1.5;
    }
    
    /* Select Dropdown Enhancement */
    .form-select {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 16px 12px;
        padding-right: 3rem;
    }
    
    /* Error Message Optimization */
    .invalid-feedback {
        display: block;
        width: 100%;
        margin-top: 0.5rem;
        font-size: 0.875rem;
        color: #dc3545;
        background: #f8d7da;
        padding: 8px 12px;
        border-radius: 6px;
        border-left: 4px solid #dc3545;
    }
    
    .form-control.is-invalid {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.1);
    }
    
    /* Success Message */
    .alert-success {
        border-radius: 12px;
        padding: 1rem 1.5rem;
        margin-bottom: 2rem;
        border: none;
        background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    }
    
    .alert-danger {
        border-radius: 12px;
        padding: 1rem 1.5rem;
        margin-bottom: 2rem;
        border: none;
        background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    }
    
    /* Form Button Enhancement */
    .btn-primary {
        background: linear-gradient(135deg, var(--gms-primary) 0%, var(--gms-gold) 100%);
        border: none;
        border-radius: 12px;
        padding: 14px 32px;
        font-weight: 600;
        font-size: 1rem;
        min-height: 52px;
        width: 100%;
        margin-top: 2rem;
        transition: all 0.2s ease;
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(209, 104, 6, 0.3);
    }
    
    .btn-primary:active {
        transform: translateY(-1px);
    }
    
    /* Form Progress Indicator */
    .form-progress {
        margin-bottom: 2rem;
    }
    
    .progress {
        height: 8px;
        border-radius: 4px;
        background: #e9ecef;
        overflow: hidden;
    }
    
    .progress-bar {
        background: linear-gradient(90deg, var(--gms-primary) 0%, var(--gms-gold) 100%);
        transition: width 0.3s ease;
    }
}

/* Extra Small Mobile Form Adjustments */
@media (max-width: 576px) {
    .card-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .form-control, .form-select {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .section-header h4 {
        font-size: 1.125rem;
    }
}

/* Touch-friendly gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:active {
    transform: scale(0.98);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.gallery-item:active::before {
    opacity: 1;
}

/* Swipe indicators */
.swipe-indicator {
    position: relative;
}

.swipe-indicator::after {
    content: '← Swipe →';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #666;
    opacity: 0.7;
    animation: fadeInOut 3s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Touch-friendly cards */
.card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

.card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced scrolling */
.scroll-container {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Pull-to-refresh styling */
body {
    overscroll-behavior-y: contain;
}

/* Enhanced Mobile Typography & Hero Sections */
@media (max-width: 768px) {
    /* Hero Section Optimization */
    .hero-section {
        min-height: 70vh;
        padding: 3rem 1rem 2rem;
    }
    
    /* Display Typography Mobile Optimization */
    .display-1 {
        font-size: 2.75rem;
        line-height: 1.15;
        font-weight: 400;
    }
    
    .display-2 {
        font-size: 2.5rem;
        line-height: 1.2;
        font-weight: 400;
    }
    
    .display-3 {
        font-size: 2.25rem;
        line-height: 1.25;
        font-weight: 400;
    }
    
    .display-4 {
        font-size: 2rem;
        line-height: 1.3;
        font-weight: 400;
    }
    
    .display-5 {
        font-size: 1.75rem;
        line-height: 1.35;
        font-weight: 400;
    }
    
    /* Hero Typography Specific */
    .hero-title.display-1 {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle.display-5 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    /* Improved Text Readability */
    .lead {
        font-size: 1.125rem;
        line-height: 1.6;
        font-weight: 400;
    }
    
    .hero-description.lead {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    /* Button Typography */
    .btn-lg {
        font-size: 1rem;
        padding: 12px 24px;
        font-weight: 500;
    }
    
    .btn {
        font-size: 0.95rem;
        padding: 10px 20px;
        font-weight: 500;
    }
    
    /* Statistics Section Mobile */
    .stat-number.display-1 {
        font-size: 3rem;
        line-height: 1;
        margin-bottom: 0.5rem;
    }
    
    /* Content Section Typography */
    h1, h2, h3, h4, h5, h6 {
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Paragraph Optimization */
    p {
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    /* Card Title Optimization */
    .card-title {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    /* Hero Image Mobile */
    .hero-section img {
        max-height: 280px;
        width: 100%;
        object-fit: cover;
        margin-top: 2rem;
    }
}

/* Small Mobile Devices (576px and below) */
@media (max-width: 576px) {
    /* Further Typography Reduction */
    .display-1 {
        font-size: 2.25rem;
    }
    
    .display-2 {
        font-size: 2rem;
    }
    
    .display-3 {
        font-size: 1.875rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    /* Hero Specific Small Mobile */
    .hero-title.display-1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle.display-5 {
        font-size: 1.25rem;
        line-height: 1.25;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Statistics Mobile */
    .stat-number.display-1 {
        font-size: 2.5rem;
    }
    
    /* Button Sizes */
    .btn-lg {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    /* Hero Section Compact */
    .hero-section {
        min-height: 60vh;
        padding: 2rem 1rem 1.5rem;
    }
    
    .hero-section img {
        max-height: 220px;
        margin-top: 1.5rem;
    }
    
    /* Hero CTA Small Mobile */
    .hero-cta {
        margin-bottom: 2.5rem !important;
        margin-top: 1.5rem !important;
        gap: 0.75rem;
    }
    
    .hero-cta .btn {
        max-width: 260px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .hero-cta .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
        min-height: 48px;
    }
    
    /* Content Spacing */
    .padding-large {
        padding: 2.5rem 0;
    }
    
    .padding-moderate {
        padding: 2rem 0;
    }
}

/* Touch-friendly filter buttons */
.filter-button {
    margin: 4px;
    border-radius: 25px;
    min-height: 44px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.filter-button:active {
    transform: scale(0.95);
    background: var(--gms-primary);
    color: white;
}

/* Enhanced Content Component Mobile Optimization */
@media (max-width: 768px) {
    /* Board Members Slider Enhancement */
    .board-members-slider .swiper-slide {
        padding: 0 8px;
    }
    
    .board-member-card {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .board-member-card:active {
        transform: scale(0.98);
    }
    
    .leadership-img-container {
        height: 180px !important;
    }
    
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .position-badge {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        color: #666;
    }
    
    .member-actions .btn {
        padding: 8px 12px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .member-country {
        font-size: 0.85rem;
    }
    
    /* Swiper Navigation Mobile */
    .swiper-button-next,
    .swiper-button-prev {
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        color: var(--gms-primary) !important;
        font-size: 18px;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px;
        font-weight: bold;
    }
    
    .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        background: rgba(209, 104, 6, 0.3);
        opacity: 1;
    }
    
    .swiper-pagination-bullet-active {
        background: var(--gms-primary);
        transform: scale(1.2);
    }
    
    /* Gallery Grid Mobile Enhancement */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .gallery-item {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .gallery-item:active {
        transform: scale(0.98);
    }
    
    .gallery-item img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }
    
    /* News Article Cards Mobile */
    .news-card {
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        margin-bottom: 2rem;
        transition: all 0.3s ease;
    }
    
    .news-card:active {
        transform: scale(0.98);
    }
    
    .news-card .card-img-top {
        height: 200px;
        object-fit: cover;
    }
    
    .news-card .card-body {
        padding: 1.5rem;
    }
    
    .news-card .card-title {
        font-size: 1.25rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .news-card .card-text {
        font-size: 0.95rem;
        line-height: 1.5;
        color: #666;
    }
    
    /* FAQ Accordion Mobile */
    .accordion-item {
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        margin-bottom: 1rem;
        overflow: hidden;
    }
    
    .accordion-button {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        background: rgba(0, 0, 0, 0.02);
        border: none;
        border-radius: 12px;
    }
    
    .accordion-button:not(.collapsed) {
        background: var(--gms-primary);
        color: white;
        box-shadow: none;
    }
    
    .accordion-body {
        padding: 1.5rem;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Value Cards Mobile */
    .value-card {
        border-radius: 16px;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        margin-bottom: 2rem;
    }
    
    .value-card:active {
        transform: scale(0.98);
    }
    
    .value-icon {
        margin-bottom: 1.5rem;
    }
    
    .value-icon .rounded-circle {
        width: 70px !important;
        height: 70px !important;
    }
    
    /* Statistics Section Mobile */
    .stats-section .col-md-3 {
        margin-bottom: 2rem;
        padding: 1.5rem;
        background: white;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    /* Hero CTA Section Mobile */
    .hero-cta {
        margin-bottom: 3rem;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        margin: 0;
        padding: 14px 24px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 12px;
        text-align: center;
    }
    
    .hero-cta .btn-lg {
        padding: 16px 32px;
        font-size: 1.1rem;
        min-height: 52px;
    }
    
    /* General CTA Section Mobile */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin: 0;
        padding: 14px 24px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 12px;
    }
}

/* Mobile-optimized spacing */
@media (max-width: 576px) {
    .padding-large {
        padding: 3rem 0;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .display-1, .display-2 {
        font-size: 2rem;
    }
    
    .display-3, .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    /* Small screen card adjustments */
    .board-member-card .card-body {
        padding: 1rem 0.75rem;
    }
    
    .news-card .card-body {
        padding: 1rem;
    }
    
    .value-card {
        padding: 1.5rem 1rem;
    }
    
    /* Gallery grid small mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    /* FAQ small mobile */
    .accordion-button {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1.25rem;
        font-size: 0.9rem;
    }
}

/* Touch-friendly modals */
.modal-content {
    border-radius: 20px 20px 0 0;
    border: none;
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem;
}

.modal-header .btn-close {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
    margin: -12px -12px -12px auto;
}

/* Floating action button */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gms-primary) 0%, var(--gms-gold) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(209, 104, 6, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover, .fab:active {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(209, 104, 6, 0.4);
}

/* Gesture indicators */
.gesture-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    animation: slideUp 0.5s ease-out;
    pointer-events: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Mobile-first responsive images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Touch-friendly tabs */
.nav-tabs .nav-link {
    padding: 12px 20px;
    border: none;
    border-radius: 25px 25px 0 0;
    margin-right: 4px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:active {
    transform: scale(0.98);
    background: var(--gms-primary);
    color: white;
}

/* Improved focus states for accessibility */
button:focus-visible,
a:focus-visible,
.btn:focus-visible,
.form-control:focus-visible {
    outline: 3px solid rgba(209, 104, 6, 0.5);
    outline-offset: 2px;
}

/* Dark mode support for PWA */
@media (prefers-color-scheme: dark) {
    .pwa-install-button {
        background: linear-gradient(135deg, #B8570A 0%, #B8941C 100%);
        color: #f8f9fa;
    }
    
    .offline-container {
        background: linear-gradient(135deg, #B8570A 0%, #B8941C 100%);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .swipe-indicator::after {
        animation: none;
    }
}