/* ============================================
   BEYLİKDÜZÜ SMART-B - Master Stylesheet v4.9
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('tokens.css');

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-white);
    color: var(--text-body);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

::selection {
    background: var(--gold);
    color: #0A2540;
}

/* ── Layout ── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section {
    padding: var(--section-pad) 0;
}

.section-dark {
    background: #0A2540;
    color: #FFFFFF;
}

.section-dark h2,
.section-dark h3 {
    color: #FFFFFF;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.section-warm {
    background: var(--bg-warm);
}

/* ── Buttons & Category Filters ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--gold);
    color: #0A2540;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background: var(--gold-dark);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: #0A2540;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
}

.btn-solid:hover {
    background: #153E68;
    color: #F59E0B;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: #FFFFFF;
    color: #0A2540;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-pill);
    border: 2px solid #CBD5E1;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: #F1F5F9;
    color: #F59E0B;
    border-color: #F59E0B;
    transform: translateY(-2px);
}

/* Category Filter Buttons Overrides */
.category-btn {
    font-size: 13px !important;
    padding: 10px 24px !important;
    letter-spacing: 0.5px !important;
}

.category-btn.btn-solid {
    background: #0A2540 !important;
    color: #FFFFFF !important;
    border: 2px solid #0A2540 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15) !important;
}

.category-btn.btn-outline {
    background: #FFFFFF !important;
    color: #0A2540 !important;
    border: 2px solid #CBD5E1 !important;
    font-weight: 600 !important;
}

.category-btn.btn-outline:hover {
    background: #F8FAFC !important;
    color: #D97706 !important;
    border-color: #F59E0B !important;
}

/* ── NAVBAR HEADER ── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    height: 90px;
    background: transparent;
    transition: background 0.4s ease, height 0.3s ease, box-shadow 0.4s ease;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Extended Bleed for Mobile Status Bar & Elastic Scroll (Prevents Light Leak) */
.header::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -20px;
    right: -20px;
    height: 105px;
    background: inherit;
    z-index: -1;
    pointer-events: none;
}

.header.header-transparent {
    background: transparent !important;
    border-bottom: none;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    height: 76px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin: 0 !important;
    border-radius: 0 !important;
}

.header.scrolled .nav-link {
    color: #0A2540 !important;
    font-weight: 700;
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: #D97706 !important;
}

/* ── NAVBAR BRAND LOGO + AR-GE MÜDÜRLÜĞÜ TEXT ── */
.navbar-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-brand-link:hover {
    transform: translateY(-1px);
}

.navbar-brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: filter 0.3s ease, height 0.3s ease;
}

.header .navbar-brand-logo {
    filter: brightness(0) invert(1); /* Sayfa başında saf beyaz SVG */
}

