/*
  Qi Harmony – Consolidated Stylesheet
  Consolidation of all custom styles with spacing system.
  Structure: Variables > Base > Layout > Nav > Hero > Sections > Benefits >
             Services > About/Premium > Contact > Footer > Animations >
             Responsive > Reduced-motion/Print
*/

/* ========== CSS VARIABLES ========== */
:root {
    --blue-accent: #4a8abf;
    --light-blue: #d3e6f8;
    --heading-font: 'Cormorant Garamond', Georgia, serif;
    --body-font: 'Nunito Sans', Helvetica, Arial, sans-serif;
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-bold: 600;
    --blue-accent-rgb: 74, 138, 191;

    /* Spacing system */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2.5rem;    /* 40px */
    --space-xl: 4rem;      /* 64px */
    --space-2xl: 6rem;     /* 96px */
    --space-3xl: 8rem;     /* 128px */
}

/* ========== BASE ELEMENTS ========== */
html {
    scroll-behavior: auto;
}

body {
    font-family: var(--body-font);
    font-size: 19px;
    font-weight: var(--font-light);
    line-height: 1.6;
    color: #444;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: var(--font-medium);
    color: #333;
}

p {
    font-family: var(--body-font);
    font-weight: var(--font-light);
    line-height: 1.6;
}

a { color: #4a8abf; }
a, button { transition: all 0.3s ease; }
a:hover {
    text-decoration: none;
    color: #3a6fa0;
}
a:focus,
button:focus {
    outline: 2px solid #4a8abf;
    outline-offset: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4a8abf;
    outline-offset: 2px;
}

hr {
    border-color: #d3e6f8;
    box-shadow: 0 1px 3px rgba(129, 180, 235, 0.1);
}

/* ========== LAYOUT UTILITIES ========== */
.container-fluid {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
    width: 100%;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.row + .row {
    margin-top: 0;
}

.row hr {
    margin-top: 2rem;
    margin-bottom: var(--space-md);
}

.tm-wrapper-center {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;
}

/* IE bug fix */
.tm-wrapper-center > * {
    -ms-flex: 0 1 auto;
        -webkit-flex: 0 1 auto;
            flex: 0 1 auto;
}

.tm-skip-nav {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 0.75rem var(--space-md);
    z-index: 10000;
    border-radius: 0 0 0.5rem 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.tm-skip-nav:focus {
    top: 0;
    color: #fff;
    outline: 2px solid #4a8abf;
    outline-offset: 2px;
}

.tm-text-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== NAVIGATION ========== */
.tm-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

.tm-nav.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.tm-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.tm-nav-logo a {
    color: white;
    font-size: 1.8rem;
    font-weight: var(--font-bold);
    text-decoration: none;
    transition: color 0.3s ease;
    z-index: 1002;
    position: relative;
}

.tm-nav-logo span {
    color: white;
    transition: color 0.3s ease;
}

.tm-nav.scrolled .tm-nav-logo a {
    color: #333;
}

.tm-nav.scrolled .tm-nav-logo span {
    color: var(--blue-accent);
}

.tm-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.tm-nav-links li {
    margin: 0 1rem;
}

.tm-nav-links a {
    color: white;
    position: relative;
    transition: all 0.3s ease;
    font-weight: var(--font-medium);
    text-decoration: none;
    padding: 5px 15px;
    white-space: nowrap;
}

.tm-nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--blue-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.tm-nav-links a:hover::after,
.tm-nav-links a.active::after {
    width: 100%;
    opacity: 1;
}

.tm-nav-links a[href="#tm-section-intro"].active::after {
    width: 100%;
    opacity: 1;
    transition: background-color 0.3s ease, width 0.3s ease, opacity 0.3s ease;
}

.tm-nav.scrolled .tm-nav-links a {
    color: #333;
    transition: all 0.3s ease;
}

.tm-nav.scrolled .tm-nav-links a:hover,
.tm-nav.scrolled .tm-nav-links a.active {
    color: var(--blue-accent);
}

/* Language selector */
.tm-nav-lang {
    display: flex;
    align-items: center;
}

.tm-nav-lang a {
    color: white;
    padding: 0 0.3rem;
    transition: color 0.3s ease;
    position: relative;
}

.tm-nav-lang a:hover {
    color: white;
}

.tm-nav-lang a:hover:after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    margin-top: 5px;
}

.tm-nav-lang a.active {
    font-weight: bold;
    color: white;
}

.tm-nav-lang a.active:hover {
    color: white;
}

.tm-nav.scrolled .tm-nav-lang a:hover {
    color: #4a8abf;
}

.tm-nav.scrolled .tm-nav-lang a:hover:after {
    background-color: #4a8abf;
}

.tm-nav.scrolled .tm-nav-lang a.active {
    color: #4a8abf;
    font-weight: bold;
}

.tm-nav.scrolled .tm-nav-lang a.active:hover {
    color: #4a8abf;
}

.tm-nav-lang span {
    color: white;
    transition: color 0.3s ease;
}

.tm-nav.scrolled .tm-nav-lang span {
    color: #666;
}

/* Hamburger toggle */
.tm-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 7px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    width: 30px;
    height: 30px;
}

.tm-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.tm-nav.scrolled .tm-nav-toggle span {
    background-color: #666;
}

.tm-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: #666;
}

