/* === EVENTO THEME === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Theme Colors */
    --primary-color: #ff2a39;
    /* Evento Red */
    --secondary-color: #101028;
    /* Deep Dark Blue */
    --text-color: #555555;
    --heading-color: #2b2b2b;
    --light-bg: #f9f9f9;
    --white: #ffffff;

    /* Variables */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    padding-bottom: 20px;
}

.section-title h2 {
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 20px rgba(255, 42, 57, 0.4);
}

.btn-primary:hover {
    background-color: #d61c29;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 42, 57, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn.disabled {
    background-color: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

/* Header */
header {
    background-color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.iief-logo {
    height: 60px;
    width: auto;
}

.divider {
    color: #eee;
    font-size: 2rem;
    font-weight: 200;
}

.orchestrator-text {
    font-size: 20px;
    color: #181818;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.sm-logo {
    height: 40px;
}

header nav ul {
    display: flex;
    gap: 35px;
}

header nav a {
    font-weight: 600;
    color: var(--heading-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    position: relative;
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

header nav a:hover::after {
    width: 100%;
}

/* === HERO SECTION === */
.hero {
    /*background: linear-gradient(rgba(16, 16, 40, 0.8), rgba(16, 16, 40, 0.8)), url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');*/
    background: linear-gradient(rgba(16, 16, 40, 0.8), rgba(16, 16, 40, 0.8)), url('hero.jpg');
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
    color: white;
    padding: 160px 0 120px;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
    margin-bottom: 50px;
}

.hero-badge {
    background-color: var(--primary-color);
    color: white;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero .tagline {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
}

.hero-details i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* === LIVE EVENT CARD === */
.live-event-section {
    position: relative;
    margin-top: -120px;
    /* Pull up to overlap clipped hero */
    z-index: 10;
    padding-bottom: 80px;
}

/* Reusing the card structure but styling it Evento-like */
.live-event-card {
    display: flex;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    border: none;
    max-width: 1000px;
    margin: 0 auto;
}

.live-event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.live-event-card .card-content {
    flex: 1;
    padding: 60px 40px;
}

.card-badge {
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.75rem;
    padding: 6px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.live-event-card h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.live-event-card .theme {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.live-event-card .tech {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.cta-link i {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.live-event-card:hover .cta-link i {
    transform: translateX(5px);
}

/* === EDITIONS GRID === */
.previous-editions-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.edition-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    border-bottom: 3px solid transparent;
}

.edition-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
    border-bottom: 3px solid var(--primary-color);
}

.edition-year {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.edition-card h3 {
    position: relative;
    z-index: 1;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    margin-top: 20px;
}

.edition-card .theme-sm {
    position: relative;
    z-index: 1;
    color: #777;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.btn-text {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* === DETAILS PAGES === */
.event-details-hero {
    background: linear-gradient(rgba(16, 16, 40, 0.9), rgba(16, 16, 40, 0.9)), url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    padding: 140px 0 100px;
    text-align: center;
    color: white;
}

.details-card h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
}

.status-badge {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 15px;
}

/* Tracks */
.tracks-section {
    background-color: white;
    padding: 100px 0;
}

.track-item {
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-top: none;
    background: var(--white);
    transition: var(--transition);
}

.track-item:hover {
    transform: translateY(-5px);
}

.track-head {
    color: var(--secondary-color);
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 15px;
}

.track-head::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Schedule */
.schedule-table th {
    background-color: var(--secondary-color);
    color: white;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 20px;
}

.schedule-table td {
    padding: 20px;
    color: #555;
}

.gallery-section,
.partners-section {
    margin-top: 15px;
}

.schedule-table tr:nth-child(even) {
    background-color: #f8f8f8;
}

/* Metrics */
.metrics-section {
    background-color: var(--secondary-color);
    color: white;
    padding: 100px 0;
}

.metrics-grid {
    display: flex !important;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.metric-card {
    float: left;
    padding: 30px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-card h3 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 10px;
}

.metric-card p {
    color: #ccc;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background-color: #0b0b1a;
    color: #888;
    padding: 80px 0 40px;
}

.social-links a {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: rotate(360deg);
}

.partner-logos span {
    background-color: white;
    border: 1px solid #eee;
}

/* === RESTORED SUB-PAGE STYLES === */

/* Details Hero Extras */
.details-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(16, 16, 40, 0.6);
    /* Backdrop for text */
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.details-card h1 {
    /* Existing override in css file was h1 only, this ensures specificity */
    color: white;
}

.card-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.card-meta i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Registration Section */
.registration-section {
    padding: 60px 0;
    background-color: var(--light-bg);
    border-bottom: 1px solid #eee;
    text-align: center;
}

.btn-large {
    padding: 18px 50px;
    font-size: 1.1rem;
}

.glow-effect {
    box-shadow: 0 0 20px rgba(255, 42, 57, 0.5);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 15px rgba(255, 42, 57, 0.3);
    }

    to {
        box-shadow: 0 0 30px rgba(255, 42, 57, 0.7);
    }
}

.reg-note {
    margin-top: 20px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Context Content */
.context-section .content-block {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.content-block h3 {
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.content-block h3:first-child {
    margin-top: 0;
}

/* Tracks Scroll */
.tracks-scroll-container {
    overflow-x: auto;
    gap: 30px;
    padding: 20px 5px 60px;
    /* Bottom padding for shadow/hover space */
    scroll-snap-type: x mandatory;
}

.track-item {
    min-width: 350px;
    /* Ensure content width */
    flex-shrink: 0;
    scroll-snap-align: start;
}

.track-desc .example {
    font-size: 0.9rem;
    background: #f4f4f4;
    padding: 10px;
    border-radius: 6px;
    color: #666;
    margin-top: 10px;
}

/* Schedule Card */
.schedule-card-single {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item.placeholder {
    background-color: #eee;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #999;
    font-weight: 600;
    transition: var(--transition);
    border: 2px dashed #ddd;
}

.gallery-item.placeholder:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Partner Logos */
.partner-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.partner-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 90px;
    background: white;
    border: 1px solid #eee;
    color: #555;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}


/* === REGISTRATION MODAL === */
.modal-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 16, 40, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    /* Above header */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* === VIDEO SECTION === */
.video-section {
    padding: 100px 0;
    background-color: var(--white);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: #000;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-fallback-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.video-fallback-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.video-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: var(--white);
    /* changed from #000 to match card style when text is added */
    padding-bottom: 20px;
    /* Space for the button */
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-header p {
    color: #666;
    font-size: 0.9rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-block {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
}