.header.scrolled .navbar-brand-logo {
    filter: brightness(0); /* Aşağı kaydırıldığında net siyah SVG */
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    border-left: 1.5px solid rgba(255, 255, 255, 0.3);
    padding-left: 12px;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.header.scrolled .navbar-brand-text {
    border-left-color: rgba(10, 37, 64, 0.2);
}

.navbar-brand-title,
.navbar-brand-subline {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.6px;
    line-height: 1.18;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header.scrolled .navbar-brand-title,
.header.scrolled .navbar-brand-subline {
    color: #0A2540;
}

.header.scrolled .mobile-toggle .bar {
    background: #0A2540 !important;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    z-index: 10001;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

.logo img {
    max-height: 52px !important;
    width: auto;
    transition: transform 0.2s ease;
}

.logo:hover img {
    transform: scale(1.04);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: #F59E0B !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #F59E0B;
    border-radius: 2px;
}

.header .nav-menu .btn-solid {
    background: #F59E0B;
    color: #0A2540;
    padding: 10px 24px;
    font-size: 13px;
    border-radius: var(--radius-pill);
    font-weight: 700;
}

.header .nav-menu .btn-solid:hover {
    background: #D97706;
    color: #FFFFFF;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100001;
}

.mobile-toggle .bar {
    width: 100%;
    height: 3px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Floating Sticky CTA Widget Popup - HIDE ON DESKTOP & CONTACT PAGE */
.mobile-sticky-cta {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: inline-flex !important;
        position: fixed;
        bottom: 20px;
        right: 16px;
        width: auto;
        background: #F59E0B;
        color: #0A2540;
        padding: 9px 16px;
        border-radius: 999px;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        font-size: 13px;
        z-index: 9999;
        text-decoration: none;
        box-shadow: 0 8px 24px rgba(10, 37, 64, 0.25), 0 2px 8px rgba(245, 158, 11, 0.3);
        border: none;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-sticky-cta:active {
        transform: scale(0.96);
    }

    .mobile-sticky-cta .mobile-cta-icon {
        width: 24px;
        height: 24px;
        background: #FFFFFF;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    }

    .footer {
        padding-bottom: 60px !important;
    }
}

/* Mobile Panel Overlay */
.mobile-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 37, 64, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    overflow-y: auto;
}

.mobile-panel.open {
    opacity: 1;
    visibility: visible;
}

.mobile-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 24px;
    width: 100%;
}

.mobile-panel-logos {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-logo-smartb {
    max-height: 38px;
    width: auto;
}

.mobile-logo-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
}

.mobile-logo-belediye {
    max-height: 34px;
    width: auto;
}

.mobile-panel-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.mobile-panel-close:active {
    background: rgba(245, 158, 11, 0.3);
    color: #F59E0B;
}

.mobile-panel-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex: 1;
    padding-bottom: 40px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    position: relative;
    transition: all 0.2s ease;
    display: inline-block;
}

.mobile-nav-link:hover {
    color: #FFFFFF;
}

.mobile-nav-link.active {
    color: #F59E0B;
    font-weight: 800;
}

.mobile-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: #F59E0B;
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

/* ── DETAIL TABS & CONTENT ── */
.detail-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.detail-tab-btn {
    padding: 12px 26px;
    background: #FFFFFF;
    color: #0A2540;
    border: 2px solid #CBD5E1;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.detail-tab-btn:hover {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #B45309;
}

.detail-tab-btn.active {
    background: #0A2540 !important;
    color: #FFFFFF !important;
    border-color: #0A2540 !important;
    box-shadow: 0 4px 12px rgba(10, 37, 64, 0.2) !important;
}

.detail-tab-content {
    display: none;
}

.detail-tab-content.active {
    display: block;
}

/* ── HERO CINEMATIC ── */
.hero-cinematic {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0A2540;
    color: #FFFFFF;
    overflow: hidden;
    padding-top: 110px;
    padding-bottom: 80px;
}

.hero-media-marquee {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.35;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    height: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    animation: marqueeScroll 45s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    height: 100%;
    width: 65vw;
    min-width: 600px;
    max-width: 900px;
    flex-shrink: 0;
    overflow: hidden;
}

.marquee-item img,
.marquee-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 3rem 0 4rem 0;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 5px 16px 5px 6px;
    border-radius: 999px;
    margin-bottom: 24px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(245, 158, 11, 0.2);
    transform: translateY(-2px);
}

.hero-badge-tag {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #0A2540;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.hero-badge-text {
    color: #F8FAFC;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.hero-cinematic h1,
.hero-inner h1,
.hero-content h1 {
    color: #FFFFFF !important;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7) !important;
    font-family: var(--font-heading);
    font-weight: 900 !important;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-inner p,
.hero-content p {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.15rem;
    margin-bottom: 36px;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #0A2540 !important;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-pill);
    border: none;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
    color: #0A2540 !important;
}

.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-pill);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: #F59E0B;
    color: #F59E0B !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.scroll-indicator::after {
    content: '↓';
    font-size: 14px;
    color: #F59E0B;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

/* ── CARD GRID ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: #F59E0B;
}

.card-header-area {
    position: relative;
    background: #0A2540;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header-area img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.card:hover .card-header-area img {
    transform: scale(1.06);
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.2) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: #FFFFFF;
}

.overlay-service {
    font-size: 12px;
    font-weight: 700;
    color: #F59E0B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.card-image-overlay h3 {
    color: #FFFFFF;
    font-size: 18px;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-tag {
    display: inline-block;
    background: #FEF3C7;
    color: #B45309;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
    align-self: flex-start;
    text-transform: uppercase;
}

.card-body h3 {
    color: #0F172A;
    margin-bottom: 10px;
}

.link-arrow {
    margin-top: auto;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: #F59E0B;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.card:hover .link-arrow {
    color: #D97706;
    transform: translateX(4px);
}

/* ── PHOTO LIGHTBOX, VIDEO & PDF BOOK VIEWER MODALS ── */
.media-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(10, 37, 64, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    padding: 20px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.media-modal.open {
    opacity: 1;
    visibility: visible;
}

.media-modal-close-fixed {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: #F59E0B;
    color: #0A2540;
    border: 2px solid #0A2540;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    z-index: 100015;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, background 0.2s;
    pointer-events: auto;
}

.media-modal-close-fixed:hover {
    transform: scale(1.1);
    background: #D97706;
    color: #FFFFFF;
}

.media-modal-content {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.media-modal-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
}

.media-modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: #F59E0B;
    color: #0A2540;
    border: 2px solid #0A2540;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 900;
    cursor: pointer;
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    user-select: none;
    pointer-events: auto;
}

.media-modal-nav:hover {
    background: #D97706;
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
}

.media-modal-nav.prev { left: 32px; }
.media-modal-nav.next { right: 32px; }

@media (max-width: 768px) {
    .media-modal-nav {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }
    .media-modal-nav.prev { left: 16px; }
    .media-modal-nav.next { right: 16px; }
    .media-modal-close-fixed {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

.media-modal-counter {
    margin-top: 18px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Media Hover Overlays */
.photo-thumb-card:hover img {
    transform: scale(1.08);
}

.photo-thumb-card:hover .media-hover-overlay {
    opacity: 1 !important;
}

.photo-thumb-card:hover .media-hover-overlay > div {
    transform: translateY(0) !important;
}

.video-thumb-card:hover .media-hover-overlay > div:first-child {
    transform: scale(1.12);
}

/* CUSTOM HTML5 VIDEO PLAYER INTERFACE */
.custom-video-player-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    background: #000000;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
}

.custom-video-player-wrapper:fullscreen,
.custom-video-player-wrapper:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
    justify-content: space-between;
    background: #000000 !important;
}

.custom-video-element {
    width: 100%;
    max-height: 70vh;
    display: block;
    cursor: pointer;
    object-fit: contain;
}

.custom-video-player-wrapper:fullscreen .custom-video-element,
.custom-video-player-wrapper:-webkit-full-screen .custom-video-element {
    flex: 1;
    max-height: calc(100vh - 65px) !important;
    height: calc(100vh - 65px) !important;
    object-fit: contain !important;
}

.custom-player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #0A2540;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.v-control-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 16px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.v-control-btn:hover {
    background: #F59E0B;
    color: #0A2540;
}

.v-progress-container {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.v-progress-filled {
    height: 100%;
    background: #F59E0B;
    border-radius: 4px;
    width: 0%;
}

.v-time-display {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    min-width: 95px;
    text-align: center;
}

.v-volume-slider {
    width: 70px;
    accent-color: #F59E0B;
    cursor: pointer;
}

/* CUSTOM PDF E-BOOK VIEWER INTERFACE */
.pdf-book-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    background: #0F172A;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
}

.pdf-book-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: #0A2540;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.pdf-book-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #F59E0B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.pdf-book-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-frame-container {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #1E293B;
}

.pdf-frame-element {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── FOOTER ── */
.footer {
    background: #0A2540;
    color: #FFFFFF;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-authority {
    background: #0A2540;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-authority h3,
.footer-authority-title {
    color: #F59E0B;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.footer-star-icon {
    flex-shrink: 0;
}

.footer-authority p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 50px 0;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ── FOOTER INFINITE SOFT LOGO MARQUEE ── */
.footer-logo-marquee-wrapper {
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    position: relative;
    padding: 8px 0;
    margin-bottom: 1.2rem;
    background: transparent;
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.footer-logo-track {
    display: flex;
    align-items: center;
    gap: 36px;
    width: max-content;
    animation: footerSoftMarquee 22s linear infinite;
    will-change: transform;
}

.footer-logo-marquee-wrapper:hover .footer-logo-track {
    animation-play-state: paused;
}

.footer-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 4px;
    flex-shrink: 0;
}

.footer-logo-item img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo-item img:hover {
    transform: scale(1.08);
}

@keyframes footerSoftMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ── MOBİL İÇİN ÇERÇEVESİZ DOĞAL AKAN LOGO BANDI (TAŞMASIZ %100 UYUM) ── */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .footer,
    .footer-brand,
    .footer-authority,
    .mayor-message-section,
    .mayor-content-wrapper {
        overflow: hidden !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer-logo-marquee-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 1.2rem 0 !important;
        padding: 6px 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow: hidden !important;
        contain: paint !important;
        box-sizing: border-box !important;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%) !important;
        mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%) !important;
    }

    .footer-logo-track {
        gap: 36px !important;
        animation-duration: 20s !important;
    }

    .footer-logo-item {
        height: 40px !important;
        padding: 0 !important;
    }

    .footer-logo-item img {
        max-height: 34px !important;
        width: auto !important;
    }

    .mayor-watermark-quote {
        font-size: 90px !important;
        top: -20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

.trust-badge-text {
    color: #F59E0B;
    font-weight: 700;
    font-size: 14px;
}

.footer-column h4 {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #F59E0B;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin-bottom: 12px;
    text-decoration: none;
}

.footer-contact-item .footer-icon {
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-contact-item:hover {
    color: #F59E0B;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-authority-title {
        font-size: 18px;
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .footer-authority-title .footer-star-icon {
        margin-bottom: 2px;
    }
}

/* Responsive Application Form & Inputs */
.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .form-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    #formSection {
        padding: 24px 16px !important;
        border-radius: 16px !important;
        margin: 0 8px !important;
    }

    #countryDropdownMenu {
        width: calc(100vw - 60px) !important;
        max-width: 280px !important;
    }
}

