/* JECAS 2026 - Color Palette
   Primary: #8B2F39 (Dark Red/Garnet - Institutional)
   Secondary: #C75450 (Red - Catalan accent)
   Accent: #E8B4A8 (Soft Pink - Elegance)
   Light: #f7fafc (Background)
   Dark: #2d3748 (Text)
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #C00000;
    --primary-light: #471017;
    --secondary: #C75450;
    --accent: #f7e2ac;
    --accent-light: #faed66;
    --light: #f5f5f5;
    --dark: #2d3748;
    /*  gray-700 (nou, abans era gray-600) */
    --gray: #4a5568;
    --gray-light: #ededed;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*AQI XMB Afegeixo pq no hi ha grandària per defecte i Edge no té valor 16px per defecte.
	Caldria mirar afectació versió mòbil
	font-size: 16px;*/

}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Registration Banner */
.registration-banner {
    background: var(--primary);
    text-align: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.registration-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-block;
    padding: 12px 30px;
    background: var(--white);
    border-radius: 6px;
    transition: var(--transition);
    border: none;
    margin-top: 25px;
    box-shadow: var(--shadow);
}

.registration-link:hover {
    background: var(--gray-light);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 20px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-text span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav ul li a {
    color: var(--dark);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
    background: var(--gray-light);
}

nav ul li a.active {
    color: var(--white);
    background: var(--primary);
}

nav ul li.dropdown {
    position: relative;
}

nav ul li.dropdown .dropdown-menu {
    position: absolute;
    top: 120%;
    /*separar ítems de menú Comitè*/
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 4px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

nav ul li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav ul li.dropdown .dropdown-menu li {
    width: 100%;
    margin: 0;
}

nav ul li.dropdown .dropdown-menu li a {
    display: block;
    padding: 12px 16px;
    border-radius: 0;
}

nav ul li.dropdown .dropdown-menu li:first-child a {
    border-radius: 4px 4px 0 0;
}

nav ul li.dropdown .dropdown-menu li:last-child a {
    border-radius: 0 0 4px 4px;
}

nav ul li.dropdown .dropdown-menu li a:hover {
    background: var(--gray-light);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 5px;
    margin-left: 20px;
}

.lang-switcher button {
    padding: 6px 12px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-switcher button:hover,
.lang-switcher button.active {
    background: var(--primary);
    color: var(--white);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 150px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../img/trama_blanc.svg) repeat;
    background-size: 10%;
    opacity: 6%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-light);
}

.hero .date-location {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero .cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.hero .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Sections */
section {
    padding: 40px 20px;
}

section.alt-bg {
    background: var(--white);
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    line-height: 1.4;
}

.section-title p {
    color: var(--dark);
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 1.5em auto;
    text-align: left;
}

.section-title p.centered-text {
    text-align: center;
}

.section-title p.signature {
    text-align: left;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.section-title p.signature.person-name {
    font-size: 1rem;
    font-weight: bold;
}

.section-title p.closing-text {
    font-style: italic;
}

/* Speakers Grid */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.speaker-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.speaker-card .speaker-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--gray-light);
}

.speaker-card .speaker-info {
    padding: 20px;
    text-align: center;
}

.speaker-card h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.speaker-card .role {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 10px;
}

.speaker-card .institution {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Schedule */
.schedule-container {
    max-width: 900px;
    margin: 0 auto;
}

.schedule-day {
    margin-bottom: 40px;
}

.schedule-day h3 {
    background: var(--primary);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 8px 8px 0 0;
    font-size: 1.3rem;
}

.schedule-item {
    display: flex;
    position: relative;
    background: var(--white);
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin-bottom: 2px;
}

.schedule-item:last-child {
    border-radius: 0 0 8px 8px;
}

.schedule-time {
    min-width: 120px;
    font-weight: 700;
    color: var(--primary);
}

.schedule-content {
    flex: 1;
    padding-right: 80px;
}

.schedule-content h4 {
    color: var(--dark);
    margin-bottom: 5px;
}

.schedule-content .speaker {
    color: var(--secondary);
    font-size: 0.95rem;
}

.schedule-content .description {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

.schedule-place {
    position: absolute;
    top: 20px;
    right: 20px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    text-align: right;
}

/* Committee */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.committee-organitzador-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 220px));
    grid-auto-rows: 1fr;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center;
    align-items: stretch;
}

