body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f7f4fb;
    color: #333;
}

header {
    background-color: #d9cce8;
    padding: 25px 50px;
}

header h1 {
    margin: 0;
    font-size: 32px;
    color: #4b3b55;
}

nav {
    margin-top: 15px;
}

nav a {
    text-decoration: none;
    color: #4b3b55;
    margin-right: 25px;
    font-size: 15px;
}

main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 25px;
}

section {
    margin-bottom: 50px;
}

h2 {
    font-size: 30px;
    color: #5d4a68;
}

article {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

article h3 {
    color: #5d4a68;
}

article a {
    color: #8b6fa3;
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 30px;
    background-color: #d9cce8;

}

.small-title {
    letter-spacing: 3px;
    font-size: 13px;
    color: #80658f;
    font-weight: bold;
}


.group-search {
    margin-bottom: 40px;
}

.group-search input {
    width: 100%;
    max-width: 600px;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    box-sizing: border-box;
}

.group-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.group-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 15px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.group-image {
    height: 120px;
    background-color: #f3c6bd;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 20px;
    font-weight: bold;
}

.group-card h3 {
    margin: 12px 0 5px;
    font-size: 17px;
}

.group-card p {
    margin: 0;
    color: #999;
    font-size: 12px;
}


.group-header {
    background-color: #f8e9e6;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.group-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.member-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 50px;
}

.member-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #444;
    font-weight: bold;
}

.member-card:hover {
    transform: translateY(-3px);
}

.news-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 20px;
}

.news-card h3 {
    margin-top: 0;
}

.news-card a {
    color: #b77b8a;
}

.news-page-header {
    background-color: #f8e9e6;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.news-page-header p:first-child {
    font-size: 12px;
    letter-spacing: 3px;
    color: #a87885;
}

.news-page-header h2 {
    font-size: 36px;
    margin: 10px 0;
}

.big-news-card {
    display: flex;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    margin-bottom: 25px;
    overflow: hidden;
}

.news-placeholder {
    width: 260px;
    min-height: 200px;
    background-color: #f3c6bd;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 22px;
    font-weight: bold;
}

.news-content {
    padding: 25px;
    flex: 1;
}

.news-category {
    color: #b77b8a;
    font-size: 13px;
    font-weight: bold;
}

.news-content h3 {
    font-size: 22px;
}

.news-info {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 13px;
    margin: 20px 0;
}

.news-content a {
    color: #b77b8a;
    text-decoration: none;
}
.full-news {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.full-news h2 {
    font-size: 38px;
    margin: 10px 0;
}

.news-date {
    color: #999;
    font-size: 13px;
}

.big-placeholder {
    width: 100%;
    height: 350px;
    margin: 30px 0;
}

.full-news p {
    line-height: 1.8;
    font-size: 16px;
}

.comments {
    margin-top: 40px;
}

.comment-form {
    background-color: white;
    padding: 25px;
    border-radius: 18px;
    border: 1px solid #eee;
}

.comment-form input,
.comment-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
}

.comment-form textarea {
    height: 120px;
    resize: vertical;
}

.comment-form button {
    padding: 12px 20px;
    border: none;
    border-radius: 20px;
    background-color: #b77b8a;
    color: white;
    cursor: pointer;
}

.home-news-card {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 20px;
}

.home-news-card h3 {
    font-size: 21px;
    margin: 10px 0;
}

.home-news-card a {
    color: #b77b8a;
    text-decoration: none;
    font-weight: bold;
}

.news-search {
    margin-bottom: 30px;
}

