/*
Theme Name: TPP Custom Theme
Theme URI: https://tractorpulling.pl
Author: TPP Team
Author URI: https://tractorpulling.pl
Description: Customowy motyw dla platformy Tractor Pulling Polska. Modularny design z templates in code.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tpp-custom-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, theme-options, block-styles
*/

/* Google Fonts for Categories Module */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Coda&family=Racing+Sans+One&family=Anton&display=swap');

/* ==========================================================================
   ROOT VARIABLES
   ========================================================================== */

:root {
    /* Primary Colors */
    --tpp-primary: #05d38f;
    --tpp-primary-dark: #04a870;
    --tpp-primary-light: #06f5a8;

    /* Secondary Colors */
    --tpp-secondary: #1a1a2e;
    --tpp-secondary-light: #16213e;

    /* Accent */
    --tpp-accent: #e94560;

    /* Neutrals */
    --tpp-white: #ffffff;
    --tpp-black: #000000;
    --tpp-gray-100: #f8f9fa;
    --tpp-gray-200: #e9ecef;
    --tpp-gray-300: #dee2e6;
    --tpp-gray-400: #ced4da;
    --tpp-gray-500: #adb5bd;
    --tpp-gray-600: #6c757d;
    --tpp-gray-700: #495057;
    --tpp-gray-800: #343a40;
    --tpp-gray-900: #212529;

    /* Typography */
    --tpp-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --tpp-font-heading: 'Montserrat', var(--tpp-font-primary);

    /* Spacing */
    --tpp-spacing-xs: 0.25rem;
    --tpp-spacing-sm: 0.5rem;
    --tpp-spacing-md: 1rem;
    --tpp-spacing-lg: 2rem;
    --tpp-spacing-xl: 4rem;

    /* Border Radius */
    --tpp-radius-sm: 4px;
    --tpp-radius-md: 8px;
    --tpp-radius-lg: 16px;
    --tpp-radius-xl: 24px;

    /* Shadows */
    --tpp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --tpp-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --tpp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --tpp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --tpp-transition-fast: 150ms ease;
    --tpp-transition-normal: 300ms ease;
    --tpp-transition-slow: 500ms ease;

    /* Z-index layers */
    --tpp-z-banner: -1;
    --tpp-z-content: 1;
    --tpp-z-banner-overlay: 2;  /* Banner overlay above content */
    --tpp-z-topbar: 100;
    --tpp-z-menu: 200;
    --tpp-z-overlay: 300;
    --tpp-z-modal: 400;
    --tpp-z-modal-high: 500;
    --tpp-z-submenu: 1000;

    /* Module heights */
    --tpp-topbar-height: 6vh;

    /* Breakpoints (for reference - CSS can't use vars in media queries) */
    /* Use these values in all @media queries for consistency:
       --bp-3xl: 1600px  - Desktop bardzo duży (32"+)
       --bp-xxl: 1400px  - Desktop duży (27"+)
       --bp-xl:  1200px  - Desktop standardowy
       --bp-lg:  1024px  - Laptop / Tablet landscape
       --bp-md:  768px   - Tablet portrait
       --bp-sm:  576px   - Mobile duży (iPhone Plus/Max)
       --bp-xs:  480px   - Mobile standardowy
       --bp-xxs: 360px   - Mobile mały
    */
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--tpp-font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--tpp-gray-900);
    background-color: var(--tpp-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   MODULE 1: MAIN BANNER
   ========================================================================== */

.tpp-main-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: var(--tpp-z-banner);
    overflow: hidden;
}

.tpp-main-banner__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tpp-main-banner__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    object-fit: cover;
}

.tpp-main-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--tpp-overlay-color, rgba(0, 0, 0, 0.5));
    opacity: var(--tpp-overlay-opacity, 0.5);
}

/* ==========================================================================
   MODULE 2: TOP BAR
   ========================================================================== */

.tpp-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--tpp-topbar-height);
    min-height: 40px;
    max-height: 60px;
    z-index: var(--tpp-z-topbar);
    background-color: var(--tpp-topbar-bg, rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    /* Smooth transition for appearing/disappearing */
    transition: transform 1s ease, opacity 1s ease;
    opacity: 1;
}

.tpp-top-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.tpp-top-bar__location {
    display: flex;
    align-items: center;
    gap: var(--tpp-spacing-sm);
    color: var(--tpp-white);
    font-size: 0.875rem;
    cursor: pointer;
    transition: opacity var(--tpp-transition-fast);
}

.tpp-top-bar__location:hover {
    opacity: 0.8;
}

.tpp-top-bar__location-icon {
    width: 28px;
    height: 30px;
}

.tpp-top-bar__social {
    display: flex;
    align-items: center;
    gap: var(--tpp-spacing-md);
}

.tpp-top-bar__social-link {
    color: var(--tpp-white);
    font-size: 1.25rem;
    transition: opacity var(--tpp-transition-fast), transform var(--tpp-transition-fast);
}

.tpp-top-bar__social-link:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* ==========================================================================
   MODULE 3: MAIN MENU
   ========================================================================== */

.tpp-main-menu {
    position: fixed;
    top: 0; /* Always at top */
    left: 0;
    right: 0;
    height: 12vh;
    min-height: 60px;
    max-height: 100px;
    z-index: var(--tpp-z-menu);
    /* Default: transparent (no background) */
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    /* Start below top bar using transform */
    transform: translateY(var(--tpp-topbar-height));
    /* Smooth transition for background and position - same as top bar */
    transition: transform 1s ease, background-color 1s ease;
}

/* After scrolling: has background, moves to top */
.tpp-main-menu.scrolled {
    transform: translateY(0);
    background-color: var(--tpp-menu-bg, rgba(26, 26, 46, 0.9));
}

.tpp-main-menu__logo {
    height: 90%;
    display: flex;
    align-items: center;
}

.tpp-main-menu__logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.tpp-main-menu__logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.tpp-main-menu__logo-text {
    color: var(--tpp-white);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--tpp-font-heading);
}

.tpp-main-menu__nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: var(--tpp-spacing-lg);
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.tpp-main-menu__nav li {
    list-style: none;
    list-style-type: none;
}

.tpp-main-menu__item {
    position: relative;
    color: var(--tpp-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: var(--tpp-spacing-sm) 0;
    transition: color var(--tpp-transition-fast);
}

.tpp-main-menu__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--tpp-primary);
    transition: width var(--tpp-transition-normal);
}

.tpp-main-menu__item:hover::after,
.tpp-main-menu__item.active::after {
    width: 100%;
}

/* Submenu (dropdown) */
.tpp-main-menu__nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--tpp-menu-bg, rgba(26, 26, 46, 0.95));
    border-radius: 0 0 var(--tpp-border-radius) var(--tpp-border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: var(--tpp-spacing-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: var(--tpp-z-submenu);
    list-style: none;
    margin: 0;
}

.tpp-main-menu__nav > li {
    position: relative;
}

.tpp-main-menu__nav > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tpp-main-menu__nav .sub-menu li {
    list-style: none;
}

.tpp-main-menu__nav .sub-menu a {
    display: block;
    padding: var(--tpp-spacing-sm) var(--tpp-spacing-md);
    color: var(--tpp-white);
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.tpp-main-menu__nav .sub-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: calc(var(--tpp-spacing-md) + 5px);
}

/* Arrow indicator for items with submenu */
.tpp-main-menu__nav > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
}

.tpp-main-menu__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--tpp-radius-md);
    padding: var(--tpp-spacing-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--tpp-transition-fast);
    box-shadow: var(--tpp-shadow-lg);
}

.tpp-main-menu__item:hover .tpp-main-menu__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tpp-main-menu__submenu-item {
    display: block;
    padding: var(--tpp-spacing-sm) var(--tpp-spacing-md);
    color: var(--tpp-white);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color var(--tpp-transition-fast);
}

.tpp-main-menu__submenu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   MODULE 4: BANNER OVERLAY
   ========================================================================== */

.tpp-banner-overlay {
    /* Container - always centered, scrolls with content */
    position: relative;
    z-index: var(--tpp-z-banner-overlay);  /* Above content containers */
    width: 60%;
    max-width: 60%;
    margin: 0 auto;
    /* Padding controlled via inline styles from admin settings */

    /* Flexbox for content alignment */
    display: flex;
    flex-direction: column;
    color: var(--tpp-white);
}

/* Banner Overlay Content Container */
.tpp-banner-overlay__content {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Gap controlled via inline styles from admin settings */
}

/* Layout: Slogan | Image (row - default) */
.tpp-banner-overlay__content--slogan-image-row {
    flex-direction: row;
}

/* Layout: Image | Slogan (row) */
.tpp-banner-overlay__content--image-slogan-row {
    flex-direction: row;
}

/* Layout: Slogan above Image (column) */
.tpp-banner-overlay__content--slogan-image-col {
    flex-direction: column;
}

/* Layout: Image above Slogan (column) */
.tpp-banner-overlay__content--image-slogan-col {
    flex-direction: column;
}

.tpp-banner-overlay__slogan {
    font-family: var(--tpp-font-heading);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0; /* Remove default margin, use gap instead */
}

.tpp-banner-overlay__image {
    /* Max height controlled by inline style (slider), base max 50vh */
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: var(--tpp-overlay-image-opacity, 1);
    transition: max-height 0.3s ease, opacity 0.3s ease;
    transform: scale(var(--bo-image-zoom, 1));
    transform-origin: center center;
}

