:root {
    --primary-color: #C41E3A;
    /* Sokol Red */
    --primary-dark: #a01830;
    --secondary-color: #133c8e;
    /* Deep Blue */
    --accent-color: #FFC107;
    --text-dark: #212121;
    --text-light: #757575;
    --white: #FFFFFF;
    --bg-light: #F9F9F9;
    --bg-dark: #1a1a1a;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@keyframes slideDownNav {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
    /* Offset for fixed navbar */
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

sokol-navbar,
sokol-footer {
    display: block;
}

sokol-footer {
    margin-top: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--white);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    /* Slight roundness */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--text-dark);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 20px auto 0;
}

/* Navigation */
/* Navigation Slide Down */
@keyframes slideDownNav {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--secondary-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand img {
    height: 50px;
    margin-right: 15px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 10px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

/* Hamburger Animation to X */
.hamburger.open span:first-child {
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--secondary-color);
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    top: 100%;
    left: 0;
    border-radius: 4px;
    flex-direction: column;
}

.dropdown-content a {
    color: var(--white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 400;
    transition: var(--transition);
}

.dropdown-content a::after {
    display: none;
    /* remove the underline effect */
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
}

.dropdown:hover>.dropdown-content {
    display: flex;
}

.dropbtn i {
    margin-left: 5px;
}

/* Nested Dropdown (Submenu) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-content {
    top: 0;
    left: 100%;
    margin-top: -5px;
    /* Adjust slight alignment */
}

/* For mobile styling or situations where left:100% goes offscreen you'd normally add logic or right:100% */
.dropdown-submenu:hover>.dropdown-content {
    display: flex;
}

/* Footer styles are mostly inline or in component */
.social-icon {
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--white);
    background-color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(196, 30, 58, 0.6);
    animation: social-pulse 1s infinite alternate;
}

@keyframes social-pulse {
    0% {
        box-shadow: 0 5px 15px rgba(196, 30, 58, 0.4);
    }

    100% {
        box-shadow: 0 15px 25px rgba(196, 30, 58, 0.8), 0 0 15px rgba(196, 30, 58, 0.5);
    }
}

/* Gradient Text Shine */
@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    color: var(--white);
    /* First line always white */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);

    /* Animations: Fade In (delayed) */
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards 1s;
}

/* Sokol Malacky - Solid Color */
.hero-content h1 span {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(196, 30, 58, 0.8);
    /* Optional static glow */
    background: none;
    -webkit-text-fill-color: initial;
    animation: none;
}

/* Hero Section */
@keyframes darkenOverlay {
    to {
        opacity: 1;
    }
}

.hero {
    height: 100vh;
    /* No gradient initially, just image */
    background-image: url('images/intro.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    /* For pseudo-element */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

/* Overlay that darkens over time */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* The final dark overlay state */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8));
    opacity: 0;
    /* Starts transparent (bright image) */
    animation: darkenOverlay 0.5s ease-out forwards 0.5s;
    /* Start darkening at 0.5s */
    z-index: 1;
}

/* Ensure content sits above overlay */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards 1.2s;
}

.hero-content .btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards 1.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glow Button (Ping Pong) */
.glow-btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: glow-pulse 2s infinite;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.glow-btn:hover::before {
    left: 100%;
}

.glow-btn:hover {
    transform: translateY(-3px) scale(1.05);
    color: var(--white);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.8), 0 0 40px rgba(196, 30, 58, 0.6);
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
        /* Accent color (yellowish) glow */
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.9), 0 0 60px rgba(255, 193, 7, 0.5);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    }
}

/* Oddiely Grid (Sports) */
.oddiely-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.oddiel-card {
    position: relative;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.oddiel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.oddiel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--white);
    transition: background 0.3s;
}

.oddiel-card:hover img {
    transform: scale(1.1);
}

.oddiel-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--white);
    /* Ensure contrast */
}

