/* Updated Color Palette Variables */
:root {
    --primary-dark: #1F134A;
    --secondary-purple: #7979B9;
    --accent-orange: #F15D22;
    --light-gray: #D8D8D8;
    --white: #ffffff;
    --text-dark: #2C2C2C;
    --text-light: rgba(255, 255, 255, 0.9);
}

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

body {
    font-family: "Source Sans Pro", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-purple) 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Remove background pattern - clean gradient only */

.header-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(241, 93, 34, 0.3);
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(241, 93, 34, 0.4);
    background: #e54d1a;
}

/* Main Content */
.main-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.rules-section {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    margin-bottom: 2rem;
}

.rules-section h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.rules-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-orange), var(--secondary-purple));
    border-radius: 2px;
}

.rule-item {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--accent-orange);
    transition: all 0.3s ease;
}

.rule-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.rule-item h3 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rule-item h3 i {
    color: var(--accent-orange);
    font-size: 1.2rem;
}

.rule-item ul {
    list-style: none;
    padding-left: 0;
}

.rule-item ul li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.6;
}

.rule-item ul li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

.rule-item ul li strong {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-purple));
    color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.highlight-box h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.highlight-box p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #0f0a24;
    color: var(--text-light);
    padding: 3rem 0 1rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--secondary-purple);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

.organizer-info {
    margin-top: 1rem;
    opacity: 0.7;
}

.organizer-info img {
    height: 20px;
    vertical-align: middle;
    margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 4rem 0 3rem;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .main-content {
        padding: 3rem 1rem;
    }

    .rules-section {
        padding: 2rem;
    }

    .rule-item {
        padding: 1.5rem;
    }

    .rule-item h3 {
        font-size: 1.2rem;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}