/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 13px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #2B5A9E 0%, #4A90E2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar - hidden, merged into main header */
.top-bar {
    display: none;
}

.top-bar-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Header Styles */
.main-header {
    background: white;
    padding: 0.25rem 0;
    position: relative;
    z-index: 100;
}

.main-header .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 1200px;
    position: relative;
}

/* Main header logo - Stockshot logo.png */
.header-bg-logo {
    display: block;
    height: 200px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    padding: 0.5rem 0;
}

/* Hide the secondary logo container (stockshotDG.png was removed) */
.logo-container {
    display: none;
}

.main-logo {
    max-width: 200px;
    height: auto;
    display: inline-block;
}

/* Header right: lang + user controls */
.header-controls {
    position: absolute;
    right: 20px;
    bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    z-index: 10;
}

/* Auth buttons in header now contain the guest avatar icon */
.header-controls .auth-buttons {
    display: flex;
    align-items: center;
}

/* Guest avatar icon (shown when not logged in) */
.guest-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e0e7f1;
    color: #2B5A9E;
    border: 2px solid #2B5A9E;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    position: relative;
}

.guest-avatar-btn:hover {
    background: #2B5A9E;
    color: white;
}

.guest-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    width: 280px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    z-index: 1000;
    padding: 1.2rem;
}

.guest-dropdown.active {
    display: block;
}

.guest-dropdown h4 {
    margin: 0 0 0.8rem;
    color: #2B5A9E;
    font-size: 1rem;
    text-align: center;
}

.guest-dropdown .guest-form-group {
    margin-bottom: 0.6rem;
}

