/* ===============================================
   MOSTy Třebíč - Custom CSS Framework
   Prefix: mosty-
   Mobile-first approach
   =============================================== */

/* ===============================================
   CSS Variables
   =============================================== */
:root {
    /* Colors from logo */
    --mosty-primary: #122373;
    --mosty-accent: #E3001B;
    --mosty-white: #FFFFFF;
    --mosty-black: #000000;

    /* Additional colors */
    --mosty-gray-50: #F9FAFB;
    --mosty-gray-100: #F3F4F6;
    --mosty-gray-200: #E5E7EB;
    --mosty-gray-300: #D1D5DB;
    --mosty-gray-400: #9CA3AF;
    --mosty-gray-500: #6B7280;
    --mosty-gray-600: #4B5563;
    --mosty-gray-700: #374151;
    --mosty-gray-800: #1F2937;
    --mosty-gray-900: #111827;

    /* Typography */
    --mosty-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mosty-font-size-base: 16px;
    --mosty-line-height-base: 1.6;

    /* Spacing */
    --mosty-spacing-xs: 0.5rem;
    --mosty-spacing-sm: 1rem;
    --mosty-spacing-md: 1.5rem;
    --mosty-spacing-lg: 2rem;
    --mosty-spacing-xl: 3rem;
    --mosty-spacing-2xl: 4rem;
    --mosty-spacing-3xl: 6rem;

    /* Border radius (rounded for logo style) */
    --mosty-radius-sm: 0.5rem;
    --mosty-radius-md: 1rem;
    --mosty-radius-lg: 1.5rem;
    --mosty-radius-xl: 2rem;
    --mosty-radius-full: 9999px;

    /* Shadows */
    --mosty-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --mosty-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --mosty-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --mosty-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --mosty-transition-fast: 150ms ease-in-out;
    --mosty-transition-base: 300ms ease-in-out;
    --mosty-transition-slow: 500ms ease-in-out;

    /* Z-index */
    --mosty-z-base: 1;
    --mosty-z-dropdown: 100;
    --mosty-z-sticky: 200;
    --mosty-z-nav: 300;
    --mosty-z-modal: 400;
    --mosty-z-overlay: 500;
}

/* ===============================================
   Base Styles & Reset
   =============================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--mosty-font-size-base);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--mosty-font-family);
    line-height: var(--mosty-line-height-base);
    color: var(--mosty-black);
    background-color: var(--mosty-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--mosty-transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ===============================================
   Container
   =============================================== */
.mosty-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--mosty-spacing-sm);
}

@media (min-width: 768px) {
    .mosty-container {
        padding: 0 var(--mosty-spacing-lg);
    }
}

@media (min-width: 1024px) {
    .mosty-container {
        padding: 0 var(--mosty-spacing-xl);
    }
}

/* ===============================================
   Navigation
   =============================================== */
.mosty-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--mosty-white);
    box-shadow: var(--mosty-shadow-sm);
    z-index: var(--mosty-z-nav);
    transition: box-shadow var(--mosty-transition-base);
}

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

.mosty-nav__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0;
}

.mosty-nav__logo {
    display: flex;
    align-items: center;
    height: 50px;
    transition: transform var(--mosty-transition-base);
}

.mosty-nav__logo:hover {
    transform: scale(1.05);
}

.mosty-nav__logo img {
    height: 100%;
    width: auto;
}

/* Desktop Menu */
.mosty-nav__menu {
    display: none;
    gap: var(--mosty-spacing-md);
    align-items: center;
}

@media (min-width: 768px) {
    .mosty-nav__menu {
        display: flex;
    }
}

.mosty-nav__link {
    font-weight: 500;
    font-size: 1rem;
    padding: var(--mosty-spacing-xs) var(--mosty-spacing-sm);
    border-radius: var(--mosty-radius-sm);
    transition: all var(--mosty-transition-base);
    position: relative;
}

/* Menu Variant - Blue (default) */
.mosty-nav--blue .mosty-nav__link {
    color: var(--mosty-primary);
}

