/* ================================================================
   Premium Custom Styles — Dicle YEG Derneği
   ================================================================ */

/* ---- Google Font Import ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ---- Design Tokens ---- */
:root {
    --primary:        #115c38;
    --primary-dark:   #0a3d24;
    --primary-light:  #1a7a4a;
    --accent:         #2ea76a;
    --light-green:    #e8f5ee;
    --text-dark:      #1a2e22;
    --text-muted:     #6b7c73;
    --bg-body:        #f3f7f4;
    --glass:          rgba(255, 255, 255, 0.85);
    --shadow-sm:      0 4px 15px rgba(17,92,56,0.08);
    --shadow-md:      0 8px 30px rgba(17,92,56,0.15);
    --shadow-lg:      0 15px 50px rgba(17,92,56,0.20);
    --radius:         16px;
    --radius-sm:      10px;
    --transition:     0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.7;
}

a { transition: color var(--transition); }

/* ================================================================
   TOP BAR
   ================================================================ */
.topbar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: rgba(255,255,255,0.85);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}
.topbar a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color var(--transition); }
.topbar a:hover { color: #fff; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0.6rem 0;
    transition: padding var(--transition);
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
    color: #fff !important;
}
.navbar .nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.55rem 1rem !important;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
    position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
}
.navbar .dropdown-menu {
    border: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--accent);
    padding: 0.5rem;
    min-width: 200px;
}
.navbar .dropdown-item {
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.55rem 1rem;
    color: var(--text-dark);
    transition: background var(--transition);
}
.navbar .dropdown-item:hover {
    background: var(--light-green);
    color: var(--primary);
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero-section {
    background: linear-gradient(145deg, rgba(10,61,36,0.88) 0%, rgba(17,92,56,0.78) 60%, rgba(42,167,106,0.5) 100%),
                url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1600&q=80') center/cover no-repeat;
    color: white;
    padding: 130px 0 110px;
    text-align: center;
    border-radius: 0 0 60px 60px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(42,167,106,0.15) 0%, transparent 70%);
}
.hero-section .display-3 {
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-section .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 5px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* ================================================================
   SECTION TITLES
   ================================================================ */
.section-title {
    font-weight: 800;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
    margin-bottom: 2rem;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    border-radius: 4px;
    bottom: 0;
    left: 0;
}

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    background: var(--glass);
    backdrop-filter: blur(6px);
    overflow: hidden;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.card-img-top { object-fit: cover; }
.card .badge-date {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--light-green);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 0.7rem;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 4px 15px rgba(17,92,56,0.3);
    transition: all var(--transition);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17,92,56,0.4);
}
.btn-outline-success {
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 22px;
    transition: all var(--transition);
}
.btn-outline-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17,92,56,0.25);
}
.btn-outline-light {
    border-radius: 50px;
    font-weight: 600;
}

/* ================================================================
   STAT / FEATURE ITEMS
   ================================================================ */
.stat-box {
    background: var(--glass);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 4px solid var(--accent);
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.stat-box .stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

/* ================================================================
   PRESIDENT MESSAGE SECTION
   ================================================================ */
.quote-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.quote-section::before {
    content: '"';
    font-size: 18rem;
    font-weight: 900;
    color: rgba(255,255,255,0.04);
    position: absolute;
    top: -5rem;
    left: 1rem;
    line-height: 1;
    pointer-events: none;
}

/* ================================================================
   GALLERY
   ================================================================ */
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,61,36,0.65) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ================================================================
   ARTICLE / DETAIL PAGES
   ================================================================ */
.article-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 80px 0 60px;
    position: relative;
}
.article-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-body);
    border-radius: 60px 60px 0 0;
}
.article-body {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    line-height: 1.9;
    font-size: 1.02rem;
}
.article-body p { margin-bottom: 1.2rem; }

/* ================================================================
   BREADCRUMB
   ================================================================ */
.breadcrumb-nav { background: none; }
.breadcrumb-item a { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-info-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    height: 100%;
}
.contact-info-card .info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-info-card .info-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}
.contact-form-card .form-control,
.contact-form-card .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid #e0ede6;
    padding: 0.75rem 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form-card .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(46,167,106,0.12);
}

/* ================================================================
   TEAM CARDS
   ================================================================ */
.team-card {
    text-align: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}
.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.2rem;
    border: 4px solid var(--light-green);
}
.team-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    color: white;
    font-size: 2rem;
}
.team-position {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

/* ================================================================
   PARTNERS / LOGOS SECTION
   ================================================================ */
.partners-section {
    border-top: 1px solid #e0ede6;
}
.partner-item {
    opacity: 0.5;
    transition: opacity var(--transition);
    text-align: center;
}
.partner-item:hover { opacity: 1; }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
    background: linear-gradient(180deg, #0a2e1a 0%, #060e0a 100%) !important;
}
footer .footer-brand { color: var(--accent) !important; font-weight: 800; }
footer a { transition: color var(--transition); }
footer a:hover { color: var(--accent) !important; }
.footer-divider { border-color: rgba(255,255,255,0.08); }
.social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: all var(--transition);
    text-decoration: none;
}
.social-icon:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.animate-fade     { animation: fadeIn 0.9s ease forwards; }
.animate-fade-up  { animation: fadeInUp 0.8s ease forwards; }
.animate-scale    { animation: scaleIn 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.25s; opacity: 0; }
.delay-3 { animation-delay: 0.4s; opacity: 0; }
.delay-4 { animation-delay: 0.55s; opacity: 0; }