.tpp-banner-overlay__image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Icon wrapper for banner overlay */
.tpp-banner-overlay__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Width and height set via inline styles */
}

.tpp-banner-overlay__icon-wrapper svg {
    width: 100%;
    height: 100%;
}

/* No graphic mode - centers slogan */
.tpp-banner-overlay__content--no-graphic {
    justify-content: center;
}

/* Banner Overlay Content Position Variants - only affects content alignment */
.tpp-banner-overlay--center {
    align-items: center;
    text-align: center;
}

.tpp-banner-overlay--left {
    align-items: flex-start;
    text-align: left;
}

.tpp-banner-overlay--right {
    align-items: flex-end;
    text-align: right;
}

/* Mobile: widen container so image has more horizontal room */
@media (max-width: 768px) {
    .tpp-banner-overlay {
        width: 90%;
        max-width: 90%;
    }
}

/* ==========================================================================
   UNIFIED CONTAINER SYSTEM
   ========================================================================== */

.tpp-container {
    /* Positioning */
    position: relative;
    z-index: var(--tpp-z-content);

    /* Background layer width */
    width: var(--tpp-container-bg-width, 80%);
    margin: 0 auto;
    margin-top: var(--tpp-container-margin-top, 2%);

    /* Background */
    background-color: var(--tpp-container-bg, rgba(255, 255, 255, 0.95));

    /* Border radius - separate top/bottom (only on background) */
    border-radius:
        var(--tpp-container-radius-top, 20px)
        var(--tpp-container-radius-top, 20px)
        var(--tpp-container-radius-bottom, 0px)
        var(--tpp-container-radius-bottom, 0px);

    /* Padding */
    padding: var(--tpp-container-padding, var(--tpp-spacing-xl));
    min-height: 50vh;
}

.tpp-container__inner {
    /* Content constraint - nested inside background */
    max-width: var(--tpp-container-content-width, 100%);
    margin: 0 auto;
    width: 100%;
}

/* Responsive adjustments - mobile overrides handled by per-page <style> block in container.php */
/* Default mobile padding fallback is set there (var(--tpp-spacing-lg) var(--tpp-spacing-md)) */

/* Container Placeholder (visible only for admins when content is empty) */
.tpp-container__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--tpp-spacing-xl) var(--tpp-spacing-lg);
    min-height: 300px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(245,245,250,0.9) 100%);
    border: 2px dashed var(--tpp-primary);
    border-radius: var(--tpp-border-radius);
}

.tpp-container__placeholder-icon {
    color: var(--tpp-primary);
    margin-bottom: var(--tpp-spacing-md);
    opacity: 0.7;
}

.tpp-container__placeholder-title {
    font-size: 1.5rem;
    color: var(--tpp-secondary);
    margin: 0 0 var(--tpp-spacing-sm);
}

.tpp-container__placeholder-text {
    font-size: 1rem;
    color: var(--tpp-gray-600);
    margin: 0 0 var(--tpp-spacing-lg);
    max-width: 400px;
}

.tpp-container__placeholder-button {
    display: inline-block;
    padding: var(--tpp-spacing-sm) var(--tpp-spacing-lg);
    background-color: var(--tpp-primary);
    color: var(--tpp-white);
    text-decoration: none;
    border-radius: var(--tpp-border-radius);
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.tpp-container__placeholder-button:hover {
    background-color: var(--tpp-primary-dark);
    color: var(--tpp-white);
    transform: translateY(-2px);
}

.tpp-container__placeholder-note {
    margin-top: var(--tpp-spacing-md);
    color: var(--tpp-gray-500);
}

/* ==========================================================================
   CATEGORIES LIST MODULE - Full Category Information
   ========================================================================== */

/* Categories Module - Horizontal Layout with Vertical Headers */
.tpp-categories {
    position: relative;
}

.tpp-categories__wrapper {
    margin: 0 auto;
}

/* Division Container */
.tpp-division {
    margin-bottom: 30px;
}

.tpp-division:last-child {
    margin-bottom: 0;
}

/* Division WITHOUT classes (Farm Stock) */
.tpp-division__without-classes {
    display: flex;
    gap: 0;
}

/* One long vertical bar with multiple division names */
.tpp-division__header-vertical-container {
    display: flex;
    flex-direction: column;
    width: 50px;
    min-width: 50px;
    gap: 15px;
    position: relative;
}

/* Background for the entire vertical bar */
.tpp-division__header-vertical-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 12px 0 0 12px;
    z-index: 0;
}

/* Each segment with division name */
.tpp-division__header-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Categories column */
.tpp-division__categories-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Each category item wrapper */
.tpp-division__category-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 0 12px 12px 0;
    overflow: hidden;
}

/* Shared header styles for both WITH and WITHOUT classes */
.tpp-division__header-vertical {
    width: 50px;
    min-width: 50px;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.tpp-division__name {
    font-family: "Audiowide", sans-serif;
    color: #ffffff;
    font-size: 20px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Division WITH classes (Mini Tractor) */
.tpp-division__with-classes {
    display: flex;
    gap: 0;
}

/* Division bar in WITH classes (50px wide, 90% opacity) */
.tpp-division__with-classes .tpp-division__header-vertical-container {
    width: 50px;
    min-width: 50px;
}

.tpp-division__with-classes .tpp-division__header-vertical-container::before {
    background: rgba(26, 26, 46, 0.9);
}

.tpp-division__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Class Container */
.tpp-class {
    display: flex;
    gap: 0;
}

/* Class bar container (40px wide, 50% opacity) */
.tpp-class__header-vertical-container {
    display: flex;
    flex-direction: column;
    width: 40px;
    min-width: 40px;
    gap: 15px;
    position: relative;
}

/* Background for the entire class bar */
.tpp-class__header-vertical-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 8px 0 0 8px;
    z-index: 0;
}

/* Each segment with class name */
.tpp-class__header-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.tpp-class__name {
    font-family: "Audiowide", sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Categories column in class */
.tpp-class__categories-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Each category item wrapper */
.tpp-class__category-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255, 255, 255, 0.30);
    border-radius: 0 8px 8px 0;
    overflow: hidden;
}

