/* Çevre Festivali — özel stiller (Tailwind CDN ile birlikte) */

html {
    scroll-behavior: smooth;
}

/* Hero slider */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-dot.active {
    width: 28px;
    background: #fff;
}

/* Scroll indicator */
@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.scroll-indicator {
    animation: bounce-down 2s ease-in-out infinite;
}

/* Modal */
.modal-backdrop {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal-panel {
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-backdrop.open .modal-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Mobile menu */
.mobile-menu-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu-panel.open {
    max-height: 80vh;
    overflow-y: auto;
}

/* Content pages — CMS HTML */
.cms-content h1,
.cms-content h2,
.cms-content h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    color: #05387b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.cms-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #374151;
}

.cms-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.cms-content a {
    color: #5ea700;
    text-decoration: underline;
}

.cms-content ul,
.cms-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.cms-content li {
    margin-bottom: 0.35rem;
    line-height: 1.7;
}

/* Scroll to top */
.scroll-top {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
}
