:root {
    /* Color Palette - JPCL Theme */
    --bg-dark: #166092;
    --text-primary: #ffffff;
    --text-secondary: #d1e8fa;

    /* Neon Accents */
    --accent-primary: #ffffff;
    --accent-secondary: #cceeff;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Animations */
.main-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, #2b9dd1 0%, #166092 100%);
    z-index: -2;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 20s infinite ease-in-out alternate;
    opacity: 0.5;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-secondary);
    bottom: -50px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.2);
    }
}

/* General Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.accent-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Organizer Badge */
.organizer-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    z-index: 10;
}

.organizer-badge p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
}

.organizer-logo {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    object-fit: contain;
    background-color: #ffffff;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Hero & Ticker Section */
.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.event-logo {
    animation: neonGlow 2s ease-in-out infinite alternate;
}

@keyframes neonGlow {
    from {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    }

    to {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 40px rgba(204, 238, 255, 0.6)) drop-shadow(0 0 60px rgba(204, 238, 255, 0.4));
    }
}

/* Countdown Styles */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
}

.time-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 51, 102, 0.2);
}

.time-value {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.time-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

.separator {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-primary);
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.3;
    }
}

/* Social Links */
.social-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links p {
    color: var(--text-secondary);
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
}

.social-icon:hover {
    background: var(--accent-gradient);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.3);
    color: #fff;
    border-color: transparent;
}

/* Teams & Sponsors Section */
.teams-section,
.sponsors-section {
    padding: 2rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
}

.groups-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

.group-card {
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.group-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.group-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--accent-secondary);
}

.group-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.team-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-radius: 16px;
    z-index: 1;
    height: 100%;
    /* Add a subtle initial border that the shine travels over or alongside */
    border: 1px solid var(--glass-border);
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.team-card::before {
    content: '';
    position: absolute;
    inset: -1px; /* Cover the 1px solid border perfectly */
    border-radius: 17px; /* 16px radius + 1px border */
    padding: 2px; /* Thickness of the shine */
    background: conic-gradient(
        from var(--angle),
        transparent 0deg,
        transparent 60deg,
        rgba(255, 255, 255, 0.9) 120deg,
        transparent 180deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    animation: border-rotate 3s linear infinite;
}

@keyframes border-rotate {
    to {
        --angle: 360deg;
    }
}

.team-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    transform: scale(1.2);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.team-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: contain;
    padding: 5px;
    border: 2px solid var(--accent-secondary);
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pdf-logo {
    overflow: hidden;
    pointer-events: none;
}

.team-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.team-title-main {
    display: block;
    font-size: 1em;
    margin-bottom: 0.2rem;
}

.team-title-sub {
    display: block;
    font-size: 0.8em;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1rem;
}

.sponsor-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    /* Increased base width */
    height: 160px;
    /* Increased base height */
    padding: 1rem;
    transition: transform 0.3s ease, filter 0.3s ease, background 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    border-radius: 12px;
}

.sponsor-card.featured-sponsor {
    width: 350px;
    height: 180px;
    background: #ffffff;
}

.sponsor-card.featured-sponsor p {
    color: var(--bg-dark) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
}

.sponsor-card:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
    box-shadow: var(--glass-shadow);
    background: #f0f0f0;
}

.sponsor-logo {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

/* Upcoming Events */
.upcoming-events {
    padding: 2rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-align: center;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

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

.event-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.event-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.event-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.event-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.4);
    transform: translateY(-2px);
}

/* Schedule Section Styles */
.schedule-section {
    padding: 2rem 0;
}

.schedule-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.schedule-day-card {
    padding: 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.schedule-date-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.schedule-date-header i {
    color: var(--accent-secondary);
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(204, 238, 255, 0.5);
}

.schedule-date-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 1px;
}

.matches-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.match-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: default;
}

.match-card:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.match-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.match-number {
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.match-time {
    color: var(--accent-secondary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.match-group {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: 800;
}

/* Style specifically for knockout stages */
.match-group.knockout {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    border-color: rgba(255, 215, 0, 0.5);
    color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Scoreboard specific styles replacing the old match-card layout */
.scoreboard-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    gap: 0.5rem;
}

.team-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 40%;
    text-align: center;
}

.team-logo-small {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 3px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 2px solid var(--accent-secondary);
    transition: transform 0.3s ease;
}

.match-card:hover .team-logo-small {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(204, 238, 255, 0.4);
}

.scoreboard-vs {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
}

.vs-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(204, 238, 255, 0.5));
}

.team-initial {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-dark), rgba(0,0,0,0.5));
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.1);
}

.team-name-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.2;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .organizer-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        margin-bottom: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .countdown-container {
        gap: 1rem;
    }

    .time-box {
        min-width: 90px;
        padding: 1rem;
    }

    .time-value {
        font-size: 2.5rem;
    }

    .separator {
        font-size: 2rem;
        margin: 0 -0.5rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .groups-container {
        gap: 2rem;
    }

    .group-card {
        padding: 1.5rem;
    }

    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .team-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 0.5rem;
    }

    .team-card {
        padding: 0.5rem 0.5rem 1rem 0.5rem;
    }

    .team-name {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .countdown-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .separator {
        display: none;
        /* Hide separators on small screens to fit grid */
    }

    .time-box {
        width: 100%;
        min-width: auto;
    }

    .teams-grid {
        gap: 0.75rem;
    }

    .group-card {
        padding: 1rem;
    }

    .team-logo {
        width: 70px;
        height: 70px;
    }

    .team-name {
        font-size: 0.8rem;
    }

    /* Scoreboard Mobile Overrides */
    .match-card.scoreboard-card {
        padding: 1rem 0.5rem;
    }
    
    .scoreboard-body {
        gap: 0.25rem;
    }
    
    .team-side {
        width: 42%;
        gap: 0.5rem;
    }
    
    .scoreboard-vs {
        width: 16%;
    }
    
    .team-logo-small {
        width: 45px;
        height: 45px;
    }
    
    .team-initial {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .vs-text {
        font-size: 1.2rem;
    }
    
    .team-name-text {
        font-size: 0.75rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    padding: 1.5rem;
    overflow-y: auto;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* User's Glass Card Styles */
.glass-card {
    width: 260px;
    height: 360px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 0px 0px rgba(255, 255, 255, 0);
    position: relative;
    overflow: hidden;
    /* Extra flex to center content properly inside the fixed card */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
    pointer-events: none;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.8),
            transparent,
            rgba(255, 255, 255, 0.3));
    pointer-events: none;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
    color: var(--accent-secondary);
    transform: rotate(90deg);
}

#modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Specialized Modal Content Styling */
.modal-card-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    height: 100%;
    justify-content: center;
}

.modal-card-view img {
    max-width: 100%;
    max-height: 140px;
    /* Constrain image height */
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.modal-card-view h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    /* Shrink on long text */
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
    line-height: 1.2;
    padding: 0 0.5rem;
}

.modal-card-view p {
    font-size: 1rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 0;
}