/* Category Card - Base */
.tpp-category-card {
    display: flex;
    align-items: stretch;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tpp-category-card:hover {
    transform: translateX(5px);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.tpp-category-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-sizing: border-box;
    flex-shrink: 0;
    width: var(--logo-width, 100px);
    min-width: var(--logo-width, 100px);
}

.tpp-category-card__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.tpp-category-card__bar {
    width: 4px;
    min-width: 4px;
}

.tpp-category-card__content {
    flex: 1;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.tpp-category-card__name {
    font-family: "Audiowide", sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 22px;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.tpp-category-card--long .tpp-category-card__name {
    font-size: 24px;
}

.tpp-category-card__description {
    font-family: "Coda", sans-serif;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 8px 0;
    padding: 6px 0;
}

.tpp-category-card--long .tpp-category-card__description {
    font-size: 16px;
}

.tpp-category-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tpp-category-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    --badge-multiplier: 1;
    font-size: calc(var(--badge-font-size, 14px) * var(--badge-multiplier));
    padding: calc(var(--badge-padding-y, 5px) * var(--badge-multiplier)) calc(var(--badge-padding-x, 12px) * var(--badge-multiplier));
    border-radius: calc(var(--badge-radius, 18px) * var(--badge-multiplier));
    font-weight: 600;
    white-space: nowrap;
}

.tpp-category-card__badge--weight {
    background: #e3f2fd;
    color: #1565c0;
}

.tpp-category-card__badge--engine {
    background: #fff3e0;
    color: #e65100;
}

.tpp-category-card__badge--turbo {
    background: #fce4ec;
    color: #c62828;
}

.tpp-category-card__badge--age {
    background: #e8f5e9;
    color: #2e7d32;
}

.tpp-category-card__badge--tire {
    background: #f3e5f5;
    color: #7b1fa2;
}

.tpp-category-card__badge--fuel {
    background: #e0f2f1;
    color: #00695c;
}

.tpp-category-card__badge--speed {
    background: #fffde7;
    color: #f57f17;
}

.tpp-category-card__badge--safety {
    background: #efebe9;
    color: #5d4037;
}

.tpp-category-card__badge--rpm {
    background: #fbe9e7;
    color: #bf360c;
}

.tpp-category-card--long .tpp-category-card__content {
    padding: 20px 25px;
}

.tpp-category-card--short .tpp-category-card__content {
    padding: 12px 15px;
}

/* Responsive - Category Cards */
@media (max-width: 1024px) {
    .tpp-category-card {
        flex-direction: column;
    }

    .tpp-category-card__logo {
        width: 100%;
        min-width: 100%;
        padding: 0 20px;
        max-height: clamp(80px, 15vw, 150px);
    }

    .tpp-category-card__logo img {
        max-height: clamp(60px, 20vw, 120px);
        width: auto;
        object-fit: contain;
    }

    .tpp-category-card--short .tpp-category-card__logo,
    .tpp-category-card--long .tpp-category-card__logo {
        padding: 0;
        max-height: none;
    }

    .tpp-category-card--short .tpp-category-card__logo img,
    .tpp-category-card--long .tpp-category-card__logo img {
        width: 100%;
        max-height: none;
        object-fit: cover;
    }

    .tpp-category-card__bar {
        width: 100%;
        height: 4px;
        min-width: 100%;
        min-height: 4px;
    }

    .tpp-category-card__content {
        padding: 15px 20px;
        text-align: center;
    }

    .tpp-category-card__badges {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .tpp-division__header-vertical-container,
    .tpp-class__header-vertical-container {
        width: 35px;
        min-width: 35px;
    }

    .tpp-division__with-classes .tpp-division__header-vertical-container {
        width: 45px;
        min-width: 45px;
    }
}

/* Mobile Division Label - hidden on desktop, shown at 576px */
.tpp-mobile-division-label {
    display: none;
}

@media (max-width: 576px) {
    .tpp-division__without-classes,
    .tpp-division__with-classes,
    .tpp-class {
        flex-direction: column;
    }

    /* Hide all division & class bars on mobile */
    .tpp-division__header-vertical-container,
    .tpp-class__header-vertical-container,
    .tpp-mobile-division-label {
        display: none;
    }

    .tpp-division__category-item,
    .tpp-class__category-item {
        border-radius: 8px;
    }

    /* All cards: remove parent bg, split bg between logo gradient and content */
    .tpp-class__category-item,
    .tpp-division__category-item {
        background: transparent;
        gap: 0;
    }

    .tpp-category-card--short .tpp-category-card__logo,
    .tpp-category-card--long .tpp-category-card__logo {
        background: linear-gradient(to bottom, transparent 66.66%, rgba(255, 255, 255, 0.30) 66.66%);
    }

    .tpp-category-card--short .tpp-category-card__content,
    .tpp-category-card--long .tpp-category-card__content {
        background: rgba(255, 255, 255, 0.30);
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .tpp-category-card__name {
        display: none;
    }

    .tpp-category-card__content {
        text-align: center;
        padding-top: 0;
    }

    .tpp-category-card__badges {
        justify-content: center;
    }
}

/* Category Details - Extended Information */
.tpp-category-details {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 0 0 12px 12px;
    padding: 25px 30px;
    margin-top: 0;
    margin-bottom: 2px;
    border-top: 2px solid #dee2e6;
}

.tpp-category-details__section-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 18px;
    color: #1a1a2e;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tpp-category-details__description {
    margin-bottom: 25px;
}

.tpp-category-details__text {
    font-family: 'Coda', sans-serif;
    font-size: 15px;
    color: #495057;
    line-height: 1.6;
}

.tpp-category-details__specs {
    margin-bottom: 25px;
}

.tpp-specs-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.tpp-spec-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #ffffff;
    border-left: 3px solid var(--category-color, #05d38f);
    border-radius: 6px;
}

.tpp-spec-item__label {
    font-weight: 600;
    color: #495057;
    margin-right: 8px;
    font-family: 'Coda', sans-serif;
    font-size: 14px;
}

.tpp-spec-item__value {
    color: #212529;
    font-family: 'Coda', sans-serif;
    font-size: 14px;
}

.tpp-category-details__rules {
    margin-bottom: 0;
}

.tpp-rules-empty {
    font-family: 'Coda', sans-serif;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

/* Safety Requirements */
.tpp-category-details__safety {
    margin-bottom: 20px;
}

.tpp-safety-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tpp-safety-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-family: 'Coda', sans-serif;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    background: #f0f0f1;
    color: #1d2327;
}

.tpp-safety-item svg {
    flex-shrink: 0;
}

.tpp-safety-item--required {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: #fff;
}

.tpp-safety-item--forbidden {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
}

/* Specifics List */
.tpp-category-details__specifics {
    margin-bottom: 20px;
}

.tpp-category-details__specifics .tpp-specifics-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tpp-category-details__specifics .tpp-specifics-list li {
    position: relative;
    padding: 10px 0 10px 24px;
    font-family: 'Coda', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    border-bottom: 1px solid #eee;
}

.tpp-category-details__specifics .tpp-specifics-list li:last-child {
    border-bottom: none;
}

.tpp-category-details__specifics .tpp-specifics-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--category-color, #05d38f);
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .tpp-specs-grid {
        grid-template-columns: 1fr;
    }

    .tpp-category-details {
        padding: 20px 15px;
    }

    .tpp-category-details__section-title {
        font-size: 16px;
    }
}

/* Details toggle - hidden on desktop */
.tpp-details-toggle {
    display: none;
}

@media (max-width: 576px) {
    .tpp-category-details {
        padding: 15px 12px;
        border-radius: 0;
        border-top: none;
        margin-top: 0;
        /* Collapsed by default on mobile */
        display: none;
    }

    .tpp-category-details.tpp-details-open {
        display: block;
    }

    /* Show toggle button on mobile */
    .tpp-details-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        padding: 10px;
        background: rgba(26, 26, 46, 0.60);
        border: none;
        cursor: pointer;
        font-family: 'Coda', sans-serif;
        font-size: 14px;
        color: #ffffff;
        font-weight: 600;
        transition: background 0.2s ease;
    }

    .tpp-details-toggle:hover,
    .tpp-details-toggle:focus {
        background: rgba(26, 26, 46, 0.90);
    }

    .tpp-details-toggle__icon {
        transition: transform 0.3s ease;
    }

    .tpp-details-toggle[aria-expanded="true"] .tpp-details-toggle__icon {
        transform: rotate(180deg);
    }

    .tpp-spec-item {
        flex-direction: row;
        align-items: baseline;
    }
}

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

.tpp-section {
    padding: var(--tpp-spacing-xl) 0;
}

.tpp-text-center {
    text-align: center;
}

.tpp-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   LOCATION MODAL
   ========================================================================== */

.tpp-location-modal {
    /* Hidden by default */
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--tpp-z-modal);
}

.tpp-location-modal[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpp-location-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.tpp-location-modal__content {
    position: relative;
    z-index: 1;
    background-color: var(--tpp-white);
    border-radius: var(--tpp-radius-lg);
    padding: var(--tpp-spacing-xl);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--tpp-shadow-xl);
}

.tpp-location-modal__close {
    position: absolute;
    top: var(--tpp-spacing-md);
    right: var(--tpp-spacing-md);
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--tpp-gray-100);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--tpp-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpp-location-modal__close:hover {
    background-color: var(--tpp-gray-200);
}

.tpp-location-modal__content h2 {
    margin: 0 0 var(--tpp-spacing-lg);
    font-family: var(--tpp-font-heading);
    font-size: 1.5rem;
    color: var(--tpp-secondary);
}

.tpp-location-modal__map {
    margin-bottom: var(--tpp-spacing-lg);
    border-radius: var(--tpp-radius-md);
    overflow: hidden;
}

.tpp-location-modal__map iframe {
    display: block;
    width: 100%;
    height: 400px;
}

.tpp-location-modal__actions {
    display: flex;
    gap: var(--tpp-spacing-md);
    justify-content: flex-end;
}

.tpp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--tpp-spacing-sm) var(--tpp-spacing-lg);
    border-radius: var(--tpp-radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--tpp-transition-fast);
    border: 2px solid transparent;
}

.tpp-button--primary {
    background-color: var(--tpp-primary);
    color: var(--tpp-white);
    border-color: var(--tpp-primary);
}

.tpp-button--primary:hover {
    background-color: var(--tpp-primary-dark);
    border-color: var(--tpp-primary-dark);
}

.tpp-button--outline {
    background-color: transparent;
    color: var(--tpp-secondary);
    border-color: var(--tpp-gray-300);
}

.tpp-button--outline:hover {
    background-color: var(--tpp-gray-100);
    border-color: var(--tpp-gray-400);
}

/* Body class when modal is open */
body.tpp-modal-open {
    overflow: hidden;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.tpp-main-menu__toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 52px;
    height: 52px;
    padding: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.tpp-main-menu__toggle-bar {
    display: block;
    width: 32px;
    height: 4px;
    background-color: var(--menu-font-color, #ffffff);
    border-radius: 2px;
    transition: transform var(--tpp-transition-fast), opacity var(--tpp-transition-fast);
}

/* Mobile Menu - Hidden by default */
.tpp-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--tpp-z-modal);
    visibility: hidden;
    pointer-events: none;
}

.tpp-mobile-menu[aria-hidden="false"] {
    visibility: visible;
    pointer-events: auto;
}

.tpp-mobile-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 1s ease;
}

.tpp-mobile-menu[aria-hidden="false"] .tpp-mobile-menu__overlay {
    opacity: 1;
}

.tpp-mobile-menu__content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--tpp-spacing-lg);
    padding-top: calc(var(--tpp-spacing-lg) / 2);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 1s ease;
}

.tpp-mobile-menu[aria-hidden="false"] .tpp-mobile-menu__content {
    transform: translateX(0);
}

/* Closing animation - keep visible during slide-out */
.tpp-mobile-menu.closing {
    visibility: visible;
    pointer-events: none;
}

.tpp-mobile-menu.closing .tpp-mobile-menu__overlay {
    opacity: 0;
}

.tpp-mobile-menu.closing .tpp-mobile-menu__content {
    transform: translateX(100%);
}

.tpp-mobile-menu__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--tpp-spacing-md);
}

.tpp-mobile-menu__close {
    align-self: flex-end;
    order: -1;
    margin-bottom: var(--tpp-spacing-sm);
}

.tpp-mobile-menu__logo {
    max-width: 80%;
}

.tpp-mobile-menu__logo img {
    max-width: 100%;
    height: auto;
}

.tpp-mobile-menu__logo-text {
    color: var(--tpp-white);
    font-size: 1.25rem;
    font-weight: 700;
}