/* ==========================================================================
   MAYOR'S MESSAGE EDITORIAL SECTION (BAŞKANIN MESAJI - MEHMET MURAT ÇALIK)
   ========================================================================== */
.mayor-message-section {
    position: relative;
    background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 50%, #FFFFFF 100%);
    padding: 100px 0;
    overflow: hidden;
    border-bottom: 1px solid #E2E8F0;
}

.mayor-message-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 70px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Portrait Styling */
.mayor-portrait-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.mayor-portrait-card {
    position: relative;
    width: 100%;
    aspect-ratio: 600 / 857;
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
    transition: transform 0.4s ease;
}

.mayor-portrait-card:hover {
    transform: translateY(-4px);
}

.mayor-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(10, 37, 64, 0.15));
    border-radius: 24px;
}

.mayor-portrait-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(10, 37, 64, 0.08) 100%);
    border-radius: 32px;
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}

/* Editorial Content Styling */
.mayor-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mayor-watermark-quote {
    position: absolute;
    top: -50px;
    left: -30px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 180px;
    line-height: 1;
    color: #F59E0B;
    opacity: 0.14;
    user-select: none;
    pointer-events: none;
    z-index: 0;
}

.mayor-eyebrow-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: #D97706;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    opacity: 1;
}

.mayor-eyebrow-tag::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: #F59E0B;
    border-radius: 2px;
}

