/* ==========================================================================
   Miami Gliders - Custom CSS for Bootstrap 5
   Font: Rubik (Google Fonts)
   Clean custom styles only - no third-party builder dependencies
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --mg-primary: #149dcc;
    --mg-primary-hover: #0d6786;
    --mg-dark-blue: #073b4c;
    --mg-medium-blue: #0f7699;
    --mg-card-bg: #efefef;
    --mg-brand-accent: #c21414;
    --mg-white: #ffffff;
    --mg-body-text: #232323;
    --mg-text-secondary: #666;
    --mg-text-muted: #999;
    --mg-transition: 0.3s ease;
}

/* --------------------------------------------------------------------------
   Base / Reset
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--mg-body-text);
    overflow-x: hidden;
}

a {
    color: var(--mg-primary);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--mg-transition);
}

a:hover {
    color: var(--mg-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    word-break: break-word;
}

h1,
.display-1 {
    font-size: 4.25rem;
}

h2,
.display-2 {
    font-size: 2.59rem;
}

h3,
.display-5 {
    font-size: 1.5rem;
}

.display-7 {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
}

.section-title {
    font-size: 2.59rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--mg-dark-blue);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--mg-text-secondary);
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.card-title {
    line-height: 1.2;
}

.mbr-text,
.card-text,
p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 3px;
    border-width: 2px;
    padding: 1rem 3rem;
    margin: 0.4rem 0.8rem;
    transition: all 0.3s ease-in-out;
    text-transform: none;
    letter-spacing: 1px;
    white-space: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
}

.btn-primary,
.btn-mg {
    background-color: var(--mg-primary);
    border-color: var(--mg-primary);
    color: var(--mg-white);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-mg:hover,
.btn-mg:focus,
.btn-mg:active {
    background-color: var(--mg-primary-hover);
    border-color: var(--mg-primary-hover);
    color: var(--mg-white);
    box-shadow: none;
}

.btn-primary:focus-visible,
.btn-mg:focus-visible {
    outline: 2px solid var(--mg-primary);
    outline-offset: 2px;
}

.btn-outline-primary {
    color: var(--mg-primary);
    border-color: var(--mg-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--mg-primary);
    border-color: var(--mg-primary);
    color: var(--mg-white);
}

.btn-outline-white {
    color: var(--mg-white);
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
}

.btn-outline-white:hover,
.btn-outline-white:focus {
    background-color: var(--mg-white);
    border-color: var(--mg-white);
    color: var(--mg-dark-blue);
}

.btn-white {
    background-color: #ffffff !important;
    color: #808080 !important;
    border: 2px solid #ffffff;
}

.btn-white:hover {
    background-color: transparent !important;
    color: var(--mg-white) !important;
    border-color: var(--mg-white);
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.btn-lg {
    padding: 1.2rem 3.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Navbar CTA button */
.btn-nav {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin: 0;
}

/* --------------------------------------------------------------------------
   1. Navbar — Transparent-to-Solid (Homepage)
   -------------------------------------------------------------------------- */
.navbar {
    background-color: transparent;
    box-shadow: none;
    padding: 1rem 0;
    min-height: 77px;
    transition: all 0.4s ease;
    z-index: 1030;
}

.navbar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

/* Scrolled state — solid white */
.navbar.scrolled {
    background-color: var(--mg-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.4rem 0;
}

/* On homepage: white text when transparent */
.navbar .nav-link {
    color: var(--mg-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all var(--mg-transition);
}

.navbar.scrolled .nav-link {
    color: var(--mg-body-text);
    text-shadow: none;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--mg-primary);
}

/* Brand text — always red */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    min-height: 3.8rem;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--mg-brand-accent);
    transition: padding 0.2s;
}

.navbar-brand:hover {
    color: var(--mg-brand-accent);
}

.navbar-brand-text {
    color: var(--mg-brand-accent);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
    padding-right: 2rem;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled .navbar-brand-text {
    text-shadow: none;
}

.navbar-brand img {
    height: 6rem;
    width: auto;
    transition: height 0.25s;
}

.navbar.scrolled .navbar-brand img {
    height: 4.5rem;
}

.navbar-nav .nav-link {
    font-family: 'Rubik', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 0.7rem 0 !important;
    margin: 0 0.85rem !important;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--mg-primary);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Dropdown menus */
.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    font-family: 'Rubik', sans-serif;
    font-size: 0.95rem;
    padding: 0.6rem 1.25rem;
    color: var(--mg-body-text);
    transition: all var(--mg-transition);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: rgba(20, 157, 204, 0.08);
    color: var(--mg-primary);
}

/* Internal pages: navbar is always solid (white bg, shadow) */
body:not(:has(.hero-section)) .navbar,
.navbar.navbar-light.bg-white {
    background-color: var(--mg-white) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
}

body:not(:has(.hero-section)) .navbar .nav-link,
.navbar.navbar-light.bg-white .nav-link {
    color: var(--mg-body-text);
    text-shadow: none;
}

body:not(:has(.hero-section)) .navbar .nav-link:hover,
body:not(:has(.hero-section)) .navbar .nav-link.active,
.navbar.navbar-light.bg-white .nav-link:hover,
.navbar.navbar-light.bg-white .nav-link.active {
    color: var(--mg-primary);
}

body:not(:has(.hero-section)) .navbar .navbar-brand-text,
.navbar.navbar-light.bg-white .navbar-brand-text {
    text-shadow: none;
}

/* Spacer for fixed navbar */
body {
    padding-top: 0;
}

/* --------------------------------------------------------------------------
   2. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    color: var(--mg-white);
    text-align: center;
    overflow: hidden;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Hero typography */
.hero-tagline {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--mg-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    margin: 0;
}

/* Scroll hint arrow */
.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-scroll-hint a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    animation: bounceDown 2s infinite;
    display: block;
    text-decoration: none;
}

.hero-scroll-hint a:hover {
    color: var(--mg-white);
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* Page Hero (internal pages — shorter banner with background image) */
.page-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    color: var(--mg-white);
    overflow: hidden;
    padding: 7rem 0 3.5rem;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.page-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--mg-white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 600px;
    margin: 0;
    font-weight: 300;
}

/* --------------------------------------------------------------------------
   Media Full Page Video
   -------------------------------------------------------------------------- */
.media-fullpage {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #000;
}

.media-fullpage .ratio {
    max-height: calc(100vh - 140px);
}

.media-fullpage p {
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 0;
    font-size: 0.9rem;
}

.media-fullpage p a {
    color: var(--mg-primary);
}

