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

body {
    font-family: "Times New Roman", Times, serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
    color: #8B1538;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

a {
    color: #1e3a8a;
    text-decoration: none;
}

a:hover {
    color: #8B1538;
    text-decoration: underline;
}

/* Header */
header {
    background: linear-gradient(135deg, #8B1538 0%, #1e3a8a 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    border-bottom: 4px solid white;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    flex-shrink: 0;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo a:hover {
    text-decoration: none;
    color: inherit;
}

.logo-svg {
    height: 50px;
    width: auto;
    max-width: 350px;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav li {
    margin: 0;
}

nav a {
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

nav a:hover {
    color: white;
    text-decoration: none;
}

nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #8B1538 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: 2px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-content h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #8B1538;
    color: white;
    border-color: #8B1538;
}

.btn-primary:hover {
    background-color: #6d1028;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #1e3a8a;
    text-decoration: none;
}

/* Content sections */
.content {
    padding: 3rem 0;
}

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

.main-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #8B1538;
}

.info-box h3 {
    color: #8B1538;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-box li:last-child {
    border-bottom: none;
}

.signatures {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
    text-align: right;
    font-style: italic;
}

/* Quick links */
.quick-links {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quick-links h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e3a8a;
}

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

.quick-link {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.quick-link:hover {
    border-color: #8B1538;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.1);
    text-decoration: none;
}

.quick-link h4 {
    color: #8B1538;
    margin-bottom: 0.5rem;
}

.quick-link p {
    color: #6b7280;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background-color: #8B1538;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e2e8f0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #8B1538 100%);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #e2e8f0;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

/* Lists */
ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Blockquotes */
blockquote {
    background: #f8f9fa;
    border-left: 4px solid #8B1538;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

/* Page specific styles */
.page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #8B1538 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 0;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-header .hero-buttons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.page-content {
    padding: 3rem 0;
}

.page-content .container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Program tables */
.program-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.program-table table {
    min-width: 800px;
}

.program-table th {
    background-color: #1e3a8a;
    font-size: 0.9rem;
    padding: 0.5rem;
}

.program-table td {
    font-size: 0.85rem;
    padding: 0.5rem;
    vertical-align: top;
}

/* Contact and additional page styles */
.contact-info {
    margin: 1.5rem 0;
}

.contact-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.contact-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #8B1538;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: #8B1538;
}

/* Transport info */
.transport-info {
    margin: 1.5rem 0;
}

.transport-item {
    background: #f8f9fa;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 6px;
    border-left: 4px solid #1e3a8a;
}

.transport-item h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

/* Pricing tables */
.pricing-tables {
    margin: 2rem 0;
    overflow-x: auto;
}

.additional-fees {
    margin-top: 2rem;
}

/* Registration timeline */
.registration-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.timeline-item {
    background: #f8f9fa;
    padding: 1rem;
    border-left: 4px solid #8B1538;
    border-radius: 6px;
}

.timeline-item h4 {
    color: #8B1538;
    margin-bottom: 0.25rem;
}

.timeline-item p {
    margin-bottom: 0;
    font-weight: bold;
    color: #1e3a8a;
}

/* Cultural events */
.cultural-events {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.event-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #8B1538;
}

.event-item h4 {
    color: #8B1538;
    margin-bottom: 0.5rem;
}

/* Venues */
.venues {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.venue-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #1e3a8a;
}

.venue-item h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

/* Requirements and forms */
.requirements {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.requirement-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #8B1538;
}

.requirement-item h4 {
    color: #8B1538;
    margin-bottom: 0.5rem;
}

.presentation-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.form-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #1e3a8a;
}

.form-item h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

/* Program day styles */
.program-day {
    background: white;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #8B1538;
}

.program-day h2 {
    color: #8B1538;
    margin-bottom: 1rem;
}

.program-day ul {
    list-style: none;
    padding-left: 0;
}

.program-day li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.program-day li:last-child {
    border-bottom: none;
}

/* CTA sections */
.cta-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
    border: 2px solid #e5e7eb;
}

.cta-section h2 {
    color: #8B1538;
    margin-bottom: 1rem;
}

/* Sponsors section */
.sponsors {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
    text-align: center;
}

.sponsors h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #1e3a8a;
    font-size: 1.75rem;
}

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: center;
}

.sponsor-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.sponsor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #8B1538;
}

.sponsor-item img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
}

/* Single sponsor layout */
.sponsors-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sponsors-single .sponsor-item {
    max-width: 300px;
    padding: 2rem;
    border: 2px solid #e5e7eb;
}

.sponsors-single .sponsor-item:hover {
    border-color: #1e3a8a;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
}

.sponsors-single img {
    max-height: 60px;
}

/* Registration form styles */
.registration-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.registration-form h2 {
    color: #8B1538;
    text-align: center;
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B1538;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.form-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #6b7280;
}

.form-note p {
    margin-bottom: 0.5rem;
}

/* Form validation styles */
.form-group input:invalid,
.form-group select:invalid {
    border-color: #dc2626;
}

.form-group input:valid,
.form-group select:valid {
    border-color: #059669;
}

/* Regulamin page styles */
.signature-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #8B1538;
    text-align: right;
    font-style: italic;
}

.signature-section p {
    margin-bottom: 0.5rem;
}

/* Responsive design */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-svg {
        height: 45px;
        max-width: 300px;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    nav a {
        text-align: center;
        padding: 0.5rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .main-content,
    .info-box,
    .quick-links,
    .page-content .container {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    /* Responsive for new components */
    .contact-categories,
    .venues,
    .presentation-forms {
        grid-template-columns: 1fr;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .sponsors-single .sponsor-item {
        max-width: 250px;
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .registration-form {
        padding: 1.5rem;
    }
    
    .program-table {
        overflow-x: scroll;
    }
    
    .program-table table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .logo-svg {
        height: 40px;
        max-width: 280px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .sponsors h3 {
        font-size: 1.4rem;
    }
    
    .sponsors-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .sponsor-item {
        max-width: none;
        padding: 0.75rem;
    }
    
    .sponsors-single .sponsor-item {
        max-width: 220px;
        padding: 1rem;
    }
    
    .registration-form {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .form-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}