.guest-dropdown .guest-form-group input {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.guest-dropdown .guest-form-group input:focus {
    border-color: #2B5A9E;
}

.guest-dropdown .guest-login-btn {
    width: 100%;
    padding: 0.55rem;
    background: linear-gradient(135deg, #2B5A9E 0%, #4A90E2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.3rem;
    transition: opacity 0.2s;
}

.guest-dropdown .guest-login-btn:hover {
    opacity: 0.9;
}

.guest-dropdown .guest-links {
    display: flex;
    justify-content: space-between;
    margin-top: 0.7rem;
    padding-top: 0.6rem;
    border-top: 1px solid #e8e8e8;
}

.guest-dropdown .guest-links a {
    color: #2B5A9E;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.guest-dropdown .guest-links a:hover {
    text-decoration: underline;
}

.login-button {
    background: transparent;
    color: #2B5A9E;
    border: 2px solid #2B5A9E;
    padding: 0.45rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: #2B5A9E;
    color: white;
    transform: translateY(-2px);
}

.signup-button {
    background: linear-gradient(135deg, #2B5A9E 0%, #4A90E2 100%);
    color: white;
    border: none;
    padding: 0.45rem 1.15rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.3s ease;
}

.signup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(43, 90, 158, 0.3);
}

.header-separator {
    height: 2px;
    background: linear-gradient(90deg, #4A90E2 0%, #2B5A9E 50%, #4A90E2 100%);
    box-shadow: 0 1px 3px rgba(43, 90, 158, 0.15);
}

/* Navigation Styles */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    flex-basis: 100%;
}

.nav-group {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-button {
    background: transparent;
    color: #2B5A9E;
    border: none;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.01em;
}

.nav-button:hover {
    background: #eef3fb;
    color: #1e4580;
    transform: none;
    box-shadow: none;
}

.nav-button.active {
    background: #2B5A9E;
    color: white;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: auto;
}

.arrow {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 190px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 7px;
    overflow: hidden;
    top: 100%;
    margin-top: 0.2rem;
}

.dropdown.active .dropdown-content {
    display: block;
}

.dropdown.active .arrow {
    transform: rotate(180deg);
}

.dropdown-content a {
    color: #2c3e50;
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    transition: background 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
}

.dropdown-content a:hover {
    background: #f1f1f1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a3a6e 0%, #2B5A9E 50%, #4A90E2 100%);
    margin: 0;
    padding: 1.25rem 0 1rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: heroFadeIn 0.6s ease-out;
}

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

.hero-section .hero-tagline {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin: 0 auto;
    max-width: 600px;
}

.hero-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-btn-primary {
    background: #ffd700;
    color: #1a3a6e;
}

.hero-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

/* Feature Cards Section */
.feature-cards-section {
    background: #f0f4f8;
    padding: 1.5rem 0;
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.feature-card--tournaments {
    background: linear-gradient(135deg, #1a3a6e 0%, #2B5A9E 100%);
}

.feature-card--courses {
    background: linear-gradient(135deg, #1B6B35 0%, #28a745 100%);
}

.feature-card--beginner {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
}

.feature-card__icon {
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 1;
}

.feature-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 1;
}

.feature-card__desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.feature-card__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffd700;
    position: relative;
    z-index: 1;
    transition: letter-spacing 0.2s;
}

.feature-card:hover .feature-card__link {
    letter-spacing: 0.05em;
}

/* Casual Play Promo Banner (inside hero) */
.casual-promo-banner {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 50%, #FFa650 100%);
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    max-width: 700px;
    margin: 0 auto 0.75rem;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.casual-promo-content {
    position: relative;
    z-index: 1;
}

.casual-promo-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.casual-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}

.promo-pulse {
    width: 7px;
    height: 7px;
    background: #4cff4c;
    border-radius: 50%;
    animation: promoPulse 2s infinite;
}

@keyframes promoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.casual-promo-banner h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.casual-promo-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.casual-promo-stats {
    display: flex;
    gap: 1.25rem;
}

.promo-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promo-stat-number {
    font-size: 1.3rem;
    font-weight: 800;
}

.promo-stat-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.casual-promo-actions {
    display: flex;
    gap: 0.5rem;
}

.casual-promo-cta {
    display: inline-block;
    background: white;
    color: #FF6B35;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.casual-promo-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.casual-promo-cta--create {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.5);
}

.casual-promo-cta--create:hover {
    background: rgba(255,255,255,0.3);
}

/* Section Title (shared) */
.section-title {
    text-align: center;
    color: #2B5A9E;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* Beginner Accordion Section */
.beginner-section {
    background: #f0f4f8;
    padding: 1rem 0;
}

.beginner-accordion {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.beginner-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.beginner-toggle:hover {
    background: #f8f9fa;
}

.beginner-toggle-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #2B5A9E;
}

.beginner-toggle-icon {
    color: #2B5A9E;
    flex-shrink: 0;
}

.beginner-toggle-hint {
    font-size: 0.8rem;
    color: #999;
    font-weight: 400;
}

.beginner-chevron {
    font-size: 0.75rem;
    color: #999;
    transition: transform 0.3s ease;
}

.beginner-accordion.expanded .beginner-chevron {
    transform: rotate(180deg);
}

.beginner-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: white;
    padding: 0 1.25rem;
}

.beginner-accordion.expanded .beginner-content {
    max-height: 800px;
    padding: 0.5rem 1.25rem 1.25rem;
}

.beginner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.beginner-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    border-left: 3px solid #2B5A9E;
}

.beginner-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.beginner-card-header h4 {
    color: #2B5A9E;
    font-size: 0.95rem;
    margin: 0;
}

.beginner-card p {
    color: #555;
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
}

.beginner-cta {
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e8e8e8;
}

.beginner-cta p {
    color: #555;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

/* Travel Section */
.travel-section {
    background: white;
    padding: 1.25rem 0;
}

.travel-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.travel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.travel-header .section-title {
    margin-bottom: 0;
}

.travel-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.travel-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.travel-select {
    padding: 0.6rem 1.25rem;
    border: 2px solid #2B5A9E;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #333;
    background: white;
    cursor: pointer;
    min-width: 260px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.travel-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 90, 158, 0.15);
}

.travel-content {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.25rem;
    animation: travelFadeIn 0.3s ease;
}

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

.travel-country-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.travel-country-flag {
    font-size: 2rem;
}

.travel-country-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2B5A9E;
}

.travel-country-intro {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.travel-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.travel-info-card {
    background: white;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    border-left: 3px solid #2B5A9E;
}

.travel-info-card h4 {
    color: #2B5A9E;
    font-size: 0.9rem;
    margin: 0 0 0.4rem 0;
}

.travel-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.travel-info-card ul li {
    color: #555;
    font-size: 0.82rem;
    line-height: 1.6;
    padding-left: 1rem;
    position: relative;
}

.travel-info-card ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #2B5A9E;
}

.travel-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.travel-link-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #2B5A9E;
    color: white;
}

.travel-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.travel-link-btn--secondary {
    background: #FF6B35;
}

.travel-coming-soon {
    text-align: center;
    padding: 1.5rem;
    color: #888;
}

.travel-coming-soon h4 {
    color: #2B5A9E;
    margin-bottom: 0.4rem;
}

/* Tournament Sections */
.tournaments-section,
.recent-tournaments-section {
    background: white;
    margin: 1.5rem auto;
    padding: 1.5rem 0;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0 18px;
}

.section-header h2 {
    color: #2c3e50;
    font-size: 1.45rem;
    margin-bottom: 0.4rem;
}

/* Tournament Grid (Upcoming) */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 18px;
}

