/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles - Updated for footer positioning */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 2px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.club-name {
    font-size: 42px;
    font-weight: 700;
    color: #1a252f;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}

.club-tagline {
    font-size: 18px;
    color: #495057;
    font-weight: 500;
    margin: 0;
}

/* Header Navigation - Full Width Bottom */
.header-nav {
    display: flex;
    gap: 0;
    background: #2c3e50;
    width: 100%;
    justify-content: center;
}

.nav-link-main {
    color: white;
    text-decoration: none;
    padding: 12px 18px;
    text-align: center;
    font-weight: 500;
    background: #2c3e50;
    transition: background-color 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
    display: block;
    flex: 1;
    max-width: 180px;
    min-width: 130px;
}

.nav-link-main:last-child {
    border-right: none;
}

.nav-link-main:hover {
    background: #34495e;
}

/* Home Button Visibility - CRITICAL STYLES */
.nav-link-main.home-button {
    display: none;
}

.nav-link-main.home-button.show {
    display: block;
}

/* ========================================
   UNIFIED MAIN CONTENT STYLES
   Applied to both index.html and landing.html
   ======================================== */

/* Main Content Container - Works for both pages */
.main-content,
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
    width: 100%;
}

/* Hero/Featured Content Section - Unified for both pages */
.featured-content,
.landing-hero {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.welcome-title,
.landing-hero-title {
    font-size: 32px;
    color: #1a252f;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}

.welcome-text,
.landing-hero-text {
    font-size: 16px;
    color: #495057;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Content Grid - Unified for both pages */
.content-grid,
.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

/* Content Cards/Blocks - Unified styling */
.content-block,
.landing-card,
.content-section,
.landing-section {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    margin-bottom: 25px;
}

.content-block:hover,
.landing-card:hover,
.content-section:hover,
.landing-section:hover {
    transform: translateY(-2px);
}

/* Unified Headers for all content blocks */
.block-header,
.landing-card-header,
.section-header,
.landing-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #e9ecef;
}

/* Unified Titles for all content blocks */
.block-title,
.landing-card-title,
.section-title,
.landing-title {
    font-size: 22px;
    color: #1a252f;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.block-description,
.landing-card-description {
    color: #495057;
    font-size: 15px;
    font-weight: 500;
}

/* Unified Content Areas */
.block-content,
.landing-card-content,
.section-content,
.landing-content {
    padding: 15px 20px 20px;
}

.block-content p,
.landing-card-content p,
.section-content p,
.landing-content p {
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.7;
}

.block-content h3,
.landing-card-content h3,
.section-content h3,
.landing-content h3 {
    color: #1a252f;
    font-size: 18px;
    font-weight: 700;
    margin: 18px 0 12px 0;
    letter-spacing: -0.2px;
}

.block-content ul,
.landing-card-content ul,
.section-content ul,
.landing-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.block-content li,
.landing-card-content li,
.section-content li,
.landing-content li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.6;
}

/* Navigation Links within content blocks */
.block-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.block-links li {
    margin-bottom: 10px;
}

.block-links li:last-child {
    margin-bottom: 0;
}

.block-link {
    display: flex;
    align-items: center;
    color: #2c3e50;
    text-decoration: none;
    padding: 6px 0;
    font-size: 14px;
    transition: color 0.2s ease;
}

.block-link:hover {
    color: #3498db;
}

.block-link::before {
    content: '→';
    margin-right: 8px;
    color: #3498db;
    font-weight: bold;
}

/* Page Title Section - For dedicated pages */
.page-title {
    background: white;
    padding: 30px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.title {
    font-size: 36px;
    font-weight: 700;
    color: #1a252f;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 18px;
    color: #495057;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Status Indicator */
.status-indicator {
    background: #e8f4f8;
    border: 1px solid #3498db;
    border-left: 4px solid #3498db;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 13px;
}

.status-indicator strong {
    color: #2c3e50;
}

/* Color coding for different sports - Applied to all content blocks */
.cricket-block .block-header,
.cricket-block .landing-card-header,
.cricket-block .section-header,
.cricket-block .landing-header {
    border-left: 4px solid #e74c3c;
}

.cricket-block .block-link:hover {
    color: #e74c3c;
}

.cricket-block .block-link::before {
    color: #e74c3c;
}

.hockey-block .block-header,
.hockey-block .landing-card-header,
.hockey-block .section-header,
.hockey-block .landing-header {
    border-left: 4px solid #27ae60;
}

.hockey-block .block-link:hover {
    color: #27ae60;
}

.hockey-block .block-link::before {
    color: #27ae60;
}

.club-block .block-header,
.club-block .landing-card-header,
.club-block .section-header,
.club-block .landing-header {
    border-left: 4px solid #2980b9;
}

.club-block .block-link:hover {
    color: #2980b9;
}

.club-block .block-link::before {
    color: #2980b9;
}

/* Special Boxes */
.contact-box {
    background: #e8f4f8;
    border: 1px solid #3498db;
    border-left: 4px solid #3498db;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 13px;
    line-height: 1.6;
}

.note-box {
    background: #fff3cd;
    border: 1px solid #f39c12;
    border-left: 4px solid #f39c12;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.highlight-box {
    background: #d4edda;
    border: 1px solid #27ae60;
    border-left: 4px solid #27ae60;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.important {
    font-weight: 600;
    color: #e74c3c;
    margin-top: 12px !important;
}

/* Pricing Table */
.pricing-table {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.pricing-table h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    border: none;
    padding: 0;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

.pricing-item:last-child {
    border-bottom: none;
}

.pricing-item span:first-child {
    font-weight: 500;
    color: #2c3e50;
}

.price {
    font-weight: 600;
    color: #27ae60;
    font-size: 15px;
}

/* Form Container */
.form-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.form-container iframe {
    border-radius: 8px;
}

/* Footer - Updated for bottom positioning */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    width: 100%;
}

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

.footer-text {
    font-size: 13px;
    color: #bdc3c7;
}

/* Links */
a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE DESIGN
   Applied consistently to both pages
   ======================================== */

@media (max-width: 768px) {
    .header-top {
        padding: 15px 20px 12px;
    }

    .header-nav {
        flex-direction: column;
    }

    .nav-link-main {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        max-width: none;
        min-width: none;
        flex: none;
        padding: 10px 15px;
    }

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

    .main-content,
    .landing-container {
        padding: 20px 15px;
    }

    .featured-content,
    .landing-hero {
        padding: 20px;
        margin-bottom: 20px;
    }

    .welcome-title,
    .landing-hero-title {
        font-size: 26px;
    }

    .content-grid,
    .landing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .logo-image {
        width: 45px;
        height: 45px;
    }

    .club-name {
        font-size: 48px;
    }

    .page-title {
        padding: 25px 20px;
        margin-bottom: 25px;
    }

    .title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
    }

    .section-header,
    .landing-header,
    .block-header,
    .landing-card-header {
        padding: 15px 15px 12px;
    }

    .section-content,
    .landing-content,
    .block-content,
    .landing-card-content {
        padding: 12px 15px 15px;
    }

    .section-title,
    .landing-title,
    .block-title,
    .landing-card-title {
        font-size: 20px;
    }

    .pricing-table {
        padding: 15px;
    }

    .pricing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }

    .form-container {
        padding: 15px;
    }
}

@media (min-width: 1200px) {
    .nav-link-main {
        max-width: 200px;
        min-width: 150px;
    }
    
    .club-name {
        font-size: 32px;
    }
    
    .logo-image {
        width: 70px;
        height: 70px;
    }
    
    .title {
        font-size: 42px;
    }
    
    .welcome-title,
    .landing-hero-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .nav-link-main {
        padding: 10px 12px;
        font-size: 13px;
    }

    .page-title {
        padding: 20px 15px;
    }

    .title {
        font-size: 24px;
    }

    .subtitle {
        font-size: 15px;
    }
    
    .club-name {
        font-size: 26px;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo {
        gap: 12px;
    }
    
    .club-tagline {
        font-size: 16px;
    }

    .section-header,
    .landing-header,
    .block-header,
    .landing-card-header {
        padding: 12px;
    }

    .section-content,
    .landing-content,
    .block-content,
    .landing-card-content {
        padding: 12px;
    }

    .contact-box,
    .note-box,
    .highlight-box {
        padding: 12px;
        margin: 12px 0;
    }

    .pricing-table {
        padding: 12px;
    }

    .form-container {
        padding: 12px;
    }

    .landing-hero,
    .featured-content {
        padding: 15px 12px;
    }

    .landing-hero-title,
    .welcome-title {
        font-size: 22px;
    }
}
