*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #c0392b;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --background-color: #ffffff;
    --text-color: #34495e;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    /* Flex layout to push footer to bottom when content is short */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content should take up all remaining space between header and footer */
main {
    flex: 1 0 auto;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1100px;
    padding: 0 20px;
}

.site-header {
    background: rgba(44, 62, 80, 0.9);
    padding: 18px 0;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 36px;
    min-height: 144px;
    max-width: 1700px;
    width: 98%;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--light-color);
    font-size: 1.73rem;
    flex-shrink: 0;
    min-width: 0;
    line-height: 1.25;
    margin: 0;
    gap: 18px;
}

.logo .logo-text {
    white-space: nowrap;
}

.logo .site-logo {
    height: 111px;
    max-height: 111px;
    width: 111px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.site-nav {
    flex-shrink: 1;
    min-width: 0;
    margin-left: auto;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.site-nav ul li {
    margin: 0;
}

.nav-toggle {
    display: none;
    width: 66px;
    height: 66px;
    border: 1px solid rgba(236, 240, 241, 0.35);
    border-radius: 8px;
    background: rgba(236, 240, 241, 0.08);
    cursor: pointer;
    padding: 14px 12px;
    gap: 9px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--light-color);
    border-radius: 3px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

.site-nav ul li a {
    text-decoration: none;
    color: var(--light-color);
    font-weight: bold;
    transition: color 0.3s ease;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.5rem;
    padding: 9px 15px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

@media (min-width: 1700px) {
    .site-nav ul {
        flex-wrap: nowrap;
    }
}

.site-nav ul li a:hover,
.site-nav ul li a.active {
    color: var(--primary-color);
    background-color: rgba(236, 240, 241, 0.1);
}

#hero {
    /* Background image set dynamically via PHP */
    color: #fff;
    text-align: center;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Full viewport height */
    width: 100vw; /* Full viewport width */
    overflow: hidden;
}

#hero .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem; /* Add some padding for better spacing */
    z-index: 2; /* Ensure content is above background */
    position: relative;
}

#hero h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 8vw, 4rem); /* Responsive font size */
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Better readability */
}

#hero p {
    font-size: clamp(1rem, 4vw, 1.5rem); /* Responsive font size */
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Better readability */
}

#hero .container {
    padding: clamp(1rem, 5vw, 2rem); /* Responsive padding */
}

/* Additional responsive adjustments for hero content */
@media (max-width: 480px) {
    #hero h2 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
    }
    
    #hero p {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    #hero .container {
        padding: 1rem;
    }
}

@media (min-width: 1921px) {
    #hero h2 {
        font-size: 5rem;
        letter-spacing: 3px;
    }
    
    #hero p {
        font-size: 1.8rem;
    }
}

.button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
    border: 2px solid transparent;
}

.button:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: var(--light-color);
}

section p, section li {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: -30px auto 40px auto;
    color: #6c757d;
    font-size: 1.1rem;
}

h2 {
    text-align: center;
    margin-bottom: 60px;
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#treningy .container {
    display: block;
}

#treningy p {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
}

#treningy ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
    align-items: stretch;
}

#treningy li {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    list-style: none;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow: visible;
    border: 1px solid rgba(192, 57, 43, 0.1);
    flex: 1;
    min-width: 0;
    max-width: 400px;
}

#treningy li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #e74c3c, #c0392b);
    border-radius: 16px 16px 0 0;
}

#treningy li::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color), #e74c3c);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#treningy li:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(192, 57, 43, 0.15);
}

#treningy li:hover::after {
    opacity: 0.1;
}

.day-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: pulse 3s infinite;
    background: linear-gradient(45deg, var(--primary-color), #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.training-note {
    font-size: 0.95rem;
    color: #6c757d;
    font-style: italic;
    margin: 15px 0;
    padding: 12px;
    background: rgba(192, 57, 43, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

#o-nas .about-content {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    margin: 0 auto;
    max-width: 900px;
}

#o-nas .about-content::before {
    content: '🥋';
    position: absolute;
    left: -15px;
    top: 30px;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}

#o-nas .about-content p {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

#o-nas .about-content p:last-child {
    margin-bottom: 0;
}

#novinky {
    background: var(--light-color);
    padding: 80px 0 120px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