/* Legacy hero typography (for older pages) */
.hero-section h1:not(.hero-title) {
    font-size: 4.25rem;
    font-weight: 700;
    color: var(--mg-white);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-section p:not(.hero-tagline):not(.hero-subtitle) {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--mg-white);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn {
    margin: 0.25rem;
}

/* --------------------------------------------------------------------------
   3. Cards Section (What We Offer)
   -------------------------------------------------------------------------- */
.cards-section,
.section-cards {
    position: relative;
    z-index: 1;
    background-color: var(--mg-card-bg);
    padding: 5rem 0;
}

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--mg-white);
    transition: transform var(--mg-transition), box-shadow var(--mg-transition);
    height: 100%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-img-wrapper {
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-img-top {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    color: var(--mg-dark-blue);
}

.card-text {
    font-size: 0.95rem;
    color: var(--mg-text-secondary);
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--mg-primary);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

.card-link:hover {
    color: var(--mg-primary-hover);
    gap: 0.6rem;
}

.cards-section .card,
.section-cards .card {
    background: var(--mg-white);
}

/* --------------------------------------------------------------------------
   4. Why Miami Gliders Section
   -------------------------------------------------------------------------- */
.why-section {
    background: var(--mg-white);
    padding: 5rem 0;
}

.why-item {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.why-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(20, 157, 204, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mg-primary);
    font-size: 1.4rem;
}

.why-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mg-dark-blue);
    margin-bottom: 0.3rem;
}

.why-item p {
    font-size: 0.95rem;
    color: var(--mg-text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Quick Rates Card */
.quick-rates-card {
    background: var(--mg-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(7, 59, 76, 0.12);
    border: 1px solid rgba(20, 157, 204, 0.1);
}

.quick-rates-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--mg-dark-blue);
    margin-bottom: 0.3rem;
}

.rates-subtitle {
    color: var(--mg-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    background: var(--mg-card-bg);
    transition: background 0.2s;
    position: relative;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rate-row:hover {
    background: #eef7fb;
}

.rate-row.featured {
    background: rgba(20, 157, 204, 0.08);
    border: 2px solid var(--mg-primary);
}

.rate-name {
    font-weight: 500;
    color: var(--mg-dark-blue);
    font-size: 1rem;
}

.rate-name small {
    color: var(--mg-text-muted);
    font-weight: 400;
    margin-left: 0.3rem;
}

.rate-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mg-primary);
}

.rate-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--mg-primary);
    color: var(--mg-white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   4b. Safety Notice Banner
   -------------------------------------------------------------------------- */
.safety-notice {
    padding: 2rem 0;
    background: #fff;
}

.safety-banner {
    background: #fff3cd;
    border: 3px solid #dc3545;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.15);
}

.safety-header {
    background: #dc3545;
    padding: 0.85rem 2rem;
    text-align: center;
    font-family: 'Rubik', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.safety-header i {
    color: #ffc107;
    margin: 0 0.6rem;
    font-size: 1.1rem;
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.safety-items {
    padding: 1.25rem 1.5rem;
}

.safety-items p {
    color: #212529;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.safety-items p:last-child {
    margin-bottom: 0;
}

.safety-items p i {
    color: #dc3545;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.safety-items p strong {
    color: #dc3545;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   5. CTA Band
   -------------------------------------------------------------------------- */
.cta-band {
    background: linear-gradient(135deg, var(--mg-dark-blue) 0%, var(--mg-medium-blue) 100%);
    color: var(--mg-white);
    padding: 4rem 0;
}

.cta-band h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--mg-white);
    margin-bottom: 0.5rem;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   6. Blue Header Sections (internal pages)
   -------------------------------------------------------------------------- */
.section-header-blue,
.header-blue {
    background-color: var(--mg-medium-blue);
    color: var(--mg-white);
    text-align: center;
    padding: 30px 0 0;
}

.section-header-blue h2,
.header-blue h2 {
    font-size: 2.59rem;
    font-weight: 700;
    color: var(--mg-white);
    margin-bottom: 0.5rem;
}

.section-header-blue p,
.header-blue p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blue-section {
    background-color: var(--mg-medium-blue);
    color: var(--mg-white);
    text-align: center;
}

.blue-section h1,
.blue-section h2,
.blue-section h3 {
    color: var(--mg-white);
}

.cta-section {
    background-color: var(--mg-primary);
    color: var(--mg-white);
}

.cta-section h2 {
    color: var(--mg-white);
}

/* --------------------------------------------------------------------------
   7. Pricing Cards
   -------------------------------------------------------------------------- */
.pricing-section {
    padding: 5rem 0;
}

.plan {
    background: var(--mg-white);
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
    transition: all var(--mg-transition);
    height: 100%;
}

.plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.plan.favorite {
    box-shadow: 0 8px 30px rgba(20, 157, 204, 0.25);
    border-color: var(--mg-primary);
    transform: translateY(-6px);
}

.plan.favorite:hover {
    transform: translateY(-9px);
}

.plan-header {
    padding: 2rem 1.5rem 1rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 4.25rem;
    font-weight: 700;
    color: var(--mg-primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.plan-price .period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--mg-text-muted);
}

.plan-badge {
    display: inline-block;
    background: var(--mg-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.plan-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.price-value {
    font-size: 1.6rem;
    vertical-align: super;
    font-weight: 700;
    color: var(--mg-primary);
}

.price-figure {
    font-size: 4.25rem;
    font-weight: 700;
    color: var(--mg-primary);
    line-height: 1.1;
}

.plan-body {
    padding: 1rem 1.5rem 2rem;
}

.plan-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.plan-body ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
    color: var(--mg-body-text);
}

.plan-body ul li:last-child {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   8. Content Sections
   -------------------------------------------------------------------------- */
.content-section {
    background: var(--mg-white);
    padding: 4rem 0;
}

.content-section .content-wrapper {
    max-width: 66.666%;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.59rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--mg-body-text);
}

.text-center-section {
    text-align: center;
    padding: 4rem 0;
}

/* --------------------------------------------------------------------------
   9. Table Sections
   -------------------------------------------------------------------------- */
.table-section {
    padding: 3rem 0;
}

.table {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
}

.table thead th {
    background-color: var(--mg-dark-blue);
    color: var(--mg-white);
    font-weight: 600;
    border: none;
    padding: 0.85rem 1rem;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(0, 0, 0, 0.02);
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-color: #eee;
}

.table-bordered {
    border-color: #eee;
}

/* --------------------------------------------------------------------------
   10. FAQ / Accordion
   -------------------------------------------------------------------------- */
.faq-section {
    padding: 5rem 0;
}

.accordion {
    border: none;
}

.accordion-item {
    border: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 0.75rem;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow var(--mg-transition);
}

.accordion-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}

.accordion-item:first-of-type,
.accordion-item:last-of-type {
    border-radius: 12px !important;
}

.accordion-button {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--mg-dark-blue);
    padding: 1.25rem 1.5rem;
    background-color: var(--mg-white);
    box-shadow: none;
    transition: all var(--mg-transition);
    gap: 0;
}

.accordion-button .faq-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(20, 157, 204, 0.1);
    color: var(--mg-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-right: 1.25rem;
    transition: all var(--mg-transition);
}

.accordion-button:not(.collapsed) {
    background-color: var(--mg-dark-blue);
    color: var(--mg-white);
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.accordion-button:not(.collapsed) .faq-icon {
    background: rgba(255,255,255,0.15);
    color: var(--mg-white);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(20, 157, 204, 0.25);
    border-color: var(--mg-primary);
}

.accordion-button:hover {
    background-color: rgba(20, 157, 204, 0.05);
    color: var(--mg-primary);
}

.accordion-button:hover .faq-icon {
    background: rgba(20, 157, 204, 0.18);
}

.accordion-button:not(.collapsed):hover {
    background-color: var(--mg-primary-hover);
    color: var(--mg-white);
}

.accordion-body {
    font-size: 0.975rem;
    line-height: 1.7;
    padding: 1.25rem 1.5rem 1.5rem 4.75rem;
    color: var(--mg-body-text);
    background: #fafcfd;
}

/* --------------------------------------------------------------------------
   11. Contact Form
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 4rem 0;
}

.contact-section .form-label {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--mg-body-text);
    margin-bottom: 0.4rem;
}

.contact-section .form-control,
.contact-section .form-select {
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    padding: 0.65rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--mg-body-text);
    transition: border-color var(--mg-transition), box-shadow var(--mg-transition);
}

.contact-section .form-control:focus,
.contact-section .form-select:focus {
    border-color: var(--mg-primary);
    box-shadow: 0 0 0 0.2rem rgba(20, 157, 204, 0.2);
}

.contact-section textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.contact-card {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    background: var(--mg-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform var(--mg-transition);
}

.contact-card:hover {
    transform: translateY(-3px);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--mg-primary);
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   11b. Contact Full-Page Background
   -------------------------------------------------------------------------- */
.contact-fullbg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-fullbg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 40, 55, 0.75);
    z-index: 0;
}

.contact-fullbg > * {
    position: relative;
    z-index: 1;
}

.contact-page-title {
    padding: 8rem 0 2rem;
}

.contact-page-title h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--mg-white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.contact-page-title p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 300;
    margin-bottom: 0;
}

