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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2d5016;
}

.logo img {
    height: 50px;
    width: 50px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #5a9216;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: white;
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: white;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #2d5016;
    z-index: 1001;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-overlay nav ul {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
}

.mobile-menu-overlay nav a {
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.mobile-menu-overlay nav a:hover {
    color: #a8d576;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, color 0.3s;
}

.close-menu:hover {
    transform: rotate(90deg);
    color: #a8d576;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../img/hero.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 8rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-primary {
    background: #5a9216;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #4a7a12;
}

/* Episodes Section */
.episodes {
    padding: 4rem 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2d5016;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.episode-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.episode-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.episode-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.episode-number {
    color: #5a9216;
    font-weight: bold;
    font-size: 0.9rem;
}

.episode-title {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: #333;
}

.episode-description {
    color: #666;
    margin-bottom: auto;
    font-size: 0.95rem;
}

.audio-player {
    width: 100%;
    margin-top: auto;
}

.episode-link {
    color: #5a9216;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

.episode-link:hover {
    text-decoration: underline;
}

/* Post Page */
.post-header {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/hero.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0 3rem;
}

.post-content {
    background: white;
    padding: 3rem 0;
}

.post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.post-image {
    width: 100%;
    border-radius: 10px;
    margin: 2rem 0;
}

.post-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #5a9216;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Gallery Card */
.gallery-card {
    /* order: 999; - disabled to keep natural order */
}

.gallery-preview {
    position: relative;
    cursor: pointer;
}

.gallery-preview > a:first-child {
    display: block;
    position: relative;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-preview:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.gallery-count {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Footer */
footer {
    background: #2d5016;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.footer-logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 1rem;
    font-weight: bold;
}

.footer-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: #a8d576;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social a {
    color: white;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social a svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: fill 0.3s;
}

.footer-social a:hover {
    transform: scale(1.15);
}

.footer-social a:hover svg {
    fill: #a8d576;
}

.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .header-content nav {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-menu ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Hero Carousel Styles */
.hero-swiper {
    width: 100%;
    height: 600px;
    position: relative;
    background: #000;
}
.hero-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover !important;
    background-position: center !important;
    height: 100%;
}
.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    font-weight: 800;
}
.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}
.swiper-button-next, .swiper-button-prev {
    color: white !important;
    background: rgba(0,0,0,0.3);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
}
.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
}
.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    background: #5a9216 !important;
    opacity: 1;
}

/* Gallery Card Styles */
.gallery-preview {
    position: relative;
    overflow: hidden;
    height: 250px;
}
.gallery-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 80, 22, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.gallery-preview:hover .gallery-overlay {
    opacity: 1;
}
.gallery-icon {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
}
.gallery-count {
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}