.tm-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.tm-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background-color: #666;
}

.tm-nav.scrolled .tm-nav-toggle.active span {
    background-color: #666;
}

/* ========== HERO SECTION ========== */
/* 1. Intro */
.tm-section-intro {
    background-image: url(../img/optimized/hero-bg.jpg);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    min-height: 100vh;
    height: 100vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: relative;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-position 0.3s ease-out;
}

#tm-section-intro * {
    color: white;
}

.tm-section-intro-title {
    font-size: 4.5rem;
    margin-bottom: var(--space-md);
    font-weight: var(--font-medium);
    font-family: var(--heading-font);
    letter-spacing: 1px;
    color: white;
}

.tm-section-intro-text {
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: var(--font-light);
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.tm-section-intro-text i {
    font-size: 1.7rem;
    font-style: italic;
    display: block;
    margin-top: var(--space-xs);
}

.tm-section-intro-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    font-weight: var(--font-light);
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.tm-section-intro-quote {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: var(--font-light);
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-style: italic;
}

/* Hero CTA button */
.tm-btn-white-big {
    font-size: 1.5rem;
    color: white;
    background-color: transparent;
    padding: 0.75rem var(--space-lg);
    border-radius: 0.5rem;
    border: 2px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

#tm-section-intro .tm-btn-white-big {
    color: white;
}

.tm-btn-white-big::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: all 0.6s ease;
    z-index: -1;
}

.tm-btn-white-big:hover,
.tm-btn-white-big:focus {
    color: white;
    background-color: var(--blue-accent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.tm-btn-white-big:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: var(--blue-accent);
    color: white;
}

.tm-btn-white-big:active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--blue-accent);
    z-index: -1;
}

.tm-btn-white-big:hover::before {
    left: 100%;
}

/* IE compatibility for intro */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .tm-section-intro {
        background-attachment: scroll;
    }
}

@supports (-webkit-touch-callout: none) {
    .tm-section-intro {
        background-attachment: scroll;
    }
}

/* ========== GENERIC SECTION STYLES ========== */
/* 4. icon and text 4 boxes */
.tm-section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.tm-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.tm-section-title {
    font-size: 2.6rem;
    font-weight: var(--font-medium);
    font-family: var(--heading-font);
    text-align: center;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
    color: #333;
    position: relative;
    display: inline-block;
}

.tm-section-title::after {
    display: none;
}

.tm-section-title:hover::after {
    width: 0;
}

.tm-section-subtitle {
    font-size: 1.4rem;
    font-weight: var(--font-light);
    line-height: 1.6;
    text-align: center;
    padding: 0;
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    color: #555;
}

.tm-blue-bg-row {
    background-color: #b9d6f4;
    position: relative;
}

.tm-blue-bg-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 8%),
                      radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 8%);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Section row resets */
#what-is-pangu.row,
#benefits.row,
#about-instructor.row,
#classes.row,
#contact.row {
    margin-top: 0;
    margin-bottom: 0;
}

/* ========== 2. CAROUSEL ========== */
.tm-carousel {
    max-width: 950px;
    margin: 5rem auto;
    padding-bottom: 3rem;
    text-align: center;
}

.tm-carousel-item-title {
    color: #4a8abf;
    font-size: 2.1rem;
    font-weight: 300;
    margin-bottom: 3rem;
}

.tm-carousel-item-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #555;
    font-weight: 300;
}

.carousel-indicators {
    bottom: 0;
    margin-bottom: 0;
}

.carousel-indicators .active {
    background-color: #4a8abf;
    margin: 1px;
}

.carousel-indicators li {
    background-color: rgb(205, 215, 226);
    border-color: rgb(205, 215, 226);
}

.carousel-indicators .active,
.carousel-indicators li {
    width: 20px;
    height: 20px;
    margin-left: var(--space-xs);
    margin-right: var(--space-xs);
}