.mosty-nav--blue .mosty-nav__link:hover,
.mosty-nav--blue .mosty-nav__link--active {
    color: var(--mosty-accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Menu Variant - Red */
.mosty-nav--red .mosty-nav__link {
    color: var(--mosty-accent);
}

.mosty-nav--red .mosty-nav__link:hover,
.mosty-nav--red .mosty-nav__link--active {
    color: var(--mosty-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Mobile Hamburger */
.mosty-nav__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--mosty-spacing-xs);
    cursor: pointer;
    z-index: calc(var(--mosty-z-nav) + 1);
}

@media (min-width: 768px) {
    .mosty-nav__hamburger {
        display: none;
    }
}

.mosty-nav__hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--mosty-primary);
    border-radius: var(--mosty-radius-full);
    transition: all var(--mosty-transition-base);
}

.mosty-nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mosty-nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.mosty-nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Side Menu */
.mosty-nav__mobile {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background-color: var(--mosty-white);
    box-shadow: var(--mosty-shadow-xl);
    transition: right var(--mosty-transition-base);
    overflow-y: auto;
    z-index: calc(var(--mosty-z-nav) - 1);
}

.mosty-nav__mobile.active {
    right: 0;
}

.mosty-nav__mobile-menu {
    padding: var(--mosty-spacing-lg) var(--mosty-spacing-md);
}

.mosty-nav__mobile-item {
    margin-bottom: var(--mosty-spacing-sm);
}

.mosty-nav__mobile-link {
    display: block;
    padding: var(--mosty-spacing-md);
    font-weight: 500;
    font-size: 1.125rem;
    border-radius: var(--mosty-radius-md);
    transition: all var(--mosty-transition-base);
}

.mosty-nav--blue .mosty-nav__mobile-link {
    color: var(--mosty-primary);
}

.mosty-nav--blue .mosty-nav__mobile-link:hover {
    background-color: var(--mosty-gray-100);
    color: var(--mosty-accent);
}

.mosty-nav--red .mosty-nav__mobile-link {
    color: var(--mosty-accent);
}

.mosty-nav--red .mosty-nav__mobile-link:hover {
    background-color: var(--mosty-gray-100);
    color: var(--mosty-primary);
}

/* ===============================================
   Hero Section
   =============================================== */
.mosty-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
}

/* Hero Swiper Carousel */
.mostyHeroSwiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.mostyHeroSwiper .swiper-slide {
    width: 100%;
    height: 100%;
}

.mostyHeroSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mosty-hero__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.mosty-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.mosty-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.mosty-hero__content {
    position: relative;
    z-index: var(--mosty-z-base);
    text-align: center;
    padding: var(--mosty-spacing-lg);
    width: 100%;
}

.mosty-hero__logo {
    margin-bottom: var(--mosty-spacing-lg);
    opacity: 0;
    animation: fadeInUp 1s ease-in-out 0.5s forwards;
}

