@font-face {
    font-family: 'Proba Pro';
    src: url('../Fonty/Proba Pro/ProbaPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proba Pro';
    src: url('../Fonty/Proba Pro/ProbaPro-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proba Pro';
    src: url('../Fonty/Proba Pro/ProbaPro-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Proba Pro';
    src: url('../Fonty/Proba Pro/ProbaPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #01a1db;
    --primary-dark: #01739d;
    --conversion-color: #ffea6c;
    --bg-white: #ffffff;
    --text-color: #333333;
    --gray-light: #d9f1fa;
    --border-radius: 16px;
    --spacing-unit: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Base resets */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -moz-hyphens: none !important;
    -ms-hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    font-family: 'Proba Pro', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 {
    font-size: clamp(1.8rem, 8vw, 4.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
}

h3 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
}

p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    max-width: 70ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--conversion-color);
    color: #000;
}

.btn-primary:hover {
    background-color: #f7d930;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline-darkblue {
    background-color: transparent;
    border: 2px solid currentColor;
    color: var(--primary-dark);
}

.btn-outline-darkblue:hover {
    background-color: var(--primary-dark);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition);
    color: #fff;
}

header.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
    color: var(--text-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-text {
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
    color: inherit;
    /* Initially inherits from header (white) */
}

/* Ensure text matches logo color on scroll (Blue) */
.header-scrolled .logo-text {
    color: var(--primary-color);
}

.logo img {
    height: 70px;
    transition: var(--transition);
}

.header-scrolled .logo img {
    height: 50px;
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.4rem;
    }

    .logo img {
        height: 50px;
    }
}



nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    transition: var(--transition);
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--conversion-color);
}

.header-scrolled .nav-links a:hover {
    color: var(--primary-color);
}

