/* ── CSS Custom Properties ─────────────────────────────────────── */
:root {
    --primary:        #5DADE2;   /* Akkoy Spor ana rengi */
    --primary-dark:   #2471A3;   /* Navbar, footer, koyu arka planlar */
    --primary-deep:   #1A5276;   /* Footer alt bant, en koyu ton */
    --bg-alt:         #EBF5FB;   /* Bölüm arka planları (açık mavi) */
    --text-dark:      #1A252F;
    --navbar-height:  120px;     /* logo 90px + padding 14*2 */
}

/* ── Global ────────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

/* ── Navbar ────────────────────────────────────────────────────── */
#mainNav {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    padding-top: 14px;
    padding-bottom: 14px;
    min-height: var(--navbar-height);
}

#mainNav .navbar-brand,
#mainNav .nav-link,
#mainNav .flag-wrap {
    color: #fff !important;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--primary) !important;
}

#mainNav .navbar-toggler {
    border-color: rgba(255,255,255,.5);
}

#mainNav .navbar-toggler-icon {
    filter: invert(1);
}

/* Bayrak – her zaman görünür (collapse dışında) */
.navbar-flag {
    height: 55px;
    width: auto;
    flex-shrink: 0;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* ── Section genel ─────────────────────────────────────────────── */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ── Hero Slider ───────────────────────────────────────────────── */
#hero {
    padding: 0;
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-swiper .swiper-slide {
    height: calc(100vh - var(--navbar-height)) !important;
}

.hero-swiper .swiper-slide {
    position: relative !important;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

.slide-overlay {
    z-index: 1;
}

/* Slide arka plan görselleri */
.hero-swiper .swiper-slide:nth-child(1) .slide-bg {
    background-image: url('/images/slider/slide1.jpeg');
}
.hero-swiper .swiper-slide:nth-child(2) .slide-bg {
    background-image: url('/images/slider/slide2.jpeg');
}
.hero-swiper .swiper-slide:nth-child(3) .slide-bg {
    background-image: url('/images/slider/slide3.jpeg');
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .50);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.slide-overlay h2 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
    margin-bottom: 16px;
}

.slide-overlay p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    opacity: .9;
    margin-bottom: 24px;
    max-width: 600px;
}

.slide-overlay .btn-slide {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: .65rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: background .2s, transform .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.slide-overlay .btn-slide:hover {
    background: #fff;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: var(--primary);
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--primary);
}

/* ── Hakkımızda ────────────────────────────────────────────────── */
#hakkimizda {
    background: #fff;
}

#hakkimizda .stat-box {
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 16px 10px;
    text-align: center;
}

#hakkimizda .stat-box .stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.about-img-wrap {
    display: inline-block;
    position: relative;
    width: 100%;
}

#hakkimizda .about-img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 420px;
    border: 4px solid var(--primary);
    filter: sepia(20%) contrast(1.05);
    transition: filter .3s;
}

#hakkimizda .about-img:hover {
    filter: sepia(0%) contrast(1);
}

.about-img-caption {
    margin-top: 10px;
    font-size: .85rem;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* ── Tarihçe (Timeline) ────────────────────────────────────────── */
#tarihce {
    background: var(--bg-alt);
}

.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 50px 50px 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding: 0 0 50px 50px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 6px;
    right: -12px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 3px var(--primary);
}

.timeline-item.right .timeline-dot {
    left: -12px;
    right: auto;
}

.timeline-year {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.timeline-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(36,113,163,.12);
    border-left: 4px solid var(--primary);
    display: inline-block;
    max-width: 340px;
    width: 100%;
}

.timeline-item.right .timeline-card {
    border-left: none;
    border-right: 4px solid var(--primary);
}

.timeline-card h5 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.timeline-card p {
    font-size: .9rem;
    color: #555;
    margin: 0;
}

/* Mobil timeline */
@media (max-width: 767.98px) {
    .timeline::before { left: 20px; }

    .timeline-item,
    .timeline-item.right {
        width: 100%;
        left: 0;
        padding: 0 0 40px 54px;
        text-align: left;
    }

    .timeline-item .timeline-card,
    .timeline-item.right .timeline-card {
        border-left: 4px solid var(--primary);
        border-right: none;
        max-width: 100%;
    }

    .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 8px;
        right: auto;
    }
}

/* ── Haberler ──────────────────────────────────────────────────── */
#haberler {
    background: #fff;
}

.news-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(36,113,163,.1);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(36,113,163,.2);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card .card-body {
    padding: 20px;
}

.news-date {
    font-size: .8rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 6px;
}

.news-card .btn-outline-primary {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.news-card .btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ── Başarılar ─────────────────────────────────────────────────── */
#basarilar {
    background: var(--primary-dark);
    color: #fff;
}

#basarilar .section-title {
    color: #fff;
}

#basarilar .section-title::after {
    background: var(--primary);
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 20px 24px;
    border-left: 4px solid var(--primary);
    transition: background .25s;
}

.achievement-item:hover {
    background: rgba(255,255,255,.18);
}

.achievement-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    color: var(--primary);
}

.achievement-year {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: .85;
}

.achievement-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.achievement-desc {
    font-size: .88rem;
    opacity: .8;
}

/* ── Galeri ────────────────────────────────────────────────────── */
#galeri {
    background: var(--bg-alt);
}

.album-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 16px rgba(36,113,163,.12);
    transition: transform .25s, box-shadow .25s;
}

.album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(36,113,163,.22);
}

.album-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(26,82,118,.85));
    display: flex;
    align-items: flex-end;
    padding: 18px;
    pointer-events: none;
}

.album-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
    background: var(--primary-dark);
    color: #fff;
}

.footer-link {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    transition: color .2s;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    background: var(--primary-deep);
    padding: 12px 0;
    color: rgba(255,255,255,.7);
}
