/* ==========================================================================
   PROFILE MEDIA GALLERY (athlete/trainer modals) + FULL-SCREEN LIGHTBOX
   Intro video + up to 4 gallery photos rendered as a responsive, tap-friendly
   grid. Tapping any tile opens a full-screen lightbox. Mobile-friendly.
   ========================================================================== */
.profile-media-gallery {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}
.profile-media-gallery h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
}
.profile-media-gallery h3 i { color: #ffc107; }

.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}
.media-gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.media-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.media-gallery-item img,
.media-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-gallery-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}
.media-gallery-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Full-screen lightbox overlay */
.media-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.media-lightbox.open { display: flex; }
.media-lightbox-content {
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.media-lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

@media (max-width: 600px) {
    .media-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 0.5rem;
    }
    .media-lightbox { padding: 0.75rem; }
    .media-lightbox-close { top: 0.5rem; right: 0.5rem; }
}

/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

/* Header - Using BOBN colors */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

header nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
    font-size: 0.95rem;
    white-space: nowrap;
}

header nav a:hover {
    color: #c8102e;
    transform: translateY(-2px);
}

header nav a .fa-shopping-cart {
    font-size: 1.2rem;
}

/* Logo Styles */
.header-logo {
    max-height: 80px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s;
}

.logo-link:hover .header-logo {
    transform: scale(1.05);
}

.logo-text-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hero Section - BOBN colors */
.hero {
    /* background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.7)), url('assets/bobn_banner_image.png') center/cover no-repeat;
    */
    background:  url('assets/bobn_banner_image.png') center/cover no-repeat;
    background-color: #1a1a2e; 
    color: #fff;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c8102e;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn {
    background: #c8102e;
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #ff4757;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.btn-secondary {
    background: #fff;
    border: 2px solid #c8102e;
    color: #c8102e;
}

.btn-secondary:hover {
    background: #c8102e;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid #c8102e;
    color: #fff;
}

.btn-outline:hover {
    background: #c8102e;
    color: #fff;
}

/* Sections */
section {
    padding: 5rem 0;
    scroll-margin-top: 100px;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a2e;
    font-weight: 700;
}

section > .container > p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.light-section {
    background-color: #f0f4f8;
}

/* Mission Stats */
.mission-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: #c8102e;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-box p {
    color: #666;
    font-weight: 600;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 25px;
    background: #f0f4f8;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: #c8102e;
    color: #fff;
    border-color: #c8102e;
}

/* Athlete Cards */
.athlete-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.athlete-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.athlete-card-image {
    width: 100%;
    height: 360px;
    overflow: hidden;

    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.athlete-image-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.athlete-image-placeholder {
    font-size: 4rem;
    color: #ccc;
}

.athlete-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.athlete-header h3 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.athlete-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.athlete-location i {
    color: #c8102e;
}

.athlete-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.athlete-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-role {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-discipline {
    background: #fff3e0;
    color: #f57c00;
}

.badge-weight {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-level {
    background: #e8f5e9;
    color: #388e3c;
}

.athlete-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    border-top: 1px solid #f0f4f8;
    border-bottom: 1px solid #f0f4f8;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.stat-item i {
    color: #c8102e;
    font-size: 1.2rem;
}

.stat-item span {
    font-weight: 600;
    color: #1a1a2e;
}

.view-profile-btn {
    width: 100%;
    padding: 0.8rem;
    background: #c8102e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.view-profile-btn:hover {
    background: #ff4757;
    transform: translateY(-2px);
}

/* Cards for programs, news, products */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #e0e0e0;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    margin-bottom: 0.5rem;
    color: #1a1a2e;
    font-size: 1.3rem;
}

.card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card .btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    margin-top: auto;
}

/* Product Grid / Merchandise Grid / Athletes & Trainers Grid */
.product-grid,
.merchandise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.merch-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.merch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.merch-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #f0f4f8;
}

.merch-info {
    padding: 1.5rem;
}

.merch-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.merch-category {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f4f8;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.merch-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c8102e;
    margin: 0.5rem 0;
}

.merch-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Events Section */
#events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.event-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.event-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.event-card:hover .event-image-container img {
    transform: scale(1.05);
}

.event-details {
    padding: 1.5rem;
}

.event-details h3 {
    color: #1a1a2e;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.event-meta p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.event-meta i {
    color: #c8102e;
    min-width: 20px;
}

.event-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* News Grid Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 1 !important;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.community-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 1.5rem;
    opacity: 1 !important;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.community-card h3 {
    color: #1a1a2e;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.community-card p {
    color: #666;
    line-height: 1.6;
}

.news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.news-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}

/* Read More Button */
.btn-read-more {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: #c8102e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-read-more:hover {
    background: #ff4757;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.btn-read-more i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(4px);
}