.mayor-quote-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.4rem, 2.2vw, 2.05rem);
    font-weight: 400;
    font-style: italic;
    color: #0F172A;
    line-height: 1.6;
    letter-spacing: -0.01em;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
    max-width: 680px;
    opacity: 1;
}

.mayor-divider-line {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B 0%, rgba(245, 158, 11, 0) 100%);
    border-radius: 3px;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    opacity: 1;
}

.mayor-meta-block {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.mayor-meta-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 2px solid rgba(245, 158, 11, 0.4);
    padding-right: 20px;
    opacity: 1;
}

.mayor-signature-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.mayor-signature-img {
    height: 54px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    display: block;
}

.mayor-name {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    color: #0A2540;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.mayor-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    line-height: 1.4;
    margin-top: 3px;
}

/* ── PROGRESSIVELY ANIMATED STATES WHEN JS ACTIVE ── */
.js-reveal-active .mayor-watermark-quote {
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal-active .mayor-watermark-quote.active {
    opacity: 0.14;
    transform: scale(1);
}

.js-reveal-active .mayor-eyebrow-tag {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal-active .mayor-eyebrow-tag.revealed {
    opacity: 1;
    transform: translateY(0);
}

.js-reveal-active .mayor-quote-text {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal-active .mayor-quote-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.js-reveal-active .mayor-divider-line {
    width: 0px;
    opacity: 0;
    transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}

.js-reveal-active .mayor-divider-line.revealed {
    width: 70px;
    opacity: 1;
}

.js-reveal-active .mayor-signature-img {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.js-reveal-active .mayor-signature-img.signed {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.js-reveal-active .mayor-meta-details {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal-active .mayor-meta-details.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE MEDIA QUERIES FOR MAYOR SECTION ── */
@media (max-width: 1024px) {
    .mayor-message-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 868px) {
    .mayor-message-section {
        padding: 70px 0;
    }

    .mayor-message-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .mayor-portrait-wrapper {
        max-width: 360px;
    }

    .mayor-eyebrow-tag {
        justify-content: center;
    }

    .mayor-eyebrow-tag::before {
        display: none;
    }

    .mayor-watermark-quote {
        left: 50%;
        transform: translateX(-50%);
        top: -30px;
    }

    .mayor-quote-text {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .mayor-divider-line {
        margin-left: auto;
        margin-right: auto;
    }

    .mayor-meta-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .mayor-meta-details {
        border-right: none;
        padding-right: 0;
        align-items: center;
    }
}