.committee-member {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.committee-member:hover {
    transform: translateY(-3px);
}

.committee-member .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gray-light);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
}

.committee-member .member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
}

.committee-member h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.committee-member .position {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.committee-member .institution {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Date Cards (for fechas-clave.html) */
.date-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 15px;
}

.date-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Header section (title + description) */
.date-card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.date-card-title {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
}

.date-card-description {
    color: var(--dark);
    font-size: 0.96rem;
    margin: 0;
    min-height: 3em;
}

/* Date section */
.date-card-date-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-card-date-label {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
}

.date-card-date {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

/* Button section */
.date-card-button-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
}

.date-card-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.date-card-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Registration Form */
.registration-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-light);
}

/* Location */
.location-container {
    max-width: 1000px;
    margin: 0 auto;
}

.location-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 10px;
}

.location-details h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.location-details h4 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.location-details p {
    margin-bottom: 15px;
    color: var(--dark);
}

.location-details .address {
    display: flex;
    align-items: flex-start;
}

.location-details .address-icon {
    font-size: 1.5rem;
    color: var(--secondary);
}

.location-address p {
    margin-bottom: 8px;
}

.location-tourist-information a,
.submissions-section a,
.email-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    transition: var(--transition);
}

.location-tourist-information a:hover,
.submissions-section a:hover,
.email-link:hover {
    color: var(--secondary);
    text-decoration: none;
}

.location-images {
    display: block;
}

.location-images figure {
    margin: 0;
}

.location-images img {
    width: 100%;
    height: 415px;
    object-fit: cover;
    border-radius: 8px;
}

.location-images figcaption {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: right;
    margin-top: 8px;
}

.location-images figcaption a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.location-images figcaption a:hover {
    text-decoration: underline;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-container+figcaption {
    font-size: 0.85rem;
    color: var(--gray);
    text-align: right;
    margin-top: 8px;
}

.map-container+figcaption a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.map-container+figcaption a:hover {
    color: var(--secondary);
}


/* Footer */
footer {
    color: var(--white);
    background: var(--gray-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 0px;
    flex-wrap: wrap;
}

.footer-section h4 {
    margin-bottom: 0px;
    color: var(--dark);
}

.footer-section p,
.footer-section a {
    color: var(--dark);
    display: block;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-link-arrow::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    background: url('../img/fletxa.svg') no-repeat center;
    background-size: contain;
    vertical-align: middle;
}

.footer-link-arrow {
    margin-bottom: 3px;
}

.footer-section.footer-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    min-width: 300px;
}

.footer-logo-main {
    height: 64px;
    width: auto;
}

.footer-logo-text {
    height: 120px;
    width: auto;
}

.footer-section.footer-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-contact-title {
    margin-top: 20px !important;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--primary);
}

.footer-bottom {
    background: var(--primary);
    width: 100%;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    color: rgba(255, 255, 255);
    font-size: 0.9rem;
}

.footer-generalitat {
    height: 30px;
    width: auto;
    transition: var(--transition);
}

.footer-generalitat:hover {
    opacity: 0.8;
}

