/* =====================================================================
   KKTC DIŞİŞLERİ BAKANLIĞI - ANA STYLESHEET
   ===================================================================== 
   
   İÇİNDEKİLER:
   
   1. ORTAK CSS'LER ........................... (satır ~8)
      - Reset & Variables
      - Topbar
      - Header & Navigation
      - Breadcrumb
      - Footer
   
   2. ORTAK BİLEŞENLER ........................ (satır ~450)
      - Button (.btn)
      - Modal (.modal)
      - Card (.card)
      - Pager (.pager)
      - Section (.section)
      - Share Buttons (.share-btn)
      - Gallery V3 Profile (.v3-*)
      - Gallery Category (.gcats, .gcat)
   
   3. SAYFA-SPESİFİK STILLER .................. (satır ~850+)
      - Bakan (bakan.html)
      - Detay (detay.html)
      - Galeri-Detay (galeri-detay.html)
      - Teşkilat (teskilat.html)
      - Yayınlar (yayinlar.html)
   
===================================================================== */


/* =====================================================================
   1. ORTAK CSS'LER
   ===================================================================== */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e6e9ee;
    --dark: #1f2329;
    --accent: #d2a760;
    --brand: #075B5E
}

html,
body {
    margin: 0
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

body.nav-open {
    overflow: hidden;
}

.wrap {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 16px
}

.topbar {
    background-color: var(--brand);
    color: #fff;
    font-size: 13px;
}

.topbar .wrap {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 40px;
    justify-content: space-between;
}

.tb-left,
.tb-right {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap
}

.tb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    opacity: .95
}

.tb-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent)
}

.lang {
    display: flex;
    gap: 12px;
    align-items: center
}

.lang a {
    opacity: .9
}

.lang a:hover {
    opacity: 1
}

.social {
    display: flex;
    gap: 14px
}

.social a {
    display: grid;
    place-items: center;
    opacity: .9
}

.social a:hover {
    opacity: 1
}

.social i {
    font-size: 16px;
    color: #fff
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

body.nav-open .site-header {
    z-index: 101;
}

.site-header .wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 22px 16px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px
}

.logo img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block
}

.brand-tit {
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.6
}

.brand-sub {
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: uppercase;
    opacity: .85
}

.nav {
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 22px
}

.nav>a,
.nav .has-dd>a {
    font-size: 16px;
    position: relative;
}

.has-dd {
    position: relative;
    margin-right: 10px;
}

.has-dd>a {
    padding-right: 18px
}

.has-dd>label {
    font-size: 16px;
}

.has-dd>label:after {
    content: "\f078";
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", FontAwesome;
    font-weight: 900;
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-45%);
    font-size: 12px;
    color: #8a8a8a;
}

.dd-menu {
    position: absolute;
    left: 0;
    min-width: 260px;
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    pointer-events: none;
    z-index: 10
}

.dd-menu a {
    position: relative;
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f5f7;
    transition: background .18s ease, transform .18s ease
}

.dd-menu a:last-child {
    border-bottom: 0
}

.dd-menu a:before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 0;
    background: var(--accent);
    border-radius: 2px;
    transition: width .18s ease
}

.dd-menu a:hover {
    background: #fafbfc;
    transform: translateX(2px)
}

.dd-menu a:hover:before {
    width: 4px
}

.dd-menu .t {
    display: block;
    font-weight: 600;
    color: #0f172a;
    transition: color .5s ease
}

.dd-menu .d {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    transition: color .18s ease
}

.dd-menu a:hover .t {
    color: #0b0f1a
}

.dd-menu a:hover .d {
    color: #4b5563
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px
}

.burger {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 6px;
    cursor: pointer
}

.burger:hover {
    background: #f6f7f9
}

.burger span,
.burger span:before,
.burger span:after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
}

.burger span:before {
    position: absolute;
    top: -7px;
}

.burger span:after {
    position: absolute;
    top: 7px;
}

body.nav-open .burger span {
    background: transparent;
}

body.nav-open .burger span:before {
    transform: rotate(45deg);
    top: 0;
    background: #fff;
}

body.nav-open .burger span:after {
    transform: rotate(-45deg);
    top: 0;
    background: #fff;
}

body.nav-open .burger {
    z-index: 101;
    position: relative;
}

.search {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    cursor: pointer
}

.search:hover {
    background: #f6f7f9
}