.tpp-mobile-menu__close {
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    color: var(--menu-font-color, var(--tpp-white));
    font-size: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.tpp-mobile-menu__close:hover {
    color: var(--menu-hover-color, var(--tpp-primary));
}

.tpp-mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tpp-mobile-menu__list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tpp-mobile-menu__list > li > a {
    display: block;
    padding: var(--tpp-spacing-md) 0;
    color: var(--menu-font-color, var(--tpp-white));
    text-decoration: none;
    font-size: 1.5rem;
    font-family: var(--menu-font-family, inherit);
}

.tpp-mobile-menu__list .sub-menu a {
    display: block;
    padding: var(--tpp-spacing-sm) 0;
    color: var(--menu-font-color, var(--tpp-white));
    text-decoration: none;
    font-size: 1.33rem;
    font-family: var(--menu-font-family, inherit);
}

.tpp-mobile-menu__list a:hover {
    color: var(--menu-hover-color, var(--tpp-primary));
}

.tpp-mobile-menu__list li.current-menu-item > a,
.tpp-mobile-menu__list li.current-menu-ancestor > a {
    color: var(--menu-active-color, var(--tpp-primary));
}

.tpp-mobile-menu__list li.current-menu-item > a:hover,
.tpp-mobile-menu__list li.current-menu-ancestor > a:hover {
    color: var(--menu-hover-color, var(--tpp-primary));
}

/* Chevron icon for items with submenu */
.tpp-mobile-menu__list > li.menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tpp-mobile-menu__list > li.menu-item-has-children > a::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.tpp-mobile-menu__list > li.menu-item-has-children.submenu-open > a::after {
    transform: rotate(-135deg);
}

.tpp-mobile-menu__list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 var(--tpp-spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--tpp-transition-normal);
}

.tpp-mobile-menu__list .submenu-open > .sub-menu {
    max-height: 500px;
}

/* Body class when mobile menu is open */
body.tpp-menu-open {
    overflow: hidden;
}

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

@media (max-width: 1024px) /* lg */ {
    .tpp-main-menu {
        justify-content: space-between;
    }

    .tpp-main-menu__nav-wrapper {
        display: none; /* Hide desktop nav on mobile */
    }

    .tpp-main-menu__toggle {
        display: flex; /* Show hamburger on mobile */
    }

    .tpp-banner-overlay__slogan {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }
}

@media (max-width: 768px) /* md */ {
    .tpp-top-bar {
        padding: 0 4%;
    }

    .tpp-main-menu {
        padding: 0 4%;
    }

    /* Stack row layouts on mobile */
    .tpp-banner-overlay__content--slogan-image-row,
    .tpp-banner-overlay__content--image-slogan-row {
        flex-direction: column;
    }
}

@media (max-width: 576px) /* sm */ {
    .tpp-top-bar__location-text {
        display: none;
    }

    .tpp-banner-overlay {
        width: 90%;
    }
}

/* ==========================================================================
   MODULE 5: HERO ACCENT
   Moduł z 1-6 kartami pod banner overlay
   - Karty w jednym rzędzie, dynamiczna szerokość
   - Max-width: 80% ekranu
   - Wyśrodkowany, proporcjonalna szerokość do liczby kart
   ========================================================================== */

.tpp-hero-accent {
    position: relative;
    z-index: var(--tpp-z-content);
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: var(--ha-margin-top, 40px);
    padding: 0 10%; /* 10% padding = 80% max width */
}

.tpp-hero-accent__wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    max-width: 80vw;
    /* Dynamiczna szerokość proporcjonalna do liczby kart */
    /* Formuła: (cards_count / 6) * 100% max szerokości */
    width: calc((var(--ha-cards-count, 4) / 6) * 80vw);
    min-width: min(400px, 80vw);
    background-color: var(--ha-bg-color, rgba(255, 255, 255, 1));
    border-radius: var(--ha-border-radius, 20px);
    padding: 5px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tpp-hero-accent__card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
}

