:root {
    --primary-color: #001220;
    --accent-color: #004E90;
    --light-bg: #F7F9FC;
    --linkedin-blue: #0A66C2;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 18px;
    letter-spacing: -0.5px;
    background-color: #f7f9fc;
}

/* Header styles */
header {
    background: url("../images/logo/TDW-facebook-company_cover_v3.jpg") no-repeat center center;
    background-size: cover;
    position: relative;
    color: white;
    padding: 0;
    text-align: center;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 18, 32, 0.5);
    z-index: 1;
}

/* Date Banner styles */
.date-banner {
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
}

.date-text {
    margin: 0;
    letter-spacing: 0.5px;
}

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

.header-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.header-logo {
    width: 150px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Navigation styles */
.nav-container {
    background-color: var(--primary-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem;
    display: block;
    transition: color 0.3s;
    font-size: 1.5rem;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* Mobile menu active states */
.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
}

/* Mobile styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        padding: 1rem;
        width: 100%;
    }

    .nav-wrapper {
        padding: 0.5rem 1rem;
    }

    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }

    .hero {
        padding: 1rem 0 2rem;
    }

    .hero-slogan-container {
        gap: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        background-color: #f6f8fa;
        padding: 1.5rem;
        border-radius: 8px;
        margin-top: 1rem;
    }

    .cta-box {
        width: 100%;
        min-width: 0;
        padding: 1.25rem;
    }

    .cta-box .btn-primary {
        width: auto;
        display: inline-flex;
    }

    .cta-divider {
        margin: 0.5rem 0;
    }
}

/* Hero/slogan section */
.hero {
    width: 100%;
    background-color: var(--primary-color);
}

.hero-slogan-container {
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-slogan-container img {
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-divider {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 2px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-divider::before,
.cta-divider::after {
    content: "";
    height: 1px;
    width: 1.5rem;
    background-color: currentColor;
    display: block;
}

.cta-box {
    background: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-box h4,h5 {
    color: #fff;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

.cta-box h5 {
    margin: 1rem 0 0 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    background: var(--accent-color);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    background: #0066b8;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.btn-secondary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Section styles */
section {
    padding: 0 1rem;
}

section:nth-child(even) {
    background: var(--light-bg);
}

section h2, section h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

section p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Team section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-member h3 {
    margin: 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.social-link {
    display: inline-block;
    margin: 0.5rem;
    color: var(--linkedin-blue);
}

/* Schedule table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    display: table;
}

.schedule-table th {
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 0.25rem 0.5rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1.5px solid #e0e7ef;
    letter-spacing: 0.5px;
}

.schedule-table th .day-label {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.05rem;
    color: #fff;
}

.schedule-table th .date,
.schedule-table th .theme {
    font-size: 0.8rem;
    opacity: 0.7;
    margin: 0.05rem 0 0 0;
    font-weight: 400;
    display: block;
    color: #e0e7ef;
}

.schedule-table th .theme {
    font-style: italic;
    color: #b3d4fc;
}

.schedule-table td {
    padding: 1rem;
    border: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
    display: table-cell;
}

.schedule-table .time-slot {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--primary-color);
    width: 120px;
}

.schedule-table .event-cell {
    min-height: 80px;
}

.schedule-table .event-cell small {
    display: block;
    font-size: 0.75rem;
    color: #555;
    margin-top: 0.25rem;
}

.event-location {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-weight: normal;
}

.event-cell.confirmed {
    background: #f6fff7;
    border-left: 4px solid #22c55e;
    color: #1a3d1a;
    font-weight: 600;
}

.event-cell.tbd {
    color: #888;
    font-style: italic;
    background: #f9f9f9;
}

@media (max-width: 768px) {
    .schedule-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 0.75rem;
        display: table-cell;
    }
    
    .schedule-table th .date,
    .schedule-table th .theme {
        display: inline;
        margin: 0 0.25rem;
    }
}

.focus-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #2d3748;
    text-align: center;
}

.focus-icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 1.5;
    color: #4a5568;
    flex-shrink: 0;
}

/* Contact section */
.contact-sponsor {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-sponsor h3 {
    margin-top: 0;
}

.email-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.25rem;
    margin-top: 1rem;
    transition: color 0.3s;
}

.email-link:hover {
    color: var(--accent-color);
}

/* Venue section */
.venue-info {
    background: white;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem 0;
}

.map-container {
    width: 100%;
    height: 400px;
    margin: 2rem 0;
    border-radius: 5px;
    overflow: hidden;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-links svg {
    width: 24px;
    height: 24px;
}

/* Opening Day Detailed Schedule */
.opening-day-detailed {
    background: #f8f9fa;
    border-radius: 8px;
}

.opening-day-detailed h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.schedule-blocks {
    display: grid;
    gap: 1rem;
}

.schedule-block {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.schedule-block .time-range {
    font-weight: 600;
    color: var(--primary-color);
    padding-right: 1rem;
    border-right: 1px solid #eee;
}

.schedule-block .event-details h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.schedule-block .event-details p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .schedule-block {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .schedule-block .time-range {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }
}

/* Modal & Toast */
.modal.hidden {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    animation: fade 0.2s ease-out;
}

.modal-content {
    position: relative;
    max-width: 380px;
    width: 92%;
    background: #fff;
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: scale 0.2s ease-out;
}

.sm-form {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.sm-form input[type=email] {
    flex: 1 1 220px;
    padding: 0.7rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sm-form button[type=submit] {
    padding: 0.7rem 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    background: var(--accent-color);
    color: #fff;
    cursor: pointer;
}

.sm-form button[type=submit]:hover {
    opacity: 0.9;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: none;
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
}

.modal-note {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.7rem;
}

.modal-lead {
    margin: 0.4rem 0 0;
}

.visually-hidden {
    position: absolute;
    left: -10000px;
}

@keyframes fade {
    from { opacity: 0 }
    to { opacity: 1 }
}

@keyframes scale {
    from { transform: scale(0.92) }
    to { transform: scale(1) }
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #10B981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: #EF4444;
}

.toast-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    font-weight: 500;
    font-size: 0.95rem;
}

.logo-container {
    width: 100%;
    height: 60px; /* Adjust as needed to provide enough vertical space for logos */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.event-logo {
    max-height: 48px; /* Allow logos to take more vertical space */
    max-width: 90%;  /* Keep them within cell width */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* Center the logo horizontally */
}

/* Per-logo tweaks for better visual balance */
.logo-wizon {
    max-height: 40px; /* Make Wizon slightly larger */
}

.logo-proekspert {
    max-width: 80%; /* Make Proekspert slightly smaller */
}