.tournament-card {
    background: linear-gradient(135deg, #2B5A9E 0%, #4A90E2 100%);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    position: relative;
    overflow: hidden;
}

.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tournament-badge {
    background: #ffd700;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.tournament-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tournament-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.register-button {
    background: white;
    color: #2B5A9E;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 25px;
    margin-top: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.register-button:hover {
    background: #ffd700;
    transform: scale(1.05);
}

/* Tournament List (Recent) */
.tournament-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 20px;
}

.tournament-item {
    background: #f8f9fa;
    border-left: 4px solid #2B5A9E;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.tournament-item:hover {
    background: #e9ecef;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tournament-info h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tournament-date {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.tournament-location {
    color: #888;
    font-size: 0.9rem;
}

.results-button {
    background: linear-gradient(135deg, #2B5A9E 0%, #4A90E2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.results-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(135deg, #1B4073 0%, #2B5A9E 100%);
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 0;
    font-size: 0.8rem;
}

.main-footer p {
    margin: 0.35rem 0;
}

/* ===== Mobile Hamburger Menu ===== */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    position: absolute;
    left: 12px;
    bottom: 0.3rem;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: #2B5A9E;
    margin: 4px 0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    /* Mobile header: logo on top, controls below */
    .main-header .container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 0.25rem 12px;
    }

    /* Logo first - full width, large and centered */
    .header-bg-logo {
        order: 1;
        width: 100%;
        height: 160px;
        max-width: none;
        margin: 0 auto;
        padding: 0;
        object-fit: contain;
    }

    .logo-container {
        display: none;
    }

    /* Hamburger on left below logo */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        position: static;
        order: 2;
        padding: 8px;
        z-index: 10;
    }

    .hamburger-btn span {
        width: 24px;
        height: 2px;
        margin: 4px 0;
    }

    /* Header controls on right below logo */
    .header-controls {
        order: 3;
        position: static;
        z-index: 10;
    }

    /* Compact user info on mobile */
    .header-controls .user-info {
        padding: 0.25rem 0.4rem;
        gap: 0.25rem;
    }

    .header-controls .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    /* Guest avatar button on mobile */
    .guest-avatar-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .header-controls .user-name {
        display: none;
    }

    .header-controls .dropdown-arrow {
        display: none;
    }

    /* Nav takes full width below header row */
    .main-nav {
        display: none;
        order: 4;
        width: 100%;
        background: white;
        padding: 0.5rem 0;
        border-top: 1px solid #e0e0e0;
        margin-top: 0.25rem;
    }

    .main-nav.mobile-open {
        display: flex;
    }

    .nav-group {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .auth-buttons {
        justify-content: center;
    }

    .login-button,
    .signup-button {
        flex: 1;
        max-width: 130px;
    }

    .nav-button {
        width: 100%;
        text-align: left;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-button:last-child {
        border-bottom: none;
    }

    /* Dropdown in mobile menu */
    .dropdown-content {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #f8f9fa;
        margin: 0;
        padding-left: 20px;
        min-width: 0;
    }

    .dropdown-content a {
        padding: 10px 20px;
        border-bottom: 1px solid #e8e8e8;
    }

    .tournament-grid {
        grid-template-columns: 1fr;
    }

    .tournament-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .results-button {
        width: 100%;
    }

    .hero-section .hero-tagline {
        font-size: 0.78rem;
    }

    /* Keep 3 columns on mobile but make cards compact */
    .feature-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .feature-card {
        padding: 0.75rem 0.5rem;
        border-radius: 10px;
    }

    .feature-card__icon {
        margin-bottom: 0.4rem;
    }

    .feature-card__icon svg {
        width: 28px;
        height: 28px;
    }

    .feature-card__title {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .feature-card__desc {
        font-size: 0.6rem;
        line-height: 1.3;
        margin-bottom: 0.4rem;
        /* Limit height on mobile */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .feature-card__link {
        font-size: 0.6rem;
    }

    .casual-promo-top {
        flex-direction: column;
        text-align: center;
        gap: 0.3rem;
    }

    .casual-promo-bottom {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .casual-promo-stats {
        justify-content: center;
    }

    .casual-promo-actions {
        width: 100%;
        justify-content: center;
    }

    .tournaments-grid-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tournament-column {
        min-width: 100%;
    }

    .beginner-grid {
        grid-template-columns: 1fr;
    }

    .beginner-toggle-hint {
        display: none;
    }

    .travel-info-grid {
        grid-template-columns: 1fr;
    }

    .travel-select {
        width: 100%;
    }

    .travel-links {
        flex-direction: column;
    }

    .travel-link-btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Small phone header */
    .main-header .container {
        padding: 0.15rem 8px;
    }

    /* Logo on small phones - compact but visible */
    .header-bg-logo {
        height: 130px;
        width: 100%;
        max-width: none;
        padding: 0;
    }

    /* Smaller hamburger */
    .hamburger-btn {
        padding: 5px;
    }

    .hamburger-btn span {
        width: 20px;
    }

    /* Smaller buttons */
    .guest-avatar-btn {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .header-controls .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    /* Hide user name on small screens */
    .header-controls .user-name {
        display: none;
    }

    .header-controls .dropdown-arrow {
        display: none;
    }

    /* Even more compact feature cards on very small phones */
    .feature-cards-section {
        padding: 1rem 0;
    }

    .feature-cards-grid {
        gap: 0.35rem;
    }

    .feature-card {
        padding: 0.6rem 0.4rem;
        border-radius: 8px;
    }

    .feature-card__icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-card__title {
        font-size: 0.65rem;
    }

    .feature-card__desc {
        font-size: 0.55rem;
        -webkit-line-clamp: 2;
    }

    .feature-card__link {
        font-size: 0.55rem;
    }
}

/* Tournament Overview Section - Home Page */
.tournaments-overview-section {
    padding: 1rem 0;
    background: white;
}

.tournaments-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.tournament-column {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.6rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    max-height: 240px;
    overflow-y: auto;
}

.tournament-column .section-header {
    border-bottom: 2px solid #2B5A9E;
    padding-bottom: 0.35rem;
    margin-bottom: 0.5rem;
}

.tournament-column .section-header h3 {
    color: #2B5A9E;
    font-size: 0.95rem;
    margin: 0;
}

.tournament-column.live-column {
    border: 2px solid #dc3545;
}

.tournament-column.live-column .section-header {
    border-bottom-color: #dc3545;
}

.tournament-column.live-column .section-header h3 {
    color: #dc3545;
}

/* Tournament List Items */
.tournament-list-item {
    background: white;
    border-radius: 5px;
    padding: 0.45rem 0.6rem;
    margin-bottom: 0.3rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid #2B5A9E;
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tournament-list-item:last-child {
    margin-bottom: 0;
}

.tournament-list-item:hover {
    transform: translateX(3px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.tournament-list-item.live {
    border-left-color: #dc3545;
    background: linear-gradient(90deg, #fff5f5 0%, white 100%);
}

.tournament-list-item .tournament-name {
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.tournament-list-item .tournament-date {
    color: #888;
    font-size: 0.75rem;
    margin-bottom: 0;
}

.tournament-list-item .tournament-course {
    color: #2B5A9E;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: auto;
}

.live-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.empty-state {
    padding: 2rem 1rem;
    text-align: center;
}

.empty-state p {
    color: #999;
    font-style: italic;
}
