/* Font declarations */
@font-face {
    font-family: 'AkzidenzGroteskPro';
    src: url('font/AkzidenzGroteskPro-Regular.woff2') format('woff2'),
         url('font/AkzidenzGroteskPro-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AkzidenzGroteskPro';
    src: url('font/AkzidenzGroteskPro-Bold.woff2') format('woff2'),
         url('font/AkzidenzGroteskPro-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AkzidenzGroteskPro';
    src: url('font/AkzidenzGroteskPro-Light.woff2') format('woff2'),
         url('font/AkzidenzGroteskPro-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AkzidenzGroteskPro';
    src: url('font/AkzidenzGroteskPro-Md.woff2') format('woff2'),
         url('font/AkzidenzGroteskPro-Md.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'AkzidenzGroteskPro', sans-serif;
    line-height: 1.6;
    color: #000;
    overflow-x: hidden;
}

h2{
    font-weight: 500;
    font-size: 1.8rem;
}

.container {
    width: 100%;
    padding: 0 2rem;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease;
    margin-top: 56px;
}

header.scrolled {
    backdrop-filter: contrast(175%) brightness(60%) blur(20px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 96px;
    width: auto;
}

.scrolled .logo-img {
    height: 64px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: normal;
    color: #000;
    font-family: 'AkzidenzGroteskPro', sans-serif;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

header.scrolled .nav-links a {
    color: #fff;
}

.language-switch {
    border: 1px solid white;
    padding: 5px 10px;
    border-radius: 4px;
}

header.scrolled .language-switch {
    border-color: #000;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

header.scrolled .menu-toggle span {
    background-color: #000;
}

@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: white;
        font-size: 1.2rem;
    }

    .menu-toggle {
        position: relative;
        z-index: 1000;
        width: 30px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 0;
        background: transparent;
        border: none;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: white;
        transition: all 0.3s ease;
    }

    header.scrolled .menu-toggle span {
        background-color: white;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .bcn-corporate-bar {
        padding: 0.25rem 0;
    }

    .bcn-corporate-bar .container {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.25rem 1rem;
    }
    
    .corporate-right {
        display: none;
    }
    
    .bcn-logo {
        order: 1;
        height: 25px;
    }

    header {
        margin-top: 35px;
        padding: 15px 0;
    }

    .menu-toggle {
        padding-top: 5px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 48px;
    margin-bottom: 0;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    text-align: left;
    z-index: 2;
    color: #fff;
    padding: 0 2rem;
    position: relative;
}

.hero h1 {
    font-size: 5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    line-height: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    font-family: 'AkzidenzGroteskPro', sans-serif;
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.3s;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'AkzidenzGroteskPro', sans-serif;
    font-weight: normal;
}

/* About Section */
.about {
    padding: 0;
    background-color: #D4DA20;
    overflow: hidden;
}

.container-fluid {
    width: 100%;
    padding: 0;
    margin: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    margin: 0;
    max-height: 768px;
}

.about-text {
    padding: 80px;
    height: 100%;
}

.about-text p {
    font-size: 1.8rem;
    line-height: 1.5;
    color: #000;
    margin: 0;
}

.about-image {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.about-image img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: left center;
    transition: filter 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .about-text {
        padding: 40px;
    }
    
    .about-text p {
        font-size: 1.5rem;
    }
    
    .about-image {
        height: 400px;
    }
}

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

/* Exhibitions Section */
.exhibitions {
    padding: 6rem 0;
    background: #EE77AD;
    position: relative;
    z-index: 2;
}

.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 3rem;
    gap: 1px;
    gap: 2rem;
}

.exhibition-item {
    background: #8B7349;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

.exhibition-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-container {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.exhibition-item:hover .image-container img {
    transform: scale(1.05);
}

.exhibition-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.exhibition-type {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.exhibition-content {
    padding: 2rem 2.5rem 2.5rem;
    position: relative;
}

.exhibition-content h3,
.event-details h3 {
    font-size: 1.8rem;
    line-height: 1;
    color: #000;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    font-weight: normal;
}

.event-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.exhibition-content p {
    color: #000;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 300;
}

.exhibition-meta {
    display: flex;
    gap: 1.5rem;
    color: #000;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.exhibition-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exhibition-meta i {
    color: #000;
}

@media (max-width: 768px) {
    .exhibition-grid {
        grid-template-columns: 1fr;
    }
    
    .exhibition-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Footer */
footer {
    background: #1F7973;
    color: #fff;
    padding: 6rem 0 4rem;
    font-family: 'AkzidenzGroteskPro', sans-serif;

}

.footer-brand {
    text-align: center;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 3.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
    font-family: 'AkzidenzGroteskPro', sans-serif;
}

.footer-brand p {
    font-size: 1.2rem;
    color: #ccc;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: normal;
    text-transform: uppercase;
    color: #fff;
}

.contact-info {
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    font-weight: 300;
}

.contact-info .organization {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-info .address,
.contact-info .country {
    line-height: 1.4;
}

.contact-info .country {
    margin-bottom: 1rem;
}

.contact-info .contact-details a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info .contact-details a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-direction: column;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid white
}

.social-links a:hover {
    color: #ccc;
}

@media (max-width: 768px) {
    .footer-brand h2 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
}

/* Footer Logos */
.footer-logos {
    margin-top: 4rem;
    padding-top: 3rem;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.brightness {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.brightness,
.footer-logo:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-logo {
        height: 50px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .about h2,
    .exhibitions h2 {
        font-size: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Common Scrollbar Styles */
.events-slideshow,
.modal-body,
.timeline-container,
.exhibitions-grid,
.related-activities,
.news-grid,
.gallery-grid,
.artists-grid,
.about-content,
.contact-info,
.footer-content {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #000 transparent;
}

.events-slideshow::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.timeline-container::-webkit-scrollbar,
.exhibitions-grid::-webkit-scrollbar,
.related-activities::-webkit-scrollbar,
.news-grid::-webkit-scrollbar,
.gallery-grid::-webkit-scrollbar,
.artists-grid::-webkit-scrollbar,
.about-content::-webkit-scrollbar,
.contact-info::-webkit-scrollbar,
.footer-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.events-slideshow::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.timeline-container::-webkit-scrollbar-track,
.exhibitions-grid::-webkit-scrollbar-track,
.related-activities::-webkit-scrollbar-track,
.news-grid::-webkit-scrollbar-track,
.gallery-grid::-webkit-scrollbar-track,
.artists-grid::-webkit-scrollbar-track,
.about-content::-webkit-scrollbar-track,
.contact-info::-webkit-scrollbar-track,
.footer-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.events-slideshow::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.timeline-container::-webkit-scrollbar-thumb,
.exhibitions-grid::-webkit-scrollbar-thumb,
.related-activities::-webkit-scrollbar-thumb,
.news-grid::-webkit-scrollbar-thumb,
.gallery-grid::-webkit-scrollbar-thumb,
.artists-grid::-webkit-scrollbar-thumb,
.about-content::-webkit-scrollbar-thumb,
.contact-info::-webkit-scrollbar-thumb,
.footer-content::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.events-slideshow::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.timeline-container::-webkit-scrollbar-thumb:hover,
.exhibitions-grid::-webkit-scrollbar-thumb:hover,
.related-activities::-webkit-scrollbar-thumb:hover,
.news-grid::-webkit-scrollbar-thumb:hover,
.gallery-grid::-webkit-scrollbar-thumb:hover,
.artists-grid::-webkit-scrollbar-thumb:hover,
.about-content::-webkit-scrollbar-thumb:hover,
.contact-info::-webkit-scrollbar-thumb:hover,
.footer-content::-webkit-scrollbar-thumb:hover {
    background: #000;
}

/* Events Section */
.events {
    padding: 6rem 0;
    background: #F05325;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.events-slideshow {
    position: relative;
    margin-top: 3rem;
    overflow-x: auto;
    padding: 1rem 0 2rem 0;
}

.events-slideshow::-webkit-scrollbar {
    height: 5px;
}

.events-slideshow::-webkit-scrollbar-track {
    background: transparent;
}

.events-slideshow::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 2.5px;
}

.events-slideshow::-webkit-scrollbar-thumb:hover {
    background: #000;
}

.events-track {
    display: flex;
    gap: 2rem;
    min-width: max-content;
    padding-right: calc(33.333% - 1.33rem);
}

.event-item {
    flex: 0 0 calc(20% - 1.6rem);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    background: #9D9FA2;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.event-item:hover {
    transform: translateY(-5px);
}

.event-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-item:hover .event-image img {
    transform: scale(1.05);
}

.event-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
}

.event-date {
    color: #fff;
    text-align: right;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
}

.event-details {
    padding: 1.5rem;
}

.event-location,
.event-district,
.event-time {
    color: #000;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.event-accessibility {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.event-accessibility i {
    color: #000;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.event-state {
    font-size: 1rem;
    color: #000;
    margin-bottom: 0.5rem;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    font-weight: normal;
}

.events-controls {
    display: none;
}

.prev-event,
.next-event {
    display: none;
}

@media (max-width: 768px) {
    .event-item {
        flex: 0 0 calc(100% - 2rem);
        min-width: 240px;
        max-width: 70vw;
    }
    
    .event-image {
        height: 250px;
    }
    
    .events-controls {
        padding: 0 0.5rem;
    }
    
    .events-track {
        padding-right: 2rem;
    }
}

/* Event Modal Styles */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.event-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 2rem auto;
    padding: 4rem 2rem;
    width: 90%;
    max-width: 1200px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.modal-header {
    flex-shrink: 0;
    margin-bottom: 2rem;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 1rem;
}

.modal-image {
    width: 100%;
    height: 500px;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.modal-section h4 {
    color: #000;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    font-weight: normal;
}

.modal-section p {
    color: #000;
    margin-bottom: 0.25rem;
    font-family: 'AkzidenzGroteskPro', sans-serif;
}

.modal-description {
    font-size: 1.125rem;
}

.modal-description h4 {
    color: #000;
    margin-bottom: 1rem;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    font-weight: normal;
    font-size: 1.2rem;
}

.modal-description p {
    color: #000;
    line-height: 1.6;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    font-size: 1.1rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10000;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        padding: 3rem 1rem;
        width: calc(100% - 2rem);
    }

    .modal-image {
        height: 300px;
    }

    .modal-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

/* Map Section */
.map-section {
    margin: 6rem 2rem 3rem;
    padding: 0;
    position: relative;
    z-index: 2;
}

.map-section h2{
    margin-bottom: 2rem;
}

#map {
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
}

.map-section-content{
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    font-size: 1rem;
    font-weight: 300;
    max-width: 768px;
    margin: 2rem auto;
    text-align: center;
    align-items: center;
}

.map-section-content a{
    display: block;
    border: 2px solid black;
    width: fit-content;
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 0.75rem 1.1rem;
    border-radius: 1.75rem;
    text-decoration: none;
    color: white;
    background-color: black;
    font-weight: 500;
    transition: all 0.4s;
}

.map-section-content a:hover{
    background-color: white;
    color: black;
}

.location-info {
    margin-top: 2rem;
}

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

.location-info p {
    color: #000;
    margin-bottom: 0.5rem;
}

/* Overlay for sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .events-sidebar {
        width: 100%;
        right: -100%;
    }
    
    #map {
        height: 300px;
    }
}

/* Modal Styles Update */
.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.modal-section h4 {
    color: #000;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.modal-section p {
    color: #000;
    margin-bottom: 0.25rem;
}

.modal-address {
    font-size: 0.9rem;
    color: #000;
}

.modal-type {
    display: inline-block;
    color: white;
    background: black;
    padding: 0.5rem 1rem;
    border-radius: 14rem;
    font-size: 0.75rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.modal-dates {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1;
}

.modal-state {
    opacity: 0.6;
}

.modal-location{
    font-size: 1.125rem;
}

.modal-address{
    font-weight: 300;
}


.modal-accessibility {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.modal-accessibility i {
    font-size: 1.2rem;
    color: #000;
}

.modal-description h4 {
    color: #000;
    margin-bottom: 1rem;
}

.modal-description p {
    color: #000;
    line-height: 1.6;
    font-size: 1.125rem;
}

@media (max-width: 768px) {
    .modal-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Search Block Styles */
.search-block {
    margin: 2rem 0;
    font-family: 'AkzidenzGroteskPro', sans-serif;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: flex-end;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.search-group.final {
   flex-direction: row;
}

.search-group.full-width {
    grid-column: 1 / -1;
}

.search-group label {
    font-size: 0.9rem;
    line-height: 1;
    font-weight: 500;
    color: #000;
    font-family: 'AkzidenzGroteskPro', sans-serif;
}

.search-group select {
    width: 100%;
    padding: 0.95rem 1.15rem;
    border: 2px solid #000;
    border-radius: 1.9rem;
    font-size: 1.15rem;
    color: #000;
    background-color: transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.search-group select:hover {
    border-color: rgba(0,0,0,0.75);
}

.search-group select:focus {
    outline: none;
    border-color: #000;
}

.search-group input[type="date"] {
    padding: 0.65rem 1.15;
    border-radius: 1.75rem;
    border: 2px solid black;
    border-radius: 4px;
    font-size: 1.15rem;
    color: #000;
    cursor: pointer;
    transition: border-color 0.3s ease;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.search-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 0.5rem;
    margin-right: -0.5rem;
}

.search-group input[type="date"]::-webkit-inner-spin-button,
.search-group input[type="date"]::-webkit-clear-button {
    display: none;
}

.search-group input[type="date"]:hover {
    border-color: #999;
}

.search-group input[type="date"]:focus {
    outline: none;
    border-color: #000;
}

.accessibility-options {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #000;
    font-family: 'AkzidenzGroteskPro', sans-serif;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label i {
    color: #000;
    font-size: 1.1rem;
}

.search-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.search-block .search-button,
.search-block .reset-button {
    padding: 0.75rem 1.5rem;
    width: 3.625rem;
    height: 3.625rem;
    border: none;
    border-radius: 1.825rem;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-family: 'AkzidenzGroteskPro', sans-serif;
}

.search-block .search-button {
    background-color: #000;
    color: #fff;
    border: 2px solid black;
}
.search-block .search-button:hover {
    background-color: initial;
    border: 2px solid black;
}

.search-block .search-button i{
    color: white;
    font-size: 1.35rem;
    color: #F05325;
}
.search-block .search-button:hover i {
    color: black;
}
    

.search-button:hover {
    background-color: #444;
}

.reset-button {
    background-color: #f5f5f5;
    color: #000;
}

.reset-button:hover {
    background-color: #eee;
}

@media (max-width: 768px) {
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .accessibility-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-actions {
        flex-direction: column;
    }
    
    .search-button,
    .reset-button {
        width: 100%;
        justify-content: center;
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.fade-out {
    opacity: 0;
    transform: translateY(30px);
}

section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.modal-maps-link{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #000;
    text-decoration: none;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 300;
    transition: color 0.3s ease;
}

.modal-district {
    font-weight: 300;
    font-size: 0.9rem;
}

.modal-maps-link i {
    color: black;
}

.modal-maps-link:hover {
    text-decoration: underline;
}

.modal-related {
    margin-top: 2rem;
    padding-top: 2rem;
}

.modal-related h4 {
    color: #000;
    margin-bottom: 1rem;
}

.related-activities {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-activity {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
}

.related-activity:hover {
    background: #eee;
    transform: translateX(5px);
}

.related-activity-title {
    font-weight: normal;
    color: #000;
}

.related-activity-location {
    font-size: 0.9rem;
    color: #000;
}

.related-activity-dates {
    font-size: 0.9rem;
    color: #000;
}

.exhibition-content .event-date-text,
.event-item .event-date-text {
    font-size: 1.15rem;
    color: #000;
    margin: 0 0 1rem;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    font-weight: 300;
}

@media (max-width: 768px) {
    .event-modal {
        padding: 2vh 2vw;
    }
    
    .modal-content {
        width: 96%;
        height: 96vh;
        padding: 1.5rem;
    }
}

/* Timeline Section */
.timeline-section {
    padding: 6rem 0;
    background: #e8e8e8;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    overflow-x: auto;
    padding: 0 0 2rem;
}

.timeline-container::-webkit-scrollbar {
    height: 8px;
}

.timeline-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background: #000;
}

.timeline {
    display: flex;
    gap: 1rem;
}
@media(min-width:768px){
    .timeline {
        gap: 2rem;
        min-width: max-content;
    }  
}

.timeline-month {
    flex: 0 0 300px;
    border-radius: 8px;
    position: relative;
    padding: 1.25rem 1.5rem 4rem;
    border: 2px solid white
}

.timeline-month h3 {
    margin-bottom: 15px;
    color: white;
    font-size: 1.5em;
    font-weight: 500;
}

.timeline-events {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-event {
    padding: 0.5rem 1rem 0.75rem;
    background: #6ECAF2;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.modal-related .timeline-event{
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
}
.modal-related .timeline-event:hover{
    background-color: rgba(0, 0, 0, 0.25);
    transform: none;
}
.timeline-event:hover {
    transform: scale(1.05);
}

.timeline-event .event-type {
    font-size: 0.75em;
    color: #000;
    text-transform: uppercase;
}

.timeline-event h4 {
    font-size: 1.15rem;
    font-weight: 500;
    color: #000;
    margin: 0;
    line-height: 1.4;
}

.veure-mes-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1rem 1.125rem;
    background: initial;
    text-align: right;
    color: white;
    border: none;
    border-radius: 0;
    border-top: 2px solid white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    font-weight: 500;
}

.veure-mes-btn:hover {
    transform: translateY(-6px);
}

@media (max-width: 768px) {
    .timeline-month {
        flex: 0 0 260px;
    }
    
    .timeline-event h4 {
        font-size: 0.9rem;
    }
}

/* Combined Timeline Sections */
.timeline-sections-wrapper {
    background: #f0f0f0;
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.timeline-sections-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.timeline-section {
    padding: 0;
    background: #1F7973;
}

.timeline-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    font-weight: normal;
}

.timeline-sections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}
.timeline-section {
    padding: 1rem;
    margin: 2.5rem 1rem;
    border-radius: 8px;
}
@media (min-width: 1024px) {
    .timeline-section {
        padding: 2rem;
        margin: 2.5rem 2rem;
    }
    .timeline-sections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .timeline-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

/* Newsletter Section */
.newsletter-section {
    background: white;
    background-image: url('images/background_big.png');
    background-repeat: no-repeat;
    background-position: top center;
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    font-weight: 300;
}

.newsletter-content h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #000;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    font-weight: normal;
}
@media(min-width: 768px){
    .newsletter-content h2 {
        font-size: 1.8rem;
    } 
}


.newsletter-content p {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

.form-group {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section .form-group input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid black;
    border-radius: 2rem;
    font-size: 1rem;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    color: #000;
    background: initial;
    transition: border-color 0.3s ease;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: #000;
}

.form-group button {
    padding: 1rem 2rem;
    background: #611C38;
    border: 2px solid #611C38;
    color: #fff;
    border-radius: 2rem;
    font-size: 1.15rem;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-group button:hover {
    background: white;
    color:#611C38;
}

.privacy-checkbox {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.privacy-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #000;
    cursor: pointer;
}

.privacy-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.privacy-checkbox a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-checkbox a:hover {
    color: #000;
}

@media (max-width: 768px) {
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group button {
        width: 100%;
    }
}
/* Competitions Section Styles */
.competitions-section {
    padding: 6rem 0 9rem;
}

.competitions-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.25rem;
    line-height: 1;
    color: #000;
}
@media(min-width:768px){
    .competitions-section h2 {
        font-size: 1.8rem;
    }
}

.competitions-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
}
@media(min-width:992px){
    .competitions-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 1200px;
    }
}

.competition-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 2px solid black;
}

.competition-card:hover {
    transform: translateY(-5px);
}

.competition-header {
    padding: 25px;
    background: white;
    color: black;
}

.competition-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    display: flex;
    gap: 0.5rem;
    font-weight: 500;
    align-items: center;
    justify-content: space-between;
    font-family: 'AkzidenzGroteskPro', sans-serif;
}

.competition-header h3::after {
    content: "→";
    font-family: 'AkzidenzGroteskPro', sans-serif;
    font-size: 1.4rem;
    border-left: 2px solid black;
    padding-left: 1rem;
    transition: transform 0.3s ease;
}

.competition-card:hover .competition-header h3::after {
    transform: translateX(5px);
}

.competition-type {
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.competition-content {
    padding: 25px;
}

.competition-description {
    color: #000;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.competition-details {
    margin-bottom: 25px;
}

.competition-details p {
    margin: 8px 0;
    color: #444;
    font-size: 0.95rem;
}

.competition-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.competition-btn:hover {
    background: #FF4B4B;
}

.event-type-btn {
    font-family: 'AkzidenzGroteskPro', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    padding: 0.35rem 1rem;
    border: 2px solid white;
    border-radius: 25px;
    background: white;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.event-type-btn:hover {
    background: #fff;
    color: #000;
}

.location-checkbox {
    font-size: 1.15rem !important;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem;
    border-radius: 1.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'AkzidenzGroteskPro', sans-serif;
}

.location-checkbox input[type="checkbox"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid black;
    background: transparent;
    cursor: pointer;
}

.location-checkbox input[type="checkbox"]:checked {
    background-color: black;
    color: #F05325;
}

.location-checkbox i {
    color: #000;
    font-size: 1.1rem;
}

.location-checkbox input[type="checkbox"]:checked + span {
    color: white;
}

.date-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-inputs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

.date-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.date-field label {
    font-size: 0.9rem;
    color: #000;
    font-family: 'AkzidenzGroteskPro', sans-serif;
}   

.date-field input[type="date"] {
    padding: 0.65rem 1rem;
    border: 2px solid black;
    border-radius: 1.9rem;
    background-color: transparent;
    font-size: 1rem;
    color: #000;
    cursor: pointer;
    transition: border-color 0.3s ease;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.date-field input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 0.5rem;
    margin-right: -0.5rem;
}

.date-field input[type="date"]::-webkit-inner-spin-button,
.date-field input[type="date"]::-webkit-clear-button {
    display: none;
}

.date-field input[type="date"]:hover {
    border-color: rgba(0,0,0,0.75);
}

.date-field input[type="date"]:focus {
    outline: none;
    border-color: #000;
}

/* Barcelona Corporate Bar */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap');

.bcn-corporate-bar {
    background-color: #fff;
    color: #000;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    font-family: 'Source Sans Pro', sans-serif;
    border-bottom: 1px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.bcn-corporate-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    margin: 0 auto;
}

.corporate-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.bcn-link {
    color: #000;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.35px;
    position: relative;
    padding-right: 1.5rem;
}

.search-container {
    display: flex;
    align-items: center;
    max-width: 400px;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0.5rem 1rem;
    border: none;
    border-bottom: 1px solid #ddd;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    background: transparent;
}

.search-input::placeholder {
    font-style: italic;
    color: #696973;
}

.search-button {
    height: 40px;
    padding: 0.5rem 1rem;
    background: transparent;
    color: #696973;
    border: none;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: none;
}

.search-button:hover {
    background: transparent;
    color: #696973;
}

.search-button i {
    font-size: 0.9rem;
    color: #696973;
}

.language-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-select i {
    color: #696973;
    font-size: 0.9rem;
}

.language-select select {
    padding: 0.5rem 2rem 0.5rem 0.5rem;
    border: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    background: transparent;
    color: #696973;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23696973' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
}

.bcn-logo {
    display: block;
    height: 40px;
}

.bcn-logo img {
    height: 100%;
    width: auto;
}

@media (max-width: 768px) {
    .bcn-corporate-bar {
        padding: 0.25rem 0;
    }

    .bcn-corporate-bar .container {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.25rem 1rem;
    }
    
    .corporate-right {
        display: none;
    }
    
    .bcn-logo {
        order: 1;
        height: 25px;
    }

    header {
        margin-top: 48px;
        padding: 15px 0;
    }

    .logo-img {
        height: 64px;
    }

    .menu-toggle {
        padding-top: 5px;
    }
} 

/* Search Icon in Main Menu */
.search-icon {
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
}

.search-modal-content {
    position: relative;
    background-color: #fff;
    margin: 6rem auto;
    padding: 4rem 2rem;
    width: 100%;
    height: fit-content;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}

.search-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.search-modal-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.search-modal-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #000;
    border-radius: 4rem;
    font-size: 1.5rem;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    background: transparent;
    transition: border-color 0.3s ease;
}

.search-modal-input:focus {
    outline: none;
    border-color: #666;
}

.search-modal-input::placeholder {
    color: black;
}

.search-modal-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-modal-filter {
    padding: 0.5rem 1rem;
    border: 2px solid #000;
    border-radius: 2rem;
    background: transparent;
    font-family: 'AkzidenzGroteskPro', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-modal-filter:hover,
.search-modal-filter.active {
    background: #000;
    color: #fff;
}

@media (max-width: 768px) {
    .search-modal-content {
        padding: 3rem 1rem;
    }
    
    .search-modal-close {
        top: 1rem;
        right: 1rem;
    }
    
    .search-modal-input {
        font-size: 1.2rem;
    }
} 