.mosty-hero__logo img {
    max-width: 180px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

@media (min-width: 768px) {
    .mosty-hero__logo img {
        max-width: 250px;
    }
}

@media (min-width: 1024px) {
    .mosty-hero__logo img {
        max-width: 300px;
    }
}

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

.mosty-hero__logo-img {
    max-width: 250px;
    margin: 0 auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

@media (min-width: 768px) {
    .mosty-hero__logo-img {
        max-width: 350px;
    }
}

.mosty-hero__tagline {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mosty-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    min-height: 2em;
    font-family: 'Courier New', monospace;
}

@media (min-width: 768px) {
    .mosty-hero__tagline {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .mosty-hero__tagline {
        font-size: 3rem;
    }
}

.mosty-hero__tagline-text {
    opacity: 0;
}

.mosty-hero__cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* ===============================================
   Sections
   =============================================== */
.mosty-section {
    padding: var(--mosty-spacing-3xl) 0;
}

@media (max-width: 767px) {
    .mosty-section {
        padding: var(--mosty-spacing-2xl) 0;
    }
}

.mosty-section--light {
    background-color: var(--mosty-white);
}

.mosty-section--accent {
    background-color: var(--mosty-accent);
}

.mosty-section--dark {
    background-color: var(--mosty-primary);
}

.mosty-section--duo {
    background: linear-gradient(
        to bottom,
        var(--mosty-accent) 0%,
        var(--mosty-accent) 55%,
        var(--mosty-primary) 55%,
        var(--mosty-primary) 100%
    );
}

@media (min-width: 768px) {
    .mosty-section--duo {
        background: linear-gradient(
            to right,
            var(--mosty-accent) 0%,
            var(--mosty-accent) 50%,
            var(--mosty-primary) 50%,
            var(--mosty-primary) 100%
        );
    }
}

/* ===============================================
   Typography
   =============================================== */
.mosty-heading {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--mosty-spacing-md);
}

.mosty-heading--xl {
    font-size: 2rem;
}

@media (min-width: 768px) {
    .mosty-heading--xl {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .mosty-heading--xl {
        font-size: 3rem;
    }
}

.mosty-heading--lg {
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    .mosty-heading--lg {
        font-size: 2rem;
    }
}

.mosty-heading--md {
    font-size: 1.5rem;
}

@media (min-width: 768px) {
    .mosty-heading--md {
        font-size: 1.75rem;
    }
}

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

.mosty-heading--white {
    color: var(--mosty-white);
}

.mosty-text {
    margin-bottom: var(--mosty-spacing-md);
    color: var(--mosty-gray-700);
}

.mosty-text--lg {
    font-size: 1.125rem;
}

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

.mosty-text--white {
    color: var(--mosty-white);
}

.mosty-text--subtitle {
    font-size: 1.125rem;
    color: var(--mosty-gray-600);
}

.mosty-text--subtitle.mosty-text--white {
    color: var(--mosty-gray-200);
}

.mosty-text--emphasized {
    font-weight: 600;
    color: var(--mosty-primary);
}

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

/* ===============================================
   MOSTY Acronym
   =============================================== */
.mosty-acronym-spacer {
    margin-top: var(--mosty-spacing-2xl);
    padding-top: var(--mosty-spacing-xl);
    border-top: 2px solid var(--mosty-gray-200);
}

.mosty-acronym {
    display: flex;
    flex-direction: column;
    gap: var(--mosty-spacing-md);
    transition: transform 0.3s ease-in-out;
    transform-origin: center center;
}

@media (min-width: 768px) {
    .mosty-acronym {
        gap: var(--mosty-spacing-lg);
    }
}

.mosty-acronym__item {
    display: flex;
    align-items: center;
    gap: var(--mosty-spacing-xs);
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    .mosty-acronym__item {
        font-size: 1.5rem;
    }
}

.mosty-acronym__letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--mosty-accent);
    color: var(--mosty-white);
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: var(--mosty-radius-md);
    flex-shrink: 0;
    transition: background-color 0.3s ease-in-out;
}

@media (min-width: 768px) {
    .mosty-acronym__letter {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

.mosty-acronym__word {
    font-weight: 600;
    color: var(--mosty-gray-800);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
    display: inline-block;
    transform-origin: left center;
}

/* ===============================================
   Content & Cards
   =============================================== */
.mosty-content {
    max-width: 900px;
    margin: 0 auto;
}

.mosty-card {
    background-color: var(--mosty-white);
    padding: var(--mosty-spacing-sm);
    box-shadow: var(--mosty-shadow-md);
    transition: box-shadow var(--mosty-transition-base);
}

@media (min-width: 768px) {
    .mosty-card {
        padding: var(--mosty-spacing-xl);
    }
}

.mosty-card--rounded {
    border-radius: var(--mosty-radius-lg);
}

.mosty-card:hover {
    box-shadow: var(--mosty-shadow-lg);
}

/* ===============================================
   Team Carousel (Swiper)
   =============================================== */
.mosty-team-carousel {
    margin: var(--mosty-spacing-2xl) 0;
    padding: 0 var(--mosty-spacing-sm);
}

@media (min-width: 768px) {
    .mosty-team-carousel {
        padding: 0 var(--mosty-spacing-lg);
    }
}

.mostyTeamSwiper {
    padding-bottom: var(--mosty-spacing-2xl);
}

.mostyTeamSwiper .swiper-slide {
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1 !important;
}

.mostyTeamSwiper .swiper-slide.swiper-slide-active {
    opacity: 1;
    visibility: visible;
    z-index: 3 !important;
}

@media (min-width: 576px) {
    .mostyTeamSwiper .swiper-slide {
        width: 50%;
    }

    .mostyTeamSwiper .swiper-slide.swiper-slide-next {
        opacity: 1;
        visibility: visible;
        z-index: 2 !important;
    }
}

@media (min-width: 768px) {
    .mostyTeamSwiper .swiper-slide {
        width: 33.33333333%;
    }

    .mostyTeamSwiper .swiper-slide.swiper-slide-prev {
        opacity: 1;
        visibility: visible;
        z-index: 2 !important;
    }
}

.mosty-team-card {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform var(--mosty-transition-base),
                opacity var(--mosty-transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0.5; /* Neaktivní karty tlumené */
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

.swiper-slide-active .mosty-team-card {
    transform: scale(1.05);
    opacity: 1; /* Aktivní karta plně viditelná */
}

.mosty-team-card__image {
    width: 100%;
    height: 400px;
    min-height: 400px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: var(--mosty-radius-xl) var(--mosty-radius-xl) 0 0;
}

@media (min-width: 768px) {
    .mosty-team-card__image {
        height: 450px;
        min-height: 450px;
    }
}

.mosty-team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mosty-team-card__content {
    padding: var(--mosty-spacing-lg);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    background-color: var(--mosty-white);
    border-radius: 0 0 var(--mosty-radius-xl) var(--mosty-radius-xl);
    box-shadow: var(--mosty-shadow-lg);
}

.mosty-team-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mosty-primary);
    margin-bottom: var(--mosty-spacing-sm);
    line-height: 1.3;
}

.mosty-team-card__age,
.mosty-team-card__location {
    font-size: 0.875rem;
    color: var(--mosty-gray-600);
    margin-bottom: var(--mosty-spacing-xs);
    /* Každé na jednom řádku */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Popis člena - max 2 řádky s ellipsis */
.mosty-team-card__description {
    font-size: 0.9375rem;
    color: var(--mosty-gray-700);
    line-height: 1.4;
    min-height: 2.8em; /* 2 řádky × 1.4 line-height */
    max-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Zrušení placeholder opacity (už se používá globální opacity) */
.mosty-team-card--placeholder .mosty-team-card__name {
    color: var(--mosty-gray-500);
}

/* Swiper Navigation */
.mostyTeamSwiper .swiper-button-next,
.mostyTeamSwiper .swiper-button-prev {
    color: var(--mosty-white);
    background-color: rgba(18, 35, 115, 0.8);
    width: 50px;
    height: 50px;
    border-radius: var(--mosty-radius-full);
    transition: all var(--mosty-transition-base);
}

.mostyTeamSwiper .swiper-button-next::after,
.mostyTeamSwiper .swiper-button-prev::after {
    font-size: 1.25rem;
}

.mostyTeamSwiper .swiper-button-next:hover,
.mostyTeamSwiper .swiper-button-prev:hover {
    background-color: var(--mosty-accent);
}

/* Swiper Pagination */
.mostyTeamSwiper .swiper-pagination-bullet {
    background-color: var(--mosty-white);
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.mostyTeamSwiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--mosty-white);
}

/* ===============================================
   CTA
   =============================================== */
.mosty-cta-wrapper {
    text-align: center;
    margin-top: var(--mosty-spacing-xl);
}

/* ===============================================
   Buttons
   =============================================== */
.mosty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--mosty-spacing-xs);
    padding: var(--mosty-spacing-sm) var(--mosty-spacing-lg);
    font-weight: 600;
    border-radius: var(--mosty-radius-full);
    transition: all var(--mosty-transition-base);
    cursor: pointer;
    text-align: center;
}

.mosty-btn--small {
    padding: var(--mosty-spacing-xs) var(--mosty-spacing-md);
    font-size: 0.875rem;
}

.mosty-btn--large {
    padding: var(--mosty-spacing-md) var(--mosty-spacing-xl);
    font-size: 1.125rem;
}

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

.mosty-btn--primary:hover {
    background-color: #0d1a5a;
    transform: translateY(-2px);
    box-shadow: var(--mosty-shadow-lg);
}

.mosty-btn--outline-white {
    background-color: transparent;
    color: var(--mosty-white);
    border: 2px solid var(--mosty-white);
}

.mosty-btn--outline-white:hover:not(:disabled) {
    background-color: var(--mosty-white);
    color: var(--mosty-primary);
    transform: translateY(-2px);
}

.mosty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mosty-btn__info {
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.8;
}

/* ===============================================
   News Cards
   =============================================== */
.mosty-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mosty-spacing-xl);
    margin-top: var(--mosty-spacing-2xl);
}

