/* Dodgeball-specific styles */

/* Navigation active state for dodgeball theme */
.nav-link.active {
    color: #F4C430;
    font-weight: 600;
}

/* Dodgeball dropdown styling */
.dropdown-item:hover {
    color: #F4C430;
    border-left-color: #F4C430;
}

/* Dodgeball Hero Section */
.dodgeball-hero {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    padding: 0;
    color: #333;
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.dodgeball-hero::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

.dodgeball-hero .hero-container {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.dodgeball-hero .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    width: 100%;
    height: 100%;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.dodgeball-hero .hero-text {
    background: #ffffff !important;
    background-color: #ffffff !important;
    padding: 3rem 4rem;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    align-self: stretch;
}

.dodgeball-hero .hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    color: #222;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-shadow: none;
    border-bottom: 4px solid #F4C430;
}

.dodgeball-hero .hero-title-accent {
    color: #F4C430;
}

.dodgeball-hero .hero-subtitle {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    color: #555;
    text-shadow: none;
    letter-spacing: 0.01em;
}

.dodgeball-hero .hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: #666;
    text-shadow: none;
}

.dodgeball-hero .hero-image {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    height: 100%;
    align-self: stretch;
    margin-right: 0;
}

.dodgeball-hero .hero-image::before {
    display: none;
    z-index: 1;
    pointer-events: none;
}

.dodgeball-hero .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}


.hero-cta {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Enhanced CTA buttons for dodgeball hero section */
.dodgeball-hero .cta-button.primary {
    background-color: #F4C430;
    color: #333;
    border: 3px solid #F4C430;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s ease;
}

.dodgeball-hero .cta-button.primary:hover {
    background-color: #e6b129;
    border-color: #e6b129;
}

.dodgeball-hero .cta-button.secondary {
    background-color: transparent;
    color: #333;
    border: 3px solid #333;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dodgeball-hero .cta-button.secondary:hover {
    background-color: #333;
    color: #fff;
}

/* Responsive Design for Hero */
@media (max-width: 968px) {
    .dodgeball-hero {
        height: auto;
        min-height: auto;
        padding: 0;
    }
    
    .dodgeball-hero .hero-container {
        padding: 0;
    }
    
    .dodgeball-hero .hero-content {
        grid-template-columns: 1fr;
        gap: 0;
        max-height: none;
        height: auto;
    }
    
    .dodgeball-hero .hero-image {
        order: -1;
        height: 300px;
    }

    .dodgeball-hero .hero-image::before {
        display: none;
    }
    
    .dodgeball-hero .hero-text {
        padding: 2rem 1.5rem;
        height: auto;
    }
    
    .dodgeball-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .dodgeball-hero .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .dodgeball-hero .hero-cta {
        flex-direction: column;
    }
    
    .dodgeball-hero .cta-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dodgeball-hero .hero-image {
        height: 220px;
    }

    .dodgeball-hero .hero-text {
        padding: 1.5rem 1rem;
    }

    .dodgeball-hero .hero-title {
        font-size: 2rem;
    }

    .dodgeball-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .dodgeball-hero .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .dodgeball-hero .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Stats Section */
.stats-section {
    background-color: #333;
    color: #fff;
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #F4C430;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
}

.feature-list li {
    padding: 0.75rem 0;
    position: relative;
    padding-left: 2rem;
    color: #555;
}

.feature-list li:before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: #F4C430;
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Locations Section */
.locations-section {
    padding: 4rem 0;
    background-color: #fff;
}

.location-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tab-button {
    background: #f8f9fa;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: #F4C430;
    color: #fff;
}

.tab-button:hover {
    background-color: #F4C430;
    color: #fff;
}

.tab-content {
    display: none;
}

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

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.location-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.location-card:hover {
    border-color: #ccc;
}

.location-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.location-details p {
    margin-bottom: 0.5rem;
    color: #666;
}

.location-details strong {
    color: #333;
}

.location-card .cta-button {
    margin-top: 1.5rem;
    width: 100%;
}

/* Reasons Section */
.reasons-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.reasons-grid {
    display: flex;
    flex-direction: column;
    max-width: 700px;
    margin: 0 auto;
}

.reason-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.reason-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #F4C430;
    color: #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.reason-content h3 {
    color: #333;
    margin-bottom: 1rem;
}

.reason-content p {
    color: #666;
    margin: 0;
}

/* Sponsors Section */
.sponsors-section {
    padding: 4rem 0;
    background-color: #fff;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    justify-items: center;
    align-items: center;
}

.sponsor-logo {
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Associations Section */
.associations-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.associations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    justify-items: center;
    align-items: center;
}

.association-logo {
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.association-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* CTA Section */
.contact-info {
    margin-top: 2rem;
    text-align: center;
}

.contact-info p {
    margin: 0;
    opacity: 0.9;
}

/* Footer adjustments for dodgeball page */
.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #F4C430;
}

/* Override for social media icons */
.social-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    font-size: 1.2rem !important;
    margin-bottom: 0 !important;
    color: #fff !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
}

