:root {
    --primary-red: #c81e1e;
    --dark-red: #a11818;
    --text-dark: #212121;
    --text-light: #f5f5f5;
    --bs-light-rgb: 247, 249, 252;
    --border-color: #e0e0e0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}


body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.7;
}

main {
    max-width: 1800px;
    margin: 0 auto;
}

/* --- Navigace & Hlavička --- */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
    height: 5em;
}

footer {
    height: 240px;
}

main {
    margin-top: 5em;
    padding: 1em;
    min-height: calc(100dvh - 240px - 5em);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-family: Arial, sans-serif;
    font-size: 2rem;
    color: var(--primary-red) !important;
}

.navbar .nav-link {
    font-weight: 700;
    color: var(--text-dark) !important;
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown:hover>.nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}

@media (min-width: 992px) {
    .navbar .nav-item {
        margin-left: 1rem;
    }

    .navbar .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0.5rem;
        right: 0.5rem;
        height: 2px;
        background: var(--primary-red);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .navbar .nav-link:hover::after,
    .navbar .nav-link.active::after {
        transform: scaleX(1);
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
        margin-top: 0;
        transform: translateY(20px);
        border-radius: 8px !important;
        box-shadow: var(--shadow);
        border-color: var(--border-color) !important;
    }

    .dropdown:hover>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-item:hover {
        color: var(--primary-red);
        background-color: #f7f9fc;
    }
}

/* Animovaný Burger */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.hamburger {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    padding: 4px 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Sekce --- */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg-parallax {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/69ea09be804a8/0?type=full') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.hero-content {
    max-width: 90%;
    padding: 0 1rem;
}

.hero h1 {
    font-family: 'Teko', sans-serif;
    font-size: clamp(2.5rem, 10vw, 5rem);
    margin: 0;
    line-height: 1;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin: 1rem 0 0 0;
}

/* --- Formuláře --- */
.form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.25rem rgba(200, 30, 30, 0.25);
}

.form-label {
    font-weight: 700;
}

.custom-form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.custom-form-group input,
.custom-form-group textarea,
.custom-form-group select {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ccc;
    padding: 10px 0;
    background-color: transparent;
    font-size: 1rem;
    position: relative;
    z-index: 2;
}

.custom-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.custom-form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.custom-form-group--select select {
    padding-top: 1.35rem;
    padding-bottom: 0.35rem;
}

.custom-form-group--multiselect select {
    min-height: 140px;
    padding-top: 1.6rem;
}

.custom-form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

.custom-form-group input:focus,
.custom-form-group textarea:focus,
.custom-form-group select:focus {
    outline: none;
    border-bottom-color: var(--primary-red);
}

.custom-form-group input:focus+label,
.custom-form-group input:not(:placeholder-shown)+label,
.custom-form-group textarea:focus+label,
.custom-form-group textarea:not(:placeholder-shown)+label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-red);
}

.custom-form-group--select label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-red);
}

.custom-checkbox-group {
    display: flex;
    align-items: center;
}

.custom-checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    accent-color: var(--primary-red);
    width: 1.1em;
    height: 1.1em;
}

.btn-submit {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background .3s ease;
}

.btn-submit:hover {
    background: var(--dark-red);
}

.form-wrapper {
    background-color: #f8f9fa;
}

/* --- Stránkování --- */
.pagination .page-link {
    color: var(--primary-red);
}

.pagination .page-link:hover {
    background-color: #fde8e8;
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(200, 30, 30, 0.25);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

/* --- Galerie a Dokumenty --- */
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.detail-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.detail-gallery img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    transition: transform .3s ease;
}

.detail-gallery a:hover img {
    transform: scale(1.1);
}

.gallery-modern-shell {
    margin: 2rem 0 0;
}

.gallery-modern {
    column-count: 1;
    column-gap: 1rem;
}

.gallery-modern__item {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 1rem;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    break-inside: avoid;
    text-decoration: none;
    color: inherit;
}

.gallery-modern__item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-modern__item::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.72) 100%);
    pointer-events: none;
}

.gallery-modern__item:hover img {
    transform: scale(1.03);
    filter: saturate(1.05);
}

.gallery-modern__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.2rem 1rem 0.95rem;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.gallery-modern__item.is-placeholder img {
    min-height: 220px;
    object-fit: cover;
}

.translated-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 160px));
    gap: 0.75rem;
    width: fit-content;
    max-width: 100%;
    margin: 0.85rem 0;
}