@media (min-width: 768px) {
    .mosty-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .mosty-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mosty-news-card {
    background-color: var(--mosty-white);
    border-radius: var(--mosty-radius-xl);
    overflow: hidden;
    box-shadow: var(--mosty-shadow-md);
    transition: transform var(--mosty-transition-base), box-shadow var(--mosty-transition-base);
    display: flex;
    flex-direction: column;
}

.mosty-news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--mosty-shadow-xl);
}

.mosty-news-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.mosty-news-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--mosty-transition-slow);
}

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

.mosty-news-card__date {
    position: absolute;
    top: var(--mosty-spacing-sm);
    right: var(--mosty-spacing-sm);
    background-color: var(--mosty-accent);
    color: var(--mosty-white);
    padding: var(--mosty-spacing-xs) var(--mosty-spacing-sm);
    border-radius: var(--mosty-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.mosty-news-card__content {
    padding: var(--mosty-spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mosty-news-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mosty-primary);
    margin-bottom: var(--mosty-spacing-sm);
    line-height: 1.3;
}

.mosty-news-card__perex {
    color: var(--mosty-gray-700);
    margin-bottom: var(--mosty-spacing-md);
    flex: 1;
    line-height: 1.6;
}

/* ===============================================
   Social Media
   =============================================== */
.mosty-social {
    text-align: center;
    margin-bottom: var(--mosty-spacing-2xl);
}

.mosty-social__icons {
    display: flex;
    gap: var(--mosty-spacing-lg);
    justify-content: center;
    margin-top: var(--mosty-spacing-lg);
}

.mosty-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--mosty-radius-full);
    color: var(--mosty-white);
    transition: all var(--mosty-transition-base);
}