#novinky .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-item {
    background: #fff;
    padding: 30px;
    margin: 0 auto 30px auto;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.news-item h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.news-item p {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    margin: 0;
}

#kontakt {
    background: linear-gradient(135deg, var(--dark-color) 0%, #34495e 100%);
    color: #fff;
    position: relative;
}

#kontakt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="20" cy="80" r="0.5" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

#kontakt .container {
    position: relative;
    z-index: 1;
}

#kontakt h2 {
    color: #fff;
    margin-bottom: 40px;
}

#kontakt p {
    text-align: center;
    font-size: 1.3rem;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #fff;
    backdrop-filter: blur(10px);
}

footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
}

 /* Simple footer styles */
footer {
    text-align: center;
}

footer .footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

footer h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--primary-color);
    margin-bottom: 10px;
}

footer .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .contact-list li {
    margin-bottom: 5px;
}

footer a {
    color: var(--light-color);
    text-decoration: none;
}

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

footer .social-link {
    background: #1877f2;
    color: white !important;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

footer .social-link:hover {
    background: #166fe5;
    color: white !important;
}

footer .copyright {
    width: 100%;
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Training Cards */
@media (max-width: 1200px) {
    .site-header .container {
        padding: 0 15px;
        min-height: 132px;
        width: 96%;
    }

    .logo {
        font-size: 1.58rem;
    }

    .logo .site-logo {
        width: 99px;
        height: 99px;
        max-height: 99px;
    }

    .site-nav ul li a {
        font-size: 1.41rem;
        padding: 9px 14px;
    }

    .site-nav ul {
        flex-wrap: wrap;
    }

    #treningy ul {
        gap: 20px;
    }
    #treningy li {
        padding: 25px 15px;
    }
}

@media (max-width: 900px) {
    #treningy ul {
        flex-wrap: wrap;
        gap: 25px;
    }
    #treningy li {
        flex: 1 1 calc(50% - 12.5px);
        min-width: 250px;
    }
}

@media (max-width: 1024px) {
    .site-header .container {
        min-height: 126px;
        width: 95%;
    }

    .logo {
        font-size: 1.43rem;
        gap: 15px;
    }

    .logo .site-logo {
        width: 87px;
        height: 87px;
        max-height: 87px;
    }

    .site-nav ul {
        gap: 9px;
    }

    .site-nav ul li a {
        font-size: 1.32rem;
        padding: 8px 12px;
    }
}

@media (max-width: 860px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .site-header .container {
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        row-gap: 15px;
        min-height: 114px;
    }

    .logo {
        font-size: 1.38rem;
        margin-right: auto;
        max-width: calc(100% - 90px);
    }

    .logo .site-logo {
        width: 81px;
        height: 81px;
        max-height: 81px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        width: 100%;
        margin-left: 0;
    }

    .has-js .site-nav {
        display: none;
    }

    .has-js .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
        border-top: 1px solid rgba(236, 240, 241, 0.2);
        padding-top: 15px;
    }

    .site-nav ul li a {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
        font-size: 1.44rem;
    }
}

@media (max-width: 768px) {
    #hero {
        padding: 100px 0;
    }
    #hero h2 {
        font-size: 2.5rem;
    }
    #hero p {
        font-size: 1.1rem;
    }
    
    /* Training cards on mobile */
    #treningy ul {
        flex-direction: column;
        gap: 20px;
    }
    #treningy li {
        flex: none;
        max-width: none;
        margin: 0 auto;
        width: 100%;
        max-width: 500px;
    }
    
    /* Location links on mobile */
    .location-link {
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .site-header .container {
        padding: 0 8px;
    }

    .logo {
        font-size: 1.26rem;
    }

    .logo .logo-text {
        white-space: normal;
    }

    .logo .site-logo {
        width: 75px;
        height: 75px;
        max-height: 75px;
    }

    .site-nav ul li a {
        font-size: 1.35rem;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .site-header .container {
        padding: 0 5px;
        min-height: 105px;
    }

    .logo {
        font-size: 1.17rem;
        gap: 12px;
    }

    .logo .site-logo {
        width: 66px;
        height: 66px;
        max-height: 66px;
    }

    .nav-toggle {
        width: 60px;
        height: 60px;
    }

    .site-nav ul li a {
        font-size: 1.29rem;
        padding: 12px 12px;
    }

    #treningy li {
        padding: 20px 15px;
    }
    
    .day-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .location-link {
        padding: 8px 14px;
        font-size: 0.8rem;
        gap: 6px;
    }
}