.translated-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.translated-gallery-item img {
    display: block;
    width: 100%;
    height: var(--translated-gallery-height, 120px);
    object-fit: cover;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.translated-gallery-item:hover img {
    transform: scale(1.03);
    filter: saturate(1.05);
}

@media (min-width: 600px) {
    .gallery-modern {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .gallery-modern {
        column-count: 3;
        column-gap: 1.25rem;
    }

    .gallery-modern__item {
        margin-bottom: 1.25rem;
    }
}

.document-list .list-group-item {
    display: flex;
    align-items: center;
}

.document-list .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: var(--primary-red);
}

/* --- Ostatní styly --- */
.section-title {
    text-align: center;
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    /* margin-bottom: 3rem; */
    margin: 3rem auto;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 0.5rem auto 0;
}

.info-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
}

.info-card .icon {
    font-size: 3rem;
    color: var(--primary-red);
}

.info-card h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    margin: 1rem 0 0.5rem 0;
}

.info-card p {
    margin: 0;
    color: #666;
}

#stats-counter {
    font-size: 2.5rem;
    font-weight: 700;
}

.join-us h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    margin-top: 0;
}

.btn-primary {
    --bs-btn-bg: var(--primary-red);
    --bs-btn-border-color: var(--primary-red);
    --bs-btn-hover-bg: var(--dark-red);
    --bs-btn-hover-border-color: var(--dark-red);
    --bs-btn-border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 700;
}

.youth-section img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-red);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.article-card h3 {
    margin-top: 0;
}

.article-card p {
    margin-bottom: 1.5rem;
}

.article-card a {
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
}

.article-content {
    color: var(--text-dark);
}

.article-content table {
    width: 100%;
    margin: 1.75rem 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.article-content thead th {
    background: linear-gradient(180deg, #fff5f5 0%, #fee2e2 100%);
    color: #991b1b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.article-content th,
.article-content td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    text-align: left;
    vertical-align: top;
}

.article-content tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.8);
}

.article-content tbody tr:hover {
    background: rgba(254, 242, 242, 0.85);
}

.article-content tbody tr:last-child td,
.article-content tbody tr:last-child th {
    border-bottom: 0;
}

.article-content table caption {
    caption-side: top;
    padding: 0 0 0.75rem 0.1rem;
    color: #6b7280;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: left;
}

.article-content figure.table,
.article-content .table-wrapper {
    margin: 1.75rem 0;
    overflow-x: auto;
}

@media (max-width: 767.98px) {
    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 14px;
    }

    .article-content th,
    .article-content td {
        padding: 0.85rem 0.9rem;
    }
}

.event-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 250px;
    display: block;
    text-decoration: none;
}

.event-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover img {
    transform: scale(1.1);
}

.event-card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    box-sizing: border-box;
}

.event-card-caption h4 {
    margin: 0;
    font-size: 1.3rem;
}

.footer {
    background: var(--text-dark);
    color: var(--text-light);
}

.footer .logo {
    color: var(--primary-red);
    text-decoration: none;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: #777;
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(30px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.page-header {
    padding: 120px 0 60px 0;
    background: var(--bs-light-rgb);
    text-align: center;
}


body {
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.7;
}

/* --- Navigace & Hlavička --- */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    color: var(--primary-red) !important;
}

.navbar .nav-link {
    font-weight: 700;
    color: var(--text-dark) !important;
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

/* Otočení šipky je nyní součástí :hover na .dropdown, nikoliv jen na .dropdown-toggle */
.dropdown:hover>.nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}

@media (min-width: 992px) {
    .navbar .nav-item {
        margin-left: 1rem;
    }

    .navbar .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0.5rem;
        right: 0.5rem;
        height: 2px;
        background: var(--primary-red);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .navbar .nav-link:hover::after,
    .navbar .nav-link.active::after {
        transform: scaleX(1);
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
        margin-top: 0;
        transform: translateY(20px);
        border-radius: 8px !important;
        box-shadow: var(--shadow);
        border-color: var(--border-color) !important;
    }

    /* Zobrazení menu při hoveru na celou .dropdown položku */
    .dropdown:hover>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-item:hover {
        color: var(--primary-red);
        background-color: #f7f9fc;
    }
}

/* Animovaný Burger */
.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.hamburger {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    padding: 4px 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Sekce --- */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg-parallax {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/69ea09be804a8/0?type=full') no-repeat center center;
    background-size: cover;
    z-index: -1;
}

.hero-content {
    max-width: 90%;
    padding: 0 1rem;
}

/* Responzivní nadpis pomocí clamp() */
.hero h1 {
    font-family: 'Teko', sans-serif;
    font-size: clamp(2.5rem, 10vw, 5rem);
    margin: 0;
    line-height: 1;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.2rem);
    margin: 1rem 0 0 0;
}

/* --- Ostatní styly --- */
.section-title {
    text-align: center;
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 0.5rem auto 0;
}

.info-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
}