.mosty-social__link:hover {
    background-color: var(--mosty-white);
    color: var(--mosty-primary);
    transform: translateY(-5px);
}

/* ===============================================
   Contacts Grid with Gradient Background
   =============================================== */
.mosty-contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: var(--mosty-spacing-2xl);
    position: relative;
}

@media (min-width: 768px) {
    .mosty-contacts-grid {
        grid-template-columns: 1fr 1fr;
        background: linear-gradient(
            to right,
            var(--mosty-accent) 0%,
            var(--mosty-accent) 50%,
            var(--mosty-primary) 50%,
            var(--mosty-primary) 100%
        );
    }
}

/* ===============================================
   Contact Card with Image Gradient
   =============================================== */
.mosty-contact-card {
    position: relative;
    overflow: hidden;
}

/* Mobile background colors */
.mosty-contact-card--red {
    background-color: var(--mosty-accent);
}

.mosty-contact-card--blue {
    background-color: var(--mosty-primary);
}

/* Desktop - gradient handled by parent grid */
@media (min-width: 768px) {
    .mosty-contact-card--red,
    .mosty-contact-card--blue {
        background-color: transparent;
    }
}

.mosty-contact-card__image-wrapper {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.mosty-contact-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Gradient overlays - different colors for each card */
.mosty-contact-card--red .mosty-contact-card__gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        to bottom,
        rgba(227, 0, 27, 0) 0%,
        rgba(227, 0, 27, 0.3) 30%,
        rgba(227, 0, 27, 0.7) 60%,
        rgba(227, 0, 27, 1) 100%
    );
    pointer-events: none;
}

.mosty-contact-card--blue .mosty-contact-card__gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        to bottom,
        rgba(18, 35, 115, 0) 0%,
        rgba(18, 35, 115, 0.3) 30%,
        rgba(18, 35, 115, 0.7) 60%,
        rgba(18, 35, 115, 1) 100%
    );
    pointer-events: none;
}

.mosty-contact-card__content {
    position: relative;
    z-index: 2;
    padding: var(--mosty-spacing-xs);
    color: var(--mosty-white);
}

@media (min-width: 576px) {
    .mosty-contact-card__content {
        padding: var(--mosty-spacing-md);
    }
}