.social-links a:hover {
    opacity: 1 !important;
    color: #F4C430 !important;
    background-color: rgba(244, 196, 48, 0.2) !important;
}

/* Responsive Design */
@media (min-width: 768px) {
    .dodgeball-hero .hero-cta {
        flex-direction: row;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sponsors-grid,
    .associations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-card .cta-button {
        width: auto;
    }
    
    .social-links a {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
    }
}

@media (min-width: 1024px) {
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sponsors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sponsor-logo,
    .association-logo {
        width: 200px;
        height: 140px;
    }
}

@media (max-width: 768px) {
    .sponsors-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .associations-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sponsor-logo,
    .association-logo {
        width: 160px;
        height: 110px;
    }

    .dodgeball-hero .hero-title {
        font-size: 3.8rem;
    }

    .dodgeball-hero .hero-subtitle {
        font-size: 1.35rem;
    }
}

/* Animation for stats counter */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item.animated {
    animation: countUp 0.8s ease-out;
}

/* Loading states for registration buttons */
.cta-button.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.cta-button.loading:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes button-loading-spinner {
    from {
        transform: translate(-50%, -50%) rotate(0turn);
    }
    to {
        transform: translate(-50%, -50%) rotate(1turn);
    }
}

/* What is Dodgeball specific styles */

/* What is Dodgeball & How to Play - Shared hero overrides */
.what-is-hero,
.how-to-play-hero {
    background: #fff !important;
    background-image: none !important;
    color: #333;
    padding: 5rem 0 4rem;
}

.what-is-hero::before,
.how-to-play-hero::before {
    display: none !important;
}

.what-is-hero .hero-title,
.how-to-play-hero .hero-title {
    color: #222;
    font-size: 3.2rem;
    font-weight: 800;
    border-bottom: 4px solid #F4C430;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    text-shadow: none;
}

.what-is-hero .hero-title-accent,
.how-to-play-hero .hero-title-accent {
    color: #F4C430;
}

.what-is-hero .hero-subtitle,
.how-to-play-hero .hero-subtitle {
    color: #555;
    font-weight: 500;
    text-shadow: none;
}

.what-is-hero .hero-description,
.how-to-play-hero .hero-description {
    color: #666;
    text-shadow: none;
}

/* Introduction Section */
.intro-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-content h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #555;
}

.intro-features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.feature-row:hover {
    border-color: #e0e0e0;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(244, 196, 48, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    color: #F4C430;
    font-size: 1.5rem;
}

.feature-text h4 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.feature-text p {
    color: #666;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Recognition Section */
.recognition-section {
    padding: 5rem 0;
    background: #fff;
}

.recognition-section .section-title {
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
}

.recognition-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.recognition-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

.recognition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.recognition-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    text-align: left;
    transition: border-color 0.2s ease;
}

.recognition-card:hover {
    border-color: #ccc;
}