/* ================================================================
   PAGE HEADER (inner pages)
   ================================================================ */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 70px 0 50px;
    color: white;
    position: relative;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 50px;
    background: var(--bg-body);
    border-radius: 50px 50px 0 0;
}

/* ================================================================
   UTILITY
   ================================================================ */
.bg-light-green { background-color: var(--light-green); }
.text-primary-green { color: var(--primary); }
.rounded-xl { border-radius: var(--radius) !important; }
.shadow-premium { box-shadow: var(--shadow-md) !important; }

/* ================================================================
   MODERN HERO SLIDER
   ================================================================ */

/* ── Wrapper ── */
.hero-slider-wrapper {
    width: 100%;
    height: 600px; /* Standart 1920x600 için sabit yükseklik */
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1199px) {
    .hero-slider-wrapper {
        height: 500px;
    }
}

@media (max-width: 991px) {
    .hero-slider-wrapper {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .hero-slider-wrapper {
        height: 300px;
    }
}

/* ── Background image ── */
.slide-bg-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}
.slide-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ── Gradient overlay (Removed darkening as requested) ── */
.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
}

/* ── Content animations ── */
@keyframes slideUpIn {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0);    }
}
@keyframes slideLeftIn {
    from { opacity: 0; transform: translateX(-22px); }
    to   { opacity: 1; transform: translateX(0);     }
}

.slide-content { position: relative; }

.carousel-item.active .slide-badge {
    animation: slideLeftIn 0.65s 0.15s ease both;
}
.carousel-item.active .slide-title {
    animation: slideUpIn 0.70s 0.35s ease both;
}
.carousel-item.active .slide-desc {
    animation: slideUpIn 0.70s 0.52s ease both;
}
.carousel-item.active .slide-cta {
    animation: slideUpIn 0.70s 0.68s ease both;
}

/* ── Badge ── */
.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(46,167,106,0.18);
    border: 1px solid rgba(46,167,106,0.45);
    backdrop-filter: blur(8px);
    color: #82e0b3;
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

/* ── Title ── */
.slide-title {
    color: #fff;
    font-size: clamp(1.9rem, 4.5vw, 3.5rem);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 3px 30px rgba(0,0,0,0.45);
    margin-bottom: 1.1rem;
}

/* ── Description ── */
.slide-desc {
    color: rgba(255,255,255,0.78);
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 300;
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 2rem;
}

/* ── CTA buttons ── */
.slide-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-slide-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff !important;
    border: none;
    padding: 13px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.93rem;
    text-decoration: none;
    box-shadow: 0 6px 28px rgba(17,92,56,0.55);
    transition: all 0.35s ease;
}
.btn-slide-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    transform: translateY(-3px);
    box-shadow: 0 10px 34px rgba(17,92,56,0.65);
}

.btn-slide-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff !important;
    border: 1.5px solid rgba(255,255,255,0.32);
    backdrop-filter: blur(10px);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.93rem;
    text-decoration: none;
    transition: all 0.35s ease;
}
.btn-slide-outline:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.60);
    transform: translateY(-3px);
}

/* ── Navigation prev / next ── */
.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(14px);
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    outline: none;
}
.slider-nav-btn:hover {
    background: rgba(17,92,56,0.55);
    border-color: rgba(46,167,106,0.55);
    transform: translateY(-50%) scale(1.10);
}
.slider-prev { left: 1.6rem; }
.slider-next { right: 1.6rem; }

/* ── Indicator dots ── */
.slider-dots {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50px;
    background: rgba(255,255,255,0.30);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.4s ease, background 0.4s ease;
}
.slider-dot.active {
    width: 30px;
    background: var(--accent);
}

/* ── Slide counter ── */
.slide-counter {
    position: absolute;
    bottom: 2.1rem;
    right: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 10;
}
.slide-counter-sep {
    display: block;
    width: 24px;
    height: 1px;
    background: rgba(255,255,255,0.30);
}
.slide-counter-total { color: rgba(255,255,255,0.28); }

/* ── Progress bar ── */
.slide-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.10);
    z-index: 11;
}
.slide-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--primary-light));
    transition: width 0.08s linear;
}

/* ── Scroll cue ── */
.scroll-cue {
    position: absolute;
    bottom: 2.4rem;
    right: 2.5rem;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 10;
}
.scroll-cue-line {
    display: block;
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.35));
    animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-cue-label {
    color: rgba(255,255,255,0.35);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1);    }
    50%       { opacity: 1.0; transform: scaleY(1.15); }
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .hero-slider-wrapper { height: clamp(460px, 72vh, 620px); }
    .slider-nav-btn { width: 44px; height: 44px; font-size: 1.05rem; }
    .slider-prev { left: 0.9rem; }
    .slider-next { right: 0.9rem; }
    .slide-counter { display: none; }
    .scroll-cue   { display: none !important; }
}
@media (max-width: 575px) {
    .hero-slider-wrapper { height: clamp(420px, 68vh, 560px); }
    .slide-title  { font-size: 1.7rem; }
    .slide-desc   { font-size: 0.92rem; }
    .btn-slide-primary,
    .btn-slide-outline { padding: 11px 22px; font-size: 0.85rem; }
    .slider-dots  { bottom: 1.4rem; }
    .slide-progress-track { height: 2px; }
}

/* ── Detail Page Image Viewer ── */
.detail-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}
.detail-image-blur {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.7);
    opacity: 0.6;
    z-index: 0;
}
.detail-image-wrapper img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ── Footer Link Effects ── */
.footer-link {
    transition: all 0.2s ease;
    display: inline-block;
}
.footer-link:hover {
    color: #1a7a4a !important;
    transform: translateX(4px);
}
