/* Reset & Base Styles */
:root {
    --primary-color: #3e7b41; /* Slightly more vibrant green */
    --primary-dark: #2c5e2e;
    --accent-color: #d4a373; /* Earthy tan/brown */
    --accent-yellow: #f9c74f; /* Sun yellow */
    --secondary-color: #f8faf8;
    --text-color: #2d3436;
    --text-light: #636e72;
    --white: #ffffff;
    --black: #000000;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --container-width: 1200px;
    --header-height: 140px;
    --shadow-subtle: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-medium: 0 10px 30px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 60px; /* Increased margin */
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition);
    margin: 20px 0;
    border: 2px solid var(--primary-color);
    text-decoration: none;
}

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

.btn-download .nav-icon {
    width: 24px;
    height: 24px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-yellow);
    border-radius: 2px;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--secondary-color);
}

.bg-soft {
    background-color: #f1f6f1;
}

/* Header & Navigation */
.header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo img {
    height: 100px;
    margin: 20px 0;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

.nav-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.nav-list .nav-icon {
    transform: translateY(-2px);
}

/* Submenu styles */
.has-submenu {
    position: relative;
}

.has-submenu > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-icon {
    transition: transform var(--transition);
}

.has-submenu:hover .dropdown-icon {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 100;
    list-style: none;
    margin: 0;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0 !important;
    padding: 0 !important;
}

.submenu a {
    padding: 10px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0 !important;
}

.submenu a:hover,
.submenu a.active {
    background-color: var(--secondary-color) !important;
    color: var(--primary-color) !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle-burger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    position: relative;
    transition: var(--transition);
}

.nav-toggle-burger::before,
.nav-toggle-burger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    left: 0;
    transition: var(--transition);
}

.nav-toggle-burger::before { top: -8px; }
.nav-toggle-burger::after { bottom: -8px; }

/* Active Toggle State */
.nav-toggle.active .nav-toggle-burger {
    background-color: transparent;
}

.nav-toggle.active .nav-toggle-burger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle.active .nav-toggle-burger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Hero Section */
.hero {
    margin-top: var(--header-height);
}

.hero .container {
    max-width: 1400px;
}

.hero-image {
    height: 75vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    padding-top: 150px;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 850px;
    text-align: left;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-left: -5px; /* Slight shift to the left */
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    background-color: rgba(62, 123, 65, 0.55); /* Slightly transparent */
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px; /* More rounded corners */
    backdrop-filter: blur(5px); /* Optional: add blur for better readability */
}

/* Intro Section */
.lead {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.intro-p {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.8;
    text-align: center;
}

.intro-content ul {
    margin-bottom: 1.5rem;
}

/* Common Bullet Styles - Green Triangle */
.content-main ul, 
.info-card ul, 
.info-footer ul, 
.program-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.content-main ul li, 
.info-card ul li, 
.info-footer ul li, 
.program-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.content-main ul li::before, 
.info-card ul li::before, 
.info-footer ul li::before, 
.program-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px; /* Opticky na střed */
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid var(--primary-color);
}

.bubbles-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
}

@media (max-width: 1400px) {
    .bubbles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .bubbles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .bubbles-grid {
        grid-template-columns: 1fr;
    }
}

.bubble {
    background-color: var(--secondary-color);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: var(--transition);
    border: 1px solid rgba(62, 123, 65, 0.1);
}

.bubble:hover {
    background-color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(62, 123, 65, 0.1);
    transform: translateY(-10px);
}

.bubble-icon {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.bubble-icon svg {
    width: 28px;
    height: 28px;
}

.bubble:hover .bubble-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.bubble p {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--text-color);
}

/* Options Section */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.option-item {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.option-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.option-icon {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.option-item:hover .option-icon {
    background-color: var(--accent-yellow);
    transform: rotate(10deg);
}

.option-item p {
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
}

.info-footer {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #ddd;
}

.info-footer p {
    margin-bottom: 0.8rem;
}

.notice {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.5rem !important;
    padding: 15px 20px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    border-left: 4px solid var(--accent-yellow);
    line-height: 1.5;
}


/* Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.gallery-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border: 4px solid var(--white);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

/* Program detail styles */
.program-hero {
    margin-top: var(--header-height);
    padding: 60px 0;
    background-color: var(--secondary-color);
    text-align: center;
}

.program-intro {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
}

.program-content h2 {
    margin-top: 60px;
}

.program-content h3 {
    color: var(--primary-color);
    margin-top: 2rem;
}

.program-content p {
    margin-bottom: 1.5rem;
}

.program-info {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Program Cards on HP */
.programs-hp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.program-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.program-card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.program-card:hover .program-card-image {
    transform: scale(1.1);
}

.program-card-image-wrapper {
    overflow: hidden;
    height: 180px;
}

.program-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.program-card-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-yellow);
    border-radius: 2px;
}

.program-card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-more {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: auto;
    text-align: center;
    box-shadow: 0 4px 15px rgba(62, 123, 65, 0.3);
}

.btn-more:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 123, 65, 0.4);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.footer {
    padding: 60px 0 30px;
    background-color: var(--text-color);
    color: var(--white);
}

.footer h3 {
    color: var(--accent-yellow);
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-align: left;
}

.footer h3::after {
    display: none; /* Remove the underline from base H3 if it inherited it, though it shouldn't as it's not H2 */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: -1px;
}

.footer-contact-list a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-list a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 992px) {
    :root {
        --header-height: 70px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .logo img {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        padding: 40px;
        transition: var(--transition);
        box-shadow: -5px 0 10px rgba(0,0,0,0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .nav-list a {
        font-size: 1.1rem;
    }

    /* Mobile Submenu */
    .has-submenu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 5px 0 5px 20px;
        background-color: transparent;
        display: none;
        min-width: 100%;
    }

    .has-submenu.active .submenu {
        display: block;
    }

    .has-submenu.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .logo img {
        height: 50px;
    }
}