/* Donation Section */
.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.donation-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.donation-card:hover {
    transform: translateY(-5px);
}

.donation-card h3 {
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.donation-amount {
    font-size: 2rem;
    color: #c8102e;
    font-weight: 700;
    margin: 1rem 0;
}

/* Sponsor Cards */
.sponsor-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1 !important;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.sponsor-logo {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.sponsor-card h3 {
    color: #1a1a2e;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.sponsor-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.sponsor-card a {
    color: #c8102e;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.sponsor-card a:hover {
    color: #ff4757;
}

.sponsor-card a i {
    font-size: 0.9rem;
}

/* Social Media Section */
.social-media {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
}

.social-media h2 {
    color: #fff;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.social-icon:hover {
    background: #c8102e;
    color: #fff;
    transform: translateY(-5px);
    border-color: #c8102e;
}

.social-icon i {
    font-size: 2rem;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #fff;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #c8102e;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #c8102e;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    margin: 2rem auto;
    padding: 0;
    border-radius: 15px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    z-index: 10;
    background: none;
    border: none;
    transition: color 0.3s;
}

.close-button:hover {
    color: #1a1a2e;
}

/* Product Modal */
.product-modal-content {
    max-width: 700px;
}

.product-modal-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 2rem;
}

.product-modal-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.product-modal-details h2 {
    margin: 0 0 0.5rem 0;
    color: #1a1a2e;
    font-size: 1.8rem;
}

.product-modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #c8102e;
    margin: 0.5rem 0;
}

.product-option select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-selector button:hover {
    background: #c8102e;
    color: white;
    border-color: #c8102e;
}

/* Cart Modal */
.cart-modal-content {
    max-width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-price {
    color: #c8102e;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c8102e;
}

.form-group.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row;
}

.form-group.checkbox-group input[type="checkbox"] {
    width: auto;
    min-width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.form-group.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;
}

/* Checkout Styles */
.checkout-section {
    margin-bottom: 2rem;
}

.checkout-section h3 {
    color: #1a1a2e;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.checkout-total {
    text-align: right;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #c8102e;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

header nav a[href="#cart"] {
    position: relative;
}

/* Merch "Select Options" Button - Match Live Site */
.btn-add-to-cart {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: #a91527;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-add-to-cart:hover {
    background: #8b1020;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 21, 39, 0.3);
}

.btn-add-to-cart i {
    font-size: 1.1rem;
}

.btn-add-to-cart-modal {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #a91527;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn-add-to-cart-modal:hover {
    background: #8b1020;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(169, 21, 39, 0.4);
}

.btn-add-to-cart-modal i {
    font-size: 1.2rem;
}

/* Athlete Profile Modal - Professional Styling */
.athlete-profile-modal {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    color: white;
    position: relative;
}

.profile-image-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #c8102e;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.profile-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ccc;
    border: 4px solid #c8102e;
}

.profile-header-info {
    flex: 1;
}

.profile-header-info h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-weight: 700;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0;
}

.profile-location i {
    color: #c8102e;
}

.profile-record {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0.5rem 0;
}

.profile-record i {
    color: #ffd700;
}

.profile-record strong {
    color: #ffd700;
    font-size: 1.3rem;
}

.profile-social-media {
    padding: 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.profile-social-media h3 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-social-media h3 i {
    color: #c8102e;
}

.social-links-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.5rem;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.twitter {
    background: #1DA1F2;
}

.social-link.facebook {
    background: #1877F2;
}

.social-link.youtube {
    background: #FF0000;
}

.social-link.tiktok {
    background: #000000;
}

.social-link.linkedin {
    background: #0A66C2;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-details {
    padding: 2rem;
}

.detail-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
}

.detail-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.detail-item i {
    font-size: 1.5rem;
    color: #c8102e;
    min-width: 30px;
}

.detail-item > div {
    flex: 1;
}

.detail-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.detail-value {
    display: block;
    font-size: 1.1rem;
    color: #1a1a2e;
    font-weight: 600;
}

.profile-bio {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.profile-bio h3 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-bio h3 i {
    color: #c8102e;
}

.profile-bio p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1.25rem;
    right: 1rem;
    /* Must sit above every modal/overlay (which can reach ~12000) so the
       hamburger is always tappable — including while the Book Virtual Coaching
       modal is open. */
    z-index: 12002;
    background: #c8102e;
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: #ff4757;
    transform: scale(1.05);
}

.mobile-menu-toggle i {
    font-size: 1.5rem;
}

.mobile-menu-toggle.active {
    background: #1a1a2e;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    /* Above modals so the dimmer covers the booking modal when the menu opens. */
    z-index: 12000;
    pointer-events: none;
}