.info-card .icon {
    font-size: 3rem;
    color: var(--primary-red);
}

.info-card h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    margin: 1rem 0 0.5rem 0;
}

.info-card p {
    margin: 0;
    color: #666;
}

#stats-counter {
    font-size: 2.5rem;
    font-weight: 700;
}

.join-us h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    margin-top: 0;
}

.btn-primary {
    --bs-btn-bg: var(--primary-red);
    --bs-btn-border-color: var(--primary-red);
    --bs-btn-hover-bg: var(--dark-red);
    --bs-btn-hover-border-color: var(--dark-red);
    --bs-btn-border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 700;
}

.youth-section img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-red);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.article-card h3 {
    margin-top: 0;
}

.article-card p {
    margin-bottom: 1.5rem;
}

.article-card a {
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
}

.event-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 250px;
    display: block;
    text-decoration: none;
}

.event-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover img {
    transform: scale(1.1);
}

.event-card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    box-sizing: border-box;
}

.event-card-caption h4 {
    margin: 0;
    font-size: 1.3rem;
}

.footer {
    background: var(--text-dark);
    color: var(--text-light);
}

.footer .logo {
    color: var(--primary-red);
    text-decoration: none;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: #777;
}

.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: translateY(30px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-toggle::after {
    border-top: .3em solid transparent;
}

.contact-card-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    width: 100%;
}

.contact-card-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 350px;
    margin: 0 0 2rem 0;
    position: relative;
}

.contact-card-item__image {
    width: 6rem;
    height: 6rem;
    border-radius: 100%;
    font-size: 0;
}

.contact-card-item__image img {
    max-width: 100%;
    max-height: 100%;
}

.contact-card-item__hodnost {
    width: 6rem;
    height: 6rem;
    border-radius: 100%;
    font-size: 0;
    position: absolute;
    top: 3rem;
    left: 0;
}

.contact-card-item__hodnost img {
    max-width: 100%;
    max-height: 100%;
}

.contact-card-item__content {
    width: calc(100% - 6rem);
    padding: 0 0 0 2rem;
}

.info-wrapper section {
    margin: 1em auto;
    max-width: 90%;
    background: #f8f9fa;
    /* padding: 1em 2em; */
    border-radius: 8px;
}

.info-wrapper section h2 {
    background: #c81e1e;
    color: white;
    padding: 0.2em;
    font-family: 'Teko', sans-serif;
    border-radius: 8px 8px 0 0;
}

.info-wrapper section p {
    padding: 0 1em 1em 1em;
    margin: 0;
}

.login-others {
    margin: 1em auto;
    display: inline-flex;
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
}

.login-others a {
    width: 2em;
    height: 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 99%;
    text-decoration: none;
}

.login-others__google-icon {
    width: 1.15em;
    height: 1.15em;
    display: block;
}

.admin-wrapper {
    display: flex;
    flex-direction: row;
}

.admin-sidebar {
    width: 20%;
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 1.5rem;
}

.admin-sidebar .logo {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-red);
}

.admin-sidebar .admin-menu a>* {
    display: inline-flex;
    margin: 0;
}

@media screen and (max-width: 1260px) {
    .admin-sidebar {
        width: auto;
    }

    .admin-sidebar .admin-menu a p {
        display: none;
    }
}

.admin-menu .list-group-item {
    background: none;
    border: none;
    color: var(--text-light);
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
}

.admin-menu .list-group-item.active {
    background-color: var(--primary-red);
}