.oddiel-card p {
    opacity: 0.9;
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.oddiel-card:hover p {
    transform: translateY(0);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content ul li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.about-content ul li i {
    color: var(--primary-color);
    margin-right: 15px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Calendar Section */
.calendar-wrapper {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.calendar-main {
    flex: 2;
    min-width: 300px;
}

.calendar-sidebar {
    flex: 1;
    min-width: 250px;
    border-left: 1px solid #eee;
    padding-left: 40px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.calendar-nav-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 5px 15px;
    cursor: pointer;
    font-family: var(--font-heading);
    border-radius: 4px;
    transition: var(--transition);
}

.calendar-nav-btn:hover {
    background: var(--bg-light);
    border-color: #bbb;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-day-label {
    text-align: center;
    font-weight: 700;
    color: var(--text-light);
    padding: 10px 0;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.cal-day:hover {
    background: #e0e0e0;
}

.cal-day.has-event {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
}

.cal-day.has-event:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    z-index: 5;
}

.cal-day.past {
    background: #eee;
    color: #bbb;
    pointer-events: none;
}

/* Calendar Tooltip */
.cal-day .event-tooltip {
    visibility: hidden;
    width: 150px;
    background-color: var(--text-dark);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.cal-day .event-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-dark) transparent transparent transparent;
}

.cal-day:hover .event-tooltip {
    visibility: visible;
    opacity: 1;
}

/* Event List Card */
.event-card {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    gap: 15px;
    align-items: center;
    transition: var(--transition);
}

.event-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-card-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.event-card:hover .event-card-link {
    color: var(--primary-color);
}

.event-tooltip-link {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    pointer-events: auto; /* Ensure it can be clicked */
}

.event-tooltip-link:hover {
    text-decoration: underline;
}

.event-tooltip {
    pointer-events: auto !important; /* Allow mouse interaction with tooltip */
}

/*... existing code ...*/

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}


/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-grid:has(> :only-child) {
    justify-content: center;
    grid-template-columns: minmax(300px, 600px);
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-img {
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-content h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
    display: inline-block;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Contact Form */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(196, 30, 58, 0.2);
}

.event-date-badge {
    text-align: center;
    background: var(--white);
    padding: 8px;
    border-radius: 4px;
    min-width: 60px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.event-date-badge .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.event-date-badge .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-light);
}

.event-info h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.event-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Lightbox specific */
#lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(196, 30, 58, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row; /* Keep brand and hamburger on same row */
        justify-content: space-between;
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 280px;
        background-color: var(--secondary-color);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        gap: 20px;
        margin: 0;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
        width: 100%;
    }

    /* Adjust dropdown for mobile */
    .dropdown-content {
        display: none !important; /* Hide submenus on mobile as per user request */
    }

    .dropbtn i {
        display: none; /* Hide carets on mobile if they are just direct links */
    }

    .dropdown-submenu .dropdown-content {
        display: none !important;
    }

    .hero {
        background-attachment: scroll !important; /* Fix for iOS zoom/display issue */
        height: 80vh;
        background-position: center center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    /* Subpage Hero mobile adjustments */
    .subpage-hero {
        height: 40vh; /* Reduced height on mobile */
        min-height: 250px;
        background-attachment: scroll !important;
        background-position: center center;
    }

    .subpage-hero h1 {
        font-size: 2.5rem;
    }

    .subpage-hero p {
        font-size: 1.2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .calendar-wrapper {
        flex-direction: column;
    }

    .calendar-sidebar {
        border-left: none;
        padding-left: 0;
        margin-top: 40px;
    }

    /* Scroll Animation */
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease-out;
    }

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

    /* Enhanced Button Glow */
    .btn-primary:hover {
        background-color: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 0 20px rgba(196, 30, 58, 0.6);
        /* Red Glow */
    }

    /* Outline Button Glow */
    .btn-outline:hover {
        background-color: var(--white);
        color: var(--text-dark);
        transform: translateY(-3px);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
        /* White Glow */
    }

    /* Card Hover Lift & Glow */
    .oddiel-card:hover,
    .news-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    /* Navigation Link Underline Anim */
    .nav-links a {
        position: relative;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: var(--primary-color);
        transition: width 0.3s;
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 100%;
    }
}

/* =============================================
   SUBPAGE SHARED STYLES
   ============================================= */

/* Subpage Hero (background-image set inline per page) */
.subpage-hero {
    height: 55vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
}

.subpage-hero h1 {
    font-size: 4rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.subpage-hero p {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Content blocks used in o_nas, 2percenta, template */
.content-block {
    margin-bottom: 60px;
}

.content-block h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}

.content-block p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #444;
    text-align: justify;
}

/* Values / contact lists used in o_nas, 2percenta */
.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    background: #f9f9f9;
    margin-bottom: 10px;
    padding: 15px;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
}

.values-list strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* Article content (zbierka_vlajka) */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 20px;
}

/* Highlight box (zbierka_vlajka) */
.highlight-box {
    background-color: var(--bg-light);
    border-left: 5px solid var(--primary-color);
    padding: 30px;
    margin: 40px 0;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

/* IBAN display (zbierka_vlajka) */
.iban-box {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
    word-break: break-all;
}

/* QR code placeholder (zbierka_vlajka) */
.qr-placeholder {
    width: 200px;
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #999;
    margin: 20px auto;
    color: #666;
}

/* Content section used in cyklistika / cast pages */
.content-section {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}