.recognition-card .card-header {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.recognition-card .card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    background: rgba(244, 196, 48, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
}

.recognition-card .card-icon i {
    font-size: 1.2rem;
    color: #F4C430;
}

.recognition-card .card-header h3 {
    color: #333;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.recognition-card .card-content {
    color: #666;
}

.recognition-card .card-content p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Rules Overview Section (What is Dodgeball) */
.rules-overview-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.rules-overview-section .section-title {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
}

.rules-overview-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.rules-overview-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.rule-overview-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.rule-overview-item:hover {
    border-color: #ccc;
}

.rule-overview-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #F4C430;
    color: #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.rule-overview-content h3 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.rule-overview-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Rules Section (How to Play) */
.rules-section {
    padding: 5rem 0;
    background: #fff;
}

.rules-section .section-title {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
}

.rules-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Positions Section */
.positions-section {
    padding: 5rem 0;
    background: #fff;
}

.positions-section .section-title {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
}

.positions-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.position-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    border-left: 4px solid #F4C430;
    transition: border-color 0.2s ease;
}

.position-card:hover {
    border-color: #ccc;
    border-left-color: #F4C430;
}

.position-card h3 {
    color: #333;
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
}

.position-description {
    color: #F4C430;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.position-card p:last-child {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Variations Section */
.variations-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.variations-section .section-title {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
}

.variations-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.variations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.variation-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    transition: border-color 0.2s ease;
}

.variation-card:hover {
    border-color: #ccc;
}

.variation-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: #333;
}

.variation-type {
    color: #F4C430;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.variation-card p:not(.variation-type) {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.variation-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.variation-features li {
    padding: 0.4rem 0;
    color: #555;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.variation-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F4C430;
    font-weight: bold;
}

.variations-footer {
    text-align: center;
    margin-top: 2rem;
}

.variations-footer p {
    font-size: 1.1rem;
    color: #555;
}

/* What is Dodgeball Responsive Design */
@media (min-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .intro-features {
        gap: 1.5rem;
    }
    
    .recognition-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
}

@media (min-width: 1024px) {
    .intro-features {
        margin-top: 2.5rem;
    }
    
    .positions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .what-is-hero .hero-title,
    .how-to-play-hero .hero-title {
        font-size: 2.2rem;
    }

    .recognition-section {
        padding: 3rem 0;
    }
    
    .recognition-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .variations-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-row {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        align-self: center;
    }
    
    .rules-overview-list {
        grid-template-columns: 1fr;
    }
    
    .positions-grid {
        grid-template-columns: 1fr;
    }
}

/* How to Play Dodgeball specific styles */

/* How to Play Hero - additional overrides handled in shared block above */

/* Introduction Section for How to Play */
.how-to-play-hero + .intro-section {
    background: #f8f9fa;
}

.intro-callout {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(244, 196, 48, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #F4C430;
    margin-top: 2rem;
}

.intro-callout i {
    color: #F4C430;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.intro-callout p {
    margin: 0;
    color: #333;
}

.intro-callout a {
    color: #F4C430;
    font-weight: 600;
    text-decoration: none;
}

.intro-callout a:hover {
    text-decoration: underline;
}

/* Main Objective Section */
.objective-section {
    padding: 4rem 0;
    background: #fff;
}

.objective-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    border-left: 4px solid #F4C430;
}

.objective-section h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.objective-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Rules Steps (How to Play) */
.how-to-play-rules {
    padding: 5rem 0;
    background: #f8f9fa;
}

.rules-steps-list {
    max-width: 800px;
    margin: 0 auto;
}

.rule-step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.rule-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #F4C430;
    color: #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.rule-step-body h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    color: #333;
}

.rule-step-body p {
    color: #555;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.rule-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rule-steps li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

.rule-steps li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #F4C430;
    font-weight: bold;
}

.rule-highlight {
    background: rgba(244, 196, 48, 0.08);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border-left: 3px solid #F4C430;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rule-highlight i {
    color: #F4C430;
    font-size: 1rem;
    flex-shrink: 0;
}

.rule-highlight span {
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tips Section */
.tips-section {
    padding: 5rem 0;
    background: #fff;
}

.tips-section .section-title {
    text-align: center;
    color: #333;
    margin-bottom: 1rem;
}

.tips-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tip-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    border-top: 3px solid #F4C430;
    transition: border-color 0.2s ease;
}

.tip-card:hover {
    border-color: #ccc;
    border-top-color: #F4C430;
}