.admin-menu .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-content {
    flex-grow: 1;
    padding: 2rem;
    width: 80%;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.action-buttons a {
    margin-left: 0.5rem;
}

.action-buttons {
    white-space: nowrap;
}

.action-buttons form {
    display: inline-block;
}

@media (max-width: 767px) {
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .content-header>div {
        width: 100%;
    }

    .admin-mobile-table thead {
        display: none;
    }

    .admin-mobile-table,
    .admin-mobile-table tbody,
    .admin-mobile-table tr,
    .admin-mobile-table td {
        display: block;
        width: 100%;
    }

    .admin-mobile-table tr {
        padding: 1rem;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    }

    .admin-mobile-table tr+tr {
        margin-top: 1rem;
    }

    .admin-mobile-table td {
        border: 0;
        padding: 0.45rem 0;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        text-align: left !important;
    }

    .admin-mobile-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #334155;
        flex: 0 0 42%;
        max-width: 42%;
    }

    .admin-mobile-table td[data-label=""]::before {
        content: none;
    }

    .admin-mobile-table td>*:last-child {
        text-align: right;
        margin-left: auto;
    }

    .admin-mobile-table td.admin-mobile-table__select,
    .admin-mobile-table td.action-buttons {
        justify-content: flex-start;
    }

    .admin-mobile-table td.admin-mobile-table__select>*:last-child,
    .admin-mobile-table td.action-buttons>*:last-child {
        margin-left: 0;
        text-align: left;
    }

    .admin-mobile-table td.action-buttons {
        padding-top: 0.75rem;
    }

    .action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .action-buttons a,
    .action-buttons button {
        margin-left: 0;
    }

    .action-buttons form {
        display: inline-flex;
    }
}



.blog-list {
    /* Použijeme CSS Grid pro responzivní rozvržení */
    display: grid;
    /* Opakovat sloupce automaticky, minimálně 300px široké */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    /* Mezera mezi kartami */
    /* padding: 20px; */
    max-width: 100%;
    max-width: 1200px;

    /* Omezení šířky pro přehlednost */
    margin: 0 auto;
}

.blog-item {
    /* Reset vzhledu odkazu a nastavení jako bloku */
    display: block;
    text-decoration: none;
    color: inherit;
    /* Barva textu z rodiče, aby titulek nevypadal jako odkaz */

    /* Vzhled karty */
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    /* Důležité: ořízne obrázek podle radiusu */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Jemný stín */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
}

/* 🚀 Interakce (Hover Efekt) */
.blog-item:hover {
    transform: translateY(-5px);
    /* Karta se mírně zvedne */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    /* Stín se zesílí */
}

.blog-image {
    /* Nastaví pevnou výšku pro obrázkovou plochu */
    height: 200px;
    width: 100%;
    max-width: 100%;

    /* Zajištění správného zobrazení background-image */
    background-size: cover;
    /* Pokryje celou plochu */
    background-position: center center;
    /* Centrování obrázku */
    background-repeat: no-repeat;

    /* Volitelné: Jemný efekt při najetí myší na obrázek */
    transition: transform 0.3s ease;
}

.blog-item:hover .blog-image {
    transform: scale(1.05);
    /* Obrázek se při najetí myší zvětší (zoom) */
}

.blog-item .title {
    /* Stylování titulku a odsazení obsahu */
    padding: 15px 20px;
    font-size: 1.25em;
    font-weight: bold;
    color: #333;
    /* Tmavší barva titulku */
    line-height: 1.4;
    min-height: 50px;
    /* Zajištění minimální výšky i pro krátké titulky */
    max-width: 100%;
}

.page-link.active {
    color: white;
    background: #a11818;
    border-color: #a11818;
}

@media screen and (max-width: 1200px) {
    #navbarNav {
        background: white;
        width: 100vw;
    }
}

@media screen and (min-width: 790px) {
    #navbarNav {
        margin: 0 var(--bs-navbar-brand-margin-end);
    }
}

/* Kontejner pro vycentrování */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Samotný spinner */
.spinner {
    width: 30px;
    height: 30px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3498db;
    /* Barva loaderu */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.di-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Kontejneru omezíme šířku jen na velkých obrazovkách */
@media (min-width: 992px) {
    .navbar-container {
        max-width: 1300px;
        margin: 0 auto;
        display: flex;
        width: 100%;
    }
}

/* Na mobilu (pod 992px) zajistíme, aby menu ignorovalo omezení */
@media (max-width: 991px) {
    #navbarNav {
        width: 100vw;
        /* Šířka přes celé okno */
        /* Kompenzace paddingu container-fluid (standardně 12px) */
        background: white;
        /* Aby pod menu neprosvítal obsah */
        padding: 1rem;
        /* Aby text nebyl nalepený úplně na hraně displeje */
    }

    .navbar-nav {
        width: 100% !important;
    }
}
