:root {
    --primary: #4f4a9c;
    /* Royal Purple/Blue from user */
    --accent: #e31e24;
    /* Carmine Red from poster */
    --sky-blue: #00aeef;
    /* Vibrant Sky Blue */
    --soft-bg: #f0fbff;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(79, 74, 156, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, var(--soft-bg) 0%, var(--white) 100%);
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header */
.main-header {
    background: var(--primary);
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    height: 70px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.title-box h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-box p {
    font-size: 16px;
    color: var(--primary);
    margin: 5px 0 0;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: none;
    background: white;
    display: inline-block;
    padding: 2px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.date-location {
    color: var(--white);
    text-align: right;
    line-height: 1.2;
}

/* Content Wrapper */
.content-wrapper {
    padding: 40px 0;
    min-height: 70vh;
}

/* Breadcrumb */
.breadcrumb {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    padding: 12px 20px;
    border-radius: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.breadcrumb-item a {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--accent);
}

/* Gallery Cards */
.gallery-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0, 77, 64, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent);
    box-shadow: 0 30px 60px rgba(0, 77, 64, 0.15);
}

.card-icon-wrapper {
    background: linear-gradient(135deg, var(--primary) 0%, #3a3675 100%);
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 54px;
    transition: var(--transition);
    position: relative;
}

.card-icon-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #3a3675;
}

.gallery-card:hover .card-icon-wrapper {
    background: linear-gradient(135deg, var(--sky-blue) 0%, #008ebc 100%);
}

.gallery-card:hover .card-icon-wrapper::after {
    border-top-color: #008ebc;
}

.card-content {
    padding: 25px 20px;
    text-align: center;
    flex-grow: 1;
}

.card-content h5 {
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    text-transform: uppercase;
    font-size: 18px;
}

/* Video Thumbnails */
.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 77, 64, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 44px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .play-overlay {
    opacity: 1;
}

.border-coral {
    border: 3px solid var(--accent) !important;
}

/* Footer Bar like the poster */
.main-footer {
    background: var(--sky-blue);
    color: var(--white);
    padding: 20px 0;
    margin-top: 60px;
}

.main-footer a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
}

.main-footer p {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
}

/* Running Branding */
.running-branding {
    background: #fff;
    padding: 25px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    /* Gradient mask for smooth entry/exit */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: marquee 40s linear infinite;
    gap: 100px;
    /* Consistent gap between all items */
}

.branding-item {
    display: flex;
    align-items: center;
    /* Removed margin-right to use gap instead */
}

.branding-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-right: 15px;
    white-space: nowrap;
}

.branding-logo {
    height: 55px;
    /* Slightly larger logos */
    width: auto;
    object-fit: contain;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-content:hover {
    animation-play-state: paused;
}

/* Responsiveness */
@media (max-width: 768px) {
    .main-logo {
        height: 50px;
    }

    .title-box h1 {
        font-size: 20px;
    }

    .title-box p {
        font-size: 12px;
    }

    .content-wrapper {
        padding: 30px 0;
    }
}