/* Glass info cards */
.contact-glass-section {
    padding: 1.5rem 0 3.5rem;
}

.contact-glass-card {
    background: var(--mg-white);
    border: none;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    transition: transform var(--mg-transition), box-shadow var(--mg-transition);
    height: 100%;
}

.contact-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.contact-glass-card i {
    font-size: 2.5rem;
    color: var(--mg-primary);
    display: block;
    margin-bottom: 1rem;
}

.contact-glass-card h4 {
    color: var(--mg-dark-blue);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-glass-card p {
    color: var(--mg-text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

.contact-glass-card a {
    color: var(--mg-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-glass-card a:hover {
    color: var(--mg-primary-hover);
}

/* Transparent ride-request section when on fullbg page */
.contact-fullbg .ride-request-section {
    background: transparent;
    padding-top: 0;
    padding-bottom: 6rem;
}

@media (max-width: 767.98px) {
    .contact-fullbg {
        background-attachment: scroll;
    }

    .contact-page-title {
        padding: 6rem 0 1.5rem;
    }

    .contact-page-title h1 {
        font-size: 2.5rem;
    }

    /* Glass info cards: compact horizontal layout on mobile */
    .contact-glass-section {
        padding: 1rem 0 2rem;
    }

    .contact-glass-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }

    .contact-glass-card i {
        font-size: 1.75rem;
        margin-bottom: 0;
        flex-shrink: 0;
        width: 2rem;
        text-align: center;
    }

    .contact-glass-card h4 {
        font-size: 0.95rem;
        margin-bottom: 0.15rem;
    }

    .contact-glass-card p {
        font-size: 0.9rem;
        margin: 0;
    }

    .contact-glass-card:hover {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   11c. Ride Request Form Card
   -------------------------------------------------------------------------- */
.ride-request-section {
    padding: 4rem 0 5rem;
    background: #eef2f5;
}

.ride-request-card {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(7, 59, 76, 0.15);
}

.ride-request-panel {
    background: linear-gradient(160deg, var(--mg-dark-blue) 0%, var(--mg-medium-blue) 100%);
    color: var(--mg-white);
    padding: 3rem 2.5rem;
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ride-request-plane-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--mg-white);
    margin-bottom: 1.5rem;
}

.ride-request-panel h3 {
    color: var(--mg-white);
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.ride-request-panel > p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.ride-request-details {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.ride-request-details li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ride-request-details li:last-child {
    border-bottom: none;
}

.ride-request-details li i {
    color: var(--mg-primary);
    font-size: 1rem;
    width: 18px;
    flex-shrink: 0;
}

.ride-request-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mg-white);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    transition: all 0.2s;
}

.ride-request-contact a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--mg-white);
    color: var(--mg-white);
}

.ride-request-form-panel {
    background: var(--mg-white);
    padding: 3rem;
    flex: 1;
}

.ride-request-form-panel .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #3a3a3a;
    margin-bottom: 0.35rem;
}

.ride-request-form-panel .required-star {
    color: var(--mg-brand-accent);
}

.ride-request-form-panel .form-control,
.ride-request-form-panel .form-select {
    background-color: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    min-height: unset;
    padding: 0.65rem 0.875rem;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--mg-body-text);
}

.ride-request-form-panel .form-control:focus,
.ride-request-form-panel .form-select:focus {
    border-color: var(--mg-primary);
    box-shadow: 0 0 0 3px rgba(20, 157, 204, 0.12);
    background-color: var(--mg-white);
    outline: none;
}

.ride-request-form-panel .btn-primary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    margin: 0;
    letter-spacing: 0.3px;
}

@media (max-width: 767.98px) {
    .ride-request-card {
        flex-direction: column;
    }

    .ride-request-panel {
        flex: none;
        padding: 2rem 1.75rem;
    }

    .ride-request-form-panel {
        padding: 2rem 1.75rem;
    }
}

/* --------------------------------------------------------------------------
   11d. Soaring Weather / 7-Day Forecast
   -------------------------------------------------------------------------- */
.forecast-section {
    padding: 3rem 0 5rem;
    background: #f0f6fa;
}

.forecast-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.forecast-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--mg-dark-blue);
}

.forecast-location i {
    color: var(--mg-primary);
}

.forecast-updated {
    font-size: 0.8rem;
    color: var(--mg-text-muted);
    margin-left: auto;
}

/* 7-column grid */
.forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.875rem;
    margin-bottom: 3rem;
}

.forecast-card {
    background: var(--mg-white);
    border-radius: 14px;
    padding: 1.4rem 0.875rem 1.25rem;
    text-align: center;
    border-top: 4px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(7, 59, 76, 0.07);
    transition: transform var(--mg-transition), box-shadow var(--mg-transition);
    cursor: default;
}

