/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* GLOBAL FONT */
* {
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

/* ================= HEADER ================= */

.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #000;
}

.logo img {
    max-height: 100px;
    height: auto;
}

/* DESKTOP NAV FIX */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: #000;
    margin-left: 26px;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 6px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ================= NEWS HERO ================= */

.news-hero {
    padding: 60px 30px;
    background: #f4f4f4;
}

/* GÖRSEL + ŞERİT TEK BLOK */
.news-hero-wrapper {
    max-width: 1200px;
    margin: auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.25);
}

/* GÖRSEL */
.news-hero-image {
    height: 480px;
    background-image: url('../img/haber01.png');
    background-size: cover;
    background-position: center;
}

/* GÖRSEL ALTINDAKİ SİYAH ŞERİT */
.news-bar {
    background: #1479b4;
    padding: 14px 24px;
    color: #fff;
}

.news-bar h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.news-bar p {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
    max-width: 800px;
}

@media (max-width: 768px) {
    .news-hero {
        padding: 40px 16px;
    }

    .news-hero-wrapper {
        border-radius: 12px;
    }

    .news-hero-image {
        height: 100px;
    }

    .news-bar {
        height: 75px;
        padding: 1px 12px;
        bottom: 5px;
    }

    .news-bar h2 {
        font-size: 14px;
    }

    .news-bar p {
        font-size: 10px;
    }

    .news-thumbs {
        gap: 12px;
        margin-top: 12px;
    }

    .news-thumb {
        width: 52px;
        height: 52px;
    }
}

/* ================= THUMBNAILS ================= */