/* ========== 3. IMAGE AND TEXT 2-COLUMN BLOCK ========== */
.tm-2-col-img-text {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.tm-2-col-img { padding: 0; }

.tm-img-container {
    margin-top: 15px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.first-img-container {
    margin-top: 0;
}

.first-img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.first-img-container:hover .first-img {
    transform: scale(1.02);
    z-index: 1;
}

.tm-second-img {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    object-fit: cover;
    height: 400px;
    transition: transform 0.6s ease;
    display: block;
}

.tm-third-img {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    object-fit: cover;
    height: 470px;
    transition: transform 0.6s ease;
    display: block;
}

.second-img-container:hover .tm-second-img {
    transform: scale(1.02);
    z-index: 1;
}

.third-img-container:hover .tm-third-img {
    transform: scale(1.02);
    z-index: 1;
}

.tm-2-col-img-lg-right .tm-2-col-img {
    -webkit-order: 2;
    -ms-flex-order: 2;
    order: 2;
}

.tm-2-col-img-lg-right .tm-2-col-text {
    -webkit-order: 1;
    -ms-flex-order: 1;
    order: 1;
}

.tm-2-col-text {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding-left: 8%;
    padding-right: 8%;
}

.tm-2-col-text-title {
    font-size: 1.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    color: #4a8abf;
}

.tm-2-col-text-description {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #555;
}

.tm-bordered-btn {
    background-color: transparent;
    border: 2px solid #4a8abf;
    border-radius: var(--space-lg);
    color: #4a8abf;
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 400;
    padding: 0.8rem 3.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tm-bordered-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: all 0.6s ease;
    z-index: -1;
}

.tm-bordered-btn:hover,
.tm-bordered-btn:focus {
    color: white;
    background-color: #4a8abf;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tm-bordered-btn:hover::before {
    left: 100%;
}

/* Ensure modal buttons with small-btn class maintain consistent size */
.modal-footer .tm-bordered-btn.small-btn,
.session-list .tm-bordered-btn.small-btn,
#sessionList .tm-bordered-btn.small-btn {
    font-size: 15px !important;
    padding: 8px 30px !important;
    margin: 0 !important;
}

.tm-2-col-img-lg-left img {
    margin-right: 0;
    margin-left: auto;
}

/* Session type headings */
.tm-session-type {
    display: inline-block;
    font-weight: 600;
    color: #4a8abf;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* ========== MY APPROACH SECTION ========== */
#what-is-pangu .tm-section-title {
    color: #4a8abf;
}

#what-is-pangu:not(.tm-blue-bg-row) .tm-section-title {
    color: #4a8abf;
}

#what-is-pangu:not(.tm-blue-bg-row) .tm-section-subtitle strong {
    color: #4a8abf;
}

#what-is-pangu.tm-blue-bg-row .tm-section-subtitle strong {
    color: #555;
    font-weight: var(--font-bold);
}

#what-is-pangu.tm-blue-bg-row {
    position: relative;
    padding-top: var(--space-sm);
    padding-bottom: 3rem;
}

#what-is-pangu.tm-blue-bg-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(185, 214, 244, 0.1);
}

#what-is-pangu.tm-blue-bg-row section {
    position: relative;
    z-index: 1;
}

#what-is-pangu.tm-blue-bg-row .tm-section-title,
#what-is-pangu.tm-blue-bg-row .tm-section-subtitle {
    color: #444;
    margin-bottom: 2rem;
}

/* My Approach text container (for upcoming HTML workstreams) */
.tm-approach-text-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.tm-approach-text-container p {
    margin-bottom: var(--space-md);
    font-size: 1.15rem;
    color: #444;
    line-height: 1.7;
}

.tm-approach-text-container p:last-child {
    margin-bottom: 0;
}

/* Approach row */
.tm-approach-row {
    margin-top: 30px;
    padding: 0 15px;
}

.tm-approach-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    overflow: hidden;
}

.tm-approach-content {
    padding: 30px;
}

.tm-approach-title {
    color: #333;
    font-size: 2rem;
    margin-bottom: 20px;
}

.tm-approach-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tm-approach-image {
    padding: 0;
}

.tm-approach-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* ========== BENEFITS SECTION ========== */
.tm-section-benefits {
    position: relative;
    background-image: url(../img/optimized/beach-arms-wide.jpg);
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow: hidden;
}

.tm-section-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(185, 214, 244, 0.2);
    z-index: 1;
}

.tm-section-benefits section {
    position: relative;
    z-index: 2;
}

.tm-section-benefits .text-xs-center {
    background-color: rgba(211, 230, 248, 0.85);
    padding: var(--space-md);
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tm-section-benefits .tm-section-subtitle {
    margin-bottom: 0;
}

/* Safari fix for benefits parallax */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .tm-section-benefits {
            background-attachment: scroll;
        }
    }
}