.search svg {
    width: 22px;
    height: 22px;
    display: block
}

#navToggle {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.dd-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.search-panel {
    position: absolute;
    right: 16px;
    top: 100%;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    pointer-events: none;
    z-index: 60
}

.search-panel input {
    width: 320px;
    height: 40px;
    border: 1px solid #e6e9ee;
    border-radius: 8px;
    padding: 0 12px;
    font: inherit
}

.search-close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    cursor: pointer
}

.search-close:hover {
    background: #f6f7f9
}

.search-panel form {
    display: flex;
    align-items: center;
    gap: 8px
}

.search-submit {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: none;
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease
}

.search-submit:hover {
    background: #064a4c
}

.search-submit svg {
    color: #fff
}

#searchToggle {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

#searchToggle:checked~.search-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 1025px) {
    .has-dd:before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 12px
    }

    .dd-menu {
        top: calc(100% + 12px)
    }

    .has-dd:hover .dd-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto
    }

}

.breadcrumb {
    background: #f8fafc;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px
}

.breadcrumb-nav a {
    color: var(--brand)
}

.breadcrumb-nav a:hover {
    text-decoration: underline
}

.breadcrumb-sep {
    color: #cbd5e1
}


/* =====================================================================
   2. ORTAK BİLEŞENLER (BUTTON, MODAL, CARD, PAGER)
   ===================================================================== */

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #0b2e5c;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease
}

.btn:hover {
    background: #f7fafc
}

.btn.primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand)
}

.btn.ghost {
    background: #fff;
    border: 1px solid var(--line)
}

.btn.sm {
    height: 34px;
    padding: 0 12px
}

.btn.md {
    height: 36px;
    padding: 0 12px
}

.btn.lg {
    height: 42px;
    padding: 0 14px
}

/* Modal Component (Lightbox) */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.modal.active {
    display: flex
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px
}

.modal-caption {
    color: #fff;
    margin-top: 10px;
    text-align: center;
    font-size: .95rem;
    opacity: .85
}

/* Pager Component (Pagination) */
.pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 22px
}

.pager a,
.pager span {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #0b2e5c;
    text-decoration: none;
    font-weight: 700
}

.pager .active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand)
}

.pager .disabled {
    opacity: .45;
    pointer-events: none
}

/* Card Component */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .06)
}

.card .hd {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f6;
    font-weight: 800;
    color: #0b2e5c
}

.card .bd {
    padding: 16px
}

/* Section Component */
.section {
    padding: 48px 0;
    position: relative
}

/* Share Button Component */
.share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    transition: transform .3s ease
}

.share-btn:hover {
    transform: translateY(-2px)
}

.share-facebook {
    background: #1877f2
}

.share-twitter {
    background: #1da1f2
}

.share-whatsapp {
    background: #25d366
}

.share-linkedin {
    background: #0077b5
}

@media (max-width: 560px) {
    .share-buttons {
        flex-wrap: wrap
    }
}

/* Gallery V3 Profile Component */
.v3-profile {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    background: #e9f6f6;
    border: 1px solid #ccc
}

.v3-portrait {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    margin: 0
}

.v3-info {
    background: #fff;
    padding: 18px 18px 20px
}

.v3-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0b2e5c;
    margin-bottom: 1px;
    text-align: center
}

.v3-role {
    font-size: .95rem;
    color: #64748b;
    margin: 0 0 12px;
    text-align: center
}

.v3-terms {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: .95rem;
    color: #0f172a
}

.v3-content {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start
}

/* Gallery Category Component */
.gcats {
    display: grid;
    gap: 18px
}

.gcat {
    background: #fff;
    border: 5px solid #e6eef3;
    border-radius: 14px;
    overflow: hidden;
    text-align: center
}

.gcat img {
    width: 100%;
    object-fit: cover;
    display: block
}

.gcat h4 {
    padding: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: #0b2e5c;
    border-top: 1px solid #e6eef3
}

@media (max-width: 780px) {
    .v3-content {
        grid-template-columns: 1fr
    }
}


.site-footer {
    background: var(--brand);
    color: #fff;
    margin-top: 60px
}

.site-footer .wrap {
    padding: 36px 16px 18px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px
}

.footer-text {
    opacity: .95;
    line-height: 1.5
}

.footer-title {
    font-weight: 700;
    margin-bottom: 10px
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 8px
}