/* ===== Training Location Link ===== */
.training-location {
    margin-top: 20px;
}

.location-link,
.location-link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-color);
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Oswald', sans-serif;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.2);
}

.location-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.location-link:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.25);
}

.location-link:hover i {
    transform: scale(1.05);
}

.location-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.2);
}

/* ===== Members Page Styling ===== */
.member-card, .trainer-card, .young-member-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(192, 57, 43, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.member-card::before, .trainer-card::before, .young-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #e74c3c, #c0392b);
    border-radius: 16px 16px 0 0;
}

.member-card:hover, .trainer-card:hover, .young-member-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 35px rgba(192, 57, 43, 0.15);
}

.member-rank, .trainer-icon, .young-rank {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.member-belt, .trainer-belt, .young-belt {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 10px 0;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Oswald', sans-serif;
}

.member-achievements, .trainer-experience {
    text-align: left;
    margin-top: 15px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.trainer-title {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    margin: 5px 0;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.young-member-card {
    padding: 20px;
}

.young-member-card h4 {
    color: var(--dark-color);
    margin: 10px 0 5px 0;
    font-family: 'Oswald', sans-serif;
}

.news-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

/* ===== Latest News Section ===== */
#najnovsie-novinky .news-item {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

#najnovsie-novinky .news-item:last-of-type {
    margin-bottom: 0;
}

/* ===== News with Images Layout ===== */
.news-item-with-images {
    background: #fff;
    padding: 30px;
    margin: 0 auto 30px auto;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    max-width: 1200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.news-item-with-images:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.news-content {
    flex: 1 1 0%;
    width: auto; /* prevent fixed 85% which could cause overflow */
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
}

.news-images {
    flex-shrink: 0;
    width: 180px;
    min-width: 120px;
}

/* Ensure headings in news wrap as well */
.news-item h3,
.news-item-with-images h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.single-image, .main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.single-image:hover, .main-image:hover {
    transform: scale(1.05);
}

.gallery-hint {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin: 10px 0 0 0;
    font-style: italic;
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(192, 57, 43, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(192, 57, 43, 0.1);
    transition: all 0.3s ease;
}

.gallery-hint:hover {
    color: var(--primary-color);
    background: rgba(192, 57, 43, 0.1);
    border-color: rgba(192, 57, 43, 0.2);
}

/* Image Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.gallery-modal-content {
    margin: 15% auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    object-fit: contain;
}

.gallery-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.gallery-close:hover {
    color: #bbb;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 16px;
    margin-top: -22px;
    user-select: none;
    transition: 0.3s;
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-nav:hover {
    background-color: rgba(0,0,0,0.5);
}

.gallery-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Responsive adjustments for latest news section */
@media (max-width: 768px) {
    #najnovsie-novinky .news-item {
        margin: 0 auto 25px auto;
        padding: 25px;
    }
    
    .news-item-with-images {
        flex-direction: column;
        gap: 20px;
    }
    
    .news-content {
        width: 100%;
    }
    
    .news-images {
        width: 100%;
        text-align: center;
    }
    
    .single-image, .main-image {
        max-width: 300px;
    }
    
    .gallery-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .gallery-nav {
        font-size: 30px;
    }
}

/* Responsive styles for member cards */
@media (max-width: 768px) {
    .member-card, .trainer-card {
        padding: 20px;
    }
    
    .young-member-card {
        padding: 15px;
    }
    
    .member-rank, .trainer-icon, .young-rank {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }
    

} 

/* === Fix long word overflow in news containers === */
.news-content,
.news-content p,
.news-item,
.news-item-with-images {
    overflow-wrap: anywhere; /* Modern property for wrapping long words */
    word-wrap: break-word;    /* Fallback for older browsers */
    word-break: break-word;   /* Additional support */
} 

/* -------- Modal (Contact) -------- */
#contactModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

#contactModal .modal-content {
    background: #fff;
    padding: 40px 35px;
    border-radius: 14px;
    max-width: 520px;
    width: 92%;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    position: relative;
    border-top: 6px solid var(--primary-color);
    animation: modalShow 0.4s ease-out;
}

@keyframes modalShow {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

#contactModal .modal-content h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

#contactModal .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

#contactModal p {
    margin: 12px 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Disable scroll on body when modal open */
.no-scroll {
    overflow: hidden;
} 

/* ===== News Page (novinky.php) Specific Styles ===== */
.news-full {
    background: var(--light-color);
    padding: 80px 0 120px 0;
    min-height: 60vh;
}

.news-full .container {
    width: 85%;
}

.page-title {
    text-align: center;
    margin-bottom: 60px;
    font-family: 'Oswald', sans-serif;
    font-size: 3.2rem;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.empty-state {
    text-align: center;
    font-size: 1.3rem;
    color: #6c757d;
    font-style: italic;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    max-width: 600px;
    margin: 0 auto;
}

.news-item-full {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px;
    margin: 0 auto 40px auto;
    border-left: 6px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(192, 57, 43, 0.1);
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.news-item-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #e74c3c, #c0392b);
    border-radius: 12px 12px 0 0;
}

.news-item-full:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 40px rgba(192, 57, 43, 0.15);
}

.news-item-full.pinned {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    border-left: 6px solid #ff9800;
    border: 2px solid rgba(255, 152, 0, 0.2);
    position: relative;
    animation: subtle-glow 3s ease-in-out infinite alternate;
}

.news-item-full.pinned::before {
    background: linear-gradient(90deg, #ff9800, #f57c00, #ef6c00);
}

.news-item-full.pinned::after {
    content: '📌';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff9800;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    animation: pin-bounce 2s infinite;
}

@keyframes subtle-glow {
    0% { box-shadow: 0 8px 30px rgba(255, 152, 0, 0.1); }
    100% { box-shadow: 0 12px 35px rgba(255, 152, 0, 0.2); }
}

@keyframes pin-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.news-item-main-content {
    flex: 1 1 0%;
    min-width: 0;
}

.news-item-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f3f4;
    padding-bottom: 20px;
}

.news-item-header h2 {
    font-family: 'Oswald', sans-serif;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.8rem;
    text-transform: none;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-align: left;
}

.news-item-full.pinned .news-item-header h2 {
    color: #f57c00;
}

.news-date {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    font-style: italic;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-item-content {
    margin-bottom: 25px;
}

.news-item-content p {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: justify;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
}

.news-item-content p:last-child {
    margin-bottom: 0;
}

.news-item-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;
    width: 300px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.news-item-gallery a {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: block;
}

.news-item-gallery a:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.news-item-gallery a:hover img {
    transform: scale(1.05);
}

/* Responsive styles for news page */
@media (max-width: 1024px) {
    .page-title {
        font-size: 2.8rem;
        margin-bottom: 50px;
    }
    
    .news-item-full {
        padding: 30px;
        margin-bottom: 35px;
    }
    
    .news-item-gallery a {
        min-width: 150px;
        max-width: 250px;
    }
    
    .news-item-gallery img {
        height: 150px;
    }
}

@media (max-width: 768px) {
    .news-full {
        padding: 60px 0 80px 0;
    }
    
    .page-title {
        font-size: 2.4rem;
        margin-bottom: 40px;
    }
    
    .news-item-full {
        padding: 25px;
        margin-bottom: 30px;
        flex-direction: column;
        gap: 20px;
    }
    
    .news-item-main-content {
        flex: none;
    }
    
    .news-item-header h2 {
        font-size: 1.6rem;
    }
    
    .news-item-content p {
        font-size: 1rem;
        text-align: left;
    }
    
    .news-item-gallery {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .news-item-gallery a {
        flex: 1 1 calc(50% - 6px);
        min-width: 150px;
    }
    
    .news-item-gallery img {
        height: 200px;
    }
    
    .empty-state {
        font-size: 1.1rem;
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .news-full {
        padding: 40px 0 60px 0;
    }
    
    .page-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .news-item-full {
        padding: 20px;
        margin-bottom: 25px;
        border-left: 4px solid var(--primary-color);
        gap: 15px;
    }
    
    .news-item-full.pinned::after {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        top: -6px;
        right: -6px;
    }
    
    .news-item-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .news-item-header h2 {
        font-size: 1.4rem;
    }
    
    .news-date {
        font-size: 0.9rem;
    }
    
    .news-item-content {
        margin-bottom: 20px;
    }
    
    .news-item-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .news-item-gallery {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-item-gallery a {
        flex: none;
        width: 100%;
    }
    
    .news-item-gallery img {
        height: 180px;
    }
    
    .empty-state {
        font-size: 1rem;
        padding: 30px 12px;
    }
} 

/* ===== Training Page (treningy.php) Specific Styles ===== */
.training-full {
    background: var(--light-color);
    padding: 80px 0 120px 0;
    min-height: 60vh;
}

.training-info {
    text-align: center;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.training-description {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

.training-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
}

.training-schedule {
    margin-bottom: 80px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.training-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(192, 57, 43, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-align: center;
}

.training-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), #e74c3c, #c0392b);
    border-radius: 16px 16px 0 0;
}

.training-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(192, 57, 43, 0.15);
}

.training-day {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.training-time {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.training-note {
    font-size: 1rem;
    color: #6c757d;
    font-style: italic;
    margin: 15px 0;
    padding: 12px;
    background: rgba(192, 57, 43, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.training-location {
    margin-top: 20px;
}

.training-extra-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(192, 57, 43, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #e74c3c, #c0392b);
    border-radius: 16px 16px 0 0;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(192, 57, 43, 0.12);
}

.info-card h3 {
    font-family: 'Oswald', sans-serif;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f4;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
}

.info-card li:last-child {
    border-bottom: none;
}

.info-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive styles for training page */
@media (max-width: 1024px) {
    .training-full {
        padding: 60px 0 80px 0;
    }
    
    .training-info {
        margin-bottom: 50px;
    }
    
    .training-description {
        font-size: 1.2rem;
    }
    
    .schedule-grid {
        gap: 25px;
    }
    
    .training-card {
        padding: 30px 25px;
    }
    
    .training-extra-info {
        gap: 30px;
        margin-top: 60px;
    }
    
    .info-card {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .training-full {
        padding: 40px 0 60px 0;
    }
    
    .training-info {
        margin-bottom: 40px;
    }
    
    .training-description {
        font-size: 1.1rem;
    }
    
    .training-subtitle {
        font-size: 1rem;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .training-card {
        padding: 25px 20px;
    }
    
    .training-day {
        font-size: 1.6rem;
    }
    
    .training-time {
        font-size: 1.2rem;
    }
    
    .training-extra-info {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 50px;
    }
    
    .info-card {
        padding: 25px 20px;
    }
    
    .info-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .training-full {
        padding: 30px 0 50px 0;
    }
    
    .training-info {
        margin-bottom: 30px;
    }
    
    .training-description {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .training-subtitle {
        font-size: 0.95rem;
    }
    
    .training-card {
        padding: 20px 15px;
    }
    
    .training-day {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .training-time {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .training-note {
        font-size: 0.9rem;
        padding: 10px;
        margin: 12px 0;
    }
    
    .training-extra-info {
        margin-top: 40px;
        gap: 20px;
    }
    
    .info-card {
        padding: 20px 15px;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .info-card li {
        padding: 8px 0;
        padding-left: 20px;
        font-size: 0.95rem;
    }
} 

/* ===== ADMIN PANEL STYLES ===== */
.admin-panel {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #2d3748;
}

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

.admin-panel .admin-wrapper {
    min-height: 100vh;
    padding: 20px;
}

.admin-panel .admin-container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Login Styling */
.admin-panel .login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    text-align: center;
}

.admin-panel .login-header {
    margin-bottom: 30px;
}

.admin-panel .login-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.admin-panel .login-subtitle {
    color: #718096;
    font-weight: 400;
}

.admin-panel .login-form {
    text-align: left;
}

.admin-panel .form-group {
    margin-bottom: 20px;
}

.admin-panel .form-label {
    display: block;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 14px;
}

.admin-panel .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.admin-panel .form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-panel .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    gap: 8px;
}

.admin-panel .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

.admin-panel .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.admin-panel .btn-danger {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    color: white;
}

.admin-panel .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(245, 101, 101, 0.3);
}

.admin-panel .btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.admin-panel .btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.admin-panel .error-message {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #c53030;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid #f56565;
}

.admin-panel .success-message {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid #48bb78;
}

/* Main Admin Interface */
.admin-panel .admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-panel .admin-title {
    font-size: 28px;
    font-weight: 700;
}

.admin-panel .admin-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 5px;
}

.admin-panel .logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.admin-panel .logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.admin-panel .admin-content {
    padding: 40px;
}

.admin-panel .section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.admin-panel .section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f7fafc;
}

.admin-panel .section-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-left: 10px;
}

.admin-panel .section-subtitle {
    font-size: 18px;
    font-weight: 500;
    color: #4a5568;
    margin: 20px 0 15px 0;
}

/* Table Styling */
.admin-panel .modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.admin-panel .modern-table th {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    color: #4a5568;
    font-weight: 600;
    padding: 15px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-panel .modern-table td {
    padding: 15px;
    border-top: 1px solid #e2e8f0;
    vertical-align: middle;
}

.admin-panel .modern-table tr:hover {
    background: #f7fafc;
}

.admin-panel .table-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.admin-panel .table-input:focus {
    outline: none;
    border-color: #667eea;
}

.admin-panel .table-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* News Cards */
.admin-panel .news-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.admin-panel .news-card .news-content p {
    margin: 0 0 10px 0;
}

.admin-panel .news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.admin-panel .news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.admin-panel .news-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.admin-panel .news-date {
    color: #718096;
    font-size: 14px;
}

.admin-panel .news-content {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.admin-panel .news-images {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.admin-panel .news-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

/* Form Styling */
.admin-panel .form-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-panel .form-grid-2 {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.admin-panel .form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.admin-panel .form-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.admin-panel .file-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-panel .file-input:hover {
    border-color: #667eea;
    background: #edf2f7;
}

/* Admin navigation */
.admin-panel .admin-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.admin-panel .nav-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    background: #edf2f7;
    color: #2d3748;
    transition: background 0.3s ease;
}

.admin-panel .nav-btn:hover {
    background: #e2e8f0;
}

.admin-panel .nav-btn.active {
    background: #667eea;
    color: #fff;
}

/* Empty State */
.admin-panel .empty-state {
    text-align: center;
    padding: 40px;
    color: #718096;
}

.admin-panel .empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.admin-panel .empty-state-text {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Responsive Design for Admin Panel */
@media (max-width: 768px) {
    .admin-panel .admin-wrapper {
        padding: 10px;
    }

    .admin-panel .admin-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .admin-panel .admin-content {
        padding: 20px;
    }

    .admin-panel .section {
        padding: 20px;
    }

    .admin-panel .modern-table {
        font-size: 12px;
    }

    .admin-panel .modern-table th,
    .admin-panel .modern-table td {
        padding: 10px 8px;
    }
} 

/* ===== LIGHTBOX CUSTOM STYLES (from novinky.php) ===== */
/* Custom styling for lightbox navigation arrows */
.lightbox .lb-nav {
    opacity: 1 !important;
}

.lightbox .lb-prev, 
.lightbox .lb-next {
    opacity: 0.8 !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    margin-top: -25px !important;
    transition: all 0.3s ease !important;
}

.lightbox .lb-prev:hover, 
.lightbox .lb-next:hover {
    opacity: 1 !important;
    background-color: rgba(192, 57, 43, 0.8) !important;
    transform: scale(1.1) !important;
}

.lightbox .lb-prev {
    left: 20px !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="15,18 9,12 15,6"></polyline></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 24px 24px !important;
}

.lightbox .lb-next {
    right: 20px !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="9,18 15,12 9,6"></polyline></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 24px 24px !important;
}

/* Make sure arrows are visible on mobile */
@media (max-width: 768px) {
    .lightbox .lb-prev, 
    .lightbox .lb-next {
        opacity: 0.9 !important;
        width: 45px !important;
        height: 45px !important;
        margin-top: -22px !important;
    }
    
    .lightbox .lb-prev {
        left: 15px !important;
    }
    
    .lightbox .lb-next {
        right: 15px !important;
    }
}

/* Ensure navigation is always visible when there are multiple images */
.lightbox .lb-nav a {
    display: block !important;
}

/* Hide arrows when there's only one image */
.lightbox[data-album-size="1"] .lb-nav {
    display: none !important;
} 

/* ===== GALLERY BUTTON STYLES ===== */
.gallery-button-container {
    margin-top: 15px;
    text-align: center;
}

.gallery-open-btn {
    background: linear-gradient(135deg, #E53E3E, #C53030);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-open-btn:hover {
    background: linear-gradient(135deg, #C53030, #9C2626);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.35);
}

.gallery-open-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(229, 62, 62, 0.3);
}

.gallery-open-btn i {
    font-size: 16px;
}

.news-gallery-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    pointer-events: none; /* Ensure images are not clickable */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-open-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .gallery-open-btn i {
        font-size: 14px;
    }
}

/* ===== IMAGE GALLERY MODAL STYLES ===== */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.98));
    backdrop-filter: blur(10px) saturate(1.2);
    animation: galleryFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes galleryFadeIn {
    from { 
        opacity: 0; 
        backdrop-filter: blur(0px);
        transform: scale(0.9);
    }
    to { 
        opacity: 1; 
        backdrop-filter: blur(10px) saturate(1.2);
        transform: scale(1);
    }
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

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

.gallery-modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1400px;
    max-height: 90%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.7),
        0 10px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: imageZoomIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #fff;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(192, 57, 43, 0.9));
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    animation: fadeInControls 0.5s ease-out 0.1s both;
}

.gallery-close:hover,
.gallery-close:focus {
    background: linear-gradient(135deg, rgba(255, 69, 85, 1), rgba(220, 53, 69, 1));
    transform: scale(1.1) rotate(90deg);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.gallery-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: 300;
    font-size: 32px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(40, 40, 40, 0.9));
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    animation: fadeInControls 0.5s ease-out 0.2s both;
}

.gallery-nav:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.9), rgba(192, 57, 43, 0.9));
    transform: translateY(-50%) scale(1.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 30px rgba(220, 53, 69, 0.4);
    color: #ffffff;
}

.gallery-nav:active {
    transform: translateY(-50%) scale(1.05);
}

.gallery-prev {
    left: 30px;
}

.gallery-next {
    right: 30px;
}

.gallery-caption {
    margin: auto;
    display: block;
    width: auto;
    max-width: 500px;
    text-align: center;
    color: #ffffff;
    padding: 12px 24px;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(40, 40, 40, 0.9));
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    height: auto !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: fadeInControls 0.6s ease-out 0.3s both;
}

.gallery-caption:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

/* Gallery grid styles for member galleries */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery img:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

/* ===== Gallery Page / Portfolio Grid ===== */
#galeria-preview {
    background: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.portfolio-card {
    margin: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.portfolio-card figcaption {
    padding: 12px 14px;
    font-size: 0.95rem;
    color: var(--text-color);
    text-align: center;
    background: rgba(192, 57, 43, 0.04);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.gallery-cta {
    text-align: center;
    margin-top: 35px;
}

.gallery-page {
    background: var(--light-color);
    padding: 80px 0 120px 0;
    min-height: 60vh;
}

/* Responsive design for gallery modal */
@media (max-width: 768px) {
    .gallery-modal-content {
        width: 95%;
        max-height: 85%;
        border-radius: 8px;
    }
    
    .gallery-close {
        top: 15px;
        right: 15px;
        font-size: 24px;
        width: 45px;
        height: 45px;
    }
    
    .gallery-nav {
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    
    .gallery-prev {
        left: 15px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-caption {
        bottom: 10px;
        padding: 8px 16px;
        font-size: 13px;
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .gallery-modal-content {
        width: 98%;
        max-height: 80%;
    }
    
    .gallery-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-caption {
        width: 90%;
        bottom: 10px;
        font-size: 14px;
        padding: 10px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gallery img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-modal-content {
        width: 98%;
        max-height: 75%;
    }
    
    .gallery-close {
        top: 5px;
        right: 10px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
    
    .gallery-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-top: -22px;
    }
    
    .gallery-prev {
        left: 5px;
    }
    
    .gallery-next {
        right: 5px;
    }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .gallery img {
        height: 120px;
    }
} 