.tip-card h3 {
    color: #333;
    margin: 0 0 0.75rem 0;
    font-size: 1.15rem;
}

.tip-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Ready to Play Section */
.ready-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.ready-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ready-text {
    margin-bottom: 3rem;
}

.ready-text h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.ready-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.ready-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* How to Play Responsive Design */
@media (min-width: 768px) {
    .ready-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .tips-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .rule-step-item {
        gap: 1rem;
        padding: 1.25rem 0;
    }

    .rule-step-body h3 {
        font-size: 1.1rem;
    }

    .objective-section h2 {
        font-size: 1.5rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .ready-text h2 {
        font-size: 1.8rem;
    }
}

/* Rules Page specific styles */

/* Rules Hero */
.rules-hero {
    background: linear-gradient(rgba(244, 196, 48, 0.2), rgba(244, 196, 48, 0.3)), 
                linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), 
                url('../images/dodgeball-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Rules Navigation Section */
.rules-nav-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.rules-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.rules-nav-btn {
    background: #fff;
    border: 2px solid #e9ecef;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #555;
}

.rules-nav-btn:hover {
    background: #F4C430;
    border-color: #F4C430;
    color: #333;
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
}

.rules-nav-btn.active {
    background: #F4C430;
    border-color: #F4C430;
    color: #333;
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
}

/* Rules Search */
.rules-search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.rules-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.rules-search-wrapper:focus-within {
    border-color: #F4C430;
    box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.1);
}

.rules-search-icon {
    color: #666;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.rules-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
    background: transparent;
}

.rules-search-input::placeholder {
    color: #999;
}

.rules-search-clear {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.rules-search-clear:hover {
    color: #F4C430;
}

.rules-search-results {
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.search-results-header {
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    color: #333;
    font-size: 0.9rem;
}

.search-results-category {
    margin-bottom: 1.5rem;
}

.search-results-category:last-child {
    margin-bottom: 0;
}

.search-results-category h4 {
    color: #F4C430;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results-list li {
    margin-bottom: 0.5rem;
}

.search-result-link {
    display: block;
    padding: 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.search-result-link:hover {
    background: #f8f9fa;
    border-color: #F4C430;
}

.search-result-link strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #333;
}

.search-result-preview {
    display: block;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.4;
}

.search-highlight {
    background: #F4C430;
    color: #333;
    padding: 0.1em 0.2em;
    border-radius: 3px;
    font-weight: 600;
}

.search-no-results {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.search-no-results i {
    font-size: 2rem;
    color: #999;
    margin-bottom: 0.5rem;
    display: block;
}

@keyframes highlight-flash {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(244, 196, 48, 0.2); }
}

.rules-contact {
    text-align: center;
}

.rules-contact p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 1.1rem;
}

/* Rules Content Section */
.rules-content-section {
    padding: 4rem 0;
    background: #fff;
}

.rules-tab-content {
    display: none;
}

.rules-tab-content.active {
    display: block;
}

.rules-motto {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 6px;
    color: #fff;
}

.rules-motto h2 {
    color: #F4C430;
    margin: 0;
    font-size: 1.3rem;
    text-shadow: none;
}

/* Rules Categories */
.rules-category {
    margin-bottom: 4rem;
}

.rules-category-collapsible {
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rules-category-collapsible:hover {
    border-color: rgba(244, 196, 48, 0.5);
}

.category-header {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #F4C430;
    padding: 0.75rem 1.5rem;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-header:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.category-toggle {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-content.active {
    max-height: none;
    padding: 1rem 1.5rem;
}

/* Individual Rule Items */
.rule-item {
    background: #fff;
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.rule-item:hover {
    border-color: rgba(244, 196, 48, 0.5);
    box-shadow: 0 2px 8px rgba(244, 196, 48, 0.1);
}

.rule-item h4 {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 0.75rem 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.rule-number {
    background: #F4C430;
    color: #333;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
}

.rule-content {
    padding: 1rem;
}

.rule-content p {
    margin: 0 0 0.5rem 0;
    color: #555;
    line-height: 1.5;
    font-size: 0.9rem;
}

.rule-content p:last-child {
    margin-bottom: 0;
}

.rule-content strong {
    color: #F4C430;
    font-weight: 600;
}

/* Placeholder content for future tabs */
.placeholder-content {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e9ecef;
}

.placeholder-content h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.placeholder-content p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.placeholder-content em {
    color: #999;
    font-style: italic;
}

/* Rules Responsive Design */
@media (max-width: 768px) {
    .rules-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .rules-nav-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .rules-motto h2 {
        font-size: 1.5rem;
    }
    
    .category-title {
        font-size: 1.4rem;
        padding: 1rem 1.5rem;
    }
    
    .rule-item h4 {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .rule-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .rule-content {
        padding: 1rem 1.5rem;
    }
    
    .placeholder-content {
        padding: 3rem 1.5rem;
    }
    
    .placeholder-content h3 {
        font-size: 1.5rem;
    }
}

/* Examples Section Styles */
.examples-title {
    color: #333;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.examples-intro {
    text-align: center;
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.example-case {
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.example-title {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #F4C430;
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.example-section {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.example-section:last-child {
    border-bottom: none;
}

.example-section h4 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.example-section h4::before {
    content: '';
    width: 3px;
    height: 16px;
    background: #F4C430;
    border-radius: 2px;
}

.example-section p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.example-section p:last-child {
    margin-bottom: 0;
}

.rules-reference {
    background: rgba(244, 196, 48, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border-left: 3px solid #F4C430;
    color: #333 !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.analysis-content p {
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 2px solid #e9ecef;
}

.example-conclusion {
    background: rgba(244, 196, 48, 0.15);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border-left: 3px solid #F4C430;
    font-style: italic;
    color: #333 !important;
    font-size: 0.9rem;
}

/* Code of Conduct Section Styles */
.conduct-title {
    color: #333;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.conduct-intro {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: center;
}

.conduct-intro p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.conduct-prohibitions {
    margin-bottom: 2rem;
}

.prohibition-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.prohibition-item:hover {
    border-color: rgba(244, 196, 48, 0.5);
    transform: translateX(3px);
}

.prohibition-letter {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #F4C430;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.prohibition-item p {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 0.9rem;
}

.conduct-cards-section {
    margin-bottom: 2rem;
}

.conduct-cards-section h3 {
    color: #333;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cards-intro {
    text-align: center;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.95rem;
}

.yellow-card-text {
    color: #f39c12;
}

.red-card-text {
    color: #e74c3c;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.card-explanation {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.card-explanation:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.yellow-card {
    border-color: #f39c12;
}

.yellow-card:hover {
    border-color: #e67e22;
}

.red-card {
    border-color: #e74c3c;
}

.red-card:hover {
    border-color: #c0392b;
}

.card-header {
    padding: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.yellow-card .card-header {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.red-card .card-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.card-header i {
    font-size: 1.2rem;
}

.card-header h4 {
    margin: 0;
    font-size: 1rem;
}

.card-content {
    padding: 1rem;
    background: #fff;
}

.card-content p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.card-consequences {
    margin-top: 1rem;
}

.card-consequences h5 {
    color: #333;
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.card-consequences ul {
    margin: 0;
    padding-left: 1rem;
}

.card-consequences li {
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.conduct-responsibility {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.conduct-responsibility h3 {
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.responsibility-content p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.responsibility-content p:last-child {
    margin-bottom: 0;
}

.referee-discretion {
    font-style: italic;
    background: rgba(244, 196, 48, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border-left: 3px solid #F4C430;
    font-size: 0.9rem;
}

/* Examples and Code of Conduct Responsive Design */
@media (max-width: 768px) {
    .examples-title,
    .conduct-title {
        font-size: 1.8rem;
    }
    
    .example-case,
    .conduct-intro,
    .conduct-responsibility {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
    
    .example-section {
        padding: 1.5rem;
    }
    
    .example-title {
        font-size: 1.3rem;
        padding: 1rem 1.5rem;
    }
    
    .prohibition-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-explanation {
        min-width: auto;
    }
    
    .card-header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .conduct-responsibility {
        padding: 2rem 1.5rem;
    }
}