/* Icon text boxes */
.tm-icon-text-box {
    background-color: #d3e6f8;
    border: 1px solid var(--blue-accent);
    border-radius: 5px;
    padding: 3rem;
    max-width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.tm-icon-text-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.tm-icon-text-box > .fa,
.tm-icon-text-box > .fa-regular {
    color: #4a8abf;
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
    font-size: 4rem;
    transition: transform 0.4s ease, color 0.4s ease;
}

.tm-icon-text-box i {
    transition: transform 0.4s ease, color 0.4s ease;
}

.tm-icon-text-box:hover i {
    transform: scale(1.2);
    color: var(--blue-accent);
}

.tm-icon-text-boxes-container {
    max-width: 1760px;
    margin-left: auto;
    margin-right: auto;
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
}

.tm-icon-text-boxes-container > div {
    display: flex;
    margin-bottom: 30px;
}

.tm-icon-text-box-title {
    font-size: 1.6rem;
    font-weight: var(--font-medium);
    font-family: var(--heading-font);
    margin-bottom: 1.4rem;
    color: #444;
    text-align: center;
    width: 100%;
}

.tm-icon-text-box-description {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
    color: #555;
    text-align: center;
    width: 100%;
}

/* ========== SERVICE CARDS ========== */
.tm-services-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    padding: 0.5rem 15px var(--space-sm);
}

.tm-service-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tm-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tm-service-card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tm-service-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--blue-accent-rgb), 0.1) 0%, rgba(var(--blue-accent-rgb), 0) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tm-service-card:hover .tm-service-card-header::before {
    opacity: 1;
}

.tm-service-card-header h3 {
    color: #444;
    font-size: 1.8rem;
    font-family: var(--heading-font);
    font-weight: var(--font-medium);
    margin: 0 0 12px;
    line-height: 1.2;
}

.tm-price {
    background-color: #4a8abf;
    border-radius: 30px;
    color: white;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 5px 15px;
}

.tm-service-card-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.tm-service-description {
    color: #555;
    font-size: 1rem;
    margin-bottom: 15px;
}

.tm-service-features {
    list-style-type: none;
    margin: 0 0 15px;
    padding: 0;
    flex: 1;
}

.tm-service-features li {
    color: #555;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.tm-service-features li:before {
    content: "\2713";
    color: #4a8abf;
    font-weight: bold;
    left: 0;
    position: absolute;
}

.tm-service-format {
    border-top: 1px solid #e9ecef;
    color: #666;
    font-size: 0.9rem;
    margin-top: 15px;
    padding-top: 15px;
}

.tm-service-format span {
    color: #444;
    font-weight: 600;
}

.tm-service-card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 20px;
    text-align: center;
}

.tm-service-card-footer .tm-bordered-btn {
    display: inline-block;
    min-width: 160px;
    text-align: center;
    padding: 0.6rem 2.2rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin: var(--space-xs) 0;
}

/* Featured service card (Executive Mentoring) */
.tm-featured-service {
    background: linear-gradient(135deg, #3d7aad 0%, #4a8abf 100%);
    border: none;
    box-shadow: 0 10px 30px rgba(var(--blue-accent-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.tm-featured-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0%, transparent 50%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.tm-featured-service .tm-service-card-header {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tm-featured-service .tm-service-card-header h3 {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.tm-featured-service .tm-price {
    background-color: white;
    color: var(--blue-accent);
    font-weight: var(--font-bold);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.tm-featured-service .tm-service-card-body {
    color: white;
}

.tm-featured-service .tm-service-description {
    color: #ffffff;
}

.tm-featured-service .tm-service-features li {
    color: #ffffff;
}

.tm-featured-service .tm-service-features li:before {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.tm-featured-service .tm-service-features li strong {
    color: white;
}

.tm-featured-service .tm-service-format {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.tm-featured-service .tm-service-format span {
    color: white;
}

.tm-featured-service .tm-service-card-footer {
    background-color: rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tm-featured-service .tm-bordered-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.tm-featured-service .tm-bordered-btn:hover,
.tm-featured-service .tm-bordered-btn:focus {
    background-color: white;
    color: var(--blue-accent);
}

@keyframes featuredGlow {
    0% {
        box-shadow: 0 10px 30px rgba(var(--blue-accent-rgb), 0.3);
    }
    50% {
        box-shadow: 0 15px 40px rgba(var(--blue-accent-rgb), 0.5);
    }
    100% {
        box-shadow: 0 10px 30px rgba(var(--blue-accent-rgb), 0.3);
    }
}

.tm-featured-service:hover {
    animation: featuredGlow 2s infinite ease-in-out;
    transform: translateY(-10px);
}

/* Classes section */
#classes {
    background-color: #f5f9fd;
    position: relative;
    padding-top: var(--space-sm);
    padding-bottom: 3rem;
}

#classes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(185, 214, 244, 0.1);
}

#classes section {
    position: relative;
    z-index: 1;
}

#classes .tm-section {
    padding: 0;
}

#classes .tm-section-title,
#classes .tm-section-subtitle {
    color: #444;
    margin-bottom: 2rem;
}

#classes .tm-section-subtitle {
    color: #555;
    margin-bottom: var(--space-sm);
}

#classes .col-xs-12 {
    padding: 0;
}

#classes .tm-2-col-img-text {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#classes .tm-2-col-img {
    flex: 1;
    padding: 0;
    margin: 0;
    height: 400px;
}

#classes .tm-2-col-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#classes .tm-2-col-text {
    flex: 1;
    padding: 2rem;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
}

#classes .tm-2-col-text-title {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

#classes .tm-2-col-text-description {
    display: inline-block;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

#classes .tm-bordered-btn {
    display: inline-block;
}