.mobile-overlay.show {
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    header nav {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    header nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    header {
        position: fixed;
        width: 100%;
        padding: 1rem 0;
    }
    
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
        padding-right: 70px;
    }
    
    .logo-link {
        display: flex;
        align-items: center;
    }
    
    .header-logo {
        max-height: 50px;
    }
    
    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 2000;
        gap: 0;
    }
    
    header nav.mobile-open {
        right: 0;
        pointer-events: auto;
        /* Sit above every modal/overlay (which can reach ~12000) so the slide-in
           menu is visible and tappable even when a modal like "Book Virtual
           Coaching Session" is open. */
        z-index: 12001;
    }
    
    header nav a {
        width: 100%;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        color: #fff !important;
        font-size: 1.1rem;
    }
    
    header nav a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffc107 !important;
        transform: none;
    }
    
    .hero {
        padding: 6rem 1rem 4rem;
        margin-top: 0;
    }

    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }

    section {
        padding: 3rem 0;
    }
    
    section h2 {
        font-size: 2rem;
    }

    .product-grid,
    .merchandise-grid,
    #events-container,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-modal-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .product-modal-image img {
        height: 250px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .cart-actions button {
        width: 100%;
    }
    
    .btn {
        min-height: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem auto;
        padding: 1.5rem;
    }
    
    .close-button {
        font-size: 2.5rem;
        right: 10px;
        top: 10px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .profile-image-large,
    .profile-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .profile-header-info h2 {
        font-size: 1.5rem;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    header nav {
        width: 85%;
        max-width: none;
        padding: 4rem 1.5rem 2rem;
    }
    
    .hero {
        padding: 5rem 1rem 3rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    section h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
    
    .mission-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-box {
        padding: 1.5rem;
    }
    
    .stat-box h3 {
        font-size: 2rem;
    }
    
    .athlete-card-image,
    .event-image-container,
    .news-image {
        height: 220px;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .donation-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .donation-card {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        min-height: 50px;
    }
    
    .cart-item {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .cart-item img {
        width: 70px;
        height: 70px;
    }
    
    .checkout-section {
        margin-bottom: 1.5rem;
    }
    
    .checkout-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .checkout-item img {
        width: 100%;
        height: 150px;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    header nav a,
    .btn,
    .filter-tab,
    .view-profile-btn,
    .btn-add-to-cart,
    .social-icon {
        min-height: 48px;
        min-width: 48px;
    }
    
    .close-button {
        min-width: 48px;
        min-height: 48px;
    }
}

/* ========================================
   PPSV-STYLE CHECKOUT ADDITIONAL STYLES
   ======================================== */

/* Enhanced Modal Animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Enhanced Merch Meta */
.merch-meta {
    font-size: 0.85rem;
    color: #666;
    margin: 0.25rem 0;
}

.merch-meta strong {
    color: #1a1a2e;
}

/* Product Modal Enhanced */
.product-modal-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    color: #666;
}

.product-modal-description {
    color: #666;
    line-height: 1.6;
    margin: 1rem 0;
}

.product-options {
    margin: 1.5rem 0;
}

.product-option {
    margin: 1rem 0;
}

.product-option label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a2e;
}

.product-option select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.product-option select:focus {
    outline: none;
    border-color: #c8102e;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

/* Cart Item Enhancements */
.cart-item-size {
    font-size: 0.85rem;
    color: #666;
    margin: 0.25rem 0;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-actions button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-item-actions button:hover {
    background: #c8102e;
    color: white;
    border-color: #c8102e;
}

.cart-item-actions span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Cart Total Section */
.cart-total-section {
    text-align: right;
    margin-bottom: 1rem;
}

.cart-total-section h3 {
    color: #1a1a2e;
    font-size: 1.5rem;
}

/* Checkout Enhancements */
.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkout-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    align-items: center;
}

.checkout-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.checkout-item h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #1a1a2e;
}

.checkout-item p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

.checkout-total {
    text-align: right;
    padding-top: 1rem;
    border-top: 2px solid #c8102e;
    margin-top: 1rem;
}

.checkout-total h3 {
    margin: 0;
    color: #1a1a2e;
    font-size: 1.5rem;
}

/* Stripe Card Element Styling */
#checkout-card-element,
#ticket-card-element {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: white;
    min-height: 40px;
}

#checkout-card-errors,
#ticket-card-errors {
    color: #fa755a;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #ffc107;
    color: #1a1a2e;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

/* Success Modal Enhancements */
#successModal .modal-content,
#donationSuccessModal .modal-content {
    max-width: 500px;
    text-align: center;
}

/* Loading Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Form Input Focus States */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c8102e;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

/* Disabled Button State */
button:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Cart Empty State */
.cart-items > p {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Mobile Responsive Updates for Checkout */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .checkout-item {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .checkout-item img {
        width: 50px;
        height: 50px;
    }
    
    .checkout-item h4 {
        font-size: 0.85rem;
    }
    
    .checkout-item p {
        font-size: 0.75rem;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item img {
        width: 60px;
        height: 60px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        top: 80px;
    }
}

/* Newsletter Popup Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Newsletter Popup Mobile Responsiveness */
@media (max-width: 768px) {
    .newsletter-popup-content {
        padding: 2rem 1.5rem !important;
        max-width: 95% !important;
    }
    
    .newsletter-popup-content h2 {
        font-size: 1.5rem !important;
    }
    
    .newsletter-popup-content p {
        font-size: 1rem !important;
    }
}

/* ===================================================================== */
/* GLOBAL MOBILE HARDENING                                                */
/* Safety-net rules that keep every public page usable on phones/tablets  */
/* regardless of which page/section is shown. These complement the        */
/* section-specific media queries above.                                  */
/* ===================================================================== */

/* Never allow the page itself to scroll sideways. Wide elements (tables,  */
/* modals) opt back into their own horizontal scrolling where needed.     */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Media never overflows its container. */
img, video, canvas, svg, iframe {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    /* Long words/URLs (emails, hashes) wrap instead of forcing overflow. */
    p, h1, h2, h3, h4, span, a, td, th, li {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* Any table becomes independently scrollable so long rows don't blow
       out the layout on narrow screens. */
    table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Collapse common multi-column grids used across the dashboard,
       profile, progress, training, messaging and join-us pages so their
       content stacks neatly instead of squishing or overflowing. */
    .dashboard-grid,
    .profile-grid,
    .progress-grid,
    .stats-grid,
    .programs-grid,
    .cards-grid,
    .two-column,
    .three-column,
    .form-row,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    /* Chat/messaging layouts that use a sidebar + panel go single column. */
    .messaging-container,
    .chat-layout {
        grid-template-columns: 1fr !important;
        flex-direction: column;
    }

    /* JS-injected modals use INLINE fixed-column grids (e.g.
       "grid-template-columns: 350px 1fr" / "400px 1fr"). Inline styles beat
       normal CSS, so we override them with !important here to stop the modal
       from overflowing the screen on phones. */
    .product-modal-container,
    .event-modal-container {
        grid-template-columns: 1fr !important;
        padding: 1.5rem !important;
    }

    /* The two-up ticket/session option grids also stack on small screens. */
    .event-modal-container [style*="grid-template-columns: 1fr 1fr"],
    .product-modal-container [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }


    /* Any flex button row wraps rather than overflowing. */
    .btn-group,
    .action-buttons,
    .card-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    /* Prevent iOS from auto-zooming when focusing inputs (needs >=16px). */
    input, select, textarea {
        font-size: 16px;
    }

    /* Comfortable base font size on the smallest phones. */
    body { font-size: 15px; }
}



/* =========================================================================
   ASK A QUESTION — button + modal styles
   Used by ask-question.js on the homepage and every /services/*.html page.
   ========================================================================= */

/* Full-width "I Have a Question" button on cards */
.ask-question-btn {
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.7rem 1rem;
    background: transparent;
    color: #c8102e;
    border: 2px solid #c8102e;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ask-question-btn:hover {
    background: linear-gradient(135deg, #c8102e 0%, #ff4757 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(200, 16, 46, 0.3);
}

/* Overlay */
.ask-question-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 11000;
    padding: 1rem;
}

.ask-question-overlay.open {
    display: flex;
    animation: aqFadeIn 0.25s ease;
}

@keyframes aqFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal card */
.ask-question-modal {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    max-height: 90vh;
    overflow-y: auto;
    animation: aqSlideUp 0.3s ease;
}

@keyframes aqSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ask-question-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ask-question-close:hover {
    background: #e0e0e0;
    color: #1a1a2e;
}

.ask-question-heading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    color: #1a1a2e;
    margin: 0 0 0.5rem 0;
}

.ask-question-heading .aq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c8102e 0%, #ff4757 100%);
    color: #fff;
    font-size: 1rem;
}

.ask-question-sub {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
}

.ask-question-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.aq-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.aq-field label {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.9rem;
}

.aq-field .aq-req {
    color: #c8102e;
}

.aq-field input,
.aq-field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.aq-field input:focus,
.aq-field textarea:focus {
    outline: none;
    border-color: #c8102e;
}

.aq-field textarea {
    resize: vertical;
    min-height: 110px;
}

.aq-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.aq-message.aq-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.aq-message.aq-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.ask-question-submit {
    margin-top: 0.5rem;
    padding: 0.95rem 1rem;
    background: linear-gradient(135deg, #c8102e 0%, #ff4757 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ask-question-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(200, 16, 46, 0.35);
}

.ask-question-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mobile */
@media (max-width: 480px) {
    .ask-question-modal {
        padding: 1.5rem;
    }
    .ask-question-heading {
        font-size: 1.3rem;
    }
}