.news-search input {
    width: 100%;
    max-width: 600px;
    padding: 15px 20px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

.news-search input:focus {
    border-color: #b77b8a;
}

.user-comment {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
}

.user-comment strong {
    color: #b77b8a;
}

.user-comment p {
    margin-bottom: 0;
}

/* ANA SAYFA TASARIMI */

body {
    background-color: #fcf8f7;
    color: #444;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 25px;
}

header {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 20px 40px;
}

header h1 {
    text-align: center;
    letter-spacing: 5px;
    font-size: 28px;
    margin-bottom: 20px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: #b77b8a;
}

/* ANA KARŞILAMA ALANI */



.small-title {
    color: #a87885;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold;

}

/* BÖLÜM BAŞLIKLARI */

main section > h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

/* ANA SAYFA HABERLERİ */

.home-news-card {
    transition: 0.2s;
}

.home-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* MOBİL */

@media (max-width: 700px) {

    header {
        padding: 20px;
    }

    nav {
        gap: 15px;
        flex-wrap: wrap;
    }

    main {
        padding: 25px 15px;
    
    }

    .group-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .big-news-card {
        flex-direction: column;
    }

    .news-placeholder {
        width: 100%;
    }

}

.admin-header {
    background-color: #f4dfdb;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.admin-header p:first-child {
    color: #a87885;
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold;
}

.admin-header h2 {
    font-size: 35px;
    margin: 10px 0;
}

.admin-form {
    background-color: white;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 35px;
    max-width: 800px;
}

.admin-form label {
    display: block;
    margin: 20px 0 8px;
    font-weight: bold;
    font-size: 14px;
}

.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form input[type="date"],
.admin-form select,
.admin-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
}

.admin-form textarea {
    min-height: 250px;
    resize: vertical;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.checkbox-label input {
    width: auto;
}

#publishButton {
    margin-top: 25px;
    padding: 14px 25px;
    border: none;
    border-radius: 25px;
    background-color: #b77b8a;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

#publishButton:hover {
    opacity: 0.85;
}

/* KHENGBOK - Mor / Pembe Tema */

body {
    background-color: #faf8ff;
    color: #4d4355;
}

header {
    background-color: #ffffff;
    border-bottom: 1px solid #eee7f5;
}

header h1 {
    color: #7d628f;
}

nav a {
    color: #6f6078;
}

nav a:hover {
    color: #b477a8;
}

.hero {
    background: linear-gradient(135deg, #f5eafa, #fce8f2);
}

.hero h2 {
    color: #59465f;
}

.hero-button {
    background-color: #b77ca8;
    color: white;
}

.hero-button:hover {
    background-color: #96658d;
}

.latest-news h2,
section h2 {
    color: #59465f;
}

.news-card-item,
.home-news-card {
    background-color: #ffffff;
    border: 1px solid #eee5f3;
    box-shadow: 0 5px 20px rgba(120, 90, 140, 0.06);
}

.news-card-item:hover,
.home-news-card:hover {
    box-shadow: 0 8px 25px rgba(120, 90, 140, 0.12);
}

.news-category {
    color: #ad70a0;
}

.news-card-item h3,
.home-news-card h3 {
    color: #514357;
}

.news-card-item a,
.home-news-card a {
    color: #a56598;
}

.news-info {
    color: #9b8da1;
}

footer {
    background-color: #f3edf8;
    color: #76687c;
}

/* =========================
   KHENGBOK GRUPLAR
   MOR + PEMBE + BEYAZ
   ========================= */

.group-search {
    margin-bottom: 35px;
}

#groupSearch {
    width: 100%;
    max-width: 550px;
    box-sizing: border-box;

    padding: 15px 20px;

    border: 1px solid #eadff0;
    border-radius: 30px;

    background: #ffffff;
    color: #55445d;

    font-size: 15px;
    outline: none;

    box-shadow: 0 4px 15px rgba(130, 90, 150, 0.05);
}

#groupSearch::placeholder {
    color: #aa9eae;
}

#groupSearch:focus {
    border-color: #c99bc1;
    box-shadow: 0 0 0 4px #f5e8f3;
}


/* BAŞLIK */

main > h2 {
    color: #59465f;
    font-size: 29px;
    margin-bottom: 25px;
}


/* GRUPLAR */

.group-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}


/* GRUP KARTI */