#about-instructor .tm-section,
#classes .tm-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

#about-instructor .tm-section-subtitle,
#classes .tm-section-subtitle {
    margin-bottom: 3rem;
}

/* ========== ABOUT / PREMIUM SECTION ========== */
#about-instructor .tm-section-title,
#about-instructor .tm-section-subtitle {
    color: #333;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#about-instructor .tm-section-title {
    color: #4a8abf;
}

#about-instructor .tm-section-subtitle {
    color: #555;
    margin-bottom: var(--space-xs);
}

/* Journey container */
.tm-journey-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1400px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.tm-journey-image-container {
    flex: 1 1 400px;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-journey-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
    display: block;
}

.tm-journey-image-container:hover .tm-journey-image {
    transform: scale(1.02);
}

.tm-journey-content {
    flex: 1 1 600px;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
}

.tm-journey-title {
    font-size: 2.2rem;
    font-weight: 400;
    color: #4a8abf;
    margin-bottom: 2rem;
    position: relative;
}

.tm-journey-title:after {
    display: none;
}

.tm-journey-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

.tm-journey-text p {
    margin-bottom: var(--space-md);
}

.tm-journey-text p:last-child {
    margin-bottom: 0;
}

/* Premium container */
.tm-premium-container {
    max-width: 1400px;
    margin: 0 auto var(--space-sm);
    padding: 0 var(--space-md);
}

.tm-premium-header {
    text-align: center;
    margin-bottom: 0.25rem;
    position: relative;
}

.tm-premium-title {
    font-size: 2.2rem;
    font-weight: var(--font-medium);
    font-family: var(--heading-font);
    color: #4a8abf;
    margin-bottom: 0.25rem;
    position: relative;
    display: inline-block;
}

.tm-premium-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.tm-premium-image-wrapper {
    position: relative;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.tm-premium-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    border-radius: 4px;
}

.tm-premium-image-wrapper:hover .tm-premium-image {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.tm-premium-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tm-premium-text p {
    margin-bottom: var(--space-md);
}

.tm-premium-text p:last-child {
    margin-bottom: 0;
}

/* ========== CONTACT SECTION ========== */
/* 5. Contact */
.tm-section-contact {
    margin: 0 auto;
    max-width: 1500px;
}

#contact {
    background-color: #f5f9fd;
    position: relative;
    padding-top: var(--space-sm);
    padding-bottom: 3rem;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f9fd;
    z-index: -1;
}

#contact section {
    position: relative;
    background-color: #f5f9fd;
    padding: 7%;
}

#contact .tm-section {
    background-color: #f5f9fd;
}

#contact .tm-section-title {
    color: #4a8abf;
}

#contact .tm-section-subtitle {
    margin-top: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-left: 0;
    padding-right: 0;
}

#contact.row .tm-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.form-control {
    padding: .75rem 1.75rem;
    font-size: 1.2rem;
    border-radius: var(--space-lg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-control:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--blue-accent);
}

textarea.form-control {
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
}

.tm-form-group-left { padding-left: 0; }
.tm-form-group-right { padding-right: 0; }
.tm-contact-right { padding-left: 3%; }

.tm-contact-title {
    font-size: 1.6rem;
    font-family: var(--heading-font);
    font-weight: var(--font-medium);
}

.tm-contact-info {
    line-height: 1.8;
    margin-bottom: 5%;
    color: #555;
}

.tm-social-icons-container { margin-top: 20px; }

