/* Header ve footer logo - standart boyut */
header div#logo img,
header div#logo .logo,
header div#logo .logo-2 {
    max-height: 130px;
    width: auto;
    max-width: 235px;
    height: auto;
    object-fit: contain;
}

header.smaller div#logo img {
    max-height: 90px;
}

footer .widget img.img-fluid {
    max-height: 80px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

@media (max-width: 767px) {
    header div#logo img {
        max-height: 70px;
        max-width: 240px;
    }
}

/* İç sayfalar - şeffaf header ve subheader okunabilirliği */
header.transparent:not(.scroll-light):not(.smaller) {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.52) 70%,
        rgba(0, 0, 0, 0.12) 100%
    );
}

header.transparent:not(.scroll-light):not(.smaller) #mainmenu a,
header.transparent:not(.scroll-light):not(.smaller) #mainmenu > li.menu-item-has-children > a:after,
header.transparent:not(.scroll-light):not(.smaller) div#logo,
header.transparent:not(.scroll-light):not(.smaller) div#logo a {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 2px 10px rgba(0, 0, 0, 0.45);
}

#subheader {
    position: relative;
}

#subheader::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

#subheader .center-y {
    position: relative;
    z-index: 2;
}

#subheader h1,
#subheader p {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

/* İçerik detay sayfası - öne çıkan görsel */
.blog-read .post-featured-image {
    text-align: center;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 4px;
    background: #f8f8f8;
}

.blog-read .post-featured-image img {
    display: inline-block;
    max-width: 100%;
    width: auto;
    max-height: 420px;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
}

/* Editörden eklenen içerik görselleri */
.blog-read .post-text img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}

@media (max-width: 767px) {
    .blog-read .post-featured-image img {
        max-height: 280px;
    }
}

/* Ek dosya önizleme (PDF / Word) */
.post-attachment {
    margin: 30px 0 20px;
    padding: 24px;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.post-attachment .attachment-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #242E3F;
    margin-bottom: 6px;
}

.post-attachment .attachment-header .fa {
    margin-right: 8px;
    color: #c49b63;
}

.post-attachment .attachment-filename {
    color: #666;
    font-size: .9rem;
    margin-bottom: 16px;
}

.doc-preview {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.doc-preview iframe {
    display: block;
    width: 100%;
    border: 0;
    background: #fff;
}

.doc-preview-pdf iframe {
    height: 600px;
}

.doc-preview-word iframe {
    height: 700px;
}

.doc-preview-fallback {
    text-align: center;
    padding: 40px 20px;
}

.doc-preview-fallback .doc-preview-icon {
    font-size: 4rem;
    color: #2b579a;
    margin-bottom: 12px;
}

.doc-preview-fallback p {
    color: #666;
    margin: 0;
}

.post-attachment .attachment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-attachment .attachment-actions .btn {
    margin: 0;
}

@media (max-width: 767px) {
    .doc-preview-pdf iframe {
        height: 400px;
    }
    .doc-preview-word iframe {
        height: 450px;
    }
}

/* Admin panel ek dosya */
.attachment-upload .attachment-current {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f5f6f8;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.attachment-upload .remove-attachment {
    display: block;
    margin-top: 8px;
    font-size: .9rem;
    color: #dc2626;
    cursor: pointer;
}

.attachment-upload .badge,
.table-wrap .badge {
    display: inline-block;
    padding: 2px 8px;
    background: #242E3F;
    color: #fff;
    border-radius: 4px;
    font-size: .75rem;
    margin-left: 6px;
}

/* Dergilerimiz bölümü */
#section-highlight .dergi-section-arrow {
    width: 56px;
    height: 80px;
    margin: 6px 0 0 6px;
    opacity: 0.95;
}

#section-highlight .dergi-section-arrow svg {
    display: block;
    width: 100%;
    height: 100%;
}

#section-highlight .dergi-view-all-link {
    margin-top: 10px;
}

#section-highlight .list.s4 li {
    display: flex;
    align-items: stretch;
    padding: 16px 16px 14px 70px;
    min-height: 118px;
}

#section-highlight .list.s4 .dergi-item-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    width: 100%;
    color: #ffffff;
    text-decoration: none;
}

#section-highlight .list.s4 .dergi-item-link:hover {
    color: #ffffff;
}

#section-highlight .list.s4 .dergi-item-title {
    display: block;
    line-height: 1.45;
}

#section-highlight .list.s4 .dergi-item-more {
    align-self: flex-end;
    margin-top: 12px;
    font-size: 15px;
    font-style: italic;
    color: #c49b63;
    opacity: 0.95;
}

#section-highlight .list.s4 .dergi-item-link:hover .dergi-item-more {
    text-decoration: underline;
}

/* Basın açıklamaları kartları */
.dcg-four {
    aspect-ratio: 4 / 3;
    background: #242e3f;
}

.dcg-four .dcg-image {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    display: block;
}

.dcg-four .dcg-title {
    font-family: "Jost", Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.01em;
    padding: 14px 18px !important;
    max-width: 95%;
    text-transform: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dcg-four:hover .dcg-title,
.dcg-four:active .dcg-title {
    font-size: 15px !important;
}

.dcg-four .dcg-content {
    font-family: "Jost", Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .dcg-four .dcg-title {
        font-size: 14px !important;
    }

    .dcg-four:hover .dcg-title,
    .dcg-four:active .dcg-title {
        font-size: 14px !important;
    }
}

@media (min-width: 1400px) {
    .dcg-four .dcg-title {
        font-size: 13px !important;
    }

    .dcg-four:hover .dcg-title,
    .dcg-four:active .dcg-title {
        font-size: 13px !important;
    }
}
