/*
 * TKV - CSS Sistemi
 * Renkler: #005da6 (Dominant Mavi) & #77c55a (Yesil)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Merriweather:wght@400;700;900&display=swap');

:root {
    --primary: #005da6;
    --primary-dark: #004882;
    --primary-light: #e6f0f8;
    --accent: #77c55a;
    --accent-dark: #61a847;
    --accent-light: #eff8eb;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #ffffff;
    --bg-soft: #f8fafc;
    --bg-dark: #0f172a;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-color: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);}

/* Sıfırlamalar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 400;overflow-x: hidden;}

/* Tipografi İyileştirmeleri */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

h1 { font-size: 2.2rem; margin-bottom: 0.8em; }
h2 { font-size: 1.8rem; margin-bottom: 0.7em; }
h3 { font-size: 1.4rem; margin-bottom: 0.6em; }
h4 { font-size: 1.15rem; margin-bottom: 0.5em; }

p {
    margin-bottom: 1em;
    line-height: 1.8;
}

.page-title {
    font-family: 'Merriweather', serif;
    font-size: 2.4rem;
    font-weight: 800;
}

.admin-header-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Düzen Elemanları */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buton Tasarımları */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #white;
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 93, 166, 0.3);
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(119, 197, 90, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.btn-outline-accent {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline-accent:hover {
    background-color: var(--accent);
    color: #fff;
}

/* Üst Menü (Header) */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: var(--shadow-sm);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-menu {
    display: flex;
    list-style: none;
    gap: 16px;
    align-items: center;
}

.top-bar-menu > li {
    position: relative;
}

.top-bar-menu > li > a {
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 0;
    display: block;
    letter-spacing: 0.5px;
}

.top-bar-menu > li > a:hover {
    color: #fff;
}

/* Dropdown */
.top-bar-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 8px 0;
    z-index: 1010;
}

.top-bar-menu li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-bar-menu .dropdown-menu a {
    color: var(--text-dark);
    padding: 10px 20px;
    display: block;
    font-size: 13px;
    font-weight: 500;
}

.top-bar-menu .dropdown-menu a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Social & Language Bar */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
    list-style: none;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.social-links a:hover {
    color: #fff;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
}

/* Main Nav Bar */
.main-nav {
    padding: 15px 0;
    background-color: #fff;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.nav-contact-info a {
    color: var(--text-dark);
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 560px;
    background-color: var(--primary);
    overflow: hidden;
}

.slider-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide-content-wrapper {
    position: relative;
    display: block;
    height: 100%;
    width: 100%;
}

.slide-image-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text-side {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 55%;
    background: linear-gradient(90deg, rgba(15, 32, 67, 0.95) 0%, rgba(15, 32, 67, 0.85) 60%, rgba(15, 32, 67, 0) 100%) !important;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 100px 0 100px;
    box-sizing: border-box;
}

.slide-text-side::after {
    display: none;
}

.slide-tag {
    background-color: var(--accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    align-self: flex-start;
    margin-bottom: 24px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.slide-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-desc {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 0;
    max-width: 90%;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.slide-desc-wrapper {
    margin-bottom: 35px;
    max-width: 90%;
}

.slide-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: var(--accent);
    text-decoration: none;
    margin-top: 10px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.slide-read-more:hover {
    background-color: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(119, 197, 90, 0.3);
    transform: translateY(-1px);
}

.slide-read-more i {
    font-size: 12px;
    transition: transform 0.2s;
}

.slide-read-more:hover i {
    transform: translateX(3px);
}

.slider-controls {
    display: block;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    background: rgba(15, 32, 67, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.slider-prev {
    left: 40px;
}

.slider-next {
    right: 40px;
}

.slider-arrow i {
    transition: transform 0.3s ease;
}

.slider-prev:hover i {
    transform: translateX(-4px);
}

.slider-next:hover i {
    transform: translateX(4px);
}

.slider-prev:hover, .slider-next:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.slider-dots {
    position: absolute;
    bottom: 55px; /* raised from 25px to prevent overlap with quick actions */
    left: 50%;
    transform: translateX(-50%);
    z-index: 40; /* raised from 25 to sit above the quick actions (z-index: 30) */
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--accent);
    width: 28px;
    border-radius: 5px;
}

/* Quick Action Cards */
.quick-actions {
    margin-top: -40px;
    position: relative;
    z-index: 30;
    margin-bottom: 60px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.action-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    overflow: hidden;
    border-top: 5px solid var(--primary);
    transition: var(--transition);
}

.action-card-accent {
    border-top-color: var(--accent);
}

.action-card:hover {
    transform: translateY(-5px);
}

.action-card-icon {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background-color: var(--primary-light);
    color: var(--primary);
}

.action-card-accent .action-card-icon {
    background-color: var(--accent-light);
    color: var(--accent);
}

.action-card-content {
    padding: 30px;
    flex: 1;
}

.action-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.action-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Section Common */
.section {
    padding: 80px 0;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
}

/* Scope of Work Grid (Faaliyet Alanları) */
.scope-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.scope-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.scope-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.scope-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    font-size: 28px;
    transition: var(--transition);
}

.scope-card:hover .scope-icon {
    background-color: var(--accent);
    color: #fff;
}

.scope-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.scope-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Statistics Banner */
.stats-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-title {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* News & Stories Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Page Sub headers */
.page-header {
    background: linear-gradient(rgba(0, 93, 166, 0.85), rgba(10, 28, 42, 0.95)), url('../images/pattern.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.page-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.8;
}

.breadcrumb a:hover {
    color: var(--accent);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info-panel {
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact-info-text p, .contact-info-text a {
    font-size: 14px;
    color: var(--text-muted);
}

.contact-info-text a:hover {
    color: var(--primary);
}

.hotline-box {
    margin-top: 40px;
    padding: 24px;
    background-color: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
}

.hotline-box h5 {
    color: var(--accent-dark);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Forms */
.form-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.form-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 93, 166, 0.1);
}

.alert {
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background-color: #e6f6ec;
    color: #15803d;
    border-left: 4px solid #22c55e;
}

.alert-danger {
    background-color: #fef2f2;
    color: #b91c1c;
    border-left: 4px solid #ef4444;
}

/* Donate Page Details */
.donate-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.donate-option-btn {
    border: 1.5px solid var(--border-color);
    padding: 15px;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.donate-option-btn.active, .donate-option-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: var(--primary);
}

.iban-card {
    background-color: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iban-details h5 {
    font-weight: 700;
    font-size: 14px;
}

.iban-code {
    font-family: monospace;
    font-size: 15px;
    color: var(--primary);
    margin: 5px 0;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
}

.copy-btn:hover {
    color: var(--accent);
}

/* Footer Section */
.footer {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 80px 0 30px 0;
    border-top: 5px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, 1fr) 1.5fr;
    gap: 30px;
    margin-bottom: 60px;
}

.footer-logo-desc p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    margin-bottom: 25px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item i {
    color: var(--accent);
    font-size: 16px;
}

.footer-newsletter p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    flex: 1;
    font-size: 13px;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Admin Dashboard CSS */
.admin-login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg-soft);
}

.admin-login-card {
    background-color: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-top: 5px solid var(--primary);
}

.admin-mobile-header {
    display: none;
}
.admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-logo {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-logo span {
    color: var(--accent);
}

.admin-menu {
    list-style: none;
    flex: 1;
}

.admin-menu li {
    margin-bottom: 8px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.admin-menu a:hover, .admin-menu li.active a {
    color: #fff;
    background-color: var(--primary);
}

.admin-content {
    background-color: var(--bg-soft);
    padding: 40px;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header-title {
    font-size: 28px;
    font-weight: 800;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background-color: #fff;
    border-radius: var(--radius-sm);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.admin-stat-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 5px;
}

.admin-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.admin-table th, .admin-table td {
    padding: 14px 20px;
    text-align: left;
    font-size: 14px;
}

.admin-table th {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

.admin-table tr {
    border-bottom: 1px solid var(--border-color);
}

.admin-table tr:last-child {
    border-bottom: none;
}

.admin-table tr:hover {
    background-color: var(--bg-soft);
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending { background-color: #fef3c7; color: #d97706; }
.badge-approved { background-color: #d1fae5; color: #059669; }
.badge-rejected { background-color: #fee2e2; color: #dc2626; }
.badge-unread { background-color: #dbeafe; color: #2563eb; }
.badge-read { background-color: #f1f5f9; color: #64748b; }

/* Responsive styles */
@media (max-width: 992px) {
    .slide-content-wrapper {
        grid-template-columns: 1fr;
    }
    .slide-text-side {
        padding: 40px;
    }
    .slide-text-side::after {
        display: none;
    }
    .hero-slider {
        height: auto;
        min-height: 480px;
    }
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .admin-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background-color: var(--bg-dark);
        padding: 0 20px;
        z-index: 9990;
        box-shadow: var(--shadow-sm);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .admin-menu-toggle {
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
        display: block;
    }
    .admin-layout {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }
    .admin-sidebar {
        display: flex;
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100vh;
        z-index: 9999;
        transition: left 0.3s ease;
    }
    .admin-sidebar.open {
        left: 0;
    }
    .admin-sidebar-overlay.open {
        display: block;
    }
    .admin-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none !important; /* Mobile'da üst ince barı tamamen gizle */
    }
    .nav-contact-info, .nav-actions {
        display: none !important; /* Masaüstü iletişim ve butonları gizle */
    }
    .mobile-header-actions {
        display: flex !important; /* Mobil aksiyon ikonlarını göster */
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobil İkon Aksiyonları (Header) */
.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 10px;
}
.mobile-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    color: var(--text-dark);
    font-size: 15px;
    transition: all 0.2s ease;
}
.mobile-action-icon:hover {
    background-color: var(--bg-soft);
    color: var(--primary);
}
.mobile-action-icon.highlight {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.mobile-action-icon.highlight:hover {
    background-color: var(--primary-dark);
}
.mobile-drawer-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background-color: transparent;
    color: var(--text-dark);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mobile-drawer-toggle:hover {
    background-color: var(--bg-soft);
    color: var(--primary);
}

/* Sağdan Açılır Mobil Çekmece (Drawer) */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px; /* Başlangıçta ekranın dışında */
    width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-drawer.active {
    right: 0;
}

/* Çekmece Arkaplan Karartması (Backdrop) */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Çekmece Başlığı */
.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-soft);
}
.mobile-drawer-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    letter-spacing: 0.5px;
}
.mobile-drawer-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}
.mobile-drawer-close:hover {
    color: var(--text-dark);
}

/* Çekmece Gövdesi */
.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Çekmece Arama Kutusu */
.mobile-drawer-search form {
    display: flex;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.mobile-drawer-search input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 13.5px;
    outline: none;
}
.mobile-drawer-search button {
    background-color: var(--primary);
    border: none;
    color: #fff;
    padding: 0 16px;
    cursor: pointer;
    font-size: 13.5px;
    transition: background-color 0.2s;
}
.mobile-drawer-search button:hover {
    background-color: var(--primary-dark);
}

/* Akordeon Mobil Menü */
.mobile-drawer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-drawer-menu > li {
    border-bottom: 1px solid var(--bg-soft);
}
.mobile-drawer-menu > li:last-child {
    border-bottom: none;
}
.mobile-drawer-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 4px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.mobile-drawer-menu a:hover {
    color: var(--primary);
}

/* Submenu Akordeon Başlığı */
.mobile-drawer-menu .submenu-toggle {
    cursor: pointer;
}
.mobile-drawer-menu .toggle-icon {
    font-size: 11px;
    transition: transform 0.2s ease;
    color: var(--text-muted);
}
.mobile-drawer-menu li.active > .submenu-toggle > .toggle-icon {
    transform: rotate(180deg);
}

/* Alt Menü Listesi */
.mobile-drawer-menu .submenu-list {
    list-style: none;
    padding-left: 15px;
    margin: 0;
    display: none; /* JS ile açılıp kapanır */
    border-left: 2.5px solid var(--primary-light);
    margin-bottom: 12px;
}
.mobile-drawer-menu .submenu-list a {
    padding: 8px 0;
    font-weight: 500;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}
.mobile-drawer-menu .submenu-list a i {
    width: 16px;
    text-align: center;
    color: var(--primary);
    font-size: 12px;
}
.mobile-drawer-menu .submenu-list a:hover {
    color: var(--primary);
}

/* Çekmece İçi Bağış ve Dükkan (En Altta) */
.mobile-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.mobile-action-btn {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13.5px;
    border-radius: var(--radius-sm);
}

/* Çekmece Alt Bilgi */
.mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid var(--bg-soft);
}
.mobile-lang-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-muted);
}
.lang-switch-btn {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.lang-switch-btn:hover {
    text-decoration: underline;
}
.mobile-social-links {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}
.mobile-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-soft);
    color: var(--text-muted);
    font-size: 13.5px;
    transition: all 0.2s ease;
}
.mobile-social-links a:hover {
    background-color: var(--primary);
    color: #fff;
}

/* ===================================================================
   HOMEPAGE MOBILE RESPONSIVE OPTIMIZATIONS (SLIDER, ACTIONS, COUNTERS)
   =================================================================== */

@media (max-width: 992px) {
    .slide-text-side {
        width: 70%;
        padding: 0 60px;
    }
    .slide-title {
        font-size: 38px;
    }
    .slider-prev {
        left: 20px;
    }
    .slider-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 480px;
    }
    .slide-text-side {
        width: 100%;
        text-align: center;
        align-items: center;
        justify-content: center;
        padding: 0 30px;
        background: linear-gradient(180deg, rgba(15, 32, 67, 0.45) 0%, rgba(15, 32, 67, 0.85) 100%) !important;
    }
    .slide-title {
        font-size: 30px;
    }
    .slide-desc {
        font-size: 14px;
        max-width: 100%;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .slide-desc-wrapper {
        margin-bottom: 25px;
        max-width: 100%;
    }
    .slide-read-more {
        font-size: 12px;
        padding: 6px 14px;
    }
    .slider-arrow {
        display: none !important;
    }
    .slider-dots {
        bottom: 30px; /* adjusted lower for mobile as quick actions are stacked below */
    }
    
    /* Quick Actions Layout on tablets */
    .action-card {
        flex-direction: column;
    }
    .action-card-icon {
        width: 100%;
        height: 80px;
        font-size: 32px;
    }
    .action-card-content {
        padding: 20px;
        text-align: center;
    }
    .action-card-content .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 420px;
    }
    .slide-text-side {
        padding: 0 20px;
    }
    .slide-title {
        font-size: 24px;
        line-height: 1.3;
    }
    .slide-desc {
        font-size: 13.5px;
        margin-bottom: 0;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .slide-desc-wrapper {
        margin-bottom: 20px;
        max-width: 100%;
    }
    .slide-tag {
        margin-bottom: 15px;
        padding: 4px 10px;
        font-size: 10px;
    }
    
    /* Quick Actions Layout */
    .quick-actions {
        margin-top: -20px;
        margin-bottom: 40px;
    }
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Stats Grid Layout */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    .stat-number {
        font-size: 38px;
        margin-bottom: 5px;
    }
    .stat-title {
        font-size: 13px;
    }
}



/* 3. Seviye Menü Stilleri (Desktop) */
.has-subdropdown {
    position: relative;
}
.subdropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: var(--transition-fast);
    z-index: 1000;
}
.has-subdropdown:hover > .subdropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 3. Seviye Menü Stilleri (Mobile) */
.subsubmenu-list {
    display: none;
    padding-left: 15px;
    background: rgba(0, 0, 0, 0.02);
}
.mobile-drawer-menu .has-subsubmenu.active > .subsubmenu-list {
    display: block;
}
.subsubmenu-list li a {
    padding: 10px 15px;
    font-size: 13px;
    color: var(--text-muted);
}
.subsubmenu-list li a:hover {
    color: var(--primary);
}

.mobile-top-action-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-top-action-bar {
        display: flex;
        width: 100%;
        background-color: var(--primary);
        color: #fff;
    }
    .mobile-top-action-bar a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 8px 5px;
        font-size: 11px;
        font-weight: 600;
        text-align: center;
        border-right: 1px solid rgba(255,255,255,0.1);
        color: #fff;
        text-decoration: none;
    }
    .mobile-top-action-bar a:last-child {
        border-right: none;
    }
    .mobile-top-action-bar i {
        font-size: 18px;
        margin-bottom: 4px;
    }
}


/* ==============================================
   Accessibility Panel Styles
   ============================================== */

/* Trigger Button */
.accessibility-panel-trigger {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    padding: 0;
}

.accessibility-panel-trigger:hover,
.accessibility-panel-trigger:focus {
    background: var(--primary-dark);
    width: 52px;
}

/* Panel */
.accessibility-panel {
    position: fixed;
    left: -380px;
    top: 0;
    width: 370px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.accessibility-panel.active {
    left: 0;
}

.accessibility-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--primary);
    color: #fff;
    flex-shrink: 0;
}

.accessibility-panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.accessibility-panel-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s;
}

.accessibility-panel-close:hover {
    background: rgba(255,255,255,0.35);
}

.accessibility-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.accessibility-panel-body::-webkit-scrollbar {
    width: 4px;
}

.accessibility-panel-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Feature Buttons */
.accessibility-feature-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s ease;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.accessibility-feature-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.accessibility-feature-btn[aria-pressed="true"] {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.accessibility-feature-btn[aria-pressed="true"] .accessibility-feature-icon {
    color: #fff;
}

.accessibility-feature-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,93,166,0.1);
    border-radius: 6px;
    font-size: 14px;
    color: var(--primary);
    flex-shrink: 0;
    transition: all 0.2s;
}

.accessibility-feature-btn[aria-pressed="true"] .accessibility-feature-icon {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.accessibility-feature-label {
    flex: 1;
    font-size: 13px;
}

/* Feature Row (for controls) */
.accessibility-feature-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.accessibility-feature-row .accessibility-feature-icon {
    flex-shrink: 0;
}

.accessibility-feature-row .accessibility-feature-label {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.accessibility-feature-controls {
    display: flex;
    gap: 4px;
}

.accessibility-ctrl-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
}

.accessibility-ctrl-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.accessibility-ctrl-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Footer */
.accessibility-panel-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.accessibility-reset-btn {
    width: 100%;
    padding: 10px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
}

.accessibility-reset-btn:hover {
    background: #dc2626;
}

/* Reading Mask */
.accessibility-reading-mask {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 50%;
    background: rgba(0,0,0,0.65);
    z-index: 9997;
    pointer-events: none;
    transition: bottom 0.05s linear;
}

.accessibility-reading-mask.active {
    display: block;
}

/* Reading Ruler */
.accessibility-reading-ruler {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    z-index: 9997;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(119,197,90,0.5);
}

.accessibility-reading-ruler.active {
    display: block;
}

/* Content Magnifier */
.accessibility-magnifier {
    display: none;
    position: fixed;
    width: 200px;
    height: 200px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    background-repeat: no-repeat;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.accessibility-magnifier.active {
    display: block;
}

/* Big Cursor */
.accessibility-big-cursor {
    display: none;
    position: fixed;
    width: 40px;
    height: 40px;
    background: rgba(0,93,166,0.3);
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.accessibility-big-cursor.active {
    display: block;
}

/* Translate Dropdown */
.accessibility-translate-dropdown {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    min-width: 300px;
}

.accessibility-translate-dropdown.active {
    display: block;
}

.accessibility-translate-dropdown .goog-te-gadget {
    font-family: 'Inter', sans-serif !important;
}

/* === Accessibility Feature Styles Applied to Body === */

/* High Contrast */
body.a11y-contrast {
    filter: contrast(1.5);
}

body.a11y-contrast * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.a11y-contrast img,
body.a11y-contrast video {
    filter: contrast(1.2) brightness(0.9);
}

body.a11y-contrast a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

/* Keep accessibility panel usable in contrast mode */
body.a11y-contrast .accessibility-panel,
body.a11y-contrast .accessibility-panel *,
body.a11y-contrast .accessibility-panel-trigger,
body.a11y-contrast .accessibility-panel-trigger *,
body.a11y-contrast .accessibility-reading-mask,
body.a11y-contrast .accessibility-reading-ruler,
body.a11y-contrast .accessibility-magnifier,
body.a11y-contrast .accessibility-big-cursor,
body.a11y-contrast .accessibility-translate-dropdown,
body.a11y-contrast .accessibility-translate-dropdown * {
    background-color: initial !important;
    color: initial !important;
    border-color: initial !important;
}

/* Dark Mode */
body.a11y-darkmode {
    background-color: #1a1a2e !important;
    color: #e0e0e0 !important;
}

body.a11y-darkmode .header-wrapper,
body.a11y-darkmode .footer,
body.a11y-darkmode section,
body.a11y-darkmode .card,
body.a11y-darkmode .bg-light,
body.a11y-darkmode .bg-soft {
    background-color: #16213e !important;
    color: #e0e0e0 !important;
}

body.a11y-darkmode a:not(.btn) {
    color: #77c55a !important;
}

body.a11y-darkmode .btn-primary,
body.a11y-darkmode .btn-accent {
    background-color: #005da6 !important;
    color: #fff !important;
}

body.a11y-darkmode input,
body.a11y-darkmode textarea,
body.a11y-darkmode select {
    background-color: #0f3460 !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

/* Blue Light Filter */
body.a11y-bluelight {
    position: relative;
}

body.a11y-bluelight::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 200, 100, 0.15);
    pointer-events: none;
    z-index: 9996;
}

/* Dyslexia Friendly Font */
body.a11y-dyslexia,
body.a11y-dyslexia * {
    font-family: 'OpenDyslexic', 'Comic Sans MS', 'Inter', sans-serif !important;
    letter-spacing: 0.05em !important;
    word-spacing: 0.15em !important;
    line-height: 1.8 !important;
}

/* Highlight Links */
body.a11y-highlightlinks a {
    background-color: #ffff00 !important;
    color: #000 !important;
    text-decoration: underline !important;
    font-weight: 700 !important;
    padding: 2px 4px !important;
    border: 2px dashed #ff0000 !important;
    display: inline !important;
}

/* Show Headings */
body.a11y-showheadings h1,
body.a11y-showheadings h2,
body.a11y-showheadings h3,
body.a11y-showheadings h4,
body.a11y-showheadings h5,
body.a11y-showheadings h6 {
    outline: 3px dashed var(--primary) !important;
    outline-offset: 3px !important;
    position: relative;
}

body.a11y-showheadings h1::before,
body.a11y-showheadings h2::before,
body.a11y-showheadings h3::before,
body.a11y-showheadings h4::before,
body.a11y-showheadings h5::before,
body.a11y-showheadings h6::before {
    content: '<' attr(data-heading-tag) '>';
    position: absolute;
    top: -22px;
    left: 0;
    font-size: 11px;
    background: var(--primary);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    z-index: 10;
    white-space: nowrap;
}

/* Hide Images */
body.a11y-hideimages img,
body.a11y-hideimages svg,
body.a11y-hideimages video,
body.a11y-hideimages canvas {
    display: none !important;
    visibility: hidden !important;
}

body.a11y-hideimages [style*="background-image"] {
    background-image: none !important;
}

/* Stop Animations */
body.a11y-stopanimations *,
body.a11y-stopanimations *::before,
body.a11y-stopanimations *::after {
    animation: none !important;
    transition: none !important;
    animation-duration: 0s !important;
    transition-duration: 0s !important;
}

/* Big Cursor (applied to body) */
body.a11y-bigcursor,
body.a11y-bigcursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="none" stroke="%23005da6" stroke-width="3"/><circle cx="16" cy="16" r="3" fill="%23005da6"/></svg>') 16 16, auto !important;
}

/* Page Structure Outline */
body.a11y-pagestructure header,
body.a11y-pagestructure nav,
body.a11y-pagestructure main,
body.a11y-pagestructure section,
body.a11y-pagestructure article,
body.a11y-pagestructure aside,
body.a11y-pagestructure footer,
body.a11y-pagestructure form,
body.a11y-pagestructure .header-wrapper,
body.a11y-pagestructure .footer,
body.a11y-pagestructure .container {
    outline: 2px solid var(--accent) !important;
    outline-offset: 2px !important;
    position: relative;
}

body.a11y-pagestructure header::before,
body.a11y-pagestructure nav::before,
body.a11y-pagestructure main::before,
body.a11y-pagestructure section::before,
body.a11y-pagestructure article::before,
body.a11y-pagestructure aside::before,
body.a11y-pagestructure footer::before,
body.a11y-pagestructure .header-wrapper::before,
body.a11y-pagestructure .footer::before {
    position: absolute;
    top: -10px;
    left: 4px;
    font-size: 10px;
    background: var(--accent);
    color: #000;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
    font-family: monospace;
    z-index: 100;
    white-space: nowrap;
}

body.a11y-pagestructure header::before { content: 'header'; }
body.a11y-pagestructure nav::before { content: 'nav'; }
body.a11y-pagestructure main::before { content: 'main'; }
body.a11y-pagestructure section::before { content: 'section'; }
body.a11y-pagestructure article::before { content: 'article'; }
body.a11y-pagestructure aside::before { content: 'aside'; }
body.a11y-pagestructure footer::before { content: 'footer'; }
body.a11y-pagestructure .header-wrapper::before { content: 'header-wrapper'; }
body.a11y-pagestructure .footer::before { content: 'footer'; }

/* Mute indicator */
body.a11y-mute iframe,
body.a11y-mute video,
body.a11y-mute audio {
    opacity: 0.3 !important;
    pointer-events: none !important;
}


/* Gallery description input */
.gallery-desc-input:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(0,93,166,0.15);
}

.img-gallery-item {
    display: flex;
    flex-direction: column;
}


/* CKEditor image caption styling */
figure.image {
    margin: 1em 0;
}
figure.image figcaption {
    font-size: 13px !important;
    font-style: italic !important;
    color: var(--text-muted) !important;
    padding: 8px 0 0 0 !important;
    text-align: left !important;
    background: none !important;
    border: none !important;
}