.tm-social-icon-link {
    background-color: transparent;
    color: #4a8abf;
    padding: 7px;
    border: 1px solid #4a8abf;
    border-radius: 50%;
    min-width: 44px;
    min-height: 44px;
    margin-right: 2%;
    width: 40px;
    height: 40px;
    display: inline-block;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.tm-social-icon-link:last-child { margin-right: 0; }

.tm-social-icon-link:hover,
.tm-social-icon-link:focus {
    transform: translateY(-3px) scale(1.1);
}

/* Alert messages */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* ========== FOOTER ========== */
.tm-copyright-text {
    color: #777;
    font-size: 1.3rem;
    margin: 0 0 2rem 0;
}

/* Footer (for upcoming HTML workstreams) */
.tm-footer-content {
    padding: var(--space-lg) 0;
    text-align: center;
}

.tm-footer-col {
    margin-bottom: var(--space-md);
}

.tm-footer-brand {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: var(--font-medium);
    color: #333;
    margin-bottom: var(--space-xs);
}

.tm-footer-text {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: var(--space-xs);
}

.tm-footer-text a {
    color: var(--blue-accent);
}

/* ========== ANIMATIONS ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.slide-in-visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.scale-in-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger effect for journey container children */
.tm-journey-container.fade-in-visible .tm-journey-title,
.tm-journey-container.fade-in-visible .tm-journey-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.tm-journey-container.fade-in-visible .tm-journey-text {
    transition-delay: 0.4s;
}

/* ========== RESPONSIVE – 1600px ========== */
@media (max-width: 1600px) {
    .tm-2-col-text {
        padding-left: 5%;
        padding-right: 5%;
    }
}

/* ========== RESPONSIVE – 1320px ========== */
@media (max-width: 1320px) {
    .tm-2-col-text {
        padding-left: 3%;
        padding-right: 3%;
    }

    .tm-2-col-text-description {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 4%;
    }

    .tm-bordered-btn {
        font-size: 1.2rem;
        padding: 0.5rem var(--space-lg);
    }
}

/* ========== RESPONSIVE – 1200px ========== */
@media (max-width: 1200px) {
    .tm-nav-links li {
        margin: 0 0.7rem;
    }
}

/* ========== RESPONSIVE – min 1200px ========== */
@media (min-width: 1200px) {
    .tm-journey-container {
        min-height: 800px;
    }

    .tm-journey-image-container {
        flex: 1 1 45%;
        min-height: 800px;
        padding: 2rem;
    }

    .tm-journey-content {
        flex: 1 1 55%;
    }

    .tm-journey-text {
        font-size: 1.3rem;
    }

    .tm-premium-content {
        grid-template-columns: 350px 1fr;
        max-width: 1200px;
    }

    .tm-premium-title {
        font-size: 2rem;
        color: #4a8abf;
    }

    .tm-premium-text {
        font-size: 1.3rem;
        max-width: 800px;
    }
}

/* ========== RESPONSIVE – 1199px ========== */
@media (max-width: 1199px) {
    .tm-icon-text-box {
        margin: 0 auto 30px;
    }

    .tm-form-group-right {
        padding-left: 0;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .tm-icon-text-box {
        padding: 10%;
    }
}

/* ========== RESPONSIVE – min 992px ========== */
@media (min-width: 992px) {
    .tm-services-row {
        display: flex;
        flex-wrap: wrap;
    }

    .tm-services-row > div {
        display: flex;
    }

    .tm-service-card {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    #about-instructor .tm-section {
        text-align: left;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .tm-premium-content {
        grid-template-columns: minmax(300px, 1fr) 2fr;
        gap: 2rem;
        align-items: flex-start;
        max-width: 1200px;
        margin: 0 auto;
    }

    .tm-premium-image-wrapper {
        position: relative;
        align-self: flex-start;
        max-width: 400px;
    }

    .tm-premium-text {
        font-size: 1.25rem;
        max-width: 800px;
        margin-left: 0;
        padding-right: 2rem;
    }

    #what-is-pangu .tm-section-subtitle {
        padding: 0 20px;
    }

    .tm-premium-text {
        max-width: 800px;
        padding: 0 20px;
        text-align: left;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .tm-journey-image-container {
        min-height: 700px;
        padding: 2rem;
    }
}

/* ========== RESPONSIVE – 991px ========== */
@media (max-width: 991px) {
    .tm-section {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }

    .tm-section-title {
        margin-bottom: var(--space-sm);
    }

    .tm-section-subtitle {
        margin-bottom: 2rem;
    }

    .tm-icon-text-boxes-container {
        max-width: 800px;
    }

    .tm-nav-wrapper {
        padding: 0.8rem 5%;
    }

    .tm-nav-toggle {
        display: block;
        position: relative;
        z-index: 1002;
        background: transparent;
        border: none;
        cursor: pointer;
        width: 44px;
        height: 44px;
        padding: 7px;
    }

    .tm-nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 5rem 0 2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        justify-content: center;
        z-index: 1001;
        overflow-y: auto;
    }

    .tm-nav-links.active {
        display: flex !important;
    }

    .tm-nav-links li {
        margin: 0.8rem 0;
    }

    .tm-nav-links a {
        color: #333 !important;
        font-size: 1.2rem;
        padding: 0.8rem 0;
        display: inline-block;
        width: 100%;
    }

    .tm-nav-links a::after {
        bottom: -2px;
    }

    .tm-premium-header {
        text-align: center;
    }

    .tm-2-col-img-text {
        display: block;
    }

    .tm-2-col-img img {
        margin: 0 auto;
    }

    .tm-img-container {
        margin-top: 15px;
        max-width: 100%;
    }

    .tm-second-img,
    .tm-third-img {
        height: 300px;
    }

    .tm-2-col-text {
        padding-top: 5%;
        padding-bottom: 5%;
    }

    .tm-2-col-text-title {
        font-size: 1.8rem;
        margin-bottom: var(--space-sm);
    }

    .tm-2-col-text-description {
        font-size: 1.4rem;
        margin-bottom: var(--space-md);
    }

    .tm-bordered-btn {
        font-size: 1.3rem;
        padding: 0.5rem 1.8rem;
    }

    .tm-contact-right {
        padding-left: .9375rem;
        margin-top: 2rem;
    }

    .tm-contact-info {
        margin-bottom: 2%;
    }

    .tm-service-card {
        margin-bottom: 2rem;
    }

    .tm-services-row {
        margin-left: 0;
        margin-right: 0;
    }

    .container-fluid {
        padding-left: 0;
        padding-right: 0;
        overflow-x: hidden;
    }

    .tm-approach-image {
        height: 300px;
        padding: 0;
    }

    #classes .tm-2-col-img-text {
        flex-direction: column;
        margin-bottom: 0;
    }

    #classes .tm-2-col-img,
    #classes .tm-2-col-text {
        width: 100%;
    }

    #classes .tm-2-col-img {
        height: 300px;
    }

    #about-instructor .tm-section {
        text-align: center;
    }

    .tm-section-intro,
    .tm-section-benefits {
        background-attachment: scroll;
    }

    .tm-section-benefits {
        background-image: url(../img/optimized/beach-arms-wide-medium.jpg);
        background-position: 50% 0;
    }

    .tm-premium-container {
        padding: 0 2rem;
    }

    .tm-premium-title {
        font-size: 1.7rem;
        color: #4a8abf;
    }

    .tm-premium-image-wrapper {
        margin-bottom: var(--space-xs);
    }

    .tm-premium-content {
        gap: var(--space-sm);
    }

    .tm-journey-container {
        flex-direction: column;
    }

    .tm-journey-image-container {
        height: auto;
        min-height: 450px;
        flex: none;
        width: 100%;
        padding: 2rem;
        padding-bottom: 0.5rem;
    }

    .tm-journey-image {
        max-height: 600px;
    }

    .tm-journey-content {
        padding: 0.75rem var(--space-lg);
    }

    .tm-journey-title {
        font-size: 2rem;
        margin-bottom: var(--space-xs);
    }

    .tm-journey-text {
        font-size: 1.1rem;
    }
}

