/* ==========================================
   Koh Chang Ocean Race: The Emerald Challenge
   Custom Styles
   ========================================== */

/* ---- CSS Variables ---- */
:root {
    --primary: #0a2f5c;
    --primary-light: #134a8e;
    --primary-dark: #061e3d;
    --accent: #00c9a7;
    --accent-dark: #00a88c;
    --accent-light: #33d4b8;
    --secondary: #1a5276;
    --gold: #f0c040;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --dark: #0b1d33;
    --light-bg: #f4f7fa;
    --text: #2c3e50;
    --text-muted: #7f8c9b;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow: 0 4px 30px rgba(10, 47, 92, 0.08);
    --shadow-lg: 0 10px 50px rgba(10, 47, 92, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Global ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

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

.text-accent {
    color: var(--accent) !important;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.section-padding {
    padding: 80px 0;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* ---- Top Bar ---- */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    font-size: 0.82rem;
    padding: 8px 0;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.top-bar span {
    opacity: 0.85;
}

.top-social {
    color: var(--white);
    opacity: 0.7;
    margin-left: 14px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.top-social:hover {
    color: var(--accent);
    opacity: 1;
}

/* ---- Navbar ---- */
#mainNavbar {
    background: rgba(10, 47, 92, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1050;
}

#mainNavbar.scrolled {
    background: rgba(6, 30, 61, 0.98);
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: var(--white) !important;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    padding: 0;
}

.navbar-logo {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

#mainNavbar.scrolled .navbar-logo {
    height: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 12px !important;
    transition: var(--transition);
    position: relative;
}

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

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white) !important;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.82rem;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 201, 167, 0.35);
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 50%, #0d7377 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/all.png') center/cover no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10, 47, 92, 0.3) 0%, rgba(6, 30, 61, 0.7) 100%);
    z-index: 2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 201, 167, 0.15);
    border: 1px solid rgba(0, 201, 167, 0.3);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.hero-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-actions .btn {
    padding: 14px 32px;
    font-size: 0.9rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-scroll-indicator a {
    color: var(--white);
    font-size: 1.5rem;
    opacity: 0.5;
    animation: bounce 2s infinite;
}

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

/* ---- Page Hero (Inner pages) ---- */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 201, 167, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.min-vh-40 {
    min-height: 20vh;
}

.breadcrumb-dark .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-dark .breadcrumb-item.active {
    color: var(--accent);
}

.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.3);
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.page-hero-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    max-width: 600px;
}

/* ---- Countdown Section ---- */
.countdown-section {
    background: var(--primary-dark);
    padding: 60px 0;
    position: relative;
}

.countdown-wrapper {
    text-align: center;
}

.countdown-label {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    padding: 15px 25px;
}

.countdown-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-unit {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
}

.countdown-separator {
    font-size: 3rem;
    color: var(--accent);
    font-weight: 300;
    opacity: 0.5;
}

/* ---- About Section ---- */
.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius);
    text-align: center;
}

.badge-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.badge-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

.about-stat {
    text-align: center;
    padding: 20px 15px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-stat i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.about-stat h4 {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.about-stat p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Confirmed Athletes Box */
.confirmed-athletes-box {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.confirmed-athletes-table thead th {
    border-bottom: 2px solid var(--accent);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 8px 12px;
}

.confirmed-athletes-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    font-size: 0.92rem;
}

.confirmed-athletes-table tbody tr:hover {
    background: rgba(var(--accent-rgb, 230, 175, 46), 0.07);
}

/* ---- Race Classes ---- */
.race-classes-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    position: relative;
}

.race-class-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.race-class-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 201, 167, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.race-class-card.featured {
    border-color: var(--accent);
    background: rgba(0, 201, 167, 0.08);
}

.race-class-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
}

.race-class-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 201, 167, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.race-class-icon i {
    font-size: 2rem;
    color: var(--accent);
}