.group-card {
    display: block;

    background: #ffffff;

    border: 1px solid #eee5f3;
    border-radius: 20px;

    padding: 14px;

    text-decoration: none;

    box-shadow: 0 5px 18px rgba(120, 90, 140, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.group-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 12px 28px rgba(150, 100, 150, 0.14);
}


/* GRUP İSMİNİN OLDUĞU MOR-PİNK ALAN */

.group-image {
    height: 125px;

    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #eadcf4,
        #f8dce9
    );

    color: #ffffff;

    font-size: 18px;
    font-weight: 700;

    letter-spacing: 1px;

    text-shadow:
        0 1px 3px rgba(80, 50, 80, 0.15);
}


/* GRUP ADI */

.group-card h3 {
    margin: 15px 4px 5px;

    color: #59465f;

    font-size: 17px;
}


/* ŞİRKET / ÜYE BİLGİSİ */

.group-card p {
    margin: 0 4px 5px;

    color: #9c8da3;

    font-size: 12px;
}


/* MOBİL */

@media (max-width: 900px) {

    .group-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 550px) {

    .group-grid {
        grid-template-columns: 1fr;
    }

    #groupSearch {
        max-width: 100%;
    }

}

/* =========================
   ANA SAYFA HABERLER
   MOR - PEMBE - BEYAZ
   ========================= */

.latest-news {
    margin-top: 20px;
}

.latest-news > h2 {
    color: #59465f;
    font-size: 30px;
    margin-bottom: 25px;
}

/* Haber kartı */

.latest-news .news-card-item {
    background: #ffffff;
    border: 1px solid #eee4f2;
    border-radius: 18px;

    padding: 24px 28px;
    margin-bottom: 16px;

    box-shadow: 0 5px 18px rgba(130, 90, 150, 0.05);

    transition: 0.25s ease;
}

.latest-news .news-card-item:hover {
    transform: translateY(-3px);

    border-color: #e4cde1;

    box-shadow: 0 10px 25px rgba(150, 100, 150, 0.11);
}

/* Kategori */

.latest-news .news-category {
    display: inline-block;

    margin: 0 0 8px;

    padding: 5px 12px;

    background: #f7e8f4;
    color: #a56899;

    border-radius: 20px;

    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Haber başlığı */

.latest-news .news-card-item h3 {
    margin: 5px 0 8px;

    color: #514357;

    font-size: 21px;
    line-height: 1.4;
}

/* Haber açıklaması */

.latest-news .news-card-item p:not(.news-category) {
    color: #8d8193;

    line-height: 1.6;

    margin-bottom: 15px;
}

/* Görüntülenme ve yorum */

.latest-news .news-info {
    display: flex;
    gap: 18px;

    color: #a296a8;

    font-size: 13px;

    margin-bottom: 13px;
}

/* Devamını oku */

.latest-news .news-card-item a {
    color: #a56598;

    text-decoration: none;

    font-size: 13px;
    font-weight: bold;
}

.latest-news .news-card-item a:hover {
    color: #7d5680;
}


/* MOBİL */

@media (max-width: 600px) {

    .latest-news .news-card-item {
        padding: 20px;
    }

    .latest-news .news-card-item h3 {
        font-size: 18px;
    }

}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    margin-top: 35px;
}

.pagination a {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;
    color: #8b6a91;

    border: 1px solid #eadff0;

    text-decoration: none;
    font-size: 13px;

    transition: 0.2s ease;
}

.pagination a:hover {
    background: #f7e8f4;
    border-color: #d8b5d2;
}

.pagination a.active {
    background: #b77ca8;
    color: #ffffff;
    border-color: #b77ca8;
}
.news-cover {
    width: 100%;
    height: 220px;

    object-fit: cover;

    border-radius: 14px;

    display: block;

    margin-bottom: 18px;
}
.article-cover {
    width: 100%;
    max-height: 550px;

    object-fit: cover;

    border-radius: 18px;

    display: block;

    margin: 25px 0;
}

.article-gif {
    max-width: 100%;

    border-radius: 15px;

    display: block;

    margin: 25px auto;
}

.news-embed {
    width: 100%;

    margin: 30px 0;

    display: flex;

    justify-content: center;
}

