/* style/sports.css */

/* Base styles for the page content */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background */
    background-color: #FFFFFF; /* Default body background is white */
}

/* Header offset to prevent content from being hidden by fixed header */
.page-sports__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first visible section */
}

/* General container for content sections */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-sports__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-sports__section-title--white {
    color: #FFFFFF;
}

/* Text blocks */
.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__text-block--white {
    color: #f0f0f0;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-sports__btn-primary {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF; /* White text for contrast */
    border: 2px solid #017439;
}

.page-sports__btn-primary:hover {
    background-color: #005f2c; /* Slightly darker green */
    border-color: #005f2c;
}

.page-sports__btn-secondary {
    background-color: #FFFFFF; /* White background */
    color: #017439; /* Brand primary color text */
    border: 2px solid #017439;
}

.page-sports__btn-secondary:hover {
    background-color: #f0f0f0; /* Light gray background */
    border-color: #005f2c;
    color: #005f2c;
}

.page-sports__btn-text {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
    display: inline-block;
    padding: 5px 0;
}

.page-sports__btn-text:hover {
    color: #005f2c;
}

.page-sports__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-sports__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Hero Section */
.page-sports__hero-section {
    background-color: #017439; /* Brand primary color background */
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
    gap: 40px;
}

.page-sports__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-sports__hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-sports__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-sports__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.page-sports__about-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light gray background */
}

/* Sports Types Section */
.page-sports__sports-types-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-sports__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0; /* Ensure contrast on white background */
    color: #333333;
}

.page-sports__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px; /* Enforce min image size */
    object-fit: cover;
}

.page-sports__card-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__card-text {
    font-size: 1em;
    color: #555555;
}

/* Features Section */
.page-sports__features-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color background */
    color: #FFFFFF;
}

.page-sports__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for contrast */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: background-color 0.3s ease;
    color: #FFFFFF;
}

.page-sports__feature-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-sports__feature-icon,
.page-sports__info-icon {
    width: 200px; /* Explicitly set width/height as per HTML attribute to meet 200x200 requirement */
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.page-sports__feature-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__feature-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Guide Section */
.page-sports__guide-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-sports__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__guide-step {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    border: 1px solid #e0e0e0;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__step-number {
    width: 50px;
    height: 50px;
    background-color: #017439;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-sports__step-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}