.race-class-card h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.race-class-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.race-class-details {
    list-style: none;
    padding: 0;
    text-align: left;
}

.race-class-details li {
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 0;
    font-size: 0.9rem;
}

.race-class-details li i {
    color: var(--accent);
    margin-right: 8px;
}

/* ---- News Cards ---- */
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.news-card-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
}

.news-read-more {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
}

.news-read-more:hover {
    color: var(--accent-dark);
}

/* ---- News Row Layout ---- */
.news-row {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
    transition: var(--transition);
}

.news-row:hover {
    box-shadow: var(--shadow-lg);
}

.news-row-header {
    padding: 28px 32px;
}

.news-row-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.news-row-category {
    background: var(--accent);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-row-date {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.news-row-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text);
}

.news-row-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 14px;
    line-height: 1.6;
}

.news-toggle-btn {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.news-toggle-btn:hover {
    color: var(--accent-dark);
}

.news-toggle-btn i {
    transition: transform 0.3s ease;
}

.news-toggle-btn.active i {
    transform: rotate(180deg);
}

.news-row-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.news-row-content.open {
    max-height: 5000px;
}

.news-article-body {
    padding: 0 32px 32px;
    border-top: 1px solid #e2e8f0;
    padding-top: 28px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text);
}

.news-article-body h4 {
    font-size: 1.4rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--primary);
}

.news-article-body h4:first-child {
    margin-top: 0;
}

.news-article-body h5 {
    font-size: 1.15rem;
    margin-top: 8px;
    margin-bottom: 18px;
    color: var(--text);
    line-height: 1.5;
}

.news-article-body h6 {
    font-size: 1.05rem;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-weight: 700;
}

.news-article-body p {
    margin-bottom: 14px;
    line-height: 1.85;
}

.news-article-body ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.news-article-body ul li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.news-article-body hr {
    margin: 32px 0;
    border-color: #e2e8f0;
}

.news-article-body strong {
    color: var(--text);
}

@media (max-width: 768px) {
    .news-row-header {
        padding: 20px;
    }
    .news-article-body {
        padding: 0 20px 20px;
        padding-top: 20px;
    }
    .news-row-title {
        font-size: 1.15rem;
    }
}

/* ---- News Filters ---- */
.news-filters, .doc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.filter-btn {
    background: var(--white);
    border: 2px solid #e2e8f0;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
}

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

/* ---- Gallery ---- */
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 47, 92, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d7377 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(0, 201, 167, 0.15);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(0, 201, 167, 0.1);
    border-radius: 50%;
}

.cta-title {
    font-size: 2.8rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 35px;
}

/* ---- Info Cards ---- */
.info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 201, 167, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.info-icon i {
    font-size: 1.5rem;
    color: var(--accent);
}

/* ---- Form Card ---- */
.form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.form-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 25px 30px;
    color: var(--white);
}

.form-card-header h3 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.form-card-body {
    padding: 30px;
}

.form-section-title {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 20px;
}

.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.15);
}

/* ---- SUP Event Cards ---- */
.sup-event-card {
    position: relative;
    padding: 0;
    margin: 0;
}

.sup-event-card .form-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sup-event-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 20px 28px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    background: var(--white);
    transition: var(--transition);
    user-select: none;
    font-size: 1rem;
}

.sup-event-label:hover {
    border-color: var(--accent);
    background: rgba(0, 201, 167, 0.05);
}

.sup-event-card .form-check-input:checked + .sup-event-label {
    border-color: var(--accent);
    background: rgba(0, 201, 167, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.2);
    color: var(--primary);
}

.sup-event-card .form-check-input:checked + .sup-event-label i {
    color: var(--accent);
}

/* ---- Venue Cards ---- */
.venue-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.venue-image {
    height: 100%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
}

.venue-content {
    padding: 40px;
    position: relative;
}

.venue-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(10, 47, 92, 0.06);
    line-height: 1;
}