.news-embed iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;

    border-radius: 15px;
}

.reddit-embed,
.twitter-tweet,
.instagram-media {
    max-width: 550px;
    margin: 0 auto;
}
.editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.editor-toolbar button {
    border: none;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    background: #ead8ff;
    color: #5d347a;
    font-weight: bold;
}

.news-editor {
    min-height: 300px;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: white;
    outline: none;
    line-height: 1.7;
}

.news-editor:empty::before {
    content: attr(data-placeholder);
    color: #999;
}

.news-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}
/* ===============================
   HABER EDİTÖRÜ
================================ */

.editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.editor-toolbar button {
    border: none;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    background: #ead8ff;
    color: #5d347a;
    font-weight: bold;
}

.editor-toolbar button:hover {
    background: #d9b8ff;
}

.news-editor {
    min-height: 300px;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: white;
    outline: none;
    line-height: 1.7;
}

.news-editor:empty::before {
    content: attr(data-placeholder);
    color: #999;
}

.news-editor img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
}
.category-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.category-row select {
    flex: 1;
}

.category-row input {
    flex: 1;
}

.editor-toolbar {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: #f8f1ff;
    border: 1px solid #eadcff;
    border-bottom: none;
    border-radius: 14px 14px 0 0;
}

.editor-toolbar button {
    width: 40px;
    height: 36px;
    border: none;
    border-radius: 9px;
    background: white;
    color: #713f91;
    cursor: pointer;
    font-size: 16px;
}

.editor-toolbar button:hover {
    background: #eadcff;
}

.news-editor {
    min-height: 320px;
    padding: 18px;
    background: white;
    border: 1px solid #eadcff;
    border-radius: 0 0 14px 14px;
    outline: none;
    line-height: 1.8;
}

.news-editor:empty::before {
    content: attr(data-placeholder);
    color: #aaa;
}

.news-editor img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 14px;
}

.date-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.date-time-row > div {
    display: flex;
    flex-direction: column;
}

.image-upload-box {
    padding: 15px;
    border: 2px dashed #dfc9ef;
    border-radius: 12px;
    background: #fcf9ff;
}

.image-upload-box p {
    margin: 8px 0 0;
    color: #777;
    font-size: 13px;
}


/* FOTOĞRAF KIRPMA PENCERESİ */

.crop-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(40, 20, 50, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.crop-box {
    width: min(700px, 100%);
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.crop-box h2 {
    margin-top: 0;
    color: #5d347a;
}

.crop-preview {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 14px;
    background: #f5f0f8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.crop-preview img {
    max-width: 100%;
    max-height: 500px;
    display: block;
}

.crop-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.crop-controls button {
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    cursor: pointer;
}

#cropCancel {
    background: #eee;
}

#cropConfirm {
    background: #dcb8f5;
    color: #4d2864;
    font-weight: bold;
}


/* YÖNETİMDEKİ HABERLER */

.admin-news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px;
    margin-bottom: 12px;
    background: white;
    border: 1px solid #eadcff;
    border-radius: 14px;
}

.admin-news-info {
    min-width: 0;
}

.admin-news-info strong {
    display: block;
    color: #4d2864;
}

.admin-news-info p {
    margin: 6px 0 0;
    color: #888;
    font-size: 13px;
}

.admin-news-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.admin-news-buttons button {
    border: none;
    border-radius: 9px;
    padding: 9px 12px;
    cursor: pointer;
}

.edit-news-button {
    background: #eadcff;
    color: #5d347a;
}

.delete-news-button {
    background: #ffe5ed;
    color: #a33d62;
}


@media (max-width: 650px) {

    .category-row {
        flex-direction: column;
        align-items: stretch;
    }

    .date-time-row {
        grid-template-columns: 1fr;
    }

    .admin-news-item {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-news-buttons {
        width: 100%;
    }

    .admin-news-buttons button {
        flex: 1;
    }

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

.news-card-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3d9ff, #ffd9ef);
    color: #8d4ca8;
    font-weight: 700;
}

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

.news-card-item {
    overflow: hidden;
}
/* ===============================
   HABER DETAY FOTOĞRAFLARI
================================ */

.article-cover-image {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
    margin: 25px 0;
    border-radius: 18px;
}


.article-gif {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 16px;
}


/* ===============================
   HABER İÇİ FOTOĞRAFLAR
================================ */

#newsContent img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 16px;
}