@media (min-width: 768px) {
    .mosty-contact-card__content {
        padding: var(--mosty-spacing-xl);
    }
}

.mosty-contact-card__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--mosty-spacing-lg);
    color: var(--mosty-white);
}

.mosty-contact-card__items {
    display: flex;
    flex-direction: column;
    gap: var(--mosty-spacing-md);
}

/* Social links in vertical column */
.mosty-contact-card__items--social {
    flex-direction: column;
}

.mosty-contact-card__item {
    display: inline-flex;
    align-items: center;
    gap: var(--mosty-spacing-sm);
    padding: var(--mosty-spacing-md) var(--mosty-spacing-lg);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--mosty-radius-lg);
    color: var(--mosty-white);
    text-decoration: none;
    transition: all var(--mosty-transition-base);
}

.mosty-contact-card__item:hover {
    background-color: var(--mosty-white);
    transform: translateY(-3px);
}

/* Red card (Kutinová) - hover to red */
.mosty-contact-card--red .mosty-contact-card__item:hover {
    color: var(--mosty-accent);
}

.mosty-contact-card--red .mosty-contact-card__item:hover .mosty-contact-card__icon {
    color: var(--mosty-accent);
}

/* Blue card (Klement) - hover to blue */
.mosty-contact-card--blue .mosty-contact-card__item:hover {
    color: var(--mosty-primary);
}

.mosty-contact-card--blue .mosty-contact-card__item:hover .mosty-contact-card__icon {
    color: var(--mosty-primary);
}

.mosty-contact-card__icon {
    width: 28px;
    height: 28px;
    color: var(--mosty-white);
    flex-shrink: 0;
    transition: color var(--mosty-transition-base);
}

.mosty-contact-card__link {
    color: inherit;
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
}

.mosty-contact-card__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--mosty-radius-full);
    color: var(--mosty-white);
    transition: all var(--mosty-transition-base);
}

.mosty-contact-card__social-link:hover {
    background-color: var(--mosty-white);
    transform: translateY(-5px);
}

/* Red card social links hover to red */
.mosty-contact-card--red .mosty-contact-card__social-link:hover {
    color: var(--mosty-accent);
}

/* Blue card social links hover to blue */
.mosty-contact-card--blue .mosty-contact-card__social-link:hover {
    color: var(--mosty-primary);
}

/* ===============================================
   Footer
   =============================================== */
.mosty-footer {
    background-color: var(--mosty-white);
    padding: var(--mosty-spacing-xl) 0;
    border-top: 3px solid transparent;
}

.mosty-footer--blue {
    border-top-color: var(--mosty-primary);
}

.mosty-footer--red {
    border-top-color: var(--mosty-accent);
}

.mosty-footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--mosty-spacing-md);
    text-align: center;
}

@media (min-width: 768px) {
    .mosty-footer__content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.mosty-footer__logo {
    width: auto;
    height: auto;
    max-width: 92px;
}

.mosty-footer__logo img {
    width: auto;
    height: auto;
    max-width: 92px;
}

.mosty-footer__text {
    color: var(--mosty-gray-600);
    font-size: 0.875rem;
}

.mosty-footer__motto {
    margin-top: var(--mosty-spacing-xs);
    color: var(--mosty-gray-700);
}

/* ===============================================
   Utility Classes
   =============================================== */
.mosty-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===============================================
   Scroll Animations
   =============================================== */
.mosty-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.mosty-fade-in.mosty-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================================
   Person Detail Page
   =============================================== */

/* Hero Person Info (instead of tagline) */
.mosty-hero__person-info {
    text-align: center;
    color: var(--mosty-white);
}

.mosty-hero__person-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--mosty-spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUp 1s ease-in-out 1.5s forwards;
}

@media (min-width: 768px) {
    .mosty-hero__person-name {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .mosty-hero__person-name {
        font-size: 3rem;
    }
}

.mosty-hero__person-role {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--mosty-spacing-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUp 1s ease-in-out 2.2s forwards;
}

@media (min-width: 768px) {
    .mosty-hero__person-role {
        font-size: 1.25rem;
    }
}

.mosty-hero__person-detail {
    font-size: 0.9375rem;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUp 1s ease-in-out 2.9s forwards;
}

@media (min-width: 768px) {
    .mosty-hero__person-detail {
        font-size: 1rem;
    }
}

/* Person Content Layout */
.mosty-section--person {
    background-color: var(--mosty-white);
}

.mosty-person-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mosty-spacing-2xl);
    align-items: start;
}