.venue-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.venue-description {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.venue-address {
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.facility-badge {
    background: rgba(0, 201, 167, 0.1);
    color: var(--accent-dark);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ---- Transport Cards ---- */
.transport-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.transport-card:hover {
    transform: translateY(-5px);
}

.transport-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.transport-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

/* ---- Schedule Timeline ---- */
.schedule-tabs .nav-link {
    background: var(--white);
    color: var(--text);
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 4px;
    transition: var(--transition);
}

.schedule-tabs .nav-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.schedule-tabs .nav-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.schedule-timeline {
    position: relative;
    padding-left: 30px;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--primary));
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.2);
    z-index: 1;
}

.timeline-time {
    flex-shrink: 0;
    width: 140px;
}

.time-text {
    background: var(--primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.timeline-title {
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.timeline-location {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ---- Key Info Cards ---- */
.key-info-card {
    text-align: center;
    padding: 25px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

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

.key-info-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.key-info-card h6 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.key-info-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---- Results ---- */
.results-placeholder {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    box-shadow: var(--shadow);
}

.results-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.1), rgba(10, 47, 92, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.results-icon i {
    font-size: 2.5rem;
    color: var(--accent);
}

.result-feature {
    padding: 20px;
}

.result-feature i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.results-table {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.results-table thead {
    background: var(--primary);
    color: var(--white);
}

.results-table thead th {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 12px;
    border: none;
}

.results-table tbody td {
    padding: 12px;
    vertical-align: middle;
    border-color: #f0f0f0;
}

.position-badge {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--white);
}

.position-badge.gold { background: var(--gold); color: #333; }
.position-badge.silver { background: var(--silver); color: #333; }
.position-badge.bronze { background: var(--bronze); }

/* ---- Rules ---- */
.rules-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.rules-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rules-nav-link {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text);
    transition: var(--transition);
}

.rules-nav-link:hover,
.rules-nav-link.active {
    background: rgba(0, 201, 167, 0.1);
    color: var(--accent-dark);
}

.rules-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.rules-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.rules-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rules-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.rules-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.rules-section li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.rules-note {
    background: rgba(0, 201, 167, 0.08);
    border-left: 4px solid var(--accent);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.rules-note i {
    font-size: 1.2rem;
    color: var(--accent);
}

.rules-note p { margin: 0; font-size: 0.9rem; }

.rules-warning {
    background: rgba(240, 192, 64, 0.1);
    border-left: 4px solid var(--gold);
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
}

.rules-warning i {
    font-size: 1.2rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.rules-warning p { margin: 0; font-size: 0.9rem; }

.entry-card {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 20px;
    height: 100%;
}

.entry-card h6 {
    color: var(--primary);
    margin-bottom: 10px;
}

.entry-card ul {
    padding-left: 18px;
    margin: 0;
}

.entry-card li {
    font-size: 0.9rem;
}

/* ---- Documents ---- */
.document-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.document-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.document-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: rgba(220, 53, 69, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-icon i {
    font-size: 1.5rem;
    color: #dc3545;
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-title {
    font-size: 1rem;
    margin-bottom: 4px;
}

.document-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.document-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.78rem;
}

.document-action {
    flex-shrink: 0;
}

.doc-notice {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px 30px;
    box-shadow: var(--shadow);
}

/* ---- Contact Info ---- */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 201, 167, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon i {
    font-size: 1.2rem;
    color: var(--accent);
}

.contact-info-item h6 {
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.contact-info-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--dark);
    padding: 80px 0 30px;
    position: relative;
    margin-top: -1px;
}

.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    color: var(--dark);
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 50px;
}

.footer-brand {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.footer-brand i {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

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

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-contact li span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 30px 0 20px;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
}

/* ---- Back to Top ---- */
.btn-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 201, 167, 0.3);
}

.btn-back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ---- Buttons ---- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    padding: 10px 24px;
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    padding: 10px 24px;
}

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

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

/* ---- Floating Particles (Hero) ---- */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 201, 167, 0.3);
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ---- Responsive ---- */
@media (max-width: 1199.98px) {
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { font-size: 1.2rem; letter-spacing: 5px; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 991.98px) {
    .hero-title { font-size: 3rem; }
    .countdown-value { font-size: 3rem; }
    .section-padding { padding: 60px 0; }
    .page-hero { padding: 100px 0 40px; }
    .page-hero-title { font-size: 2.2rem; }
    .venue-image { min-height: 250px; }
    .rules-sidebar { margin-bottom: 30px; }
}

@media (max-width: 767.98px) {
    .hero-section { text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; letter-spacing: 3px; }
    .hero-text { margin: 0 auto 30px; }
    .hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; }
    .hero-actions .me-3 { margin-right: 0 !important; }
    .hero-video-bg { height: 100vh; width: 100vw; object-fit: cover; }
    .countdown-value { font-size: 2.5rem; }
    .countdown-item { padding: 10px 15px; }
    .about-image { height: 300px; }
    .timeline-time { width: 110px; }
    .time-text { font-size: 0.72rem; padding: 4px 10px; }
    .cta-title { font-size: 2rem; }
    .rules-content { padding: 25px; }
    .venue-content { padding: 25px; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 2rem; }
    .countdown-separator { display: none; }
    .section-title { font-size: 1.6rem; }
    .page-hero-title { font-size: 1.8rem; }
}

/* ---- Registration Deadline Banner ---- */
.deadline-banner {
    background: linear-gradient(90deg, #d35400, #e67e22, #d35400);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1030;
}
.deadline-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}
.deadline-banner-content i {
    font-size: 1rem;
    animation: pulse-icon 2s ease-in-out infinite;
}
.deadline-separator {
    margin: 0 8px;
    opacity: 0.6;
}
.deadline-text-th {
    opacity: 0.92;
}
@keyframes pulse-icon {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@media (max-width: 575.98px) {
    .deadline-banner { font-size: 0.82rem; padding: 8px 0; }
    .deadline-separator { display: none; }
    .deadline-banner-content { flex-direction: column; gap: 2px; }
}

/* ---- Sponsor Marquee ---- */
.sponsor-marquee-section {
    background: #f8f9fa;
    overflow: hidden;
    padding-bottom: 3rem;
}

.marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex-shrink: 0;
}

.marquee-item img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.85;
    transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}

.marquee-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .marquee-item img {
        height: 50px;
    }
    .marquee-track {
        gap: 2rem;
    }
}

/* ---- Animation Utilities ---- */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Boat Rental Cards ---- */
.boat-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.boat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.boat-card-image {
    background: #0a1628;
    padding: 20px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.boat-card-image img {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.boat-card-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.boat-card-header h5 {
    color: var(--white);
    margin-bottom: 0;
}

.boat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 201, 167, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.5rem;
    color: var(--accent);
}

.boat-card-body {
    padding: 20px;
    flex: 1;
}

.boat-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.boat-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-dark);
}

.price-unit {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---- Size Chart Preview ---- */
.size-chart-preview {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 15px;
    border: 1px solid #dee2e6;
}

.size-chart-preview h6 {
    color: var(--primary);
    font-family: var(--font-heading);
}

.size-guide-diagram {
    border: 1px solid #dee2e6;
}

/* ---- Slip Preview ---- */
.slip-preview-box {
    background: #f8f9fa;
    border-radius: var(--radius);
    padding: 10px;
    border: 2px dashed #dee2e6;
    text-align: center;
}

.slip-preview-box img {
    max-height: 200px;
    border-radius: 8px;
}

/* ---- Liability Waiver Checkbox Styling ---- */
#agree_liability + label {
    font-size: 0.9rem;
    line-height: 1.6;
}
