/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
}

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

/* Header styles */
.header {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.chess-queen-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.chess-queen {
    max-width: 150px;
    height: auto;
    filter: invert(1);
    transition: transform 0.3s ease;
}

.chess-queen:hover {
    transform: scale(1.1);
}

.tournament-link-container {
    text-align: center;
    margin-top: 20px;
}

.tournament-link {
    display: inline-block;
    background-color: #3a86ff;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tournament-link:hover {
    background-color: #2667cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.qr-code-container {
    background: white;
    padding: 15px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-code {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.qr-caption {
    color: white;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Normandy Departments section */
.normandy-departments {
    padding: 60px 0;
    background-color: #ffffff;
}

.normandy-departments h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #000000;
}

.normandy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.normandy-department {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.normandy-department:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3a86ff;
}

.department-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3a86ff;
    margin-bottom: 5px;
}

.department-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 5px;
}

.department-capital {
    font-size: 1.1rem;
    color: #6c757d;
    font-style: italic;
}

@media (max-width: 768px) {
    .normandy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .normandy-grid {
        grid-template-columns: 1fr;
    }
}

/* Departments section */
.departments {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.departments h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #000000;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.department-item {
    background: white;
    border-radius: 10px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.department-item h3 {
    font-size: 2.2rem;
    color: #3a86ff;
    margin-bottom: 5px;
    font-weight: 700;
}

.department-item p {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
}

@media (max-width: 768px) {
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .departments-grid {
        grid-template-columns: 1fr;
    }
}

/* Participation Steps */
.participation-steps {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3a86ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateX(5px);
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.step h3 {
    color: #3a86ff;
    margin-bottom: 12px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.step p {
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
}

.inline-link {
    color: #3a86ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.inline-link:hover {
    color: #2667cc;
    text-decoration: underline;
}

.step:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .step {
        padding: 20px;
    }
    
    .step h3 {
        font-size: 1.25rem;
    }
}

/* Section styles */
section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

h2 {
    text-align: center;
    margin: 0 auto 40px;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: block;
    width: 100%;
}

h2:after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: #000000;
    bottom: -10px;
    left: 25%;
}

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

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Details grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.detail-item {
    text-align: center;
    padding: 30px 20px;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.detail-item h3 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Footer */
.footer {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}
