/* Base styles */
:root {
    /* Primary Palette */
    --primary-color: #2563eb;
    --primary-hover: #1e40af;
    --primary-light: #dbeafe;

    /* Neutral Palette */
    --text-color: #111827;
    --text-secondary: #4b5563;
    --border-color: #e5e7eb;
    
    /* Accent Palette */
    --accent-color: #10b981; /* Success Green */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    /* Other */
    --bg-secondary: var(--primary-light);
    
    /* New Header Colors */
    --color-dark-blue: #021526;
    --color-blue: #03346E;
    --color-light-blue: #6EACDA;
    --color-beige: #E2E2B6;
    --color-white: #FDFAF6;
    --bg-color: var(--color-white);

    --color-mint: #F79D65;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container ul {
  margin-left: 20px;
  color: var(--text-secondary);
}

main {
    min-height: 70vh;
    padding: 4rem 0;
}

/* Header and Navigation - New Styles */
body.menu-open {
    overflow: hidden;
}

.nav-container {
    background-color: var(--color-blue);
    color: var(--color-white);
    width: 100%;
    z-index: 99;
}

@media (min-width: 769px) {
    .nav-container {
        position: sticky;
        top: 0;
        z-index: 100;
    }
}

.nav-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
    border-radius: 0; /* Override default img styles */
}

.menu-desktop {
    display: flex;
    list-style-type: none;
    gap: 30px;
}

.menu-desktop a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu-desktop a:hover,
.menu-desktop li.active a {
    color: var(--color-light-blue);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 24px;
    position: relative;
    width: 40px;
    height: 30px;
    padding: 0;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: var(--color-white);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
    top: 13px;
}

.hamburger span:nth-child(4) {
    top: 26px;
}

.menu-open .hamburger span:nth-child(1) {
    top: 13px;
    width: 0%;
    left: 50%;
}

.menu-open .hamburger span:nth-child(2) {
    transform: rotate(45deg);
}

.menu-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
}

.menu-open .hamburger span:nth-child(4) {
    top: 13px;
    width: 0%;
    left: 50%;
}

.mobile-top {
    display: none;
    height: 56px;
    position: relative;
    z-index: 160; /* Higher than the overlay */
}

.mobile-top a,
.mobile-top a img {
    height: 100%;
    border-radius: 0; /* Override default img styles */
}

.menu-mobile {
    display: none;
    width: 100%;
    background-color: var(--color-blue);
    padding: 10px 15px;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-container {
        position: static;
    }
    
    .menu-mobile {
        position: sticky;
        top: 0;
        z-index: 100;
        display: block;
    }
}

.menu-mobile ul {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
}

.menu-mobile a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.menu-mobile li.active a {
    color: var(--color-light-blue);
}

.mobile-full-menu {
    display: none;
    position: fixed;
    top: 70px; /* Height of the mobile nav header */
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-blue);
    z-index: 150; /* Below the nav-wrapper z-index */
    overflow-y: auto;
}

.mobile-full-menu.open {
    display: block;
}

.full-menu-content {
    padding: 40px 20px;
}

.full-menu-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.full-menu-list li {
    margin: 20px 0;
    text-align: center;
}

.full-menu-list a {
    color: var(--color-white);
    font-size: 24px;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.full-menu-list a:hover,
.full-menu-list li.active a {
    color: var(--color-light-blue);
}

@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        padding: 10px 15px;
        height: auto;
        background-color: var(--color-blue);
    }
    
    .logo-container {
        display: none;
    }
    
    .mobile-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .menu-desktop {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .menu-mobile {
        display: block;
    }
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    color: var(--text-color);
    margin-top: 5rem;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 4rem 0 3rem;
}

.footer-branding {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-contact p i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-white);
    border-radius: 0.375rem;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-color);
    font-weight: 700;
}

h1 {
    font-size: 2.25rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.75rem;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-color);
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 0.875rem;
    background-color: var(--bg-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    resize: vertical;
    min-height: 8rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-blue);
    color: white;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    gap: 0.5rem;
}

.btn:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #d1fae5;
}

.alert-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fee2e2;
}

.alert-info {
    background-color: #f0f9ff;
    color: #0c4a6e;
    border: 1px solid #e0f2fe;
}

.alert-warning {
    background-color: #fefce8;
    color: #854d0e;
    border: 1px solid #fef9c3;
}