/* ===============================
   YOUTUBE
================================ */

.embed-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 18px;
}


.embed-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* ===============================
   SOSYAL MEDYA
================================ */

.social-embed {
    margin: 25px 0;
    padding: 20px;
    border-radius: 16px;
    background: #f8eaff;
    border: 1px solid #e8c9f5;
}


.social-embed a {
    color: #8b3fa8;
    font-weight: 600;
    text-decoration: none;
}
/* ========================================
   HABER KAPAK FOTOĞRAFI
   ======================================== */

.article-cover {
    width: 100%;
    height: 420px;
    margin: 25px 0;
    border-radius: 18px;
    overflow: hidden;
    background: #f3eafa;
}


.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.no-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    color: #8b5aa8;
    font-weight: 600;
}


/* ========================================
   HABER İÇİ FOTOĞRAFLAR
   ======================================== */

.news-editor img,
#newsContent img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 12px;
}


/* ========================================
   GIF
   ======================================== */

.news-gif {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 12px;
}


/* ========================================
   EMBED
   ======================================== */

.news-embed {
    width: 100%;
    margin: 30px 0;
}


.news-embed iframe {
    width: 100%;
    min-height: 400px;
    border: none;
    border-radius: 14px;
}


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

@media (max-width: 700px) {

    .article-cover {
        height: 250px;
        border-radius: 14px;
    }

}
/* ========================================
   HABER KARTLARI
   ======================================== */

#latestNewsList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}


.news-card-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #eadcf3;
    transition: transform 0.2s ease;
}


.news-card-item:hover {
    transform: translateY(-4px);
}


.news-card-image {
    width: 100%;
    height: 230px;
    background: #f3eafa;
    overflow: hidden;
}


.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.news-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #8b5aa8;
}


.news-card-info {
    padding: 18px;
}


.news-card-category {
    color: #9a55c7;
    font-size: 13px;
    font-weight: 700;
}


.news-card-info h3 {
    margin: 8px 0;
    font-size: 20px;
}


.news-card-info p {
    margin: 0;
    color: #888;
    font-size: 13px;
}


@media (max-width: 700px) {

    #latestNewsList {
        grid-template-columns: 1fr;
    }

    .news-card-image {
        height: 220px;
    }

}
.article-cover {
    width: 100%;
    margin: 25px 0;
}

.article-cover-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.no-cover {
    width: 100%;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3e8ff;
    border-radius: 18px;
}

@media (max-width: 700px) {

    .article-cover-image,
    .no-cover {
        height: 250px;
    }

}
/* ========================================
   HABER KARTI KAPAK FOTOĞRAFLARI
======================================== */

.news-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #eee;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ========================================
   KAPAK FOTOĞRAFI YOKSA
======================================== */

.news-card-no-image {
    width: 100%;
    height: 100%;
    min-height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eee;
    color: #888;
}


/* ========================================
   HABER DETAY KAPAK FOTOĞRAFI
======================================== */

.article-cover-image {
    width: 100%;
    aspect-ratio: 16 / 9;

    object-fit: cover;

    display: block;

    border-radius: 18px;

    margin: 25px 0;
}


/* ========================================
   HABER KARTI
======================================== */

.news-card-item {
    overflow: hidden;
}


.news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}


.news-card-content {
    padding: 15px 5px;
}


.news-card-category {
    font-size: 13px;
    font-weight: 700;
}


.news-card-content h3 {
    margin: 7px 0;
}


.news-card-date {
    font-size: 13px;
    opacity: 0.65;
}
/* ========================================
   HABER DETAY KAPAK FOTOĞRAFI
======================================== */