.news-thumbs {
    max-width: 1200px;
    margin: 24px auto 0;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.news-thumb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all .3s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.news-thumb:hover,
.news-thumb.active {
    border-color: #000;
    transform: scale(1.15);
}

/* ================= DUYURULAR ================= */

.announcements {
    padding: 70px 30px;
    background: #ffffff;
}

.announcements-title {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #000;
}

.announcements-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.announcement-box {
    background: #1479b4;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.announcement-date {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.announcement-box p {
    font-size: 14px;
    line-height: 1.5;
}

.announcement-box:hover {
    background: #ffffff;
    color: #000;
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
    transform: translateY(-6px);
}

/* ================= FOOTER ================= */

.footer-modern {
    background: #fff;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    padding: 60px 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.footer-box h4 {
    font-size: 15px;
    margin-bottom: 15px;
    color: #000;
    font-weight: 600;
}

.footer-box p {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
}

.footer-logo {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.footer-card {
    background: #f6f6f6;
    padding: 20px;
    border-radius: 10px;
    font-size: 13px;
    color: #333;
}

.footer-bottom {
    border-top: 1px solid #eee;
    text-align: center;
    padding: 18px;
    font-size: 12px;
    color: #777;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
    .announcements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .announcements-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= DERNEK + BAŞKAN ================= */

.about-president {
    background: #ffffff;
    padding: 80px 30px 60px;
}

.about-president-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

/* SOL METİN */
.about-text h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #000;
}

.about-text p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

/* SAĞ KART */
.president-card {
    background: #f6f6f6;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.president-card img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 18px;
}

.president-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* BUTONLAR */
.president-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.president-buttons .btn {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 20px;
    text-decoration: none;
    background: #1479b4;
    color: #fff;
    transition: all 0.3s ease;
}

.president-buttons .btn:hover {
    background: #000;
}

/* MOBİL */
@media (max-width: 900px) {
    .about-president-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ================= CLEAN MOBILE MENU ================= */

/* Hamburger button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 26px;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
}

/* Mobile menu behaviour */
@media (max-width: 768px) {

    .mobile-menu-btn {
        display: flex;
        z-index: 4000;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 100px 24px 40px;
        gap: 20px;
        box-shadow: none;
        transition: transform 0.35s ease;
        transform: translateX(-100%);
        z-index: 3000;
    }

    .main-nav.open {
        display: flex;
        transform: translateX(0);
    }

    .main-nav a {
        margin: 0;
        font-size: 18px;
        text-align: left;
    }
}



/* ===== DESKTOP RESET FOR MOBILE MENU ELEMENTS ===== */
@media (min-width: 769px) {

    /* Mobil menü içindeki ekstra alanlar masaüstünde bozulmasın */
    .mobile-menu-info,
    .mobile-menu-contact,
    .mobile-menu-social {
        display: none;
    }

    /* Masaüstünde nav normal hizasında kalsın */
    .main-nav {
        position: static;
        transform: none;
        height: auto;
        width: auto;
        padding: 0;
        flex-direction: row;
    }

    .main-nav a {
        font-size: 16px;
    }
}
/* ===== MOBILE MENU SOCIAL FINAL ABSOLUTE FIX ===== */
@media (max-width: 768px) {

    .mobile-menu-social {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: left !important;
        gap: 0 !important;
        margin: 16px 0 0 0 !important;
        padding: 0 !important;
    }

    .mobile-menu-social a {
        display: inline-flex !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 22px !important;
        background: transparent !important;
        color: #111 !important;
        text-decoration: none !important;
    }

    /* ikinci ikon sadece ikon genişliği kadar yana gelsin */
    .mobile-menu-social a + a {
        margin-left: 10px !important;
    }
}
/* ===== MOBILE MENU FORCE LEFT ALIGN (NO DELETE) ===== */
@media (max-width: 768px) {

    .main-nav,
    .main-nav a,
    .mobile-menu-info,
    .mobile-menu-contact {
        text-align: left !important;
        align-items: flex-start !important;
    }
}
  
/* ================= TOP HEADER (DESKTOP) ================= */
.top-header {
    background: #1479b4;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.top-header-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    display: flex;
    gap: 20px;
    color: #ffffff;
}

.top-contact i {
    margin-right: 6px;
}

.top-social {
    display: flex;
    gap: 14px;
}

.top-social a {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
}

.top-social a:hover {
    color: #22c1c3;
}

@media (max-width: 768px) {
    .top-header {
        display: none;
    }
}

/* ===== HEADER FULL WIDTH FIX ===== */

/* body default boşluklarını sıfırla */
body {
    margin: 0;
    padding: 0;
}

/* header ve üst bar tam genişlik */
.main-header,
.top-header {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* iç container’ların yan boşluklarını kontrol et */
.header-inner,
.top-header-inner {
    margin-left: auto;
    margin-right: auto;
}

/* mobilde de taşma olmasın */
@media (max-width: 768px) {
    .header-inner,
    .top-header-inner {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ================= ABOUT PAGE ================= */

.about-page {
    padding: 80px 32px;
    background: #ffffff;
}

.about-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* SOL METİN */
.about-left h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-left p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

/* SAĞ KUTULAR */
.about-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-box {
    background: #f6f6f6;
    padding: 24px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.info-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.info-box p {
    font-size: 13px;
    color: #666;
}

.info-box:hover {
    background: #1479b4;
    color: #fff;
    transform: translateY(-6px);
}

.info-box:hover p {
    color: #eaf4fb;
}

/* ================= POPUP ================= */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.popup-overlay.active {
    display: flex;
}

.popup-box {
    background: #fff;
    max-width: 520px;
    width: 90%;
    padding: 30px;
    border-radius: 16px;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 24px;
    cursor: pointer;
}

/* ================= MOBİL ================= */

@media (max-width: 900px) {
    .about-inner {
        grid-template-columns: 1fr;
    }

    .about-right {
        grid-template-columns: 1fr;
    }
}
/* ================= NEWS LIST PAGE ================= */

.news-list-page {
    padding: 70px 32px;
    background: #ffffff;
}

.news-list-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* TEK HABER */
.news-item {
    display: flex;
    gap: 32px;
    align-items: center;
    background: #f6f6f6;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* GÖRSEL */
.news-item-image {
    width: 280px;
    height: 180px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* İÇERİK */
.news-item-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
}



.news-desc p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.news-desc p.open {
    max-height: 500px;
}

/* ===== READ MORE BUTTON STYLE OVERRIDE (NO DELETE) ===== */
.read-more-btn {
    display: inline-block !important;
    margin-top: 12px !important;
    padding: 8px 18px !important;
    border-radius: 5px !important;
    background: #1479b4 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.read-more-btn:hover {
    background: #0f5f8f !important;
}

.news-date {
    font-size: 12px;
    color: #888;
}

/* ================= MOBİL ================= */

@media (max-width: 900px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }
    }

    /* ===== NEWS IMAGE FIT OVERRIDE (NO DELETE) ===== */
.news-item-image {
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* ================= GALLERY PAGE ================= */

.gallery-page {
    padding: 70px 32px;
    background: #ffffff;
}

.gallery-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* TEK FOTO */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

/* FOTOĞRAF */
.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* HOVER OVERLAY */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* HOVER */
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* YAZILAR */
.gallery-author {
    font-size: 14px;
    font-weight: 500;
}

.gallery-date {
    font-size: 12px;
    opacity: 0.85;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
    .gallery-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .gallery-inner {
        grid-template-columns: 1fr;
    }
}

/* ================= FOOTER ENHANCED ================= */

/* footer kolon sayısını 4 yap */
.footer-content {
    grid-template-columns: repeat(4, 1fr);
}
.footer-logo img {
    max-height: 100px;
    height: auto;
    width: auto;
}

/* HIZLI MENÜ */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

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

/* SOSYAL MEDYA */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer-social a {
    font-size: 18px;
    color: #555;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #1479b4;
}

/* İLETİŞİM YAZILARI */
.footer-box p {
    margin-bottom: 6px;
}

/* ================= FOOTER MOBILE ================= */

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ================= CONTACT PAGE ================= */

.contact-page {
    padding: 80px 32px;
    background: #ffffff;
}

.contact-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* SOL FORM */
.contact-left h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #1479b4;
}

.contact-form button {
    margin-top: 10px;
    padding: 12px;
    border-radius: 30px;
    border: none;
    background: #1479b4;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.contact-form button:hover {
    background: #0f5f8f;
}

/* SAĞ BİLGİLER */
.contact-right h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-right p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 14px;
}

/* YOL TARİFİ BUTONU */
.map-btn {
    display: inline-block;
    margin: 16px 0;
    padding: 10px 20px;
    background: #1479b4;
    color: #fff;
    border-radius: 30px;
    font-size: 13px;
    text-decoration: none;
}

.map-btn:hover {
    background: #0f5f8f;
}

/* SOSYAL */
.contact-social {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.contact-social a {
    font-size: 20px;
    color: #555;
    transition: color 0.3s ease;
}

.contact-social a:hover {
    color: #1479b4;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
    .contact-inner {
        grid-template-columns: 1fr;
    }
}

/* ===== CONTACT RIGHT BOX STYLE (NO DELETE) ===== */

.contact-right {
    background: #1479b4;
    padding: 32px;
    border-radius: 16px;
    color: #ffffff;
}

/* Başlık */
.contact-right h2 {
    color: #ffffff;
}

/* Yazılar */
.contact-right p {
    color: #ffffff;
}

/* Yol Tarifi Butonu */
.contact-right .map-btn {
    background: #ffffff;
    color: #1479b4;
    font-weight: 500;
}

.contact-right .map-btn:hover {
    background: #eaf4fb;
}

/* Sosyal ikonlar */
.contact-right .contact-social a {
    color: #ffffff;
}

.contact-right .contact-social a:hover {
    color: #eaf4fb;
}

/* ===== ABOUT POPUP PRESIDENT ===== */

.popup-president {
    text-align: center;
}

.popup-president img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}

.popup-president h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.popup-president p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

/* ===== MANAGEMENT SCHEMA ===== */

.management-schema {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.manager {
    background: #1479b4;
    color: #ffffff;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.manager span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.9;
}

/* MOBİL */
@media (max-width: 500px) {
    .management-schema {
        grid-template-columns: 1fr;
    }
}


/* ===== POPUP CONTENT CLEAN ===== */

.popup-box h2 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

.popup-box p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
}

.popup-box a {
    color: #1479b4;
    text-decoration: none;
    font-weight: 500;
}

.popup-box a:hover {
    text-decoration: underline;
}