.footer-rights-link {
    color: rgba(255, 255, 255);
    text-decoration: none;
    transition: var(--transition);
    text-align: right;
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-rights-link:hover {
    color: var(--accent);
}

.footer-rights-link p {
    margin: 0;
}

.editar {
    background-color: #ff0;
    color: red;
    font-weight: 700;
    cursor: help
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .location-info {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-section.footer-logos {
        justify-content: center;
    }

    .footer-section.footer-links {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .registration-banner {
        padding: 10px 15px;
    }

    .registration-link {
        font-size: 0.9rem;
        padding: 6px 15px;
    }

    nav ul {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    nav ul.active {
        transform: translateY(0);
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 15px;
    }

    nav ul li.dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    nav ul li.dropdown.active .dropdown-menu {
        display: block;
    }

    .lang-switcher {
        margin: 15px 0 0;
        justify-content: center;
    }

    .hero,
    .page-header {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        padding: 160px 20px 80px;
    }

    .page-header {
        padding: 160px 20px 40px;
    }

    .header-logo {
        display: none;
    }

    .hero-content,
    .header-text {
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .schedule-item {
        flex-direction: column;
    }

    .schedule-time {
        margin-bottom: 10px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        padding: 40px 20px 30px;
    }

    .footer-section.footer-logos {
        flex-direction: column;
        gap: 15px;
    }

    .footer-logo-main {
        height: 80px;
    }

    .footer-logo-text {
        height: 100px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .submissions-dates .date-item {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .page-header h1 {
        font-size: 1.7rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .registration-form {
        padding: 25px;
    }

    .location-images {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section.footer-logo img {
        max-width: 280px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
    }

    .footer-generalitat {
        height: 30px;
    }

    .footer-rights-link {
        white-space: nowrap;
        font-size: 0.75rem;
        max-width: 100%;
    }
}

/* Page specific styles */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 150px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.page-header h1,
.page-header p {
    position: relative;
    z-index: 2;
}

.header-logo {
    height: 180px;
    width: auto;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.header-text {
    position: relative;
    z-index: 2;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../img/trama_blanc.svg) repeat;
    background-size: 6%;
    opacity: 0.06;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* About section on home */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--dark);
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Stats */
.stats-section {
    background: var(--primary);
    padding: 60px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    color: var(--white);
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Submissions Page */
.submissions-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.submissions-index {
    background: var(--white);
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary);
}

.submissions-index h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    margin-left: 0;
    padding-left: 0;
}

.submissions-index ul {
    list-style-image: url('../img/fletxa.svg');
    padding-left: 30px;
    margin-top: 20px;
    display: block;
}

.submissions-index ul li {
    display: list-item;
    margin-bottom: 8px;
    padding-left: 0;
    width: 100%;
}

.submissions-index ul li a {
    color: var(--dark);
    text-decoration: none;
    padding: 8px 10px;
    display: block;
    border-radius: 4px;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.submissions-index ul li a:hover {
    background: var(--gray-light);
    color: var(--primary);
}

/* Removed .submissions-index ul li a::before rule as per instruction */

.submissions-content .intro-text,
.location-container .intro-text,
.location-container .intro-text p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 40px;
    text-align: center;
    font-weight: bold;
}

.submissions-section {
    scroll-margin-top: 100px;
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.submissions-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}


.submissions-section p,
.submissions-section>div:not(.dates-grid) {
    color: var(--gray);
    margin-bottom: 15px;
}

.submissions-list+div {
    margin-top: 20px;
}

.submissions-list+div {
    margin-left: 20px;
}

/* UL with submissions-list class directly or as child */
ul.submissions-list,
.submissions-list ul {
    list-style-image: url('../img/fletxa.svg');
    padding-left: 20px;
}

/* OL with submissions-list class directly or as child, or OL nested in UL */
ol.submissions-list,
.submissions-list ol,
ul.submissions-list ol {
    list-style-type: decimal;
    list-style-image: none;
    padding-left: 20px;
}

.submissions-list li {
    padding: 8px 0;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-light);
}

.submissions-list ol li {
    border-bottom: none;
}

.submissions-list li:last-child {
    border-bottom: none;
}

.submissions-dates .dates-grid {
    display: grid;
    gap: 15px;
}

.submissions-dates .date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--light);
    border-radius: 6px;
    border-left: 4px solid var(--accent);
}

.submissions-dates .date-label {
    color: var(--dark);
    font-weight: 500;
}

.submissions-dates .date-value {
    color: var(--primary);
    font-weight: 700;
}

.submissions-send {
    text-align: center;
}

.submissions-send .email-link {
    display: inline-block;
    margin-top: 15px;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.submissions-send .email-link:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Accordion Styles */
details {
    display: block;
}

summary {
    list-style: none;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    transition: color 0.3s;
    display: inline-block;
    width: fit-content;
}

summary::-webkit-details-marker {
    display: none;
}

summary:hover {
    color: var(--primary);
}


summary h4 {
    position: relative;
    padding-right: 20px;
    cursor: pointer;
}

summary h4::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    transition: transform 0.3s;
}

details[open] summary h4::after {
    content: '-';
    transform: translateY(-50%);
}

.accordion-content {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 3px solid var(--primary);
    border-radius: 4px;
    animation: fadeIn 0.3s ease-in-out;
}

.accordion-content p {
    margin-bottom: 15px;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

.accordion-content ul {
    margin-top: 10px;
    padding-left: 20px;
}

.accordion-content>ul>li {
    font-weight: 700;
    margin-top: 10px;
}

.accordion-content ul ul li {
    font-weight: 400;
    margin-top: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}