* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-image: url('/ex_advertise/picsad/zeventes24back.png');
    color: white;
}
.subtitle{
    text-align: center;
    font-weight: 700;
    margin-left: 20px;
    margin-right: 20px;
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 1.3rem;
    font-weight: 400;
}

header .logo {
    position: absolute;
    left: 20px;
    height: 42px;
}

/* MAIN LAYOUT */
main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
    padding: 2rem;
}

/* LEFT PROMO SECTION */
.promo {
    position: relative;
}

.promo img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.promo-text {
    position: absolute;
    top: 25px;
    left: 25px;
    max-width: 78%;
}

.promo-text .title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.promo-text .subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    line-height: 1.5rem;
}

.promo-text .tagline {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5rem;
}

.promo-text .highlight {
    color: #007bff;
}

/* RIGHT CARDS GRID */
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.card {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    position: relative;
    overflow: hidden;
}

.card span {
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 1.15rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}
/* Smooth transitions for interactive feel */
.card {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card span {
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 1.15rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    transition: transform 0.3s ease;
}

/* Hover Effect */
.card:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
}

.card:hover span {
    transform: translateY(-3px);
}
/* link  */
.event-promo-link {
    display: block;
    text-decoration: none;
}

.event-promo {
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.event-promo span {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
}

/* Hover effect for clickable banner */
.event-promo:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
}

.event-promo:hover span {
    transform: translateY(-3px);
}
/* Card Links */
.cards a {
    text-decoration: none;
}

/* Card Design (Clickable) */
.card {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card span {
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 1.15rem;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    transition: transform 0.3s ease;
}

/* Hover Effect for Clickable Cards */
.card:hover {
    transform: scale(1.05);
    filter: brightness(1.15);
}

.card:hover span {
    transform: translateY(-3px);
}
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animation to the promo section */
.promo {
    animation: fadeUp 0.8s ease forwards;
}

/* Cards: staggered animation effect */
.cards a {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.cards a:nth-child(1) { animation-delay: 0.2s; }
.cards a:nth-child(2) { animation-delay: 0.35s; }
.cards a:nth-child(3) { animation-delay: 0.5s; }
.cards a:nth-child(4) { animation-delay: 0.65s; }
.cards a:nth-child(5) { animation-delay: 0.8s; }
.cards a:nth-child(6) { animation-delay: 0.95s; }

/* Base styles (desktop-first) */
/* already from your current setup */

/* === Responsive Styles === */

/* Large Tablets (≤ 1024px) */
@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .promo-text {
        max-width: 90%;
    }
}

/* Small Tablets & Large Phones (≤ 768px) */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.1rem;
        visibility: hidden;
    }

    .promo-text .title {
        font-size: 1.8rem;
    }

    .promo-text .subtitle {
        font-size: 0.95rem;
    }

    .promo-text .tagline {
        font-size: 0.9rem;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .card {
        height: 130px;
    }
}

/* Mobile Phones (≤ 480px) */
@media (max-width: 480px) {
    .subtitle{
    font-size: x-large;
    font-weight: 800;
    }
    main {
        gap: 1.5rem;
        padding: 1rem;
    }

    header .logo {
        /* height: 35px; */
        left: 38px;
        position: inherit;
    }

    header h1 {
        font-size: 1rem;
        visibility: hidden;
    }

    .promo img {
        border-radius: 8px;
    }

    .promo-text {
        top: 15px;
        left: 15px;
    }

    .promo-text .title {
        font-size: 1.5rem;
    }

    .promo-text .subtitle {
        font-size: 0.85rem;
    }

    .promo-text .tagline {
        font-size: 0.8rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        height: 120px;
    }

    .card span {
        font-size: 1rem;
    }
}


/* === Fluid Typography === */
header h1 {
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.promo-text .title {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.promo-text .subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
}

.promo-text .tagline {
    font-size: clamp(0.8rem, 1.4vw, 1rem);
}

.card span {
    font-size: clamp(0.9rem, 1.5vw, 1.15rem);
}

/* === Base layout === */
@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .promo-text {
        max-width: 90%;
    }
}

/* Small Tablets & Large Phones */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .card {
        height: 130px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    main {
        gap: 1.5rem;
        padding: 1rem;
    }

    header .logo {
        /* height: 35px; */
        left: 38px;
        position: inherit;
    }

    .promo img {
        border-radius: 8px;
    }

    .promo-text {
        top: 15px;
        left: 15px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        height: 120px;
    }
}