.alert-icon {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert-content {
    flex-grow: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.alert-message {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Contact form */
.contact-form {
    max-width: 32rem;
    margin: 2rem 0;
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-image {
    position: relative;
    height: 290px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.news-content time {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.news-content p {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
}

.read-more span {
    transition: transform 0.2s;
}

.read-more:hover span {
    transform: translateX(2px);
}

/* Utility classes */
.text-primary {
    color: var(--primary-color);
}

.text-primary-hover {
    color: var(--primary-hover);
}

.text-secondary {
    color: var(--text-secondary);
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-center {
    text-align: center;
}

.rounded {
    border-radius: 0.375rem;
}

.shadow {
    box-shadow: var(--shadow);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.my-8 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.featured-image {
    margin-bottom: 2rem;
}

.featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

/* Error page */
.error-page {
    text-align: center;
    padding: 3rem 0;
}

.error-page h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .hero-image {
        min-height: 30rem;
    }
    
    .animated-title {
        font-size: 2.5rem;
    }
    
    main {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    /* Remove the flex-wrap property to prevent wrapping */
    nav ul {
        justify-content: flex-start;
        gap: 1rem;
        /* Remove this line: flex-wrap: wrap; */
    }
    
    .hero-image {
        min-height: 24rem;
    }
    
    .hero-content {
        padding: 3rem 1rem;
    }
    
    .animated-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        max-width: 16rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .programs-grid {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Keep horizontal layout even on small screens */
    nav ul {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        overflow-x: auto;
    }
    
    nav a {
        padding: 0.5rem 1rem;
        display: block;
        text-align: center;
        white-space: nowrap;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .gameplan-container {
        overflow-x: auto;
    }
    
    .hero-image {
        min-height: 20rem;
    }
    
    .animated-title {
        font-size: 2.25rem;
    }
}
    
    .hero-tagline {
        font-size: 0.875rem;
    }
    
    main {
        padding: 2rem 0;
    }
}


@media (max-width: 768px) {
    nav {
        width: 100%;
        position: relative;
        overflow: visible;
    }
    
    .nav-menu {
        display: flex;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        padding: 0.5rem 0;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .nav-menu li {
        flex: 0 0 auto;
        scroll-snap-align: start;
        padding-right: 0.5rem;
    }
    
    .nav-menu li:last-child {
        padding-right: 2.5rem; /* Show a partial view of the last item */
    }
    
    /* Fade effect to indicate scrollability */
    .nav-menu::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 40px;
        height: 100%;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--bg-color));
        pointer-events: none;
        z-index: 10;
    }
    
    /* Navigation feedback */
    .nav-menu a {
        padding: 0.75rem 1.25rem;
        border-radius: 2rem;
        background-color: var(--bg-secondary);
        transition: all 0.2s ease;
        font-size: 0.9rem;
    }
    
    .nav-menu li.active a {
        background-color: var(--primary-color);
        color: white;
    }
    
    /* Ensure at least 3 items are visible with partial 4th */
    .nav-menu li {
        min-width: 30%;
        max-width: 30%;
        box-sizing: border-box;
        text-align: center;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        text-overflow: ellipsis;
        overflow: hidden;
    }
}

/* Volleyball Gameplan */
.gameplan-container {
    margin: 2rem 0;
}

.gameplan-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    box-shadow: var(--shadow);
    font-family: Arial, Helvetica, sans-serif;
}

.gameplan-table th,
.gameplan-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.gameplan-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

.gameplan-table tr:nth-child(even) {
    background-color: #f0f0f0;
}

.gameplan-table tr:nth-child(odd) {
    background-color: white;
}

.gameplan-table tr:hover {
    background-color: #e2e2e2;
}

/* Modern Hero Section */
.modern-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    display: flex;
    align-items: center;
    min-height: 36rem;
    position: relative;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.modern-hero > .container {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    min-height: 36rem;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.7));
    z-index: -1;
}

.hero-content {
    color: white;
    text-align: center;
    padding: 4rem 1.5rem;
    max-width: 60rem;
    margin: 0 auto;
}

.animated-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInText 1s ease-out forwards;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 auto;
    color: var(--text-secondary);
    animation: fadeInText 1s ease-out 0.3s forwards;
    opacity: 0;
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    animation: fadeInText 1s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.hero-btn-primary {
    background-color: var(--color-blue);
    color: white;
}

.hero-btn-primary:hover {
    transform: translateY(-1px);
    color: white;
}

.latest-news-section {
    margin: 5rem 0;
    position: relative;
}

.section-header {
    position: sticky;
    top: 100px;
    background: var(--bg-color);
    margin-bottom: 2rem;
    z-index: 5;
}

@media (max-width: 768px) {
  .section-header {
    top: 47px;
  }
}

@media (max-width: 576px) {
  .section-header {
    top: 63px;
  }
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.section-title i {
    font-size: 1.5rem;
    color: var(--color-blue);
}

.section-title h2 {
    font-size: 2rem;
    margin: 0;
    color: var(--color-blue);
}

.section-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, var(--color-blue), transparent);
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

.card-footer {
    text-align: center;
    margin-top: 2rem;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 160, 0.2);
    transition: all 0.3s ease;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 160, 0.3);
    color: white;
}

.action-button i {
    font-size: 0.9rem;
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@keyframes pulse-glow {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* News Cards on Homepage */
.news-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.news-card-mini {
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-card-mini .news-image {
    height: 290px;
    overflow: hidden;
}

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

.news-card-mini:hover .news-image img {
    transform: scale(1.05);
}

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

.news-card-mini h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.news-card-mini time {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.news-card-mini p {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
}

.news-card-mini .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: auto;
}

/* Upcoming Events on Homepage */
.upcoming-events-section {
    margin: 5rem 0;
}

.upcoming-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Apply the same styles to the upcoming events as the events grid */
.upcoming-events-grid .angebot-header {
    height: 60px;
    border-bottom: 10px solid #fff;
    position: relative;
}

.upcoming-events-grid .angebot-header .angebot-title {
    color: white;
    padding: 1rem;
    margin: 0;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.3;
    flex: 1;
    z-index: 1;
}

/* Category-specific border colors for upcoming events */
.upcoming-events-grid .angebot-header.category-volleyball {
    border-bottom-color: #3b82f6;
}

.upcoming-events-grid .angebot-header.category-eishockey {
    border-bottom-color: #ef4444;
}

.upcoming-events-grid .angebot-header.category-aktive {
    border-bottom-color: #8b5cf6;
}

.upcoming-events-grid .angebot-header.category-club {
    border-bottom-color: #f97316;
}

.upcoming-events-grid .angebot-header.category-jugend {
    border-bottom-color: var(--accent-color);
}

.upcoming-events-grid .angebot-header.category-training {
    border-bottom-color: #f59e0b;
}

.upcoming-events-grid .angebot-logo-header {
    background-color: white;
    height: 100%;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 0;
    z-index: 2;
}

.upcoming-events-grid .angebot-logo-header svg {
    width: 40px;
    height: 40px;
    fill: var(--color-blue);
}

.upcoming-events-grid .angebot-logo-header svg.stf-logo {
    width: 50px;
    height: 50px;
}

/* Today's Training on Homepage */
.todays-training-section {
    margin: 5rem 0;
}

.no-trainings-today {
    background-color: var(--bg-secondary);
    padding: 3rem;
    text-align: center;
    border-radius: 0.5rem;
}

.no-trainings-today p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.event-card {
    position: relative;
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.event-card-date {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.event-card-day {
    font-weight: 600;
    color: var(--color-dark-blue);
    font-size: 1.5rem;
}

.event-card-date-num {
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.event-card-time {
    font-size: 1rem;
    color: var(--text-secondary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.agenda-filters,
.training-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.calendar-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    background-color: white;
    border: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.category-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.category-volleyball,
.event-category-indicator.category-volleyball {
    background-color: #3b82f6;
}

.category-eishockey,
.event-category-indicator.category-eishockey {
    background-color: #ef4444;
}

.category-aktive,
.event-category-indicator.category-aktive {
    background-color: #8b5cf6;
}

.category-club,
.event-category-indicator.category-club {
    background-color: #f97316;
}

.category-jugend,
.event-category-indicator.category-jugend {
    background-color: #10b981;
}

.category-training,
.event-category-indicator.category-training {
    background-color: #f59e0b;
}

.events-container {
    margin-top: 1.5rem;
}

/* Event Card Styles */
.event-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Angebot style for Event Cards */
.event-card.angebot-card {
    border: 1px solid var(--color-blue);
    padding: 0;
}

.events-grid .angebot-header {
    height: 60px;
    border-bottom: 10px solid #fff;
    position: relative;
}

.events-grid .angebot-header .angebot-title {
    color: white;
    padding: 1rem;
    margin: 0;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.3;
    flex: 1;
    z-index: 1;
}

/* Category-specific border colors */
.events-grid .angebot-header.category-volleyball {
    border-bottom-color: #3b82f6;
}

.events-grid .angebot-header.category-eishockey {
    border-bottom-color: #ef4444;
}

.events-grid .angebot-header.category-aktive {
    border-bottom-color: #8b5cf6;
}

.events-grid .angebot-header.category-club {
    border-bottom-color: #f97316;
}

.events-grid .angebot-header.category-jugend {
    border-bottom-color: var(--accent-color);
}

.events-grid .angebot-header.category-training {
    border-bottom-color: #f59e0b;
}

.events-grid .angebot-logo-header {
    background-color: white;
    height: 100%;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 0;
    z-index: 2;
}

.events-grid .angebot-logo-header svg {
    width: 40px;
    height: 40px;
    fill: var(--color-blue);
}

.events-grid .angebot-logo-header svg.stf-logo {
    width: 50px;
    height: 50px;
}

.events-grid .angebot-content {
    padding: 1.25rem;
}

.event-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.no-events {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Training Plan Styles */
.training-day-group {
    margin-bottom: 2rem;
}

.training-day-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--primary-color);
}

/* Weekly Timetable View */
.weekly-timetable {
    margin: 2rem 0;
    width: 100%;
}

.timetable-days {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.timetable-day {
    background-color: white;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    position: relative;
}

.timetable-day.today {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.timetable-day-title {
    background-color: var(--color-blue);
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    margin: 0;
    text-align: center;
}

.timetable-day.today .timetable-day-title {
    background-color: var(--accent-color);
}

.timetable-day-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timetable-slot {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1.5rem;
}

.timetable-slot:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timetable-time {
    font-weight: 600;
    color: var(--color-dark-blue);
    background-color: var(--color-beige);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    display: inline-block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    width: auto;
    max-width: fit-content;
}

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

.timetable-activity {
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.timetable-activity:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.activity-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

.activity-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-age,
.activity-location,
.activity-coaches {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.activity-age i,
.activity-location i,
.activity-coaches i {
    color: var(--color-blue);
    font-size: 0.875rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Responsive Styles for Timetable */
@media (min-width: 992px) {
    .timetable-days {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 1rem;
    }
    
    .timetable-day {
        flex: 1;
        min-width: 0; /* Fix for flexbox items with overflow */
    }
    
    .timetable-day-title {
        font-size: 1.1rem;
        min-height: 3.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .timetable-day-content {
        height: calc(100% - 3.5rem);
        overflow-y: auto;
    }
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--color-blue);
    color: white;
    border-color: var(--color-blue);
}

.filter-btn .category-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.filter-btn.active .category-dot {
    background-color: white !important;
}

.filter-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.training-schedule {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.time-slot {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
}

.time-slot-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    width: fit-content;
    position: relative;
    z-index: 2;
    font-size: 0.875rem;
}

.time-slot-trainings {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-left: 0.5rem;
    position: relative;
}

.time-slot-trainings::before {
    content: '';
    position: absolute;
    top: -0.25rem;
    left: 0.25rem;
    bottom: 0.5rem;
    width: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.training-item {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.training-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.training-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

.training-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.training-age,
.training-location,
.training-coaches {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.training-age i,
.training-location i,
.training-coaches i {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

/* Original view is hidden by default */
.original-view {
    display: none;
}

@media (min-width: 768px) {
    .agenda-filters,
    .training-filters {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-end;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: 200px;
        width: auto;
        flex: 1;
    }
    
    .event-title {
        font-size: 1.25rem;
    }
    
    .event-location {
        font-size: 0.875rem;
    }
    
    .time-slot-trainings {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1rem;
        padding-left: 1rem;
    }
    
    .time-slot-header {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .time-slot-trainings::before {
        left: 0.5rem;
    }
    
    .training-item {
        padding: 1.5rem;
    }
    
    .training-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .training-info {
        gap: 0.75rem;
    }
    
    .training-age,
    .training-location,
    .training-coaches {
        font-size: 0.875rem;
    }
    
    .training-age i,
    .training-location i,
    .training-coaches i {
        font-size: 1rem;
    }
    
    /* Enhanced timetable styles for tablet */
    .timetable-activity {
        padding: 1.25rem;
    }
    
    .activity-title {
        font-size: 1.25rem;
    }
    
    .activity-details {
        gap: 0.75rem;
    }
    
    .activity-age,
    .activity-location,
    .activity-coaches {
        font-size: 0.875rem;
    }
    
    .activity-age i,
    .activity-location i,
    .activity-coaches i {
        font-size: 1rem;
    }
}

/* Custom component styles for markdown */
.markdown-component {
    margin: 2rem 0;
}

/* Angebot Styles */
.angebot-home {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  margin: 2rem 0;
  padding: 0 0.5rem;
}

.angebot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 0 0.5rem;
}

.angebot-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-blue);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    text-align: center;
}

.angebot-card.clickable {
    cursor: pointer;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.angebot-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-blue);
}

.angebot-header {
    background-color: var(--color-blue);
    border-bottom: 1px solid var(--color-blue);
    width: 100%;
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    height: 50px;
}

.angebot-home .angebot-header .angebot-title {
    text-align: center;
}

.angebot-header-jugend {
    background-color: var(--color-mint);
}

.angebot-header-jugend .angebot-title {
    background-color: var(--color-mint);
}

.angebot-title {
    font-size: 1.25rem;
    margin: 0;
    color: white;
    font-weight: 700;
    background-color: var(--color-blue);
    padding: 1rem;
    flex: 1;
    text-align: left;
    z-index: 1;
}

.angebot-header .angebot-logo-header {
    background-color: white;
    height: 100%;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 0;
    z-index: 2;
}

.angebot-header .angebot-logo-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    width: 40px;
    height: 100%;
    background-color: white;
    transform: skewX(-20deg);
    z-index: -1;
}

.angebot-header .angebot-logo-header svg {
    width: 40px;
    height: 40px;
    fill: var(--color-blue);
}

.angebot-header .angebot-logo-header svg.stf-logo {
    width: 50px;
    height: 50px;
}

.angebot-header .angebot-logo-header img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@media (max-width: 480px) {
    .angebot-header .angebot-logo-header {
        width: 60px;
    }
    
    .angebot-header .angebot-logo-header svg,
    .angebot-header .angebot-logo-header img {
        width: 30px;
        height: 30px;
    }
    
    .angebot-header {
        height: 40px;
    }
    .angebot-header .angebot-title {
        font-size: 1.1rem;
        padding: 0.75rem;
    }
}

.angebot-content {
    padding: 2rem 1.5rem;
    width: 100%;
    flex: 1;
}

.angebot-footer {
    background-color: var(--bg-secondary);
    width: 100%;
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.angebot-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.angebot-icons.angebot-icons-adult {
}

@media (min-width: 768px) {
  .angebot-icons.angebot-icons-adult {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1080px) {
  .angebot-icons.angebot-icons-adult {
    grid-template-columns: repeat(5, 1fr);
  }
}

.angebot-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.angebot-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s;
}

.angebot-icon img.stf-logo {
    width: 60px;
    height: 60px;
}

.angebot-icon span.stf-logo {
  margin-top: -10px;
}

.angebot-card.clickable:hover .angebot-icon img {
    transform: scale(1.1);
}

.angebot-icon span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.angebot-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.angebot-logo svg {
    width: 100%;
    height: 100%;
    fill: var(--color-blue);
}

.angebot-btn {
    background-color: var(--color-blue);
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.angebot-card.clickable:hover .angebot-btn {
    background-color: var(--color-light-blue);
    transform: scale(1.05);
}

.angebot-description {
    margin: 0;
    padding: 0;
    text-align: left;
}

.angebot-description li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.angebot-item {
    display: flex;
    align-items: flex-start;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.angebot-item:first-child {
    margin-top: 0;
}

.angebot-item i {
    color: var(--color-blue);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 20px;
}

.angebot-item ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.angebot-item li {
    margin-bottom: 0.25rem;
}

@media (max-width: 890px) {
    .angebot-home {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .angebot-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .angebot-logo {
        width: 60px;
        height: 60px;
    }
    
    .angebot-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .angebot-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .angebot-icon img {
        width: 40px;
        height: 40px;
    }
    
    .angebot-icon span {
        font-size: 0.75rem;
    }
}

/* Embedded Timetable Styles */
.embedded-timetable {
    margin: 1.5rem 0;
}

.embedded-timetable .timetable-days {
    gap: 1rem;
}

.embedded-timetable .timetable-day-title {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}

.embedded-timetable .timetable-day-content {
    padding: 1rem;
}

.embedded-timetable .timetable-time {
    font-size: 0.8rem;
}

.embedded-timetable .activity-title {
    font-size: 1rem;
}

.embedded-timetable .activity-details {
    font-size: 0.8rem;
}

/* Angebot Card Style for Trainingsplan */


.timetable-activity.angebot-card .angebot-content {
    padding: 1rem;
    width: 100%;
    flex: 1;
}

.timetable-activity.angebot-card .angebot-item {
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0;
}

.timetable-activity.angebot-card .angebot-item i {
    color: var(--color-blue);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 20px;
}

.timetable-activity.angebot-card .angebot-item ul {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.timetable-activity.angebot-card .angebot-item li {
    margin-bottom: 0.25rem;
}


@media (min-width: 992px) {
    .embedded-timetable .timetable-days {
        flex-direction: row;
        flex-wrap: nowrap;
    }
}

/* Embedded trainingsplan styles */
.content .training-plan {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.content .training-day-group {
    margin-bottom: 2rem;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.content .training-day-title {
    font-size: 1.25rem;
    margin-bottom: 0;
    padding: 0.75rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.content .training-schedule {
    padding: 1.25rem;
}

.content .time-slot-header {
    margin-bottom: 0.75rem;
}

.content .training-item h4 {
    margin-bottom: 0.75rem;
}

.content .time-slot {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.content .time-slot:last-child {
    margin-bottom: 0;
}

.content .time-slot::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-light);
    border-radius: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        padding: 1.5rem 1rem;
    }
    
    .animated-title {
        font-size: 3rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .news-cards-container {
        grid-template-columns: 1fr;
    }
    
    .day-indicator {
        width: 100%;
        justify-content: center;
    }
    
    /* Event grid responsive */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .time-slot-trainings {
        grid-template-columns: 1fr;
    }
    
    .time-slot-trainings::before {
        display: none;
    }
    
    .content .training-item {
        margin-bottom: 1rem;
    }
}

.kleiderboerse-table {
  padding-bottom: 2rem;
}

@media (max-width: 600px) {
  .kleiderboerse-table {
    overflow-x: scroll;
  }
}

.kleiderboerse-table table {
  border-collapse: collapse;
}
.kleiderboerse-table tbody tr:nth-child(odd) {
  background-color: #f2f2f2;
}
.kleiderboerse-table th,
.kleiderboerse-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.kleiderboerse-table th {
  background-color: var(--color-blue);
  color: white;
  font-weight: bold;
}

/* Sponsors Grid */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Normal sponsors - 4 per row on desktop */
.sponsors-normal {
    grid-template-columns: repeat(4, 1fr);
}

/* Medium sponsors - keep current responsive behavior */
.sponsors-medium {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Small sponsors - more compact */
.sponsors-small {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.sponsor-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
}

.sponsor-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sponsor-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.25rem;
}

/* Sponsor size variations */
.sponsors-normal {
    margin-bottom: 2rem;
}

.sponsors-medium {
    margin-bottom: 2rem;
}

.sponsors-small {
    margin-bottom: 1rem;
}

/* Remove max-width constraints to let grid control sizing */

.sponsor-small img {
    max-width: 100%;
    max-height: 100%;
}

.sponsor-medium img {
    max-width: 100%;
    max-height: 100%;
}

.sponsor-normal img {
    max-width: 100%;
    max-height: 100%;
}

/* Responsive adjustments for sponsors */
@media (max-width: 1024px) {
    .sponsors-normal {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sponsors-normal {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sponsors-medium {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .sponsors-small {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .sponsors-grid {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .sponsors-normal,
    .sponsors-medium,
    .sponsors-small {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .sponsor-card {
        padding: 0.75rem;
    }
}