/* Nav CTA Button */
.nav-links .nav-cta {
    background-color: var(--conversion-color);
    color: #000 !important;
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.nav-links .nav-cta:hover {
    background-color: #f7d930;
    transform: translateY(-2px);
}

.header-scrolled .nav-links .nav-cta {
    background-color: var(--conversion-color);
    color: #000 !important;
}

.header-scrolled .nav-links .nav-cta:hover {
    background-color: #f7d930;
}

.mobile-phone-icon {
    display: none;
    font-size: 1.2rem;
    color: #000 !important;
    background-color: var(--conversion-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: var(--transition);
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1001;
}

.mobile-phone-icon:hover {
    transform: translateY(-2px);
    background-color: #f7d930;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 32px;
    height: 3px;
    background-color: #fff;
    transition: var(--transition);
    border-radius: 3px;
}

.header-scrolled .mobile-menu-toggle span {
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(to right top, #01739d, #01a1db);
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 100px;
    color: #fff;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    padding-top: 110px;
    padding-bottom: 50px;
}

.hero-title {
    margin-bottom: 2rem;
    font-weight: 800;
}

.hero-title span.highlight {
    color: var(--conversion-color);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    position: absolute;
    bottom: 0;
    right: 5%;
    width: 40%;
    height: 90%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(40px 10px 60px rgba(0, 0, 0, 0.25));
}

/* Quote Section Modern */
.quote-modern {
    background-color: var(--bg-white);
    padding: 100px 0;
}

.quote-header {
    margin-bottom: 2.7rem; /* Reduced by 1/3 from 4rem */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.quote-headline {
    color: var(--text-color);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center !important;
}

.quote-subheadline {
    color: var(--primary-dark);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 500;
    opacity: 0.9;
}

.quote-content-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.quote-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 60%;
    max-width: 800px;
    background: #d9f1fa;
    position: relative;
    z-index: 2;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(1, 161, 219, 0.1);
}

.quote-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.quote-emoji {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-text {
    font-size: 1.25rem;
    color: var(--text-color);
    line-height: 1.4;
    font-weight: 400;
}

@media (max-width: 1150px) {
    .quote-content {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .quote-modern {
        padding: 80px 0;
    }

    .quote-item {
        align-items: flex-start;
        gap: 1rem;
    }

    .quote-emoji {
        margin-top: 4px; /* Align with first line of text */
    }

    .quote-content {
        width: 100%;
        padding: 2rem;
    }

    .quote-text {
        font-size: 1.1rem;
    }

    .dot {
        width: 14px;
        height: 14px;
    }
}


/* General Sections */
section {
    padding: 100px 0;
    position: relative;
    overflow-x: clip; /* Prevent horizontal overflow */
    overflow-y: visible; /* Allow decorative elements to overflow vertically */
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}




.section-subtitle {
    text-align: center;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 2.7rem; /* Reduced by 1/3 from 4rem */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.watermark {
    position: absolute;
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
    transition: var(--transition);
}

.watermark-1 {
    top: 5%;
    right: -5%;
    width: clamp(200px, 20vw, 600px);
    transform: rotate(-15deg);
}

.watermark-2 {
    bottom: -5%;
    right: -8%;
    width: clamp(250px, 25vw, 750px);
    transform: rotate(15deg);
}

.watermark-3 {
    bottom: 5%;
    left: -5%;
    width: clamp(220px, 22vw, 700px);
}

@media (max-width: 1150px) {
    .watermark-1, .watermark-2, .watermark-3 {
        width: 250px;
        opacity: 0.08;
    }
}

@media (max-width: 768px) {
    .watermark-1, .watermark-2, .watermark-3 {
        width: 150px;
        opacity: 0.05;
    }
}

.diagonal-watermark-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 0;
    pointer-events: none;
    clip-path: inset(0 -100% -100% -100%);
}

.diagonal-watermark {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background-image: url("../Obrazky/lv_logo_vector_modra.svg");
    background-size: clamp(100px, 7vw, 160px);
    background-repeat: repeat;
    opacity: 0.18;
    transform: rotate(-15deg);
    -webkit-mask-image: linear-gradient(225deg, black 0%, transparent 50%);
    mask-image: linear-gradient(225deg, black 0%, transparent 50%);
    transition: var(--transition);
}

@media (max-width: 1200px) {
    .diagonal-watermark {
        width: 300% !important;
        height: 300% !important;
        top: -100% !important;
        right: -100% !important;
        left: auto !important;
        bottom: auto !important;
        transform-origin: 66.66% 33.33% !important;
        background-position: 66.66% 33.33% !important;
        background-size: 110px !important;
        -webkit-mask-image: linear-gradient(210deg, black 30%, transparent 50%) !important;
        mask-image: linear-gradient(210deg, black 30%, transparent 50%) !important;
    }
}

/* Bottom-left variation */
.diagonal-watermark-container.bottom-left {
    clip-path: inset(-100% -100% 0 -100%);
}
.diagonal-watermark-container.bottom-left .diagonal-watermark {
    top: auto;
    right: auto;
    bottom: -50%;
    left: -50%;
    -webkit-mask-image: linear-gradient(45deg, black 0%, transparent 50%);
    mask-image: linear-gradient(45deg, black 0%, transparent 50%);
}

@media (max-width: 1200px) {
    .diagonal-watermark-container.bottom-left .diagonal-watermark {
        width: 300% !important;
        height: 300% !important;
        top: auto !important;
        left: -100% !important;
        right: auto !important;
        bottom: -100% !important;
        transform-origin: 33.33% 66.66% !important;
        background-position: 33.33% 66.66% !important;
        -webkit-mask-image: linear-gradient(30deg, black 20%, transparent 40%) !important;
        mask-image: linear-gradient(30deg, black 20%, transparent 40%) !important;
    }
}

/* Cooperation Section */
#spoluprace {
    background: linear-gradient(to bottom, #fff, #f8fdff);
    position: relative;
}

.cooperation-intro {
    text-align: center;
    margin-bottom: 0;
}

.cooperation-intro h2 {
    margin-bottom: 1rem;
}

.cooperation-intro .section-subtitle {
    margin-bottom: 2.7rem; /* Reduced by 1/3 from 4rem */
}

.cooperation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid rgba(1, 161, 219, 0.08);
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.card-featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(180deg, #fff 0%, #f0faff 100%);
    box-shadow: 0 15px 45px rgba(1, 161, 219, 0.15);
}

.card-featured::before {
    content: 'NEJVÍCE ŽÁDANÉ';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--conversion-color);
    color: #000;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 234, 108, 0.3);
    animation: badge-pulse 3s infinite ease-in-out;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    margin-bottom: 2rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    transition: var(--transition);
    flex-shrink: 0;
}

.card:hover .card-icon {
    transform: translateY(-5px) rotate(5deg);
}

.card h3 {
    margin-bottom: 0;
    color: var(--primary-dark);
    font-size: 1.5rem;
    line-height: 1.2;
}

.card p {
    font-size: 1rem;
    margin-bottom: 1rem;
    min-height: 2.5rem;
    text-align: left;
}

.card ul {
    text-align: left;
    margin-bottom: 1.2rem;
    padding: 0;
    list-style: none;
    flex-grow: 1;
}

.card ul li {
    margin-bottom: 0.3rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--text-color);
}

.card ul li::before {
    content: '\F272';
    /* Bootstrap icons check-circle-fill */
    font-family: 'bootstrap-icons';
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.card-price {
    margin-top: auto;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card .btn {
    width: 100%;
}

@media (max-width: 1150px) {
    .cooperation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .cooperation-grid {
        grid-template-columns: 1fr;
    }

    .card-featured {
        transform: none;
    }
}

/* Corporate Training Full Box */
.cooperation-full-box {
    margin-top: 4rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 3.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(1, 161, 219, 0.08);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.cooperation-full-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.cooperation-full-box:hover .card-icon {
    transform: translateY(-5px) rotate(5deg);
}

.full-box-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 2rem;
}

.full-box-header .card-icon {
    width: 64px;
    height: 64px;
}

.full-box-header h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    font-size: 2rem;
}

.full-box-subtitle {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 0;
    text-align: left;
}

.full-box-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.full-box-info p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.full-box-questions {
    margin-bottom: 2rem;
    list-style: none;
    padding-left: 0;
}

.full-box-questions li {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.full-box-questions li::before {
    content: '\F272'; /* check-circle-fill — stejná jako jiné karty */
    font-family: 'bootstrap-icons';
    color: var(--conversion-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.full-box-pricing {
    background: var(--gray-light);
    padding: 2.5rem;
    border-radius: calc(var(--border-radius) / 2);
    display: flex;
    flex-direction: column;
}

.full-box-pricing ul {
    margin-bottom: 2rem;
}

.full-box-pricing ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Ceník – tři fáze: čtvrtkruh, půlkruh, tři půlkruhy */
.full-box-pricing ul li::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.full-box-pricing ul li:nth-child(1)::before {
    background: conic-gradient(var(--primary-color) 0deg 90deg, rgba(1,161,219,0.15) 90deg 360deg);
}

.full-box-pricing ul li:nth-child(2)::before {
    background: conic-gradient(var(--primary-color) 0deg 180deg, rgba(1,161,219,0.15) 180deg 360deg);
}

.full-box-pricing ul li:nth-child(3)::before {
    /* tři půlkruhy vedle sebe */
    width: 62px;
    height: 18px;
    border-radius: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='rgba(1%2C161%2C219%2C0.15)'/%3E%3Cpath d='M9 0 A9 9 0 0 1 9 18 L9 9 Z' fill='%2301a1db'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='rgba(1%2C161%2C219%2C0.15)'/%3E%3Cpath d='M9 0 A9 9 0 0 1 9 18 L9 9 Z' fill='%2301a1db'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='rgba(1%2C161%2C219%2C0.15)'/%3E%3Cpath d='M9 0 A9 9 0 0 1 9 18 L9 9 Z' fill='%2301a1db'/%3E%3C/svg%3E");
    background-size: 18px 18px;
    background-position: 0 0, 22px 0, 44px 0;
    background-repeat: no-repeat;
    background-color: transparent;
    margin-top: 3px;
    margin-right: 14px;
}

.full-box-pricing .card-price {
    margin-top: 0;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.full-box-pricing .btn {
    width: 100%;
}

@media (max-width: 1150px) {
    .full-box-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }
    
    .cooperation-full-box {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .full-box-header {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 1.2rem 1rem;
        text-align: left;
        align-items: center;
        padding-bottom: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .full-box-header .header-text {
        display: contents;
    }
    
    .full-box-header h3 {
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 0;
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .full-box-header .card-icon {
        grid-column: 1;
        grid-row: 1;
        width: 48px;
        height: 48px;
        margin: 0;
    }
    
    .full-box-subtitle {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: left;
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .full-box-pricing {
        padding: 1rem;
    }
    .full-box-pricing ul li {
        flex-wrap: wrap;
        justify-content: flex-start;
        column-gap: 0.8rem;
        row-gap: 0.2rem;
    }
    .full-box-pricing ul li span:nth-of-type(1) {
        flex: 1;
        min-width: 120px;
    }
    .full-box-pricing ul li span:nth-of-type(2) {
        margin-left: auto;
        font-weight: 700;
        color: var(--primary-dark);
    }
    .full-box-pricing ul li:nth-child(3)::before {
        width: 54px; /* Slightly smaller on mobile to save space */
        background-position: 0 0, 18px 0, 36px 0;
        margin-right: 8px;
    }
}

.full-box-note {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 1.5rem;
    text-align: center;
    width: 100%;
}

@media (max-width: 1150px) {
    .full-box-note {
        margin-top: 1.2rem;
    }
}

/* Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 1;
}

/* Wavy line in background */
.steps-grid::after {
    content: '';
    position: absolute;
    top: 30px;
    left: -10%;
    right: -10%;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0%2C50 C100%2C100 200%2C0 300%2C50 C400%2C100 500%2C0 600%2C50 C700%2C100 800%2C0 900%2C50 L980%2C50' stroke='%2301a1db' stroke-width='2' fill='none' stroke-dasharray='10 10' /%3E%3Cpath d='M980%2C50 L970%2C45 L970%2C55 Z' fill='%2301a1db' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
    opacity: 0.3;
}

.step-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    /* Controlled by JS */
    will-change: opacity, transform;
}

.step-info {
    position: relative;
    margin-bottom: 1.5rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.step-icon {
    width: 105px;
    height: 105px;
    background: #fff;
    padding: 12px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.step-card:hover .step-icon {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-count {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff9d6;
    color: #000;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: center;
}

.step-card p {
    font-size: 1rem;
    text-align: center; /* Changed from left */
    width: 100%;
}

@media (max-width: 1150px) {
    .steps-grid::after {
        display: block;
        top: 52px;
        bottom: 52px;
        left: 0;
        right: 0;
        height: auto;
        opacity: 0.15;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M 25,12 L 75,12 L 25,88 L 75,88' fill='none' stroke='%2301a1db' stroke-width='0.4' stroke-dasharray='2, 3' stroke-linecap='round' /%3E%3Cpath d='M 75,88 L 71,86 L 71,90 Z' fill='%2301a1db' /%3E%3C/svg%3E");
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }
}

/* Who I am — Enhanced */
.about-section {
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* Lead paragraph stronger */
.about-lead {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Closing paragraph */
.about-closing {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 0.5rem;
}

/* Stat blocks — clean cards like cooperation section */
.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.about-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 2.2rem;
    border-radius: var(--border-radius);
    background: var(--bg-white);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    flex: 1;
}

.about-stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.about-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.about-stat-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    margin-top: 0.4rem;
}

/* CTA button */
.about-cta {
    margin-top: 0.5rem;
}

/* Image with aligned design */
.about-image {
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--border-radius);
}

.about-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}

/* Responsive about */
@media (max-width: 1200px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .about-content h2 {
        text-align: left;
    }

    .about-image {
        order: -1;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .about-stat {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }
}

/* Media Section */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.media-item {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumb::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: var(--conversion-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5.14v14l11-7-11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(50% + 2px) 50%; /* Optical centering for triangle */
    background-size: 32px;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 2;
    cursor: pointer;
}

.media-item:hover .video-thumb::after {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 234, 108, 0.4);
}

.video-thumb {
    cursor: pointer;
}

.media-content {
    padding: 2rem;
    background-color: #fff;
}

.media-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Specific fix for reference section layering */
#reference .container {
    position: relative;
    z-index: 1;
}

/* Testimonials Slider */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: -50px -1rem 0;
    z-index: 2;
    /* Ensure it is above the watermark */
}

.slider-container {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    padding: 50px 0 80px;
    /* Sufficient top padding to prevent clipping of scaled cards while reducing visual gap */
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2.5rem;
}

.testimonial-card {
    background: #fff;
    padding: 3.5rem 2.5rem;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    flex: 0 0 calc(33.333% - 1.67rem);
    /* 3 cards on desktop minus gap */
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.02);
    /* Transition for scaling down should be instant or fast */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

    .testimonial-card {
        cursor: pointer;
    }

@media (min-width: 1025px) {
    .slider-wrapper {
        margin-top: 0;
    }

    .testimonial-card.active-card {
        transform: scale(1.15) !important;
        z-index: 5;
        border-radius: 20px !important;
        /* Ensure visibly rounded corners */
        transition: transform 0.6s ease 1s, box-shadow 0.6s ease 1s, border-color 0.6s ease 1s;
        /* Delay scaling until after scroll */
    }

    /* Counter-scale content in active card to keep visual size constant */
    .testimonial-card.active-card img {
        width: 87px !important;
        height: 87px !important;
    }

    .testimonial-card.active-card h4 {
        font-size: 1.17rem !important;
    }

    .testimonial-card.active-card .testimonial-role {
        font-size: 0.82rem !important;
    }

    .testimonial-card.active-card .testimonial-text,
    .testimonial-card.active-card .full-text {
        font-size: 0.96rem !important;
    }

    .testimonial-card.active-card .expand-btn {
        font-size: 1.05rem !important;
    }
}

.testimonial-card:hover {
    transform: none;
}

.testimonial-card h3,
.testimonial-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.testimonial-role {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
}

.watermark-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 1600px;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.slider-arrow {
    background: var(--bg-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
    z-index: 20;
    flex-shrink: 0;
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

/* Increase hit area for touch devices */
@media (max-width: 1150px) {
    .slider-arrow::after {
        content: '';
        position: absolute;
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }
}

.testimonial-text {
    font-style: normal;
    font-size: 1rem;
    margin-bottom: 0;
    /* Changed to allow expand-btn to be close */
    line-height: 1.6;
    text-align: left;
    width: 100%;
}

.full-text {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    font-size: 1rem;
    /* Match standard body text size */
    color: var(--text-color);
    text-align: left;
    margin-top: 0;
}

.full-text p {
    margin-bottom: 1rem;
    font-size: inherit;
}

.full-text.active {
    max-height: 1000px;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid #eee;
}

.expand-btn {
    cursor: pointer;
    color: var(--conversion-color);
    font-size: 1.2rem;
    transition: var(--transition);
    display: inline-flex;
    vertical-align: middle;
    margin-left: 8px;
    background: transparent;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
    /* Nudge down for better optical centering */
}

.expand-btn:hover {
    background: #fff9d6;
    color: #000;
    transform: scale(1.1);
}

.expand-btn.active {
    transform: rotate(90deg);
}

.expand-btn.active:hover {
    transform: scale(1.1) rotate(90deg);
    background: #fff9d6;
    color: #000;
}

@media (max-width: 1150px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 1.25rem);
    }
}

@media (max-width: 768px) {
    .slider-wrapper {
        margin: 0; /* Align with standard container width */
        position: relative;
        display: block;
    }

    .slider-container {
        margin: 0;
        padding: 40px 0 60px;
    }

    .testimonial-card {
        flex: 0 0 100%;
        padding: 2.5rem 1.8rem;
        border: 1px solid rgba(1, 161, 219, 0.1);
    }

    .slider-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* 50% overlap of a 44px wide arrow on the box edge */
    /* Better positioning on mobile to avoid screen edges */
    .slider-arrow.prev {
        left: -10px;
    }

    .slider-arrow.next {
        right: -10px;
    }
}

.reference-buttons {
    text-align: center;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Events Section — Horizontal Rows */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Fade-in animation */
@keyframes eventRowFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-row {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    animation: eventRowFadeIn 0.6s ease backwards;
}

.event-row:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

/* Image */
.event-row-image {
    flex-shrink: 0;
    width: 140px;
    aspect-ratio: 4 / 3;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-light);
}

.event-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Placeholder when no image */
.event-row-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-light) 0%, #b8e4f5 100%);
    color: var(--primary-color);
    font-size: 2.2rem;
}

/* Body / text */
.event-row-body {
    flex: 1;
    min-width: 0;
}

.event-row-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.event-row-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.event-row-date {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.event-row-place {
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.event-row-online {
    background-color: #fff9d6;
    color: var(--text-color);
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.event-row-desc {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA button column */
.event-row-action {
    flex-shrink: 0;
}

.event-row-action .btn {
    white-space: nowrap;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Responsive — stack vertically on small screens */
@media (max-width: 768px) {
    .event-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        padding: 1.5rem;
    }

    .event-row-image {
        width: 100%;
        height: 180px;
    }

    .event-row-action {
        width: 100%;
    }

    .event-row-action .btn {
        width: 100%;
    }
}

/* Refined Footer & Contact Layout (Clean Grid, No Table Look) */
.footer-section {
    padding: 100px 0 0;
    position: relative;
}

/* Halved Box Footer Layout */
.footer-halved-box {
    display: flex;
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin: 0 auto 2rem;
    max-width: 1400px;
}

.footer-legal-inline {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    padding: 0.2rem 0;
    margin-top: -1.5rem;
    margin-bottom: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

.footer-legal-inline .legal-links-list {
    display: flex;
    gap: 2rem;
}

.footer-legal-inline .legal-links-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-legal-inline .legal-links-list a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-legal-inline .mandatory-data {
    opacity: 0.8;
}

@media (max-width: 1100px) {
    .footer-legal-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0;
    }
}

.footer-left-half {
    flex: 1.5;
    padding: 5rem 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    background-color: var(--primary-color);
    color: #fff;
}

.footer-right-half {
    flex: 1;
    padding: 5rem;
    background-color: var(--gray-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1400px) {
    .footer-left-half {
        padding: 4rem 2rem;
        gap: 2rem;
    }
    .footer-right-half {
        padding: 4rem 2rem;
    }
}


.footer-social-info h2 {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    margin-bottom: 2rem;
    line-height: 1.1;
    color: #fff;
}

.footer-social-info h2.small-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.footer-highlight {
    font-weight: 700 !important;
    color: var(--text-color) !important;
    font-size: clamp(1.1rem, 3vw, 1.5rem) !important; /* Reduced from 1.8rem */
    margin-bottom: 0.8rem !important;
    line-height: 1.3 !important;
}

.contact-passage .contact-link {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: clamp(0.9rem, 5vw, 1.6rem); /* Reduced from 2.2rem */
    text-decoration: none;
    margin-bottom: 1.2rem;
    display: block;
    width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    transition: var(--transition);
}

.contact-passage .contact-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

@media (max-width: 1100px) {
    .footer-halved-box {
        flex-direction: column;
        border-radius: 30px;
    }

    .footer-left-half {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 4rem 3rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-right-half {
        padding: 4rem 3rem;
    }

    .footer-social-info h2 {
        text-align: left;
    }

    .linkedin-link-combined {
        margin: 0;
    }
}

/* LinkedIn Styling */
.linkedin-link-combined {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #0077b5;
    background: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid rgba(1, 161, 219, 0.1);
    width: 100%;
    max-width: fit-content;
    overflow-wrap: break-word;
}

.linkedin-link-combined i {
    font-size: 2.2rem;
}

.linkedin-link-combined .name-label {
    font-size: clamp(0.85rem, 3.5vw, 1.2rem); /* Reduced from 1.4rem */
    font-weight: 700;
    color: var(--text-color);
}

.linkedin-link-combined:hover {
    color: #0077b5;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.ln-url-text {
    display: none;
}

/* Profile Image Styling (Clean Circular) */
.footer-profile-image {
    width: clamp(100px, 25vw, 260px); /* Progressive scaling */
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    display: block;
    transition: var(--transition);
}

.footer-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition removed as we don't scale it anymore */
}

.footer-profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 119, 181, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-profile-overlay i {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.footer-profile-image:hover .footer-profile-overlay {
    opacity: 1;
}

/* Legal & Copyright Bar (Dark Blue) */

.footer-copyright-bar {
    background-color: var(--primary-dark);
    padding: 1.5rem 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-align: center;
}

.copyright-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.copyright-link:hover {
    color: #fff;
}

.copyright-notice {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.copyright-notice p {
    margin-bottom: 0;
}

/* Responsive Customizations */
@media (max-width: 1200px) {
    .footer-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-content-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .legal-links-list {
        flex-direction: row;
        gap: 1.5rem;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .legal-links-list a {
        font-size: 0.75rem;
    }

    /* Footer profile image now scales via clamp in base styles */
}


/* Responsive */
@media (max-width: 1200px) {
    .container {
        width: 90%;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 3rem) !important;
        margin-bottom: 1.2rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
        margin-bottom: 2rem;
        max-width: 90%;
    }

    .hero-content {
        padding-top: 80px;
        max-width: 120%; /* Set to 120% as requested */
        z-index: 2;
        position: relative;
    }

    .hero-image {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 45%;
        height: 80%;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        z-index: 1;
        pointer-events: none; /* Let clicks pass to buttons if overlapping */
    }

    .hero-image img {
        object-position: bottom right;
        margin-right: 0;
        max-height: 100%;
        width: auto;
    }

    .hero-btns {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-btns .btn {
        width: auto;
        min-width: 200px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 1150px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 2.5rem 2rem;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        transform: translateY(0);
    }

    .nav-links a {
        color: var(--text-color);
        padding: 0.8rem 0;
        font-size: 1.2rem;
    }

    .nav-links .nav-cta {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .cooperation-grid,
    .steps-grid,
    .slider-track {
        display: grid; /* Overriding flex for slider on mobile if needed, but slider is special */
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Re-enabling flex for slider track because JS depends on it */
    .slider-track {
        display: flex;
    }

    .media-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-halved-box {
        flex-direction: column;
        border-radius: 30px;
    }
}

@media (max-width: 768px) {
    .mobile-phone-icon {
        display: flex;
        position: fixed;
        bottom: 25px;
        right: 25px;
        z-index: 1001;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
        font-size: 1.6rem;
        background-color: var(--conversion-color);
        color: #000 !important;
        align-items: center;
        justify-content: center;
        padding: 0;
        /* Ensure it's not affected by header scrolled state if any */
    }

    .mobile-phone-icon:hover {
        transform: scale(1.1);
        background-color: #f7d930;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        justify-items: center; /* Ensure items are centered in the grid */
    }

    .step-card p {
        width: 60%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .slider-track {
        grid-template-columns: 1fr;
    }

    .steps-grid::after {
        left: 50%;
        right: auto;
        width: 40px;
        transform: translateX(-50%);
        top: -70px;
        /* Enhanced reach above the first icon */
        bottom: -60px;
        /* Enhanced reach below the last text */
        opacity: 0.15;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 1000' preserveAspectRatio='none'%3E%3Cpath d='M 20,0 C 35,100 5,200 20,300 C 35,400 5,500 20,600 C 35,700 5,800 20,900 C 35,950 20,980 20,980' fill='none' stroke='%2301a1db' stroke-width='1.5' stroke-dasharray='10, 15' stroke-linecap='round' /%3E%3Cpath d='M 20,1000 L 14,982 L 26,982 Z' fill='%2301a1db' /%3E%3C/svg%3E");
        background-size: 100% 100%;
        background-repeat: no-repeat;
    }

    .steps-grid::before {
        display: none;
    }


    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    /* Hero section mobile adjustments */
    header {
        padding: 1rem 0;
    }

    .hero {
        padding-top: 100px;
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        align-items: center;
    }

    .hero .container {
        height: auto;
        padding-bottom: 2rem;
    }

    .hero-content {
        padding-top: 60px;
        padding-bottom: 3rem;
        max-width: 100%;
    }

    .hero-image {
        width: 65%;
        height: 65%;
        opacity: 1; /* Made solid as requested */
    }
}

@media (max-width: 480px) {
    .hero-title {
        /* font-size now handled by clamp in h1 base style */
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        /* font-size now handled by clamp in hero-subtitle base style */
        margin-bottom: 2rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: auto;
        min-width: 180px;
    }

    .quote-content {
        padding: 1.5rem;
    }

    .quote-text {
        font-size: 1rem;
    }

    .footer-left-half,
    .footer-right-half {
        padding: 2.5rem 1.2rem; /* Even tighter padding for mobile */
    }

    /* Footer profile image now scales via clamp in base styles */
    
    /* Removed fixed font size here to allow clamp from base styles to work */

    .linkedin-link-combined i {
        font-size: 1.8rem;
    }
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    z-index: 2100;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.video-modal-close:hover {
    color: var(--conversion-color);
    transform: rotate(90deg);
}

.video-responsive-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.video-responsive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .video-modal-close {
        top: -40px;
        font-size: 2rem;
    }
}

/* Spotify Icon Overlay */
.spotify-icon-overlay,
.youtube-icon-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.spotify-icon-overlay {
    background: #1DB954;
}

.youtube-icon-overlay {
    background: #FF0000;
}

/* --- VLASTNÍ ÚPRAVY PRO MOBIL A TABLET --- */
@media (max-width: 1150px) {
    /* Zmenši odsazení mezi druhou a třetí sekcí */
    .quote-modern {
        padding-bottom: 40px !important;
    }
    #spoluprace {
        padding-top: 40px !important;
    }

    /* Akce na tabletu: obrázek vlevo, text vpravo, tlačítko pod nimi */
    .event-row {
        display: grid !important;
        grid-template-columns: 140px 1fr !important;
        grid-template-areas: 
            "img body"
            "action action" !important;
        gap: 1.2rem 2rem !important;
        align-items: start !important;
        padding: 1.5rem !important;
    }
    .event-row-image { 
        grid-area: img !important; 
        width: 140px !important;
        height: auto !important;
    }
    .event-row-body { 
        grid-area: body !important; 
    }
    .event-row-action { 
        grid-area: action !important; 
        margin-left: 0 !important;
        width: 100% !important;
    }
    .event-row-action .btn {
        width: 100% !important;
        padding: 0.8rem 1.5rem !important;
    }
    .event-row-title {
        font-size: 1.4rem !important;
        margin-bottom: 0.8rem !important;
    }
    .event-row-meta {
        flex-wrap: wrap !important;
        gap: 0.8rem 1.5rem !important;
        margin-bottom: 0.8rem !important;
    }

    /* Patička: Rozhodně větší na tabletu, tlačítko vpravo vedle textu */
    .footer-left-half {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        gap: 3rem !important;
    }
    .footer-profile-image {
        width: 140px !important; /* Větší fotka */
        height: auto !important;
        flex-shrink: 0 !important;
    }
    .footer-social-info {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 2rem !important;
        flex: 1 !important;
    }
    .footer-social-info h2,
    .footer-social-info h2.small-title {
        font-size: 1.6rem !important; /* Větší text */
        margin-bottom: 0 !important;
        flex: 1 !important;
    }
    .linkedin-link-combined {
        padding: 0.8rem 1.6rem !important; /* Větší tlačítko */
        display: inline-flex !important;
        width: max-content !important;
        flex-shrink: 0 !important;
    }
    .linkedin-link-combined i {
        font-size: 1.6rem !important;
    }
    .linkedin-link-combined .name-label {
        font-size: 1.1rem !important;
    }

    /* Vycentruj fotku v sekci Kdo je laskavý chachar, změnši odsazení od další sekce a tlačítko na střed */
    .about-image {
        order: -1 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important; /* Záruka dobrého zobrazení do max-width z nadřazeného */
    }
    .about-section {
        padding-bottom: 20px !important;
    }
    .about-cta {
        display: flex !important;
        margin: 0 auto !important;
        width: fit-content !important;
    }

    /* Kontakty vedle sebe na tabletu */
    .contact-passage {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 2rem !important;
    }
    .contact-passage p:nth-of-type(1) { grid-column: 1 !important; grid-row: 1 !important; margin-top: 0 !important; }
    .contact-passage a:nth-of-type(1) { grid-column: 1 !important; grid-row: 2 !important; }
    .contact-passage p:nth-of-type(2) { grid-column: 2 !important; grid-row: 1 !important; margin-top: 0 !important; }
    .contact-passage a:nth-of-type(2) { grid-column: 2 !important; grid-row: 2 !important; }
    .contact-passage .contact-link {
        font-size: clamp(1.1rem, 3vw, 1.5rem) !important;
    }

    /* Zúži sekci s právními údaji, obsah zarovnej na střed a nalep víc ke kontaktům (tablet i mobil) */
    .footer-halved-box {
        margin-bottom: 0.25rem !important;
    }
    .footer-legal-inline {
        margin-bottom: 4rem !important;
        width: 95% !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        margin: 0 auto !important;
        align-items: center !important;
        text-align: center !important;
        justify-content: center !important;
        gap: 1.5rem !important;
        flex-direction: column !important;
        padding-top: 0 !important;
    }
    .footer-legal-inline .legal-links-list {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
    }
    .footer-legal-inline .mandatory-data {
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    /* Pouze na mobilu: Dej boxy všech služeb pod sebe a sjednoť odsazení */
    .cooperation-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }
    .card {
        padding: 1.5rem !important;
    }

    /* Patička na mobilu: fotka a text vedle sebe, pod to tlačítko, vycentrované tohle i kontakty */
    .footer-left-half {
        display: grid !important;
        grid-template-columns: auto auto !important;
        grid-template-areas: 
            "img text"
            "btn btn" !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.2rem 1.5rem !important;
        text-align: center !important;
    }
    .footer-profile-image {
        grid-area: img;
        width: 100px !important; /* Stále hezky velká */
        margin: 0 !important;
    }
    .footer-social-info {
        display: contents !important;
    }
    .footer-social-info h2,
    .footer-social-info h2.small-title {
        grid-area: text;
        font-size: 1.4rem !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }
    .linkedin-link-combined {
        grid-area: btn;
        justify-self: center !important;
        margin-top: 0.5rem !important;
        display: inline-flex !important;
    }

    /* Kontakty vycentrovat na mobilu */
    .footer-right-half {
        align-items: center !important;
        text-align: center !important;
    }
    .contact-passage {
        display: block !important;
    }
    .contact-passage p:nth-of-type(2) {
        margin-top: 2rem !important;
    }
    .contact-passage p.footer-highlight {
        text-align: center !important;
    }
    .contact-passage .contact-link {
        text-align: center !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Pouze na mobilu: Zmenši odsazení mezi subtitle v refrencích a obsahem */
    #reference .section-subtitle {
        margin-bottom: 1.5rem !important;
    }

    /* Reference - zmenšení odsazení od tlačítka */
    .slider-container {
        padding-bottom: 30px !important;
    }
    .reference-buttons {
        margin-top: 2rem !important;
    }

    /* Zmenšení odsazení pod poslední akcí */
    #akce {
        padding-bottom: 40px !important;
    }
    .footer-section {
        padding-top: 40px !important;
    }

    /* Fix pro Laskavé firemní školení - zalamování textu */
    .cooperation-full-box {
        padding: 1.5rem !important;
    }
    .full-box-header h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        min-width: 0;
        width: 100%;
    }
    .full-box-subtitle {
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
    .full-box-info p, 
    .full-box-questions li {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    .full-box-questions li {
        align-items: flex-start !important;
    }
}