@media (min-width: 1024px) {
    .mosty-person-layout {
        grid-template-columns: 1fr 400px;
        gap: var(--mosty-spacing-3xl);
    }
}

.mosty-person-layout__content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--mosty-gray-800);
}

.mosty-person-layout__content p {
    margin-bottom: var(--mosty-spacing-lg);
}

.mosty-person-layout__content p:last-child {
    margin-bottom: 0;
}

.mosty-person-layout__image {
    order: -1;
}

@media (min-width: 1024px) {
    .mosty-person-layout__image {
        order: 0;
        position: sticky;
        top: calc(70px + var(--mosty-spacing-lg));
    }
}

.mosty-person-layout__image img {
    width: 100%;
    height: auto;
    border-radius: var(--mosty-radius-xl);
    box-shadow: var(--mosty-shadow-lg);
}

/* ===============================================
   Footer Extended (for detail pages)
   =============================================== */
.mosty-footer--extended {
    background-color: var(--mosty-gray-50);
    border-top: 3px solid var(--mosty-primary);
    padding: var(--mosty-spacing-2xl) 0 var(--mosty-spacing-lg);
}

.mosty-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mosty-spacing-xl);
    margin-bottom: var(--mosty-spacing-xl);
}

@media (min-width: 768px) {
    .mosty-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--mosty-spacing-2xl);
    }
}

@media (min-width: 1024px) {
    .mosty-footer__grid {
        grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    }
}

.mosty-footer__column {
    display: flex;
    flex-direction: column;
}

.mosty-footer__column--spacer {
    display: none;
}

@media (min-width: 1024px) {
    .mosty-footer__column--spacer {
        display: block;
    }
}

.mosty-footer__motto {
    color: var(--mosty-gray-600);
    font-size: 0.9375rem;
    font-style: italic;
}

.mosty-footer__heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mosty-primary);
    margin-bottom: var(--mosty-spacing-md);
}

.mosty-footer__contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--mosty-spacing-sm);
}

.mosty-footer__link {
    display: inline-flex;
    align-items: center;
    gap: var(--mosty-spacing-xs);
    color: var(--mosty-primary);
    text-decoration: none;
    transition: all var(--mosty-transition-base);
    padding: var(--mosty-spacing-xs) 0;
}

.mosty-footer__link:hover {
    color: var(--mosty-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mosty-footer__link i {
    font-size: 1.125rem;
}

.mosty-footer__social-icons {
    display: flex;
    gap: var(--mosty-spacing-md);
    flex-wrap: wrap;
}

.mosty-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--mosty-primary);
    border-radius: var(--mosty-radius-full);
    color: var(--mosty-white);
    text-decoration: none;
    transition: all var(--mosty-transition-base);
}

.mosty-footer__social-link:hover {
    background-color: var(--mosty-accent);
    transform: translateY(-3px);
    box-shadow: var(--mosty-shadow-md);
}

.mosty-footer__social-link i {
    font-size: 1.25rem;
}

.mosty-footer__bottom {
    text-align: center;
    padding-top: var(--mosty-spacing-lg);
    border-top: 1px solid var(--mosty-gray-300);
}

.mosty-footer__bottom p {
    color: var(--mosty-gray-600);
    font-size: 0.875rem;
    margin: 0;
}

/* ===============================================
   Back to Top Button
   =============================================== */
.mosty-back-to-top {
    position: fixed;
    bottom: var(--mosty-spacing-lg);
    right: var(--mosty-spacing-lg);
    width: 50px;
    height: 50px;
    background-color: var(--mosty-accent);
    color: var(--mosty-white);
    border: none;
    border-radius: var(--mosty-radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--mosty-shadow-lg);
    transition: all var(--mosty-transition-base);
    opacity: 0;
    visibility: hidden;
    z-index: var(--mosty-z-sticky);
}

.mosty-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.mosty-back-to-top:hover {
    background-color: var(--mosty-primary);
    transform: translateY(-5px);
}
