:root { --theme-green: #017839; --theme-red:#8B0000}
.bg-theme { background-color: var(--theme-green) !important; }
.badge.bg-theme { color: #fff; letter-spacing: 0.3px; }

.btn-theme-red {
    background-color: var(--theme-red);
    color: #fff;
    border-color: var(--theme-red);
}

.btn-theme-red:hover {
    background-color: #6B0000;
    border-color: #6B0000;
    color: #fff;
}

.hero-full {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.hero-carousel { position: relative; overflow: hidden; }
.hero-carousel .hero-slide {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Carousel slide transition */
.carousel-item {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
    transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
    transform: translateX(-100%);
}

/* Slide content animation - soldan gelme */
.slide-content {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.2s ease, transform 0.6s ease;
}

.carousel-item.active .slide-content {
    opacity: 1;
    transform: translateX(0);
}

.carousel-item.active .slide-content:nth-child(1) {
    transition-delay: 0.1s;
}

.carousel-item.active .slide-content:nth-child(2) {
    transition-delay: 0.2s;
}

.carousel-item.active .slide-content:nth-child(3) {
    transition-delay: 0.3s;
}

/* Carousel Controls - Alt ortada */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    position: absolute;
    bottom: 2rem;
    top: auto;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 10;
}

.hero-carousel .carousel-control-prev {
    left: calc(50% - 60px);
    transform: translateX(-50%);
}

.hero-carousel .carousel-control-next {
    right: calc(50% - 60px);
    transform: translateX(50%);
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}
.eco-logos {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.eco-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(1,120,57,0.14);
    background: linear-gradient(135deg, rgba(1,120,57,0.10), rgba(1,120,57,0.04));
}

/* Staggered top-to-bottom entrance */
.eco-logos.eco-animate .eco-logo {
    opacity: 0;
    transform: translateY(-18px);
}
.eco-logos.eco-animate.is-in .eco-logo {
    animation: ecoDrop 650ms cubic-bezier(.2,.8,.2,1) forwards;
}
.eco-logos.eco-animate.is-in .eco-logo:nth-child(1) { animation-delay: 0ms; }
.eco-logos.eco-animate.is-in .eco-logo:nth-child(2) { animation-delay: 140ms; }
.eco-logos.eco-animate.is-in .eco-logo:nth-child(3) { animation-delay: 280ms; }

@keyframes ecoDrop {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .eco-logos.eco-animate .eco-logo,
    .eco-logos.eco-animate.is-in .eco-logo {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
.eco-mark {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(1,120,57,0.18);
    color: #0c2a1a;
    font-size: 24px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.eco-title {
    font-weight: 800;
    color: #0f1e26;
}
.eco-sub {
    font-size: 0.9rem;
    color: rgba(15,30,38,0.65);
}

.about-hero {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}
.about-hero-inner {
    min-height: 100vh;
}
.about-hero-media {
    min-height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1534237710431-e2fc698436d0?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.about-hero-text {
    padding: clamp(2rem, 5vw, 3.5rem);
}

@media (max-width: 991.98px) {
    .about-hero-inner {
        min-height: auto;
    }
    .about-hero-media {
        min-height: 320px;
    }
}
.hero-carousel .slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.05) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(1.5rem, 4vw, 3rem);
}
.hero-carousel h2,
.hero-carousel p { max-width: 720px; }

.hero-indicators {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    gap: 0.75rem;
    z-index: 10;
}

.hero-card { background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 14px; 
    padding: 20px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); }
.icon-circle { width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    background: rgba(1, 120, 57, 0.1); 
    color: var(--theme-green); 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; font-weight: 700; }

@media (max-width: 768px) { 
    .hero-card { margin-top: 12px; }
    .hero-carousel .hero-slide { min-height: 100vh; }
    .hero-carousel .slide-overlay { align-items: flex-start; }
    .hero-indicators { bottom: 1.5rem; }
}

/* Faaliyet Alanları Galeri Bölümü */
.activity-gallery-section {
    background-color: #ffffff;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.activity-gallery-header {
    padding: 0 1rem;
}

.activity-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.activity-icon svg {
    width: 100%;
    height: 100%;
}

/* Kategori Başlıkları */
.activity-category-section {
    margin-bottom: 3rem;
}

.category-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

/* Galeri Kartları */
.activity-gallery-card {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    transition: filter 0.3s ease;
}

.gallery-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    z-index: 1;
    border-radius: 12px;
}

.activity-gallery-card:hover .gallery-card-image::before {
    background-color: rgba(0, 0, 0, 0.5);
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 24px 20px 20px;
    display: flex;
    align-items: flex-end;
    z-index: 2;
}

.gallery-card-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.3;
}

.gallery-card-hover-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.activity-gallery-card:hover .gallery-card-hover-content {
    opacity: 1;
    pointer-events: auto;
}

.gallery-detail-btn {
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.gallery-detail-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: inherit;
}

@media (max-width: 991.98px) {
    .gallery-card-image {
        height: 240px;
    }
    
    .category-section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .activity-gallery-header {
        padding: 0 0.5rem;
    }
    
    .activity-gallery-header h2 {
        font-size: 1.75rem;
    }
    
    .gallery-card-image {
        height: 200px;
    }
    
    .gallery-card-title {
        font-size: 1rem;
    }
    
    .category-section-title {
        font-size: 1.25rem;
    }
}

/* Referanslarımız Bölümü - Kayan Logolar */
.references-section {
    background-color: #f8f9fa;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}

.logo-slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo-slider {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.logo-slide-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: slideLogos 30s linear infinite;
    width: fit-content;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 0 2rem;
}

.logo-img {
    max-height: 100px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;

    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-item:hover .logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes slideLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 991.98px) {
    .logo-item {
        height: 100px;
        padding: 0 1.5rem;
    }
    
    .logo-img {
        max-height: 80px;
        max-width: 150px;
    }
    
    .logo-slide-track {
        gap: 3rem;
    }
}

@media (max-width: 767.98px) {
    .logo-item {
        height: 80px;
        padding: 0 1rem;
    }
    
    .logo-img {
        max-height: 60px;
        max-width: 120px;
    }
    
    .logo-slide-track {
        gap: 2rem;
    }
    
    .references-section h2 {
        font-size: 2rem;
    }
}

/* Galeri Hero Bölümü - Üstten Alta Animasyonlu */
.gallery-hero-section {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    overflow-x: hidden;
    overflow-y: visible;
}

.gallery-hero-section .container-fluid {
    overflow: visible;
}

.gallery-hero-slogan {
    padding: 2rem 0 1rem;
    display: block;
    visibility: visible;
    position: relative;
    z-index: 10;
    width: 100%;
}

.gallery-slogan-text {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    display: block;
    visibility: visible;
    width: 100%;
}

.slogan-part-1 {
    color: var(--theme-green);
}

.slogan-part-2 {
    color: #000;
}

.gallery-hero-row {
    margin: 0;
}

.gallery-hero-item {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: visible;
    padding: 0 0.75rem;
    display: block;
    visibility: visible;
    opacity: 1;
}

.gallery-hero-item:first-child {
    padding-left: 0;
}

.gallery-hero-item:last-child {
    padding-right: 0;
}


.gallery-hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: block;
    visibility: visible;
    opacity: 1;
}

.gallery-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.gallery-hero-item:hover .gallery-hero-overlay {
    background: rgba(0, 0, 0, 0.1);
}

/* Üstten Alta Animasyon - başlangıç durumu */
.gallery-hero-item {
    opacity: 0;
    transform: translateY(-100px);
}

/* Section görünür olduğunda animasyonu başlat */
.gallery-hero-section.is-in .gallery-hero-item {
    animation: slideDownFadeIn 0.8s ease-out forwards;
}

.gallery-hero-section.is-in .gallery-hero-item-1 {
    animation-delay: 0.2s;
}

.gallery-hero-section.is-in .gallery-hero-item-2 {
    animation-delay: 0.4s;
}

.gallery-hero-section.is-in .gallery-hero-item-3 {
    animation-delay: 0.6s;
}

@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .gallery-hero-section {
        margin-top: 2.5rem;
    }
    
    .gallery-hero-slogan {
        padding: 1.5rem 0 1rem;
        margin-bottom: 1.25rem;
    }
    
    .gallery-slogan-text {
        font-size: 2rem;
        line-height: 1.25;
    }
    
    .gallery-hero-row {
        gap: 1rem;
    }
    
    .gallery-hero-item {
        height: 60vh;
        min-height: 450px;
        padding: 0 0.5rem;
    }
    
    .gallery-hero-item:first-child {
        padding-left: 0;
    }
    
    .gallery-hero-item:last-child {
        padding-right: 0;
    }
    
    .gallery-hero-section .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Tablet dikey mod için (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .gallery-hero-item {
        height: 55vh;
        min-height: 400px;
    }
    
    .gallery-slogan-text {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .gallery-hero-section {
        margin-top: 2rem;
        overflow-x: hidden;
        overflow-y: visible;
    }
    
    .gallery-hero-slogan {
        padding: 1rem 0 0.75rem;
        margin-bottom: 1rem;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 10;
        width: 100%;
    }
    
    .gallery-slogan-text {
        font-size: 1.5rem;
        line-height: 1.3;
        padding: 0 0.5rem;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
    }
    
    .slogan-part-1,
    .slogan-part-2 {
        display: inline;
        visibility: visible;
        opacity: 1;
    }
    
    .gallery-hero-row {
        gap: 0;
    }
    
    .gallery-hero-item {
        height: 22vh;
        min-height: 160px;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 0;
        transform: translateY(-50px);
        overflow: visible;
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-hero-section.is-in .gallery-hero-item {
        animation-duration: 0.6s;
    }
    
    .gallery-hero-section.is-in .gallery-hero-item-1 {
        animation-delay: 0.1s;
    }
    
    .gallery-hero-section.is-in .gallery-hero-item-2 {
        animation-delay: 0.2s;
    }
    
    .gallery-hero-section.is-in .gallery-hero-item-3 {
        animation-delay: 0.3s;
    }
    
    .gallery-hero-item:last-child {
        margin-bottom: 0;
    }
    
    .gallery-hero-section .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .gallery-hero-section .container-fluid .gallery-hero-slogan {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Mobilde 3 fotoğraf yan yana (dar) */
    .gallery-hero-section .row {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        margin: 0;
        align-items: stretch;
    }
    
    .gallery-hero-section .col-4 {
        width: 33.3333% !important;
        flex: 0 0 33.3333% !important;
        max-width: 33.3333% !important;
        display: block !important;
        visibility: visible !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .gallery-hero-image {
        border-radius: 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 160px;
    }
    
    .gallery-hero-overlay {
        border-radius: 0;
        display: block !important;
        visibility: visible !important;
    }
    
    .gallery-hero-row {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    @keyframes slideDownFadeIn {
        from {
            opacity: 0;
            transform: translateY(-50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Çok küçük ekranlar için (480px ve altı) */
@media (max-width: 480px) {
    .gallery-hero-section {
        margin-top: 1.5rem;
        overflow-x: hidden;
        overflow-y: visible;
    }
    
    .gallery-hero-slogan {
        padding: 0.75rem 0 0.5rem;
        margin-bottom: 0.75rem;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 10;
        width: 100%;
    }
    
    .gallery-slogan-text {
        font-size: 1.25rem;
        line-height: 1.4;
        padding: 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
    }
    
    .slogan-part-1,
    .slogan-part-2 {
        display: inline;
        visibility: visible;
        opacity: 1;
    }
    
    .gallery-hero-item {
        height: 20vh;
        min-height: 140px;
        margin-bottom: 0;
        transform: translateY(-40px);
        overflow: visible;
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-hero-item-1 {
        animation-delay: 0.1s;
    }
    
    .gallery-hero-item-2 {
        animation-delay: 0.2s;
    }
    
    .gallery-hero-item-3 {
        animation-delay: 0.3s;
    }
    
    .gallery-hero-section.is-in .gallery-hero-item {
        animation-duration: 0.5s;
    }
    
    .gallery-hero-section .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .gallery-hero-section .container-fluid .gallery-hero-slogan {
        padding-left: 0;
        padding-right: 0;
    }
    
    .gallery-hero-row {
        gap: 0;
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .gallery-hero-section .col-4 {
        width: 33.3333% !important;
        flex: 0 0 33.3333% !important;
        max-width: 33.3333% !important;
        scroll-snap-align: start;
    }
    
    @keyframes slideDownFadeIn {
        from {
            opacity: 0;
            transform: translateY(-40px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