.forecast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(7, 59, 76, 0.13);
}

.forecast-card.today {
    border-top-color: var(--mg-primary);
}

.forecast-day {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--mg-text-muted);
    margin-bottom: 0.15rem;
}

.forecast-card.today .forecast-day {
    color: var(--mg-primary);
}

.forecast-date {
    font-size: 0.78rem;
    color: #bbb;
    margin-bottom: 0.9rem;
}

.forecast-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.forecast-icon.icon-clear   { color: #f59e0b; }
.forecast-icon.icon-pcloudy { color: #60a5fa; }
.forecast-icon.icon-cloudy  { color: #94a3b8; }
.forecast-icon.icon-fog     { color: #9ca3af; }
.forecast-icon.icon-rain    { color: #3b82f6; }
.forecast-icon.icon-storm   { color: #6b7280; }
.forecast-icon.icon-snow    { color: #93c5fd; }

/* Soaring rating badge */
.soaring-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.soaring-excellent { background: #d1fae5; color: #065f46; }
.soaring-good      { background: #dbeafe; color: #1e40af; }
.soaring-fair      { background: #fef3c7; color: #92400e; }
.soaring-poor      { background: #fee2e2; color: #991b1b; }

/* Temps */
.forecast-temps {
    font-size: 1rem;
    font-weight: 700;
    color: var(--mg-dark-blue);
    margin-bottom: 0.6rem;
}

.forecast-temps .temp-sep {
    color: #ddd;
    font-weight: 300;
    margin: 0 0.15rem;
}

.forecast-temps .temp-low {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--mg-text-muted);
}

/* Wind + Precip */
.forecast-stat {
    font-size: 0.75rem;
    color: var(--mg-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.forecast-stat i {
    font-size: 0.8rem;
    flex-shrink: 0;
}

.forecast-stat .wind-arrow {
    display: inline-block;
    font-size: 0.75rem;
    line-height: 1;
}

/* Thermal lift indicator colors */
.lift-strong { color: #f59e0b; }
.lift-good   { color: #10b981; }
.lift-mod    { color: #60a5fa; }
.lift-weak   { color: #94a3b8; }
.lift-none   { color: #d1d5db; }
.conv-risk   { color: #f59e0b; }

/* Lift key row in legend */
.legend-lift-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.lift-key {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--mg-text-secondary);
    font-weight: 500;
}

.lift-key i {
    font-size: 0.9rem;
}

/* Skeleton loading */
.forecast-skeleton .forecast-card {
    pointer-events: none;
}

.skel {
    background: linear-gradient(90deg, #e9edf0 25%, #f4f6f8 50%, #e9edf0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Error state */
.forecast-error {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--mg-text-muted);
}

.forecast-error i {
    font-size: 2.5rem;
    color: #ddd;
    display: block;
    margin-bottom: 1rem;
}

/* Conditions legend */
.conditions-legend {
    background: var(--mg-white);
    border-radius: 14px;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 12px rgba(7, 59, 76, 0.07);
}

.conditions-legend h5 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--mg-dark-blue);
    margin-bottom: 1.25rem;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.legend-badge {
    flex-shrink: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 0.1rem;
}

.legend-item p {
    font-size: 0.78rem;
    color: var(--mg-text-secondary);
    line-height: 1.4;
    margin: 0;
}

.disclaimer {
    font-size: 0.78rem;
    color: var(--mg-text-muted);
    margin-top: 1.25rem;
    margin-bottom: 0;
    text-align: center;
}

@media (max-width: 1199.98px) {
    .forecast-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767.98px) {
    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .legend-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .conditions-legend {
        padding: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   11e. History Page — Timeline
   -------------------------------------------------------------------------- */
.history-intro {
    background: var(--mg-white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.history-intro p {
    font-size: 1.05rem;
    color: var(--mg-text-secondary);
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto 1rem;
}

.history-stats {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.history-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(20, 157, 204, 0.07);
    color: var(--mg-dark-blue);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(20, 157, 204, 0.2);
}

.history-stat-pill i {
    color: var(--mg-primary);
}

/* Timeline wrapper */
.history-timeline-section {
    background: #f0f6fa;
    padding: 4rem 0 5rem;
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--mg-primary), var(--mg-dark-blue));
    transform: translateX(-50%);
}

/* Individual items — odd = left side, even = right side */
.timeline-item {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 2.75rem);
    margin-bottom: 2.5rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 2.75rem);
}

/* Center dot */
.timeline-marker {
    position: absolute;
    left: 50%;
    top: 1.4rem;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--mg-primary);
    border: 3px solid #f0f6fa;
    box-shadow: 0 0 0 2px var(--mg-primary);
    z-index: 1;
}

/* Card */
.timeline-card {
    background: var(--mg-white);
    border-radius: 12px;
    padding: 1.6rem 1.75rem;
    box-shadow: 0 4px 20px rgba(7, 59, 76, 0.09);
    max-width: 460px;
    width: 100%;
    position: relative;
    transition: transform var(--mg-transition), box-shadow var(--mg-transition);
}

.timeline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(7, 59, 76, 0.14);
}

/* Arrow — points right from left cards */
.timeline-item:nth-child(odd) .timeline-card::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 1.4rem;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--mg-white);
}

/* Arrow — points left from right cards */
.timeline-item:nth-child(even) .timeline-card::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 1.4rem;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--mg-white);
}

.timeline-year {
    display: inline-block;
    background: var(--mg-primary);
    color: var(--mg-white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.22rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.timeline-card p {
    font-size: 0.95rem;
    color: var(--mg-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Mobile — single left-aligned column */
@media (max-width: 767.98px) {
    .timeline::before {
        left: 0.875rem;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 3.25rem;
        padding-right: 0;
    }

    .timeline-marker {
        left: 0.875rem;
    }

    .timeline-item:nth-child(odd) .timeline-card::after,
    .timeline-item:nth-child(even) .timeline-card::after {
        left: -8px;
        right: auto;
        border-left: none;
        border-right: 8px solid var(--mg-white);
    }

    .timeline-card {
        max-width: 100%;
    }
}

/* --------------------------------------------------------------------------
   12. Footer (Redesigned)
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--mg-dark-blue);
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
}


.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 4rem;
    width: auto;
}

.footer-brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--mg-white);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-contact-info a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: color var(--mg-transition);
}

.footer-contact-info a:hover {
    color: var(--mg-white);
}

.footer-contact-info i {
    color: var(--mg-primary);
    font-size: 1rem;
}

.footer-heading {
    color: var(--mg-white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--mg-transition);
}

.footer-links a:hover {
    color: var(--mg-white);
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--mg-white);
    font-size: 1rem;
    transition: all var(--mg-transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--mg-primary);
    color: var(--mg-white);
    transform: translateY(-2px);
}

/* Legacy footer styles (for internal pages) */
.footer h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mg-white);
    margin-bottom: 1.25rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer .footer-tagline {
    color: rgba(255, 255, 255, 0.6);
}

.footer .footer-copyright {
    color: rgba(255, 255, 255, 0.5);
}

.footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color var(--mg-transition);
}

.footer a:hover {
    color: var(--mg-white);
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 0.4rem;
}

.footer ul li a {
    font-size: 1rem;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    opacity: 1;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    margin-top: auto;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
    color: var(--mg-white);
}

/* --------------------------------------------------------------------------
   13. CTA Bar (legacy)
   -------------------------------------------------------------------------- */
.cta-bar {
    background-color: var(--mg-primary);
    color: var(--mg-white);
    padding: 2.5rem 0;
    text-align: center;
}

.cta-bar h2,
.cta-bar h3 {
    color: var(--mg-white);
    margin-bottom: 0.75rem;
}

.cta-bar p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.cta-bar .btn-white {
    background-color: var(--mg-white);
    color: var(--mg-primary);
    border: 2px solid var(--mg-white);
    font-weight: 600;
}

.cta-bar .btn-white:hover {
    background-color: transparent;
    color: var(--mg-white);
}

/* --------------------------------------------------------------------------
   14. Google Maps Embed
   -------------------------------------------------------------------------- */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


.google-map {
    position: relative;
    width: 100%;
    height: 25rem;
    border-radius: 8px;
    overflow: hidden;
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   15. Social Icons (legacy)
   -------------------------------------------------------------------------- */
.social-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--mg-white);
    font-size: 1rem;
    transition: all var(--mg-transition);
}

.social-icons a:hover {
    background: var(--mg-primary);
    color: var(--mg-white);
    transform: translateY(-2px);
}

.footer-bottom .social-icons a {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--mg-white);
    font-size: 1rem;
    margin-left: 0.5rem;
    transition: all var(--mg-transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--mg-primary);
    color: var(--mg-white);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   16. Video Section
   -------------------------------------------------------------------------- */
.video-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.video-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--mg-white);
}

.video-section h2 {
    font-size: 2.59rem;
    color: var(--mg-white);
    margin-bottom: 1.5rem;
}

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--mg-primary);
    color: var(--mg-white);
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--mg-transition);
    border: 3px solid var(--mg-white);
    text-decoration: none;
}

.play-button:hover {
    background: var(--mg-primary-hover);
    color: var(--mg-white);
    transform: scale(1.1);
}

.play-button i {
    margin-left: 4px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   17. Pricing Tables (side-by-side)
   -------------------------------------------------------------------------- */
.pricing-table {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.pricing-table .plan {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-mg-primary {
    color: var(--mg-primary);
}

.text-mg-dark-blue {
    color: var(--mg-dark-blue);
}

.bg-mg-primary {
    background-color: var(--mg-primary);
}

.bg-mg-dark-blue {
    background-color: var(--mg-dark-blue);
}

.bg-mg-medium-blue {
    background-color: var(--mg-medium-blue);
}

.bg-mg-card {
    background-color: var(--mg-card-bg);
}

.section-padding {
    padding: 4rem 0;
}

.section-padding-sm {
    padding: 2.5rem 0;
}

.page-header {
    background-color: var(--mg-medium-blue);
    color: var(--mg-white);
    text-align: center;
    padding: 30px 0 0;
}

.page-header h1 {
    font-size: 4.25rem;
    font-weight: 700;
    color: var(--mg-white);
    margin: 0;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
}

.overlay-dark {
    position: relative;
}

.overlay-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.overlay-dark > * {
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   Form elements (global)
   -------------------------------------------------------------------------- */
.form-control,
.form-select {
    font-family: 'Rubik', sans-serif;
    background-color: #f5f5f5;
    box-shadow: none;
    color: var(--mg-text-secondary);
    line-height: 1.43;
    min-height: 3.5em;
    padding: 1.07em 0.75em;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
}

.form-control:focus,
.form-select:focus {
    border-color: #e8e8e8;
    box-shadow: none;
    background-color: #f5f5f5;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Fluid typography at tablet breakpoint */
@media (max-width: 768px) {
    .display-1,
    .hero-section h1:not(.hero-title),
    .page-header h1 {
        font-size: calc(2.137rem + (4.25 - 2.137) * ((100vw - 20rem) / (48 - 20)));
        line-height: calc(1.4 * (2.137rem + (4.25 - 2.137) * ((100vw - 20rem) / (48 - 20))));
    }

    .hero-title {
        font-size: calc(1.8rem + (4.5 - 1.8) * ((100vw - 20rem) / (48 - 20)));
        line-height: 1.15;
    }

    .display-2,
    h2,
    .section-title {
        font-size: calc(1.557rem + (2.59 - 1.557) * ((100vw - 20rem) / (48 - 20)));
        line-height: calc(1.4 * (1.557rem + (2.59 - 1.557) * ((100vw - 20rem) / (48 - 20))));
    }

    .display-5,
    h3 {
        font-size: calc(1.01rem + (1.5 - 1.01) * ((100vw - 20rem) / (48 - 20)));
        line-height: calc(1.4 * (1.01rem + (1.5 - 1.01) * ((100vw - 20rem) / (48 - 20))));
    }

    .align-left,
    .align-center,
    .align-right {
        text-align: center;
    }
}

@media (max-width: 991.98px) {
    .navbar-brand-text {
        font-size: 1.6rem;
    }

    .navbar-nav .nav-link {
        font-size: 1.05rem;
        margin: 0 !important;
    }

    .plan-price {
        font-size: 3rem;
    }

    .content-section .content-wrapper {
        max-width: 100%;
    }

    .navbar-collapse {
        background: var(--mg-white);
        padding: 1rem;
        max-height: 93.5vh;
        overflow: auto;
        border-radius: 0 0 12px 12px;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
        margin: 0 !important;
        color: var(--mg-body-text) !important;
        text-shadow: none !important;
    }

    .btn-nav {
        margin-top: 0.5rem;
        display: inline-flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-hero h1 {
        font-size: 2.25rem;
    }

    .quick-rates-card {
        margin-top: 2rem;
    }

    .cta-band .text-lg-end {
        margin-top: 1.5rem;
    }

}


@media (max-width: 767.98px) {
    .plan-price,
    .price-figure {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    .video-section {
        min-height: 60vh;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .cards-section,
    .section-cards {
        padding: 3rem 0;
    }

    .why-section {
        padding: 3rem 0;
    }

.footer-brand {
        justify-content: center;
    }

    .footer-contact-info {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-copyright {
        text-align: center;
    }

    .footer .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cta-bar {
        padding: 2rem 1rem;
    }

    .cta-band {
        padding: 3rem 0;
        text-align: center;
    }

    .pricing-table .plan {
        min-width: 100%;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .card-img-top,
    .card-img-wrapper img {
        height: 200px;
    }


    .navbar-collapse {
        max-height: 80vh;
    }

    .navbar-brand-text {
        font-size: 1.3rem;
    }

    .navbar-nav .nav-link {
        font-size: 1rem;
    }

    .rate-row {
        padding: 0.75rem 1rem;
    }

    .rate-price {
        font-size: 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   18. Skip Navigation Link (Accessibility)
   -------------------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    background: var(--mg-dark-blue);
    color: var(--mg-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    color: var(--mg-white);
}

/* --------------------------------------------------------------------------
   19. Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials-section {
    background: var(--mg-card-bg);
    padding: 5rem 0;
}

.testimonial-card {
    background: var(--mg-white);
    border-radius: 16px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 4px 20px rgba(7, 59, 76, 0.07);
    height: 100%;
    transition: transform var(--mg-transition), box-shadow var(--mg-transition);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(7, 59, 76, 0.13);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonial-quote {
    font-size: 1rem;
    color: #444;
    line-height: 1.75;
    font-style: italic;
    flex: 1;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 1.25rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mg-primary), var(--mg-dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mg-white);
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--mg-dark-blue);
    margin-bottom: 0.1rem;
}

.testimonial-location {
    font-size: 0.8rem;
    color: var(--mg-text-muted);
}

/* --------------------------------------------------------------------------
   20. Team / Instructor Bios Section
   -------------------------------------------------------------------------- */
.team-section {
    background: var(--mg-white);
    padding: 5rem 0;
}

.team-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(20, 157, 204, 0.1);
    background: var(--mg-white);
    transition: transform var(--mg-transition), box-shadow var(--mg-transition);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(7, 59, 76, 0.1);
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mg-primary), var(--mg-dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    color: var(--mg-white);
}

.team-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mg-dark-blue);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mg-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.team-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.team-cert-badge {
    background: rgba(20, 157, 204, 0.08);
    color: var(--mg-dark-blue);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    border: 1px solid rgba(20, 157, 204, 0.2);
}

.team-bio {
    font-size: 0.9rem;
    color: var(--mg-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* --------------------------------------------------------------------------
   21. Photo Gallery
   -------------------------------------------------------------------------- */
.gallery-section {
    background: #111;
    padding: 4rem 0 5rem;
}

.gallery-section .section-title {
    color: var(--mg-white);
}

.gallery-section .section-subtitle {
    color: rgba(255, 255, 255, 0.65);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 0.75rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    background: #222;
    aspect-ratio: 4 / 3;
}

.gallery-item.tall {
    grid-row: span 2;
    aspect-ratio: unset;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(0.9);
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(1);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 59, 76, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem 1.25rem;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    color: var(--mg-white);
    font-size: 0.85rem;
    font-weight: 500;
}

.gallery-video-section {
    padding: 4rem 0 2rem;
    background: #111;
}

.gallery-video-section .video-caption {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

.gallery-video-section .video-caption a {
    color: var(--mg-primary);
}

@media (max-width: 767.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    .gallery-item.wide {
        grid-column: span 1;
    }
}

@media (max-width: 575.98px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.wide {
        grid-column: span 1;
    }
}

/* --------------------------------------------------------------------------
   22. Downloads — Card Layout (warm study/parchment theme)
   -------------------------------------------------------------------------- */
.downloads-section {
    background: var(--mg-white);
    padding: 9rem 0 5rem;
}

.downloads-title-block {
    padding-bottom: 1.75rem;
    margin-bottom: 2.25rem;
    border-bottom: 1px solid #e8e8e8;
}

.downloads-title-block h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--mg-dark-blue);
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.downloads-title-block p {
    font-size: 1rem;
    color: var(--mg-text-secondary);
    margin: 0;
}

.downloads-intro {
    background: rgba(20, 157, 204, 0.05);
    border-left: 4px solid var(--mg-primary);
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--mg-body-text);
    font-size: 0.95rem;
    line-height: 1.7;
}

.downloads-intro p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--mg-body-text);
    line-height: 1.7;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--mg-white);
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: border-color var(--mg-transition), box-shadow var(--mg-transition), transform var(--mg-transition);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.download-card:hover {
    border-color: var(--mg-primary);
    box-shadow: 0 4px 16px rgba(20, 157, 204, 0.12);
    transform: translateX(4px);
    color: inherit;
}

.download-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(204, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cc0000;
    font-size: 1.4rem;
    transition: background var(--mg-transition), color var(--mg-transition);
}

.download-card:hover .download-card-icon {
    background: #cc0000;
    color: #fff;
}

.download-card-body {
    flex: 1;
}

.download-card-title {
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--mg-dark-blue);
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

.download-card-type {
    font-size: 0.78rem;
    color: var(--mg-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-card-action {
    flex-shrink: 0;
    color: var(--mg-brand-accent);
    font-size: 1.05rem;
    font-weight: 600;
    transition: transform 0.2s, color 0.2s;
}

.download-card:hover .download-card-action {
    transform: scale(1.15);
    color: #8b0e0e;
}

.download-category-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--mg-primary);
    margin-bottom: 0.85rem;
    margin-top: 2rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e8e8e8;
}

.download-category-label:first-of-type {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   23. Safety Info Card (redesigned — replaces jarring yellow/red banner)
   -------------------------------------------------------------------------- */
.safety-info-card {
    background: var(--mg-white);
    border: 1px solid rgba(20, 157, 204, 0.15);
    border-radius: 16px;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 4px 24px rgba(7, 59, 76, 0.08);
}

.safety-info-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.safety-info-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(20, 157, 204, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mg-primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.safety-info-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mg-dark-blue);
    margin: 0;
}

.safety-info-header p {
    font-size: 0.85rem;
    color: var(--mg-text-muted);
    margin: 0.15rem 0 0;
}

.safety-info-items {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.safety-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: #f8fafb;
    border-radius: 10px;
    border-left: 3px solid var(--mg-primary);
}

.safety-info-item-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(20, 157, 204, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mg-primary);
    font-size: 1rem;
}

.safety-info-item-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.55;
    margin: 0;
}

.safety-info-item-text strong {
    color: var(--mg-dark-blue);
}

@media (max-width: 767.98px) {
    .safety-info-card {
        padding: 1.5rem 1.25rem;
    }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .navbar,
    .footer,
    .cta-bar,
    .cta-band,
    .play-button {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem 0;
        background: none !important;
        color: #000 !important;
    }

    .hero-overlay {
        display: none;
    }

    body {
        color: #000;
        font-size: 12pt;
    }
}

/* --------------------------------------------------------------------------
   Mobile Polish
   -------------------------------------------------------------------------- */

/* --- Navbar: always solid on mobile (no fade-in) --- */
@media (max-width: 767.98px) {
    .navbar {
        background-color: var(--mg-white) !important;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        padding: 0.4rem 0;
    }

    .navbar-brand img {
        height: 4.5rem;
    }

    .navbar .nav-link {
        color: var(--mg-body-text) !important;
        text-shadow: none !important;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        color: var(--mg-primary) !important;
    }
}

/* --- Hero --- */
@media (max-width: 767.98px) {
    .hero-section {
        min-height: 75vh;
        background-attachment: scroll;
        padding-top: 6.5rem;
        align-items: flex-start;
    }

    .hero-tagline {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        min-height: 44px;
        padding: 0.6rem 1rem;
        margin: 0;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    /* Hide bounce arrow — overlaps buttons on small screens */
    .hero-scroll-hint {
        display: none;
    }
}

/* --- Navigation (collapsed menu) --- */
@media (max-width: 991.98px) {
    /* Larger touch targets — min 44px */
    .navbar-collapse .navbar-nav .nav-link {
        padding: 0.85rem 0 !important;
        min-height: 44px;
    }

    /* Visual separator + full-width Book button */
    .navbar-collapse .navbar-nav .nav-item.ms-lg-3 {
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding-top: 0.5rem;
        margin-top: 0.25rem;
    }

    .navbar-collapse .btn-nav {
        display: block;
        width: 100%;
        text-align: center;
        min-height: 44px;
    }

    /* Flatten "More" dropdown — hide toggle, show items inline */
    .more-dropdown > .nav-link {
        display: none !important;
    }

    .more-dropdown .dropdown-menu {
        display: block !important;
        position: static;
        float: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin: 0;
    }

    .more-dropdown .dropdown-menu .dropdown-item {
        padding: 0.85rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        background: transparent;
        color: var(--mg-body-text);
        font-family: 'Rubik', sans-serif;
        font-size: 1rem;
        font-weight: 500;
        border-radius: 0;
    }

    .more-dropdown .dropdown-menu .dropdown-item:hover,
    .more-dropdown .dropdown-menu .dropdown-item:focus {
        background: transparent;
        color: var(--mg-primary);
    }
}

/* --- Service Cards: image on top, standard vertical layout on mobile --- */
@media (max-width: 575.98px) {
    .cards-section .card .card-img-wrapper img,
    .cards-section .card .card-img-top {
        height: 190px;
    }

    .cards-section .card .card-body {
        padding: 1.25rem;
    }
}

/* --- Service Cards: 1-per-row on tablet portrait (avoids orphaned 2+1 layout) --- */
@media (min-width: 768px) and (max-width: 991.98px) {
    .cards-section .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Disable hover lift on touch devices (prevents sticky hover state on tap) */
@media (hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    }
}

/* --- Rates card: keep consistent row layout on mobile --- */
@media (max-width: 575.98px) {
    .rate-badge {
        position: absolute;
        top: -10px;
        right: 12px;
    }

    .rate-row.featured {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
}

/* --- Sticky Book Bar (mobile, index.html only) --- */
#sticky-book-bar {
    display: none; /* hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 2px solid var(--mg-primary);
    padding-bottom: env(safe-area-inset-bottom);
}

#sticky-book-bar.visible {
    transform: translateY(0);
}

#sticky-book-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    min-height: 56px;
    background: var(--mg-dark-blue);
    color: var(--mg-white);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.2s;
}

#sticky-book-bar a:hover {
    background: var(--mg-medium-blue);
    color: var(--mg-white);
}

#sticky-book-bar .sticky-bar-phone {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    font-weight: 400;
}

@media (max-width: 767.98px) {
    #sticky-book-bar {
        display: block;
    }
}

/* --- Footer mobile improvements --- */

/* 44px touch target on all screen sizes for directions button */
.footer-directions-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: all var(--mg-transition);
}

@media (max-width: 767.98px) {
    /* Pill-button style for directions link on mobile */
    .footer-directions-btn {
        display: flex;
        gap: 0.4rem;
        border: 1.5px solid rgba(20, 157, 204, 0.5);
        border-radius: 50px;
        padding: 0.5rem 1.1rem;
        font-size: 0.85rem;
        font-weight: 500;
        margin-top: 0.4rem;
        white-space: nowrap;
    }

    .footer-directions-btn:hover {
        background: rgba(20, 157, 204, 0.12);
        border-color: var(--mg-primary);
        color: var(--mg-white);
    }

    /* Reduce py-5 row padding on mobile */
    .footer .row {
        padding-top: 1.75rem !important;
        padding-bottom: 1.25rem !important;
    }

    /* Tighter heading margin */
    .footer-heading {
        margin-bottom: 0.6rem;
    }

    /* Brand: left-align so logo, name, and contact all share the same edge */
    .footer-brand {
        justify-content: flex-start !important;
    }

    /* Contact info: left-aligned block, tighter spacing */
    .footer-contact-info {
        align-items: flex-start !important;
        gap: 0.3rem;
        margin-top: 0.6rem !important;
    }

    .footer-contact-info a {
        display: flex;
        align-items: center;
    }

    /* Nav columns: shrink from forced 50% to auto-width, sit side by side from left */
    .footer .col-lg-2.col-6 {
        flex: 0 0 auto;
        width: auto;
        min-width: 130px;
    }

    /* Nav links: natural desktop-like tightness */
    .footer-links a {
        display: block;
    }

    .footer-links li {
        margin-bottom: 0.4rem;
    }
}

/* ── Training Steps (icon cards) ───────────────────────────────────────────── */
.training-step {
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.09);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.training-step-header {
    background: linear-gradient(145deg, var(--mg-primary) 0%, var(--mg-dark-blue) 100%);
    padding: 2.25rem 1.5rem 2rem;
    text-align: center;
}
.training-step-num {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.25rem;
}
.training-step-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}
.step-icon-main {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1;
}
.step-icon-single {
    font-size: 3.1rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1;
}
.step-icon-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.step-badge-success {
    background: #22c55e;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}
.step-badge-fly {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    bottom: auto;
    top: 3px;
    right: 3px;
}
.step-badge-tilted {
    transform: rotate(-40deg);
    display: block;
}
.training-step-body {
    padding: 1.75rem 1.75rem 2rem;
    text-align: center;
    flex: 1;
}
.training-step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--mg-dark-blue);
    margin-bottom: 0.75rem;
}
.training-step-text {
    font-size: 0.95rem;
    color: var(--mg-body-text);
    line-height: 1.65;
    margin-bottom: 0;
}
.training-step-text a {
    color: var(--mg-primary);
}

/* ── Pricing card prerequisite row ─────────────────────────────────────────── */
.plan-prereq-item {
    color: var(--mg-primary) !important;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ── FAA Requirements Bar ───────────────────────────────────────────────────── */
.faa-req-section {
    background: var(--mg-dark-blue);
    padding: 3.5rem 0;
}
.faa-req-eyebrow {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 2rem;
}
.req-stat {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    height: 100%;
}
.req-stat:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.req-stat-icon {
    font-size: 1.5rem;
    color: var(--mg-primary);
    display: block;
    margin-bottom: 0.5rem;
}
.req-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.35rem;
}
.req-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.90);
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.req-stat-label span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    opacity: 1;
}
.req-stat-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.55;
    margin-top: 0.6rem;
    margin-bottom: 0;
}
.faa-req-footnote {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.60);
    font-style: italic;
    margin-top: 2rem;
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
}
@media (max-width: 767.98px) {
    .req-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 1.25rem 1rem;
    }
    .req-stat:last-child {
        border-bottom: none;
    }
}

/* ── Soaring Map ────────────────────────────────────────────────────────────── */
.soaring-map-wrapper {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(0,0,0,0.13);
    border: 1px solid rgba(0,0,0,0.07);
}
.soaring-map-wrapper iframe {
    display: block;
    width: 100%;
    height: 520px;
    border: none;
}
@media (max-width: 576px) {
    .soaring-map-wrapper iframe { height: 360px; }
}
.map-layer-tip {
    background: rgba(7, 59, 76, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.28rem 0.7rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

/* ── Good to Know Card ──────────────────────────────────────────────────────── */
.good-to-know-card {
    background: #fff;
    border-radius: 16px;
    border: 2px solid #f5a623;
    box-shadow: 0 6px 32px rgba(0,0,0,0.10);
    padding: 2.5rem 2rem 2rem;
}
.good-to-know-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #dc3545;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed #f5a623;
}
.gtk-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.85rem;
}

/* ── Footer Map ─────────────────────────────────────────────────────────────── */
.footer-map {
    margin-top: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    aspect-ratio: 4 / 3;
}
.footer-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   Mobile Refinements — iPhone 13–16 (375–393 px)
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    /* Downloads: clear navbar without excess whitespace */
    .downloads-section {
        padding: 6rem 0 3rem;
    }

    /* Section rhythm: tighter vertical spacing on small screens */
    .faq-section,
    .pricing-section,
    .testimonials-section,
    .team-section {
        padding: 3.5rem 0;
    }

    .ride-request-section {
        padding: 3.5rem 0;
    }

    .contact-fullbg .ride-request-section {
        padding: 0 0 4rem;
    }

    /* Why-section: reduce stacking gap between columns */
    .why-section .row {
        --bs-gutter-y: 2rem;
    }

    /* Downloads title: prevent wrapping at 375 px */
    .downloads-title-block h1 {
        font-size: 1.9rem;
    }

    /* Navbar brand: smaller logo so brand text is proportionate */
    .navbar-brand img {
        height: 3.5rem;
    }

    .navbar-brand-text {
        font-size: 1.4rem;
    }
}

/* Hide nav icons on desktop top-level links only */
@media (min-width: 992px) {
    .navbar-nav > .nav-item > .nav-link .bi {
        display: none;
    }
}

/* ── Rides page: mobile refinements ───────────────────────────────────────── */
@media (max-width: 767.98px) {
    /* Separate why-items with a light rule so they don't blur together */
    .why-item {
        margin-bottom: 0;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }
    .why-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    /* Testimonials: compact */
    .rides-testimonial-section {
        padding: 2.5rem 0;
    }
    .rides-testimonial-card {
        padding: 1.25rem;
    }
    .rides-testimonial-quote {
        font-size: 2.5rem;
        margin-bottom: 0.4rem;
    }
    .rides-testimonial-text {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    .rides-testimonial-author {
        font-size: 0.85rem;
    }
}

/* ── Pricing card tagline ───────────────────────────────────────────────────── */
.plan-tagline {
    font-size: 0.85rem;
    color: var(--mg-text-secondary);
    font-style: italic;
    margin: 0.75rem 0 0;
    padding: 0 0.5rem;
    line-height: 1.5;
}

/* ── Years-in-business seal (straddles hero/cards boundary) ────────────────── */
.years-seal-wrapper {
    position: relative;
    z-index: 20;
    height: 0;
    overflow: visible;
}
.years-seal {
    position: absolute;
    top: -80px;
    right: 2rem;
    z-index: 20;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    user-select: none;
}
.years-seal-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter:
        drop-shadow(0 -1px 2px rgba(255, 248, 180, 0.80))
        drop-shadow(0 2px 2px rgba(0, 0, 0, 0.65))
        drop-shadow(0 6px 18px rgba(0, 0, 0, 0.70))
        drop-shadow(0 0 12px rgba(220, 170, 40, 0.55));
}
.years-seal-text {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: -26px;
}
.years-seal-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #E2AE18;
    line-height: 1;
    font-family: 'Rubik', sans-serif;
    text-shadow:
        0  1px 0   rgba(255, 248, 160, 0.95),
        0 -1px 1px rgba(30, 12, 0, 0.80),
        1px 0  1px rgba(30, 12, 0, 0.40),
       -1px 0  0   rgba(255, 240, 140, 0.50),
        0  2px 4px rgba(0, 0, 0, 0.40);
}
.years-seal-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1.45;
    margin-top: 0.15rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.80);
}
@media (max-width: 767.98px) {
    .years-seal {
        width: 115px;
        height: 115px;
        top: -57px;
    }
    .years-seal-number { font-size: 1.85rem; }
    .years-seal-label { font-size: 0.48rem; }
    .years-seal-text { margin-top: -10px; }
}

/* ── Rides page testimonials ────────────────────────────────────────────────── */
.rides-testimonial-section {
    background: var(--mg-dark-blue);
    padding: 5rem 0;
}

.tc-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.tc-arrow {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    align-self: center;
}
.tc-arrow:hover {
    border-color: var(--mg-primary);
    background: rgba(20, 157, 204, 0.15);
    color: var(--mg-primary);
}
#testimonialRow {
    transition: opacity 0.35s ease;
}
#testimonialRow.tc-fading {
    opacity: 0;
}
.rides-testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
}
.rides-testimonial-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}
.rides-testimonial-dots .dot.active,
.rides-testimonial-dots .dot:hover {
    background: var(--mg-primary);
}

.rides-testimonial-card {
    background: rgba(255, 255, 255, 0.93);
    border: none;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
}

.rides-testimonial-quote {
    font-size: 4rem;
    line-height: 0.8;
    color: var(--mg-primary);
    font-family: Georgia, serif;
    margin-bottom: 1rem;
}

.rides-testimonial-text {
    color: #232323;
    font-size: 1.05rem;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.rides-testimonial-author {
    color: var(--mg-dark-blue);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.rides-testimonial-source a {
    color: rgba(7, 59, 76, 0.5);
    font-size: 0.78rem;
    text-decoration: none;
}
.rides-testimonial-source a:hover {
    color: var(--mg-primary);
}