.tpp-hero-accent__icon {
    width: 50%;
    aspect-ratio: 1 / 1;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpp-hero-accent__svg {
    width: calc(var(--ha-icon-size, 60) * var(--ha-scale, 1) * 1%);
    height: calc(var(--ha-icon-size, 60) * var(--ha-scale, 1) * 1%);
    color: var(--ha-icon-color, #05d38f);
    stroke: currentColor;
}

.tpp-hero-accent__icon-img {
    max-width: calc(var(--ha-image-size, 80) * var(--ha-scale, 1) * 1%);
    max-height: calc(var(--ha-image-size, 80) * var(--ha-scale, 1) * 1%);
    width: auto;
    height: auto;
    object-fit: contain;
}

.tpp-hero-accent__title {
    font-family: var(--ha-title-font, 'Montserrat', sans-serif);
    font-size: calc(var(--ha-title-size, 18px) * var(--ha-scale, 1));
    font-weight: 600;
    color: var(--ha-title-color, #1a1a2e);
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-transform: none;
}

.tpp-hero-accent__text {
    font-family: var(--ha-text-font, 'Open Sans', sans-serif);
    font-size: calc(var(--ha-text-size, 14px) * var(--ha-scale, 1));
    font-weight: 400;
    color: var(--ha-text-color, #666666);
    margin: 0;
    line-height: 1.5;
    text-transform: none;
}

/* Hero Accent - Responsive Scaling */
@media (max-width: 1600px) {
    .tpp-hero-accent { --ha-scale: 0.95; }
}
@media (max-width: 1400px) /* xxl */ {
    .tpp-hero-accent { --ha-scale: 0.9; }
}
@media (max-width: 1200px) /* xl */ {
    .tpp-hero-accent { --ha-scale: 0.8; }
}
@media (max-width: 1024px) /* lg */ {
    .tpp-hero-accent { --ha-scale: 0.7; }
}
@media (max-width: 768px) /* md */ {
    .tpp-hero-accent { --ha-scale: 0.65; }
}
@media (max-width: 576px) /* sm */ {
    .tpp-hero-accent { --ha-scale: 0.6; }
}
@media (max-width: 480px) /* xs */ {
    .tpp-hero-accent { --ha-scale: 0.6; }
}

/* Responsive - Tablet (3 karty w rzędzie) */
@media (max-width: 1200px) /* xl */ {
    .tpp-hero-accent {
        padding: 0 5%;
    }

    .tpp-hero-accent__wrapper {
        width: 90vw;
        max-width: 90vw;
        flex-wrap: wrap;
        padding: 12px 15px;
        gap: 10px;
    }

    .tpp-hero-accent__card {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 150px;
        padding: 5px 5px;
    }

    .tpp-hero-accent__icon {
        width: 50%;
        margin-bottom: 5px;
    }

    .tpp-hero-accent__title {
        margin-bottom: 3px;
    }

    .tpp-hero-accent__text {
        line-height: 1.3;
    }
}

/* Responsive - Mobile (2 karty w rzędzie) */
@media (max-width: 768px) /* md */ {
    .tpp-hero-accent {
        padding: 0 3%;
        margin-top: var(--ha-margin-top, 30px);
    }

    .tpp-hero-accent__wrapper {
        width: 94vw;
        max-width: 94vw;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 8px;
        gap: 5px;
    }

    .tpp-hero-accent__card {
        flex: 1 1 calc(50% - 5px);
        max-width: calc(50% - 3px);
        padding: 6px 4px;
    }

    /* Ostatnia karta przy nieparzystej liczbie - pełna szerokość */
    .tpp-hero-accent__card:last-child:nth-child(odd) {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .tpp-hero-accent__icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .tpp-hero-accent__icon .dashicons {
        font-size: 32px;
        width: 32px;
        height: 32px;
    }
}

/* ==========================================================================
   MODULE 6: ABOUT
   ========================================================================== */

.tpp-about {
    --about-scale: 1;
    position: relative;
    z-index: 1;
    background-color: var(--about-bg-color, #ffffff);
    padding-top: calc(var(--about-padding-top, 60px) * var(--about-scale));
    padding-bottom: calc(var(--about-padding-bottom, 60px) * var(--about-scale));
    margin-top: var(--about-margin-top, 0);
}

.tpp-about__container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--about-content-gap, 50px) * var(--about-scale));
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.tpp-about__content {
    flex: 1 1 auto;
    max-width: 50%;
}

.tpp-about__image-wrapper {
    flex: 0 0 auto;
    width: var(--about-image-size, 40%);
    max-width: 45%;
    position: relative;
}

/* Layout: Text-Image (default) - tekst po lewej ekranu, obrazek po prawej */
.tpp-about--text-image .tpp-about__content {
    order: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.tpp-about--text-image .tpp-about__image-wrapper {
    order: 2;
    display: flex;
    justify-content: flex-start;
}

/* Layout: Image-Text - obrazek po lewej ekranu, tekst po prawej */
.tpp-about--image-text .tpp-about__content {
    order: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tpp-about--image-text .tpp-about__image-wrapper {
    order: 1;
    display: flex;
    justify-content: flex-end;
}

.tpp-about__title {
    font-family: var(--about-title-font, 'Montserrat', sans-serif);
    font-size: calc(var(--about-title-size, 36px) * var(--about-scale));
    font-weight: 700;
    color: var(--about-title-color, #1a1a2e);
    margin: 0 0 calc(20px * var(--about-scale)) 0;
    line-height: 1.2;
}

.tpp-about__description {
    font-family: var(--about-desc-font, 'Open Sans', sans-serif);
    font-size: calc(var(--about-desc-size, 16px) * var(--about-scale));
    font-weight: 400;
    color: var(--about-desc-color, #666666);
    line-height: 1.7;
    margin-bottom: calc(25px * var(--about-scale));
}

.tpp-about__description p {
    margin: 0 0 calc(15px * var(--about-scale)) 0;
}

.tpp-about__description p:last-child {
    margin-bottom: 0;
}

.tpp-about__cta {
    display: inline-block;
    padding: calc(12px * var(--about-scale)) calc(30px * var(--about-scale));
    background-color: var(--about-cta-bg, #05d38f);
    color: var(--about-cta-color, #ffffff);
    text-decoration: none;
    font-family: var(--about-cta-font, 'Montserrat', sans-serif);
    font-size: calc(var(--about-cta-size, 14px) * var(--about-scale));
    font-weight: 600;
    border-radius: var(--about-cta-radius, 5px);
    transition: all 0.3s ease;
    margin-top: calc(10px * var(--about-scale));
}

.tpp-about__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 211, 143, 0.4);
    opacity: 0.9;
}

.tpp-about__image {
    width: 100%;
    height: auto;
    border-radius: var(--about-image-radius, 10px);
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive Scaling - About Module */
@media (max-width: 1600px) {
    .tpp-about { --about-scale: 0.95; }
}

@media (max-width: 1400px) {
    .tpp-about { --about-scale: 0.9; }
}

@media (max-width: 1200px) {
    .tpp-about { --about-scale: 0.85; }
    .tpp-about__content { max-width: 58%; }
    .tpp-about__image-wrapper { max-width: 38%; }
}

@media (max-width: 1024px) {
    .tpp-about { --about-scale: 0.75; }
    .tpp-about__container { gap: calc(25px * var(--about-scale)); }
    .tpp-about__content { max-width: 55%; }
    .tpp-about__image-wrapper { max-width: 42%; }
}

@media (max-width: 768px) {
    .tpp-about { --about-scale: 0.85; }

    .tpp-about__container {
        flex-direction: column;
        align-items: center;
        gap: calc(20px * var(--about-scale));
        padding: 0 6%;
    }

    /* Display contents makes children direct flex participants */
    .tpp-about--text-image .tpp-about__content,
    .tpp-about--image-text .tpp-about__content {
        display: contents;
    }

    /* Order: 1-Title, 2-Image, 3-Description, 4-Button */
    .tpp-about .tpp-about__title {
        order: 1 !important;
        text-align: center;
        width: 100%;
    }

    .tpp-about--text-image .tpp-about__image-wrapper,
    .tpp-about--image-text .tpp-about__image-wrapper {
        order: 2 !important;
        justify-content: center;
        width: 75%;
        max-width: 100%;
    }

    .tpp-about .tpp-about__description {
        order: 3 !important;
        text-align: center;
        width: 100%;
    }

    .tpp-about .tpp-about__cta {
        order: 4 !important;
        width: 66%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .tpp-about { --about-scale: 0.8; }
    .tpp-about__container { padding: 0 4%; }

    .tpp-about--text-image .tpp-about__image-wrapper,
    .tpp-about--image-text .tpp-about__image-wrapper {
        width: 100%;
    }
}

/* ============================================
   MODULE 7: NUMBERS / STATISTICS
   ============================================ */

.tpp-numbers {
    --numbers-scale: 1;
    position: relative;
    background-color: var(--numbers-bg-color, #1a1a2e);
    padding-top: calc(var(--numbers-padding-top, 80px) * var(--numbers-scale));
    padding-bottom: calc(var(--numbers-padding-bottom, 80px) * var(--numbers-scale));
    margin-top: var(--numbers-margin-top, 0);
    overflow: hidden;
}

/* Background image mode */
.tpp-numbers--with-bg-image {
    background-color: transparent;
}

.tpp-numbers__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.tpp-numbers__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--numbers-overlay, rgba(26, 26, 46, 0.7));
    z-index: 1;
}

.tpp-numbers__container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
}

.tpp-numbers__grid {
    display: grid;
    grid-template-columns: repeat(var(--numbers-items-count, 4), 1fr);
    gap: calc(20px * var(--numbers-scale));
    text-align: center;
}

.tpp-numbers__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.tpp-numbers__value-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex: 0 0 auto;
    min-height: calc(var(--numbers-value-size, 48px) * 1.2 * var(--numbers-scale));
    margin-bottom: calc(10px * var(--numbers-scale));
}

.tpp-numbers__value {
    font-family: var(--numbers-value-font, 'Montserrat', sans-serif);
    font-size: calc(var(--numbers-value-size, 48px) * var(--numbers-scale));
    font-weight: 700;
    color: var(--numbers-value-color, #05d38f);
    line-height: 1.1;
}

.tpp-numbers__label-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 auto;
    text-align: center;
}

.tpp-numbers__label {
    font-family: var(--numbers-label-font, 'Open Sans', sans-serif);
    font-size: calc(var(--numbers-label-size, 16px) * var(--numbers-scale));
    font-weight: 400;
    color: var(--numbers-label-color, #ffffff);
    text-transform: uppercase;
    letter-spacing: calc(1px * var(--numbers-scale));
    line-height: 1.3;
}

.tpp-numbers__cta-wrapper {
    margin-top: calc(var(--numbers-cta-margin-top, 12px) * var(--numbers-scale));
    text-align: center;
}

.tpp-numbers__cta {
    display: inline-block;
    padding: calc(6px * var(--numbers-scale)) calc(16px * var(--numbers-scale));
    font-family: var(--numbers-cta-font, 'Open Sans', sans-serif);
    font-size: calc(var(--numbers-label-size, 16px) * 0.85 * var(--numbers-scale));
    font-weight: 500;
    color: var(--numbers-cta-font-color, #05d38f);
    background-color: var(--numbers-cta-bg-color, transparent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: calc(1px * var(--numbers-scale));
    border: var(--numbers-cta-border-width, 1px) solid var(--numbers-cta-border-color, #05d38f);
    border-radius: var(--numbers-cta-border-radius, 4px);
    transition: all 0.3s ease;
}

.tpp-numbers__cta:hover {
    background-color: var(--numbers-cta-hover-bg, #05d38f);
    color: var(--numbers-cta-hover-color, #1a1a2e);
}

/* Responsive Scaling - Numbers Module */
@media (max-width: 1600px) {
    .tpp-numbers { --numbers-scale: 0.95; }
}

@media (max-width: 1400px) {
    .tpp-numbers { --numbers-scale: 0.9; }
}

@media (max-width: 1200px) {
    .tpp-numbers { --numbers-scale: 0.85; }
}

@media (max-width: 1024px) {
    .tpp-numbers { --numbers-scale: 0.8; }
    .tpp-numbers__grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: calc(15px * var(--numbers-scale));
    }
    .tpp-numbers__item {
        flex: 0 0 calc(25% - 12px);
        max-width: calc(25% - 12px);
    }
}

@media (max-width: 768px) {
    .tpp-numbers { --numbers-scale: 0.75; }
    .tpp-numbers__item {
        flex: 0 0 calc(33.33% - 10px);
        max-width: calc(33.33% - 10px);
    }
    .tpp-numbers__label { letter-spacing: 0; }
}

@media (max-width: 480px) {
    .tpp-numbers { --numbers-scale: 0.7; }
}

/* ========================================
   Module 17: TPP Stars (Carousel)
======================================== */

.tpp-stars {
    position: relative;
    z-index: 1;
    background-color: var(--stars-bg-color, #ffffff);
    padding: 60px 0;
    overflow: hidden;
}

.tpp-stars__header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.tpp-stars__title {
    font-family: var(--stars-title-font, 'Montserrat', sans-serif);
    color: var(--stars-title-color, #1a1a2e);
    font-size: var(--stars-title-size, 42px);
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.tpp-stars__line {
    width: 60px;
    height: 3px;
    background-color: var(--stars-line-color, #05d38f);
    margin: 0 auto 15px auto;
}

.tpp-stars__subtitle {
    font-family: var(--stars-subtitle-font, 'Open Sans', sans-serif);
    color: var(--stars-subtitle-color, #666666);
    font-size: var(--stars-subtitle-size, 16px);
    font-weight: 400;
    margin: 0;
    line-height: 1.5;

}

/* Carousel layout */
.tpp-stars__carousel {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 50px;
}

.tpp-stars__viewport {
    flex: 1;
    overflow: hidden;
}

.tpp-stars__track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

/* Navigation arrows */
.tpp-stars__arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center at photo middle: 10% = half of card width (20% for 5 cards), minus half arrow height */
    margin-top: calc(10% - 22px);
    transition: all 0.3s ease;
    color: #333;
}

.tpp-stars__arrow:hover {
    background: var(--stars-line-color, #05d38f);
    color: #fff;
}

.tpp-stars__arrow svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.tpp-stars__arrow--prev {
    margin-right: 15px;
}

.tpp-stars__arrow--next {
    margin-left: 15px;
}

/* Card - 5 per row by default */
.tpp-stars__card {
    flex: 0 0 calc(20% - 16px);
    min-width: calc(20% - 16px);
    display: flex;
    flex-direction: column;
}

/* Photos container - SQUARE 1:1 */
.tpp-stars__photos {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio */
    /* 3 corners rounded, top-left straight */
    border-radius: 0 var(--stars-photo-radius, 20px) var(--stars-photo-radius, 20px) var(--stars-photo-radius, 20px);
    overflow: visible;
    background: #f0f0f0;
}

/* Tractor photo - full background */
.tpp-stars__tractor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Rounded corners - matches container */
    border-radius: 0 var(--stars-photo-radius, 20px) var(--stars-photo-radius, 20px) var(--stars-photo-radius, 20px);
}

/* Start number badge - top-left corner, 1/4 width, square */
.tpp-stars__start-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(5, 211, 143, 0.8);
    color: #ffffff;
    font-family: var(--stars-number-font, var(--stars-name-font, 'Audiowide', sans-serif));
    font-weight: 700;
    font-size: var(--stars-number-size, min(2.5vw, 1.5rem));
    /* Top-left sharp, other corners 2/3 of photo radius (top-right, bottom-right, bottom-left) */
    border-radius: 0 calc(var(--stars-photo-radius, 20px) * 0.67) calc(var(--stars-photo-radius, 20px) * 0.67) calc(var(--stars-photo-radius, 20px) * 0.67);
    z-index: 3;
}

/* Person photo - overlay at top-right, 50% size */
.tpp-stars__person {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 50%;
    object-fit: cover;
    border-radius: var(--stars-photo-radius, 20px);
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Category badge overlay - centered at bottom, 1/4 below photo */
.tpp-stars__badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 75%;
    height: auto;
    transform: translateX(-50%) translateY(33.33%);
    z-index: 3;
    pointer-events: none;
}

/* Placeholder badge - dark overlay */
.tpp-stars__card--placeholder .tpp-stars__badge {
    filter: brightness(0.5) grayscale(1) blur(1px);
    opacity: 0.6;
}

/* Placeholder name - grayed out */
.tpp-stars__card--placeholder .tpp-stars__name {
    color: #999999;
}

/* Placeholder social icons - grayed out and disabled */
.tpp-stars__card--placeholder .tpp-stars__social-link {
    color: #999999;
    pointer-events: none;
}

/* Awaiting number - full color but not clickable */
.tpp-stars__card--awaiting {
    cursor: default;
}

/* Clickable cards (non-placeholder) */
.tpp-stars__card[data-start-number] {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tpp-stars__card[data-start-number]:hover {
    transform: translateY(-4px);
}

.tpp-stars__card[data-start-number]:focus-visible {
    outline: 2px solid #05d38f;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Info section below photo - adjusted for badge */
.tpp-stars__info {
    position: relative;
    z-index: 4;
    margin-top: calc(5% + var(--stars-info-margin, 10%));
    text-align: center;
}

.tpp-stars__name {
    display: block;
    font-family: var(--stars-name-font, 'Audiowide', sans-serif);
    color: var(--stars-name-color, #05d38f);
    font-size: var(--stars-name-size, 16px);
    font-weight: 600;
    margin-bottom: 10px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Social icons */
.tpp-stars__social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.tpp-stars__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--stars-social-size, 20px);
    height: var(--stars-social-size, 20px);
    color: var(--stars-social-color, #ffffff);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tpp-stars__social-link:hover {
    opacity: 0.7;
    transform: scale(1.2);
}

.tpp-stars__social-link svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Responsive: 1400px - 4 cards */
@media (max-width: 1400px) {
    .tpp-stars__card {
        flex: 0 0 calc(25% - 15px);
        min-width: calc(25% - 15px);
    }
    .tpp-stars__arrow {
        margin-top: calc(12.5% - 22px);
    }
    .tpp-stars__title {
        font-size: calc(var(--stars-title-size, 42px) * 0.9);
    }
    .tpp-stars__start-number {
        font-size: min(3vw, 1.5rem);
    }
}

/* Responsive: 1200px - 3 cards */
@media (max-width: 1200px) {
    .tpp-stars__card {
        flex: 0 0 calc(33.33% - 14px);
        min-width: calc(33.33% - 14px);
    }
    .tpp-stars__arrow {
        margin-top: calc(16.66% - 22px);
    }
    .tpp-stars__title {
        font-size: calc(var(--stars-title-size, 42px) * 0.85);
    }
    .tpp-stars__start-number {
        font-size: min(3.5vw, 1.5rem);
    }
}

/* Responsive: 1024px - 2 cards */
@media (max-width: 1024px) {
    .tpp-stars__carousel {
        padding: 0 40px;
    }
    .tpp-stars__card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
    .tpp-stars__arrow {
        margin-top: calc(25% - 22px);
    }
    .tpp-stars__title {
        font-size: calc(var(--stars-title-size, 42px) * 0.8);
    }
    .tpp-stars__start-number {
        font-size: min(4vw, 1.5rem);
    }
}

/* Responsive: 768px - 1 card, no arrows, swipe only */
@media (max-width: 768px) {
    .tpp-stars {
        padding: 40px 0;
    }
    .tpp-stars__carousel {
        padding: 0;
    }
    .tpp-stars__arrow {
        display: none;
    }
    .tpp-stars__viewport {
        flex: 0 0 75%;
        width: 75%;
        margin: 0 auto;
    }
    .tpp-stars__card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .tpp-stars__title {
        font-size: calc(var(--stars-title-size, 42px) * 0.7);
    }
    .tpp-stars__subtitle {
        font-size: calc(var(--stars-subtitle-size, 16px) * 0.9);
    }
    .tpp-stars__start-number {
        font-size: min(6vw, 1.8rem);
    }
}

/* Responsive: 480px - small mobile */
@media (max-width: 480px) {
    .tpp-stars__header {
        margin-bottom: 25px;
    }
    .tpp-stars__title {
        font-size: calc(var(--stars-title-size, 42px) * 0.6);
    }

}

/* ==========================================================================
   MODULE 18: PARTNERS/SPONSORS
   ========================================================================== */

.tpp-partners-sponsors {
    width: 100%;
    margin-top: var(--ps-margin-top, 0);
    padding: 60px 0;
    background-color: var(--ps-bg-color, rgba(26, 26, 46, 0.9));
}

/* Content wrapper - responsive width, centered */
.tpp-ps-container {
    width: 80%;
    margin: 0 auto;
}

@media (max-width: 1600px) {
    .tpp-ps-container {
        width: 90%;
    }
}

@media (max-width: 1400px) {
    .tpp-ps-container {
        width: 100%;
        padding: 0 20px;
    }
}

/* Section (Partners or Sponsors) */
.tpp-ps-section {
    margin-bottom: var(--ps-section-gap, 6vh);
}

.tpp-ps-section:last-child {
    margin-bottom: 0;
}

/* Title */
.tpp-ps-title {
    font-family: var(--ps-title-font, 'Russo One', sans-serif);
    font-size: var(--ps-title-size, 48px);
    color: var(--ps-title-color, #f5f5f5);
    text-align: center;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.tpp-ps-title strong {
    font-weight: inherit;
}

/* Horizontal Line */
.tpp-ps-line {
    width: 120px;
    height: 4px;
    background-color: var(--ps-line-color, #f5f5f5);
    margin: 0 auto 40px auto;
}

/* ===== DESKTOP: Flexbox with centered tiles (max 8 per row) ===== */
.tpp-ps-grid--desktop {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* ===== MOBILE: Carousel (hidden on desktop) ===== */
.tpp-ps-mobile-carousel {
    display: none;
}

/* ===== Tile (shared for both desktop and mobile) ===== */
.tpp-ps-tile {
    /* Desktop: max 8 tiles per row, 7 gaps of 15px = 105px */
    flex: 0 0 calc((100% - 105px) / 8);
    max-width: calc((100% - 105px) / 8);
    aspect-ratio: 2 / 1; /* Wider rectangular */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tpp-ps-tile--partner {
    background-color: var(--ps-partners-tile-bg, #f5f5f5);
    border-radius: var(--ps-partners-radius, 15px);
}

.tpp-ps-tile--sponsor {
    background-color: var(--ps-sponsors-tile-bg, #f5f5f5);
    border-radius: var(--ps-sponsors-radius, 15px);
}

.tpp-ps-tile:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.tpp-ps-tile img {
    width: 90%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Responsive Breakpoints */

/* Tablet (<=1200px): 6 tiles per row */
@media (max-width: 1200px) {
    .tpp-ps-tile {
        /* 6 tiles per row, 5 gaps of 15px = 75px */
        flex: 0 0 calc((100% - 75px) / 6);
        max-width: calc((100% - 75px) / 6);
    }

    .tpp-ps-tile--partner {
        border-radius: calc(var(--ps-partners-radius, 15px) * 0.8);
    }

    .tpp-ps-tile--sponsor {
        border-radius: calc(var(--ps-sponsors-radius, 15px) * 0.8);
    }
}

/* Small tablet (<=768px): 3 tiles per row */
@media (max-width: 768px) {
    .tpp-ps-container {
        width: 95%;
    }

    .tpp-partners-sponsors {
        padding: 40px 0;
    }

    .tpp-ps-tile {
        /* 3 tiles per row, 2 gaps of 15px = 30px */
        flex: 0 0 calc((100% - 30px) / 3);
        max-width: calc((100% - 30px) / 3);
    }

    .tpp-ps-title {
        font-size: calc(var(--ps-title-size, 48px) * 0.6);
        margin-bottom: 10px;
    }

    .tpp-ps-line {
        width: 80px;
        height: 3px;
        margin-bottom: 25px;
    }

    .tpp-ps-section {
        margin-bottom: calc(var(--ps-section-gap, 6vh) * 0.7);
    }

    .tpp-ps-tile--partner {
        border-radius: calc(var(--ps-partners-radius, 15px) * 0.65);
    }

    .tpp-ps-tile--sponsor {
        border-radius: calc(var(--ps-sponsors-radius, 15px) * 0.65);
    }
}

/* Mobile (<=567px): Switch to carousel, 2 tiles per row */
@media (max-width: 567px) {
    /* Hide desktop grid */
    .tpp-ps-grid--desktop {
        display: none;
    }

    /* Show mobile carousel */
    .tpp-ps-mobile-carousel {
        display: block;
        overflow: hidden;
        width: 100%;
        position: relative;
    }

    /* Mobile track: grid with 2 columns, auto rows */
    .tpp-ps-mobile-track {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        gap: 15px;
        will-change: transform;
    }

    /* Tiles in mobile: reset desktop flex, fill grid cell */
    .tpp-ps-mobile-carousel .tpp-ps-tile {
        flex: none;
        max-width: none;
        width: 100%;
    }

    /* Center last tile if alone in row (odd number of tiles) */
    .tpp-ps-mobile-track .tpp-ps-tile:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        width: 50%;
    }

    .tpp-ps-tile--partner {
        border-radius: calc(var(--ps-partners-radius, 15px) * 0.55);
    }

    .tpp-ps-tile--sponsor {
        border-radius: calc(var(--ps-sponsors-radius, 15px) * 0.55);
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .tpp-partners-sponsors {
        padding: 30px 0;
    }

    .tpp-ps-title {
        font-size: calc(var(--ps-title-size, 48px) * 0.5);
    }

    .tpp-ps-tile {
        padding: 8px;
    }

    .tpp-ps-mobile-track {
        gap: 10px;
    }

    .tpp-ps-tile--partner {
        border-radius: calc(var(--ps-partners-radius, 15px) * 0.5);
    }

    .tpp-ps-tile--sponsor {
        border-radius: calc(var(--ps-sponsors-radius, 15px) * 0.5);
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.tpp-site-footer {
    background: #1a1a2e;
    color: #f5f5f5;
    padding: 60px 0 0;
    margin-top: 80px;
}

.tpp-footer__container {
    width: 90%;
    margin: 0 auto;
}

/* Footer Main Content */
.tpp-footer__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(245, 245, 245, 0.1);
}

/* Logo */
.tpp-footer__logo {
    max-width: 300px;
    width: 100%;
}

.tpp-footer__logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.tpp-footer__logo-link {
    text-decoration: none;
}

.tpp-footer__logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #f5f5f5;
    margin: 0;
}

/* Footer Navigation */
.tpp-footer__nav {
    width: 100%;
}

.tpp-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.tpp-footer__menu li {
    margin: 0;
}

.tpp-footer__menu a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.tpp-footer__menu a:hover {
    color: #05d38f;
}

/* Social Media Icons */
.tpp-footer__social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.tpp-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(245, 245, 245, 0.1);
    color: #f5f5f5;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tpp-footer__social-link:hover {
    background: #05d38f;
    color: #1a1a2e;
    transform: translateY(-3px);
}

.tpp-footer__social-link svg {
    width: 24px;
    height: 24px;
}

/* Location & Social Media Row */
.tpp-footer__location-social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

/* Location */
.tpp-footer__location {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(245, 245, 245, 0.05);
    transition: all 0.3s ease;
}

.tpp-footer__location:hover {
    background: rgba(245, 245, 245, 0.1);
}

.tpp-footer__location-icon {
    flex-shrink: 0;
    color: #05d38f;
}

.tpp-footer__location-text {
    font-size: 14px;
    color: #f5f5f5;
}

/* Footer Bottom Bar */
.tpp-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    font-size: 14px;
    color: rgba(245, 245, 245, 0.7);
}

.tpp-footer__copyright {
    text-align: left;
}

.tpp-footer__credits {
    text-align: right;
}

.tpp-footer__credits a {
    color: #05d38f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tpp-footer__credits a:hover {
    color: #04b876;
}

/* Responsive: Tablet */
@media (max-width: 768px) {
    .tpp-site-footer {
        padding: 40px 0 0;
        margin-top: 60px;
    }

    .tpp-footer__main {
        gap: 30px;
        padding-bottom: 30px;
    }

    .tpp-footer__menu {
        gap: 20px;
        font-size: 14px;
    }

    .tpp-footer__location-social {
        flex-direction: column;
        gap: 25px;
    }

    .tpp-footer__bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px 0;
    }

    .tpp-footer__copyright,
    .tpp-footer__credits {
        text-align: center;
    }
}

/* Responsive: Mobile */
@media (max-width: 480px) {
    .tpp-site-footer {
        padding: 30px 0 0;
        margin-top: 40px;
    }

    .tpp-footer__main {
        gap: 25px;
        padding-bottom: 25px;
    }

    .tpp-footer__menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .tpp-footer__location-social {
        flex-direction: column;
        gap: 20px;
    }

    .tpp-footer__social {
        gap: 15px;
    }

    .tpp-footer__social-link {
        width: 40px;
        height: 40px;
    }

    .tpp-footer__social-link svg {
        width: 20px;
        height: 20px;
    }

    .tpp-footer__location {
        padding: 10px 15px;
    }

    .tpp-footer__location-text {
        font-size: 12px;
    }

    .tpp-footer__bottom {
        font-size: 12px;
    }
}
/* ==========================================================================
   New Footer (3-column layout with logos, menu, location, social)
   ========================================================================== */

.tpp-site-footer-new {
    background: #1a1a2e;
    color: #f5f5f5;
    padding: 20px 0 0;
}

.tpp-footer-new__container {
    width: 80%;
    margin: 0 auto;
}

/* === Top Section: Logo (Left) | Menu (Center) | Logo (Right) === */
.tpp-footer-new__top {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 2%;
    padding-bottom: 0;
}

/* Logos */
.tpp-footer-new__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpp-footer-new__logo img {
    width: 90%;
    height: auto;
    object-fit: contain;
}

.tpp-footer-new__logo--left {
    justify-content: center;
}

.tpp-footer-new__logo--right {
    justify-content: center;
}

/* Navigation Menu */
.tpp-footer-new__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Hamburger (hidden on desktop) */
.tpp-footer-new__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
}

.tpp-footer-new__hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #f5f5f5;
    transition: all 0.3s ease;
}

.tpp-footer-new__hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.tpp-footer-new__hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.tpp-footer-new__hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu */
.tpp-footer-new__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: baseline;
    gap: 40px;
}

.tpp-footer-new__menu > li {
    margin: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.tpp-footer-new__menu > li > a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: clamp(14px, 1.35vw, 19px);
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0;
    margin-bottom: 10px;
    line-height: 1;
    white-space: nowrap;
}

.tpp-footer-new__menu > li > a:hover {
    color: #05d38f;
}

/* Submenu - always visible, displayed directly below parent */
.tpp-footer-new__menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tpp-footer-new__menu .sub-menu li {
    margin: 0;
}

.tpp-footer-new__menu .sub-menu a {
    color: rgba(245, 245, 245, 0.8);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    display: block;
    transition: color 0.3s ease;
    text-align: center;
}

.tpp-footer-new__menu .sub-menu a:hover {
    color: #05d38f;
}

/* === Logo Carousel (Mobile Only) === */
.tpp-footer-new__logo-carousel {
    display: none; /* Hidden on desktop */
    overflow: hidden;
    width: 100%;
    margin-bottom: 30px;
    position: relative;
}

.tpp-footer-new__logo-carousel-track {
    position: relative;
    width: 100%;
}

.tpp-footer-new__logo-carousel-item {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpp-footer-new__logo-carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* === Middle Section: Location (Left) | Social Media (Right) === */
.tpp-footer-new__middle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15vw;
    padding: 30px 0;
}

/* Location */
.tpp-footer-new__location {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(245, 245, 245, 0.05);
    transition: all 0.3s ease;
}

.tpp-footer-new__location:hover {
    background: rgba(245, 245, 245, 0.1);
}

.tpp-footer-new__location-icon {
    flex-shrink: 0;
    color: #05d38f;
}

.tpp-footer-new__location-text {
    font-size: 14px;
    color: #f5f5f5;
}

/* Social Media */
.tpp-footer-new__social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.tpp-footer-new__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(245, 245, 245, 0.1);
    color: #f5f5f5;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tpp-footer-new__social-link:hover {
    background: #05d38f;
    color: #1a1a2e;
    transform: translateY(-3px);
}

.tpp-footer-new__social-link svg {
    width: 24px;
    height: 24px;
}

/* === Bottom Bar: Copyright | Powered by | Credits === */
.tpp-footer-new__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 1px solid rgba(245, 245, 245, 0.1);
    font-size: 14px;
    color: rgba(245, 245, 245, 0.7);
    gap: 20px;
}

.tpp-footer-new__copyright {
    flex: 1;
    text-align: left;
}

.tpp-footer-new__powered-by {
    flex: 1;
    text-align: center;
}

.tpp-footer-new__credits {
    flex: 1;
    text-align: right;
}

.tpp-footer-new__bottom a {
    color: #05d38f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tpp-footer-new__bottom a:hover {
    color: #04b876;
}

/* ============================================
   GALLERY COMPACT MODULE
   ============================================ */

.tpp-gallery-compact {
    position: relative;
    width: 100%;
}

.tpp-gallery-compact__header {
    margin-bottom: 40px;
}

.tpp-gallery-compact__line {
    width: 60px;
    height: 4px;
    background: var(--gallery-line-color, #05d38f);
    margin: 15px auto 20px;
}

.tpp-gallery-compact__carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 70px;
}

.tpp-gallery-compact__viewport {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.tpp-gallery-compact__track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
    width: 100%;
}

.tpp-gallery-compact__slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--gallery-gap-v, 15px) var(--gallery-gap-h, 15px);
}

.tpp-gallery-compact__item {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: var(--gallery-radius, 10px);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tpp-gallery-compact__item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.tpp-gallery-compact__title {
    font-family: var(--gallery-title-font, 'Montserrat', sans-serif);
    font-size: var(--gallery-title-size, 48px);
    color: var(--gallery-title-color, #f5f5f5);
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}

.tpp-gallery-compact__subtitle {
    font-family: var(--gallery-subtitle-font, 'Open Sans', sans-serif);
    font-size: var(--gallery-subtitle-size, 18px);
    color: var(--gallery-subtitle-color, rgba(245, 245, 245, 0.8));
    text-align: center;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Lazy loading placeholder */
.tpp-gallery-compact__image.tpp-lazy {
    background: linear-gradient(90deg, #2a2a3e 25%, #3a3a4e 50%, #2a2a3e 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

.tpp-gallery-compact__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Navigation Arrows - same style as Stars module */
.tpp-gallery-compact__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
}

.tpp-gallery-compact__arrow:hover {
    background: var(--gallery-line-color, #05d38f);
    color: #fff;
}

.tpp-gallery-compact__arrow--prev {
    left: 0;
}

.tpp-gallery-compact__arrow--next {
    right: 0;
}

.tpp-gallery-compact__arrow svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* Responsive: Tablet (3 columns x 2 rows) */
@media (max-width: 1024px) {
    .tpp-gallery-compact__slide {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive: Mobile (2 columns x 2 rows, hide arrows) */
@media (max-width: 768px) {
    .tpp-gallery-compact__slide {
        grid-template-columns: repeat(2, 1fr);
    }

    .tpp-gallery-compact__arrow {
        display: none;
    }

    .tpp-gallery-compact__carousel {
        padding: 0 20px;
    }
}

/* Touch devices - disable hover effect */
@media (hover: none) {
    .tpp-gallery-compact__item:hover {
        transform: none;
    }
}

/* === Footer Container Responsive === */
@media (max-width: 1600px) {
    .tpp-footer-new__container {
        width: 90%;
    }
}

@media (max-width: 1400px) {
    .tpp-footer-new__container {
        width: 96%;
    }
}

/* === Responsive: Tablet === */
@media (max-width: 1024px) {
    /* Hide desktop logos on tablet */
    .tpp-footer-new__logo {
        display: none;
    }

    .tpp-footer-new__top {
        display: flex;
        justify-content: center;
    }

    .tpp-footer-new__menu {
        gap: 20px;
    }

    .tpp-footer-new__menu > li > a {
        font-size: 14px;
    }
}

/* === Responsive: Mobile === */
@media (max-width: 768px) {
    .tpp-site-footer-new {
        padding: 1px 0 0;
    }

    /* Hide desktop logos */
    .tpp-footer-new__logo {
        display: none;
    }

    /* Show logo carousel - 50% width, centered */
    .tpp-footer-new__logo-carousel {
        display: block;
        width: 50%;
        height: 150px;
        margin: 0 auto 30px;
    }

    .tpp-footer-new__logo-carousel-track {
        position: relative;
        height: 100%;
    }

    .tpp-footer-new__logo-carousel-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }

    .tpp-footer-new__logo-carousel-item.active {
        opacity: 1;
    }

    /* Top section: Only hamburger */
    .tpp-footer-new__top {
        display: flex;
        justify-content: flex-end;
        padding-bottom: 20px;
    }

    /* Show hamburger - right side */
    .tpp-footer-new__hamburger {
        display: flex;
        margin: 0;
    }

    /* Hide footer menu on mobile (hamburger triggers header menu) */
    .tpp-footer-new__nav {
        display: none;
    }

    /* Middle section: vertical stack */
    .tpp-footer-new__middle {
        flex-direction: column;
        gap: 20px;
        padding: 25px 0;
    }

    .tpp-footer-new__location,
    .tpp-footer-new__social {
        width: 100%;
        justify-content: center;
    }

    /* Bottom bar: stack vertically on mobile */
    .tpp-footer-new__bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
        padding: 20px 0;
        font-size: 12px;
    }

    .tpp-footer-new__copyright,
    .tpp-footer-new__powered-by,
    .tpp-footer-new__credits {
        text-align: center;
    }
}

/* === Responsive: Small Mobile === */
@media (max-width: 480px) {
    .tpp-site-footer-new {
        padding: 30px 0 0;
    }

    .tpp-footer-new__logo-carousel {
        width: 60%;
        height: 120px;
    }

    .tpp-footer-new__location {
        padding: 10px 15px;
    }

    .tpp-footer-new__location-text {
        font-size: 12px;
    }

    .tpp-footer-new__social {
        gap: 10px;
    }

    .tpp-footer-new__social-link {
        width: 40px;
        height: 40px;
    }

    .tpp-footer-new__social-link svg {
        width: 20px;
        height: 20px;
    }

    .tpp-footer-new__bottom {
        font-size: 11px;
    }
}

/* ============================================
   Sectioned Content Styles
   ============================================ */

.tpp-section--custom {
    margin-left: auto;
    margin-right: auto;
    padding: 0 2vw;
}

.tpp-section__title {
    font-family: var(--title-font, 'Montserrat', sans-serif);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 var(--title-gap, 3%) 0;
    text-align: center;
    line-height: 1.2;
}

.tpp-section__content {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.tpp-section__content p {
    margin-bottom: 1em;
}

.tpp-section__content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1a1a2e;
}

.tpp-section__content ul,
.tpp-section__content ol {
    margin-left: 2em;
    margin-bottom: 1em;
}

.tpp-section__content li {
    margin-bottom: 0.5em;
}

.tpp-section__content img,
.tpp-section__content--desktop img,
.tpp-section__content--mobile img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile content responsive - hide mobile by default, show on small screens if enabled */
.tpp-section__content--mobile {
    display: none;
}

@media (max-width: 768px) {
    .tpp-section--custom {
        padding: 0 4vw;
    }

    .tpp-section__title {
        font-size: clamp(24px, 6vw, 36px);
    }

    /* Show mobile content and hide desktop ONLY when mobile content exists */
    .tpp-section--custom.has-mobile-content .tpp-section__content--desktop {
        display: none;
    }

    .tpp-section--custom.has-mobile-content .tpp-section__content--mobile {
        display: block;
    }
}

/* ==========================================================================
   Privacy Policy Modal - Global modal for privacy policy display
   ========================================================================== */

.tpp-privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000; /* Very high z-index to always be on top */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tpp-privacy-modal.is-open {
    display: flex !important;
}

.tpp-privacy-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    animation: tpp-modal-fade-in 0.3s ease;
}

.tpp-privacy-modal__content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
    animation: tpp-modal-slide-up 0.3s ease;
}

.tpp-privacy-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2;
}

.tpp-privacy-modal__close:hover {
    background: #f0f0f0;
    color: #c8102e;
}

.tpp-privacy-modal__header {
    padding: 30px 30px 20px;
    border-bottom: 2px solid #e5e7eb;
}

.tpp-privacy-modal__header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.tpp-privacy-modal__body {
    padding: 30px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

/* Content styling inside modal */
.tpp-privacy-modal__body h1,
.tpp-privacy-modal__body h2,
.tpp-privacy-modal__body h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #1f2937;
}

.tpp-privacy-modal__body h1 {
    font-size: 24px;
    font-weight: 700;
}

.tpp-privacy-modal__body h2 {
    font-size: 20px;
    font-weight: 700;
}

.tpp-privacy-modal__body h3 {
    font-size: 17px;
    font-weight: 600;
}

.tpp-privacy-modal__body p {
    margin: 12px 0;
}

.tpp-privacy-modal__body ul,
.tpp-privacy-modal__body ol {
    margin: 12px 0;
    padding-left: 24px;
}

.tpp-privacy-modal__body li {
    margin: 6px 0;
}

.tpp-privacy-modal__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.tpp-privacy-modal__body th,
.tpp-privacy-modal__body td {
    padding: 10px;
    border: 1px solid #d1d5db;
    text-align: left;
}

.tpp-privacy-modal__body th {
    background: #f3f4f6;
    font-weight: 600;
}

.tpp-privacy-modal__body strong {
    color: #1f2937;
    font-weight: 600;
}

.tpp-privacy-modal__body em {
    font-style: italic;
    color: #6b7280;
}

/* Animations */
@keyframes tpp-modal-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes tpp-modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent body scroll when modal is open */
body.tpp-modal-open {
    overflow: hidden;
}

/* Link styling for privacy policy trigger */
.tpp-privacy-policy-link {
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tpp-privacy-policy-link:hover {
    color: #1d4ed8;
}

/* Responsive */
@media (max-width: 768px) {
    .tpp-privacy-modal {
        padding: 10px;
    }

    .tpp-privacy-modal__content {
        max-height: 90vh;
        border-radius: 8px;
    }

    .tpp-privacy-modal__header {
        padding: 20px 20px 15px;
    }

    .tpp-privacy-modal__header h2 {
        font-size: 22px;
        padding-right: 30px; /* Space for close button */
    }

    .tpp-privacy-modal__body {
        padding: 20px;
        font-size: 14px;
    }

    .tpp-privacy-modal__close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
}