.footer-links a {
    color: #fff;
    opacity: .9
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline
}

.footer-contact {
    display: grid;
    gap: 6px;
    opacity: .95
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 30px
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease
}

.footer-social a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .2)
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .16);
    margin-top: 22px;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .95rem
}

.footer-bottom-links {
    display: flex;
    gap: 8px;
    align-items: center
}

#mainNav .logodiv {
    display: none;
}

.nav-lang {
    display: none;
}


@media (max-width: 1024px) {
    .breadcrumb-nav {
        flex-wrap: wrap;
    }

    .logo img {
        width: 80px;
        height: 80px;
    }

    .brand-tit {
        font-size: 24px
    }

    .brand-sub {
        font-size: 12px
    }

    .burger {
        display: grid;
    }

    .nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        gap: 0.5rem;

        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;

        margin: 0;
        padding: 40px 1.5rem;

        background: #075B5E;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);

        z-index: 1000;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
    }

    .nav a,
    .nav label {
        color: #fff !important;
    }

    #navToggle:checked~nav,
    body.nav-open nav {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
    }

    #mainNav .logodiv {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
        width: 100%;
    }

    #mainNav .logodiv .logo img {
        width: 65px;
        height: 65px;
        margin-bottom: 12px;
    }

    #mainNav .brand-tit {
        font-size: 1.1rem !important;
        color: #fff !important;
        text-align: left;
    }

    #mainNav .brand-sub {
        font-size: 10px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        text-align: left;
    }

    #navToggle:checked~nav>*,
    body.nav-open nav>* {
        margin-top: 0;
    }


    .has-dd {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-lang {
        display: flex;
        gap: 12px;
        align-items: center;
        margin-top: 20px;
        padding-top: 10px;
    }

    .nav-lang a {
        color: #fff;
        opacity: 0.9;
        font-size: 14px;
    }

    .nav-lang a:hover,
    .nav-lang a.active {
        opacity: 1;
        text-decoration: underline;
    }

    .nav-lang span {
        color: rgba(255, 255, 255, 0.5);
    }

    .nav>a {
        display: block;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .has-dd>label {
        position: relative;
        color: #fff !important;
    }

    .has-dd>a,
    .has-dd>label,
    .has-dd.dd-menu {
        display: block;
        padding: 10px 0;
    }

    .has-dd>label:after {
        position: relative;
        display: inline-block;
        margin-left: 8px;
        color: #fff !important;
        transform: translateY(0);
        right: 0;
        top: 0;
    }

    .dd-menu {
        position: relative;
        top: 0;
        left: 0 !important;
        border: 0;
        box-shadow: none;
        border-radius: 0;
        pointer-events: auto;
        background: transparent;
        width: 100%;
        margin-left: 0;
        padding-left: 16px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .dd-menu a {
        color: #fff;
        padding: 10px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dd-menu a:last-child {
        border-bottom: 0;
    }

    .dd-menu a .t {
        color: #fff;
    }

    .dd-menu a .d {
        color: rgba(255, 255, 255, 0.7);
    }

    .dd-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .dd-toggle:checked~.dd-menu,
    .has-dd.dd-open .dd-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        margin-top: 10px;
        padding-bottom: 10px;
    }

    .has-dd.dd-open .dd-link:after {
        transform: translateY(-55%) rotate(180deg);
        color: #fff;
    }

    .search-panel {
        left: 16px;
        right: 16px;
        top: 100%;
        margin-top: 8px
    }

    .search-panel input {
        width: 100%
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 20px 16px;
    }
}

@media (max-width: 560px) {
    .topbar .wrap {
        justify-content: flex-start;
        gap: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .topbar .wrap::-webkit-scrollbar {
        display: none
    }

    .tb-left,
    .tb-right {
        gap: 12px;
        flex-wrap: nowrap
    }

    .logo img {
        width: 68px;
        height: 68px
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .brand-tit {
        font-size: 18px
    }

    .brand-sub {
        font-size: 10px
    }

}

.main-container {
    max-width: 1250px;
    margin: 0 auto;
    padding-top: 40px;
    padding-bottom: 40px
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0b2e5c;
    margin-bottom: 8px
}

.page-sub {
    color: #64748b;
    margin-bottom: 30px
}

/* Detail & Gallery-Detail sayfaları için ortak modal-image stili */
.detail-page .modal-image,
.gallerydetail-page .modal-image {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}