#newsCover {
    width: 100%;
    margin: 25px 0;
}

.article-cover-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.news-card-no-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-radius: 18px;
}
/* KHENGBOK - SON HABER SİSTEMİ DÜZELTMELERİ */
.news-card-link { display:block; color:inherit; text-decoration:none; }
.news-card-image-wrapper { width:100%; aspect-ratio:16/9; overflow:hidden; background:#f3eafa; }
.news-card-image-wrapper .news-card-image { width:100%; height:100%; object-fit:cover; display:block; }
.news-card-content { padding:18px; }
.news-card-text { margin:8px 0; line-height:1.6; }
.news-card-date { font-size:13px; opacity:.7; }
#homeLatestNewsList, #latestNewsList, #popularNewsList { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:25px; }
#homeLatestNewsList .no-news, #latestNewsList .no-news, #popularNewsList .no-news { grid-column:1/-1; }
#newsCover { width:100%; margin:25px 0; }
#newsCover .article-cover-image { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; border-radius:18px; }
#newsContent img { max-width:100%; height:auto; display:block; margin:25px auto; border-radius:16px; }
.cover-status { margin-top:8px; min-height:20px; font-weight:600; }
@media (max-width:700px) {
    #homeLatestNewsList, #latestNewsList, #popularNewsList { grid-template-columns:1fr; }
}


/* ===== KHENGBOK UNIFIED SYSTEM OVERRIDES ===== */
.news-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}
.news-card-item{margin:0; padding:0; border-radius:18px;}
.news-card-link{height:100%;}
.news-card-image-wrapper{aspect-ratio:16/9; overflow:hidden; background:#eee;}
.news-card-content{padding:18px 20px 20px;}
.news-card-content h3{margin:8px 0;font-size:20px;line-height:1.35;}
.news-card-text{color:#777;line-height:1.55;}
.news-card-date{color:#999;font-size:13px;}
.no-news{background:#fff;border:1px solid #eee;border-radius:18px;padding:30px;text-align:center;}
.filter-bar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:25px;}
.filter-bar select,.filter-bar input{padding:12px 15px;border:1px solid #ddd;border-radius:12px;background:#fff;}
.group-news-list{margin-top:25px;}
.article-cover-image{width:100%;max-height:650px;object-fit:contain;background:#f3f3f3;}
#newsContent{line-height:1.85;font-size:17px;}
#newsContent img{max-width:100%;height:auto;display:block;margin:28px auto;border-radius:16px;}
#newsContent p{margin:0 0 18px;}
.article-meta{display:flex;gap:15px;flex-wrap:wrap;color:#999;font-size:13px;}
.cover-status{color:#7c5a83;font-size:13px;min-height:18px;}
.image-upload-box{background:#fbf8fd;border:1px dashed #cdb9d5;padding:18px;border-radius:14px;}
.crop-modal{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:9999;align-items:center;justify-content:center;padding:20px;}
.crop-box{background:#fff;border-radius:20px;padding:25px;max-width:850px;width:100%;max-height:90vh;overflow:auto;}
.crop-preview{background:#222;border-radius:14px;padding:12px;text-align:center;}
.crop-preview img{max-width:100%;max-height:60vh;object-fit:contain;}
.crop-controls{display:flex;justify-content:flex-end;gap:12px;margin-top:18px;}
.crop-controls button{padding:12px 18px;border:0;border-radius:12px;cursor:pointer;}
#cropConfirm{background:#b77b8a;color:#fff;}
.editor-toolbar{display:flex;gap:6px;padding:8px;border:1px solid #ddd;border-bottom:0;border-radius:12px 12px 0 0;background:#fafafa;}
.editor-toolbar button{padding:8px 12px;border:1px solid #ddd;background:#fff;border-radius:8px;cursor:pointer;}
.news-editor{min-height:260px;padding:16px;border:1px solid #ddd;border-radius:0 0 12px 12px;background:#fff;outline:none;}
.news-editor:empty:before{content:attr(data-placeholder);color:#aaa;}
.admin-news-list{margin-top:35px;}
.admin-news-item{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;border:1px solid #eee;border-radius:16px;padding:18px;margin-bottom:12px;}
.admin-news-buttons{display:flex;gap:8px;flex-wrap:wrap;}
.admin-news-buttons button{padding:9px 12px;border:0;border-radius:10px;cursor:pointer;}
.edit-news-button{background:#eee2f3}.delete-news-button{background:#f4dede;}
.home-featured{display:grid;grid-template-columns:2fr 1fr;gap:24px;}
.home-featured .news-card-item:first-child .news-card-content h3{font-size:26px;}
.group-card{transition:.2s}.group-card:hover{transform:translateY(-3px);}
@media(max-width:800px){
 .news-grid{grid-template-columns:1fr 1fr}.home-featured{grid-template-columns:1fr}
}
@media(max-width:560px){
 .news-grid{grid-template-columns:1fr}.admin-news-item{align-items:flex-start;flex-direction:column}
}


/* ========================================
   KHENGBOK - INLINE HABER İÇERİKLERİ
   ======================================== */

.kh-inline-embed {
    display: block;
    width: 100%;
    margin: 22px 0;
    padding: 14px;
    box-sizing: border-box;
    border: 1px dashed #d8c8df;
    border-radius: 14px;
    background: #faf7fc;
}

.kh-inline-embed-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.kh-inline-embed-url {
    color: #777;
    font-size: 13px;
    overflow-wrap: anywhere;
    margin-bottom: 10px;
}

.kh-inline-embed-remove {
    border: 0;
    border-radius: 8px;
    padding: 7px 10px;
    cursor: pointer;
}

.news-editor .kh-inline-embed {
    user-select: none;
}

.article-inline-embed {
    width: 100%;
    margin: 28px auto;
    box-sizing: border-box;
}

.article-inline-image,
.article-inline-gif {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 25px auto;
    border-radius: 16px;
}

.article-inline-gif {
    max-width: 100%;
}

.article-inline-embed .embed-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}

.article-inline-embed .embed-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.article-inline-embed .twitter-tweet,
.article-inline-embed .instagram-media {
    margin-left: auto !important;
    margin-right: auto !important;
}

.reddit-embed-wrap {
    padding: 18px;
    border: 1px solid #e6e0e8;
    border-radius: 14px;
    background: #fafafa;
    text-align: center;
}

.reddit-embed-wrap a {
    font-weight: 700;
}

@media (max-width: 700px) {
    .editor-toolbar {
        flex-wrap: wrap;
    }

    .editor-toolbar button {
        padding: 8px 10px;
    }

    .article-inline-embed {
        margin: 22px 0;
    }
}


/* ========================================
   KHENGBOK - SON MOBİL / RESPONSIVE KATMAN
   Bu bölüm dosyanın sonundadır; önceki
   çakışan mobil kuralların üzerine çıkar.
======================================== */

.mobile-menu-button {
    display: none;
}

@media (max-width: 700px) {

    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    header {
        position: relative;
        padding: 16px 18px;
    }

    header h1 {
        margin: 0;
        padding-right: 54px;
        text-align: left;
        font-size: 24px;
        letter-spacing: 4px;
    }

    .mobile-menu-button {
        position: absolute;
        top: 14px;
        right: 16px;
        display: flex;
        width: 44px;
        height: 44px;
        padding: 9px;
        box-sizing: border-box;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        border: 1px solid #eadff0;
        border-radius: 12px;
        background: #fff;
        cursor: pointer;
        z-index: 10001;
    }

    .mobile-menu-button span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: #7d628f;
    }

    header nav {
        display: none;
        position: absolute;
        z-index: 10000;
        top: calc(100% + 1px);
        left: 12px;
        right: 12px;
        margin: 0;
        padding: 10px;
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border: 1px solid #eee7f5;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 12px 28px rgba(80,55,90,.12);
    }

    header nav.mobile-nav-open {
        display: flex;
    }

    header nav a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 13px 14px;
        border-radius: 10px;
        font-size: 15px;
    }

    header nav a:hover,
    header nav a:focus {
        background: #faf4fc;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    main {
        width: 100%;
        max-width: 1100px;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 24px 14px 35px;
    }

    section {
        margin-bottom: 32px;
    }

    h2 {
        font-size: 26px;
    }

    .hero,
    .news-page-header,
    .group-header,
    .admin-header {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .news-page-header h2,
    .group-header h2,
    .admin-header h2,
    .full-news h2 {
        font-size: 27px;
        line-height: 1.25;
    }

    /* Haber listeleri */
    #homeLatestNewsList,
    #latestNewsList,
    #popularNewsList,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-card-item {
        width: 100%;
        min-width: 0;
        border-radius: 15px;
    }

    .news-card-image-wrapper {
        aspect-ratio: 16 / 9;
        border-radius: 0;
    }

    .news-card-content {
        padding: 14px 15px 16px;
    }

    .news-card-content h3 {
        font-size: 18px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .news-card-text {
        font-size: 14px;
    }

    /* Kategori kutuları */
    .group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .group-card {
        min-width: 0;
        padding: 10px;
        border-radius: 14px;
    }

    .group-image {
        height: 92px;
        border-radius: 10px;
        font-size: 16px;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .group-card h3 {
        font-size: 15px;
        overflow-wrap: anywhere;
    }

    /* Haber detay */
    .full-news {
        padding: 20px 16px;
        border-radius: 16px;
    }

    #newsContent {
        font-size: 16px;
        line-height: 1.75;
        overflow-wrap: anywhere;
    }

    #newsContent img,
    .article-inline-image,
    .article-inline-gif {
        max-width: 100%;
        width: auto;
        height: auto;
    }

    .article-inline-embed {
        max-width: 100%;
        overflow: hidden;
    }

    .article-inline-embed .embed-container {
        border-radius: 12px;
    }

    .article-inline-embed .twitter-tweet,
    .article-inline-embed .instagram-media {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .reddit-embed-wrap {
        overflow-wrap: anywhere;
    }

    /* Yorum formu */
    .comment-form {
        padding: 17px;
    }

    /* Admin */
    .admin-form {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        padding: 18px 15px;
        border-radius: 16px;
    }

    .category-row,
    .date-time-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .category-row > *,
    .date-time-row > * {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .admin-form input,
    .admin-form select,
    .admin-form textarea,
    .admin-form button {
        max-width: 100%;
        font-size: 16px;
    }

    .news-editor {
        min-height: 220px;
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    .editor-toolbar {
        position: sticky;
        top: 0;
        z-index: 20;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .editor-toolbar button {
        flex: 0 0 auto;
        min-width: 42px;
        min-height: 42px;
    }

    .kh-inline-embed {
        padding: 10px;
    }

    .crop-box {
        width: calc(100vw - 24px);
        max-height: 90vh;
        padding: 16px;
        box-sizing: border-box;
        border-radius: 16px;
    }

    .crop-preview img {
        max-width: 100%;
        max-height: 55vh;
    }

    .crop-controls {
        flex-direction: column-reverse;
    }

    .crop-controls button {
        width: 100%;
        min-height: 44px;
    }

    .admin-news-item {
        width: 100%;
        box-sizing: border-box;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .admin-news-buttons {
        width: 100%;
    }

    .admin-news-buttons button {
        flex: 1 1 120px;
        min-height: 42px;
    }

    /* Arama alanları */
    .news-search,
    .group-search {
        margin-bottom: 20px;
    }

    .news-search input,
    .group-search input {
        width: 100%;
        max-width: none;
        font-size: 16px;
        box-sizing: border-box;
    }
}

@media (max-width: 380px) {
    main {
        padding-left: 10px;
        padding-right: 10px;
    }

    .group-grid {
        grid-template-columns: 1fr;
    }

    .group-image {
        height: 100px;
    }

    .full-news {
        padding: 16px 13px;
    }

    .admin-form {
        padding: 15px 12px;
    }
}