/* ========== RESPONSIVE – 767px ========== */
@media (max-width: 767px) {
    .tm-section {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .tm-section-intro {
        background-image: url(../img/optimized/hero-bg-small.jpg);
    }

    .tm-btn-white-big {
        font-size: 1.2rem;
        padding: 0.6rem 2rem;
    }

    .tm-carousel {
        margin-top: 10%;
        margin-bottom: 10%;
    }

    .tm-second-img,
    .tm-third-img {
        height: 250px;
    }

    .tm-section-subtitle {
        font-size: 1.2rem;
        padding: 0 var(--space-sm);
        margin-bottom: var(--space-sm);
    }

    .tm-icon-text-box {
        padding: 2rem;
        margin-bottom: var(--space-md);
    }

    .tm-form-group-left {
        padding-right: 0;
    }

    .tm-form-group-left,
    .tm-form-group-right {
        padding-left: 0;
        padding-right: 0;
    }

    .tm-approach-content {
        order: 2;
    }

    .tm-approach-image {
        height: 250px;
        order: 1;
    }

    .row hr {
        margin-top: 2rem;
        margin-bottom: var(--space-md);
    }

    .tm-copyright-text {
        margin: 0 0 2rem 0;
    }

    .tm-section-benefits {
        background-image: url(../img/optimized/beach-arms-wide-small.jpg);
        background-position: 50% 0;
    }

    .tm-premium-container {
        padding: 0 var(--space-md);
        margin-bottom: 3rem;
    }

    .tm-premium-header {
        margin-bottom: 0.75rem;
    }

    .tm-premium-title {
        font-size: 1.6rem;
        color: #4a8abf;
    }

    .tm-premium-text {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .tm-premium-image-wrapper {
        margin-bottom: var(--space-xs);
    }

    .tm-premium-content {
        gap: var(--space-xs);
    }

    .tm-journey-image-container {
        min-height: 350px;
        padding: var(--space-md);
        padding-bottom: 0.25rem;
    }

    .tm-journey-image {
        max-height: 450px;
    }

    .tm-journey-content {
        padding: 0.5rem 2rem;
    }

    .tm-journey-title {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }

    .tm-journey-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .tm-journey-text p {
        margin-bottom: var(--space-xs);
    }

    #contact .tm-section-subtitle {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    #contact.row .tm-section {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }

    /* Footer responsive: stacked centered on mobile */
    .tm-footer-col {
        text-align: center;
    }
}

/* ========== RESPONSIVE – 480px ========== */
@media (max-width: 480px) {
    .tm-section-intro-title {
        font-size: 3rem;
        margin-bottom: var(--space-sm);
    }

    .tm-section-intro-text {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .tm-section-intro-subtitle {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .tm-section-intro-quote {
        font-size: 1.1rem;
        margin-bottom: var(--space-lg);
    }

    .tm-btn-white-big {
        font-size: 1.2rem;
        padding: 0.6rem 2rem;
    }

    .tm-section-intro {
        background-position: 65% center;
        background-size: cover;
    }

    .tm-section-benefits {
        background-position: 40% center;
        background-size: cover;
    }

    .tm-carousel {
        margin-top: 15%;
        margin-bottom: 15%;
    }

    .tm-carousel-item-title {
        font-size: 2rem;
        margin-bottom: var(--space-md);
    }

    .tm-second-img,
    .tm-third-img {
        height: 200px;
    }

    .tm-2-col-text {
        padding: 10%;
    }

    .tm-premium-container {
        padding: 0 var(--space-sm);
    }

    .tm-premium-header {
        margin-bottom: 0.25rem;
    }

    .tm-premium-title {
        font-size: 1.5rem;
        color: #4a8abf;
    }

    .tm-premium-text {
        font-size: 1rem;
    }

    .tm-premium-image-wrapper {
        margin-bottom: var(--space-xs);
    }

    .tm-premium-content {
        gap: var(--space-xs);
    }

    .tm-journey-image-container {
        min-height: 300px;
        padding: var(--space-sm);
        padding-bottom: 0.25rem;
    }

    .tm-journey-image {
        max-height: 350px;
    }

    .tm-journey-content {
        padding: 0.4rem var(--space-md);
    }

    .tm-journey-title {
        margin-bottom: 0.3rem;
    }

    .tm-journey-text p {
        margin-bottom: 0.4rem;
    }
}

/* ========== RESPONSIVE – max-height ========== */
@media (max-height: 800px) {
    .tm-section-intro {
        height: 100vh;
        min-height: 480px;
    }
}

@media (max-width: 1900px) {
    .tm-section-intro {
        background-size: cover;
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Only enable native smooth scrolling when JS unavailable and no reduced motion preference */
@media screen and (prefers-reduced-motion: no-preference) {
    .no-js html {
        scroll-behavior: smooth;
    }
}

/* ========== SECONDARY TEXT COLOR STANDARDIZATION ========== */
.tm-section-subtitle,
.tm-2-col-text-description,
.tm-icon-text-box-description,
.tm-carousel-item-text,
.tm-premium-text,
.tm-journey-text,
.tm-service-description,
.tm-contact-info {
    color: #555;
}

/* Blue accent titles */
#what-is-pangu .tm-section-title,
#about-instructor .tm-section-title,
#contact .tm-section-title,
.tm-premium-title,
.tm-journey-title,
.tm-2-col-text-title {
    color: #4a8abf;
}

/* Subtitle width constraints */
#what-is-pangu .tm-section-subtitle,
#benefits .tm-section-subtitle,
#about-instructor .tm-section-subtitle,
#classes .tm-section-subtitle,
#contact .tm-section-subtitle {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#benefits .tm-section-subtitle {
    color: #555;
}
