/* ===================================
   Dernek Sitesi - Orta Yaş Dostu Tasarım
   Kolay okunabilir, geniş tıklama alanları
   Yüksek kontrast, sade ve modern
=================================== */

/* CSS Variables */
:root {
    --primary: #2E7D32;
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    --primary-gradient: linear-gradient(135deg, #2E7D32, #4CAF50);
    --secondary: #1565C0;
    --secondary-light: #42A5F5;
    --accent: #FF8F00;
    --accent-light: #FFA726;
    --warm-brown: #6D4C41;
    --warm-cream: #FFF8E1;
    --warm-gold: #F9A825;
    --taziye-bg: #F5F0EB;
    --taziye-border: #8D6E63;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-muted: #777;
    --text-light: #999;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-cream: #fafaf5;
    --bg-dark: #1a2e1a;
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --font-primary: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --text-xs: 0.875rem;
    --text-sm: 1rem;
    --text-base: 1.125rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 1.875rem;
    --text-3xl: 2.25rem;
    --text-4xl: 2.75rem;
    --text-5xl: 3.5rem;
    --space-xs: 0.375rem;
    --space-sm: 0.625rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 50%;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

/* Dark Mode Variables */
body.dark-mode {
    --text-dark: #e8e8e8;
    --text-medium: #c0c0c0;
    --text-muted: #999;
    --bg-white: #1e1e1e;
    --bg-light: #2a2a2a;
    --bg-cream: #252525;
    --bg-dark: #111;
    --border-color: #444;
    --border-light: #333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --taziye-bg: #2a2420;
    --warm-cream: #2a2520;
}

/* Font Size Adjustment Classes - applied to html so rem units scale */
html.font-small {
    font-size: 14px !important;
}

html.font-large {
    font-size: 18px !important;
}

html.font-xlarge {
    font-size: 20px !important;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: background 0.3s, color 0.3s;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

ul {
    list-style: none;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    min-height: 52px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
    min-height: 60px;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: var(--text-sm);
    min-height: 44px;
}

.btn-block {
    width: 100%;
}

/* ===================================
   TOP BAR
=================================== */
.top-bar {
    background: var(--bg-dark);
    color: white;
    padding: var(--space-sm) 0;
    font-size: var(--text-sm);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0.9;
}

.top-bar-left i {
    color: var(--primary-light);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.top-bar-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 var(--space-xs);
}

.social-link {
    color: white;
    opacity: 0.8;
    transition: var(--transition-fast);
    padding: 4px;
}

.social-link:hover {
    opacity: 1;
    color: var(--primary-light);
}

/* Font Size Controls */
.font-controls {
    display: flex;
    gap: 4px;
}

.font-btn {
    width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
}

.font-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.font-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.8rem;
}

.dark-mode-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===================================
   HEADER
=================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #09192f, #0f3360, #134631, #0a291c);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s, background 0.3s;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.header-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-sm) 0;
    gap: var(--space-md);
}

/* Logo (ikon) konumu: varsayılan sola yaslı; "right" ile header-controls ile yer değiştirir. */
.header-top[data-logo-pos="right"] .logo-icon-link {
    order: 2;
}

.header-top[data-logo-pos="right"] .header-controls {
    order: 1;
}

/* Başlık (dernek adı) konumu — logodan tamamen bağımsız kontrol edilir. */
.header-top[data-title-pos="right"] .logo-text-link {
    margin-left: auto;
    order: 1;
}

@media (min-width: 993px) {
    .header-top[data-title-pos="center"] .logo-text-link {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

.logo-icon-link,
.logo-text-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-left: auto;
}

.logo-icon {
    width: var(--header-logo-size, 105px);
    height: var(--header-logo-size, 105px);
    background: transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.6rem;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: var(--header-title-size, 1.65rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    white-space: pre-line;
}

.logo-subtitle {
    font-family: var(--font-heading);
    font-size: var(--header-subtitle-size, 1.1rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    white-space: pre-line;
}

.nav {
    display: flex;
    justify-content: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: var(--space-xs) 0;
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: #ffffff;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.nav-link i {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    z-index: 200;
    padding: var(--space-sm) 0;
    border: 1px solid var(--border-light);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    color: var(--text-medium);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: rgba(46, 125, 50, 0.08);
    color: var(--primary);
}

.dropdown-menu li a i {
    width: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

/* Online Ödeme Highlight */
.nav-highlight {
    background: var(--primary-gradient) !important;
    color: white !important;
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-lg) !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.3);
}

.nav-highlight:hover {
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.5);
    opacity: 0.95;
    color: white !important;
}

/* Header Right & Search */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-buttons {
    display: flex;
    gap: var(--space-sm);
}

.search-container {
    position: relative;
}

.search-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 1.125rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white;
}

.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    max-width: 90vw;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    z-index: 200;
    margin-top: var(--space-sm);
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xs) var(--space-sm);
}

.search-input {
    flex: 1;
    border: none;
    padding: var(--space-sm);
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    color: var(--text-dark);
    outline: none;
    min-height: 48px;
    background: transparent;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-submit,
.search-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-submit {
    background: var(--primary);
    color: white;
}

.search-submit:hover {
    background: var(--primary-dark);
}

.search-close {
    background: var(--bg-light);
    color: var(--text-muted);
}

.search-close:hover {
    background: #fee;
    color: #e53935;
}

.search-results {
    max-height: 350px;
    overflow-y: auto;
    display: none;
    margin-top: var(--space-sm);
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(46, 125, 50, 0.05);
}

.search-result-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 125, 50, 0.1);
    border-radius: var(--radius-sm);
    color: var(--primary);
    flex-shrink: 0;
}

.search-result-content h4 {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 2px;
}

.search-result-content p {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin: 0;
}

.search-no-results {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}

.search-no-results i {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    display: block;
    opacity: 0.5;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ===================================
   HERO SECTION
=================================== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('image/hero-bg.jpg') center/cover no-repeat;
    z-index: 1;
}

.hero-bg-slide {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 71, 32, 0.88), rgba(21, 101, 192, 0.72));
    z-index: 2;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: var(--space-4xl) 0;
}

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: 50px;
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-xl);
    animation: fadeInDown 0.8s ease;
}

.hero-badge i {
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.2)
    }
}

.hero-title {
    font-size: var(--text-5xl);
    color: white;
    margin-bottom: var(--space-xl);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title span {
    color: #a5d6a7;
}

.hero-description {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.25rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(10px)
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ===================================
   QUICK LINKS SECTION - Premium Design
=================================== */
.quick-links {
    padding: var(--space-3xl) 0 var(--space-2xl);
    background: var(--bg-cream);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.ql-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.ql-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
    transition: width 0.3s ease;
}

.ql-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.ql-card:hover::before {
    width: 6px;
}

.ql-orange::before {
    background: linear-gradient(180deg, #FF8F00, #FFA726);
}

.ql-teal::before {
    background: linear-gradient(180deg, #00695C, #26A69A);
}

.ql-green::before {
    background: linear-gradient(180deg, #2E7D32, #4CAF50);
}

.ql-blue::before {
    background: linear-gradient(180deg, #1565C0, #42A5F5);
}

.ql-red::before {
    background: linear-gradient(180deg, #C62828, #EF5350);
}

.ql-purple::before {
    background: linear-gradient(180deg, #6A1B9A, #AB47BC);
}

.ql-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.ql-orange .ql-icon {
    background: rgba(255, 143, 0, 0.12);
    color: #FF8F00;
}

.ql-teal .ql-icon {
    background: rgba(0, 105, 92, 0.12);
    color: #00695C;
}

.ql-green .ql-icon {
    background: rgba(46, 125, 50, 0.12);
    color: #2E7D32;
}

.ql-blue .ql-icon {
    background: rgba(21, 101, 192, 0.12);
    color: #1565C0;
}

.ql-red .ql-icon {
    background: rgba(198, 40, 40, 0.12);
    color: #C62828;
}

.ql-purple .ql-icon {
    background: rgba(106, 27, 154, 0.12);
    color: #6A1B9A;
}

.ql-card:hover .ql-icon {
    transform: scale(1.1);
}

.ql-orange:hover .ql-icon {
    background: #FF8F00;
    color: white;
}

.ql-teal:hover .ql-icon {
    background: #00695C;
    color: white;
}

.ql-green:hover .ql-icon {
    background: #2E7D32;
    color: white;
}

.ql-blue:hover .ql-icon {
    background: #1565C0;
    color: white;
}

.ql-red:hover .ql-icon {
    background: #C62828;
    color: white;
}

.ql-purple:hover .ql-icon {
    background: #6A1B9A;
    color: white;
}

.ql-text {
    flex: 1;
    min-width: 0;
}

.ql-text h3 {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    font-family: var(--font-primary);
}

.ql-text p {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin: 0;
}

.ql-arrow {
    color: var(--border-color);
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: var(--transition-fast);
    opacity: 0;
    transform: translateX(-8px);
}

.ql-card:hover .ql-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary);
}

@media (max-width: 992px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   TAZIYE SECTION - Enlarged
=================================== */
.taziye-section {
    padding: var(--space-xl) 0;
    background: var(--taziye-bg);
}

.taziye-bar {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--taziye-border);
}

.taziye-bar-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.taziye-title-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8D6E63, #A1887F);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.taziye-bar-title span {
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--warm-brown);
    display: block;
    line-height: 1.2;
}

.taziye-bar-title small {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
    display: block;
}

.taziye-bar-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.taziye-bar-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-base);
    color: var(--text-medium);
    flex-wrap: wrap;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(141, 110, 99, 0.08);
}

.taziye-bar-item:last-child {
    border-bottom: none;
}

.taziye-bar-dot {
    width: 8px;
    height: 8px;
    background: var(--taziye-border);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.6;
}

.taziye-bar-item strong {
    color: var(--warm-brown);
    font-weight: 700;
}

.taziye-bar-sep {
    color: var(--text-muted);
    opacity: 0.4;
}

.taziye-bar-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-left: auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.taziye-bar-date i {
    color: var(--taziye-border);
    font-size: 0.75rem;
}

.taziye-bar-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--warm-brown);
    font-weight: 600;
    font-size: var(--text-base);
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition-fast);
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid rgba(141, 110, 99, 0.2);
    border-radius: var(--radius-md);
}

.taziye-bar-link:hover {
    background: var(--warm-brown);
    color: white;
    border-color: var(--warm-brown);
}

@media (max-width: 768px) {
    .taziye-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
        padding: var(--space-lg);
    }

    .taziye-bar-item {
        font-size: var(--text-sm);
    }

    .taziye-bar-date {
        margin-left: 0;
    }

    .taziye-bar-link {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   COUNTDOWN SECTION
=================================== */
.countdown-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(135deg, #1B5E20, #2E7D32, #1565C0);
}

.countdown-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: var(--space-2xl) var(--space-3xl);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-xs) var(--space-md);
    border-radius: 50px;
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.countdown-info h2 {
    color: white;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.countdown-info p {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.countdown-info p i {
    color: var(--accent-light);
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.countdown-unit {
    text-align: center;
}

.countdown-number {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 800;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    min-width: 80px;
    line-height: 1;
    font-family: var(--font-primary);
}

.countdown-label {
    display: block;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--space-xs);
    font-weight: 600;
}

.countdown-separator {
    font-size: var(--text-3xl);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 800;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.3
    }
}

/* ===================================
   SECTION STYLES
=================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: 50px;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.section-title {
    font-size: var(--text-3xl);
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* ===================================
   ANNOUNCEMENTS
=================================== */
.announcements-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-white);
}

.announcements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-xl);
}

.announcement-card {
    background: var(--bg-light);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    position: relative;
    transition: var(--transition-normal);
}

.announcement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.announcement-card.featured {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(21, 101, 192, 0.05));
    border-left-width: 5px;
}

.announcement-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: var(--text-xs);
    font-weight: 700;
}

.announcement-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    padding-right: 60px;
    font-family: var(--font-primary);
}

.announcement-card p {
    font-size: var(--text-base);
    color: var(--text-medium);
    margin-bottom: var(--space-md);
}

.announcement-meta {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.announcement-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.announcement-meta i {
    color: var(--primary);
}

/* ===================================
   NEWS SECTION
=================================== */
.news-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-cream);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    background: var(--primary);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
}

.news-content {
    padding: var(--space-xl);
}

.news-category {
    display: inline-block;
    background: rgba(46, 125, 50, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: var(--text-xs);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.news-content h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    font-family: var(--font-primary);
}

.news-content p {
    font-size: var(--text-base);
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary);
    font-weight: 600;
    font-size: var(--text-base);
}

.news-link:hover {
    gap: var(--space-sm);
}

/* ===================================
   ABOUT PREVIEW
=================================== */
.about-preview {
    padding: var(--space-4xl) 0;
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-image-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary-gradient);
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-image-badge .years {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1;
}

.about-content .lead {
    font-size: var(--text-lg);
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-2xl);
    margin: var(--space-2xl) 0;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    display: block;
}

.stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ===================================
   PRESIDENT SECTION
=================================== */
.president-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, #f0f9f0, #e8f4fc);
}

body.dark-mode .president-section {
    background: linear-gradient(135deg, #1a2a1a, #1a2535);
}

.president-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-3xl);
    align-items: center;
    background: var(--bg-white);
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.president-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.president-content h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
}

.president-content blockquote {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    padding-left: var(--space-xl);
    border-left: 4px solid var(--primary);
}

.president-info {
    margin-bottom: var(--space-lg);
}

.president-info strong {
    display: block;
    font-size: var(--text-lg);
    color: var(--text-dark);
}

.president-info span {
    color: var(--primary);
}

/* ===================================
   GALLERY PREVIEW
=================================== */
.gallery-preview {
    padding: var(--space-4xl) 0;
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(46, 125, 50, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-overlay i {
    font-size: 2rem;
    color: white;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===================================
   CONTACT PREVIEW
=================================== */
.contact-preview {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

.contact-info h2 {
    color: white;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.contact-info>p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-lg);
    margin-bottom: var(--space-2xl);
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    font-size: var(--text-base);
    margin-bottom: 0.25rem;
}

.contact-text span {
    color: rgba(255, 255, 255, 0.7);
}

.contact-social {
    display: flex;
    gap: var(--space-md);
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.social-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.social-btn.whatsapp-social:hover {
    background: #25D366;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
}

.contact-form h3 {
    color: var(--text-dark);
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
    font-family: var(--font-primary);
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
    font-size: var(--text-base);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    min-height: 52px;
    background: var(--bg-white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===================================
   CUSTOM HOME SECTIONS
=================================== */
.custom-home-section {
    padding: var(--space-4xl) 0;
}

.custom-home-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding: clamp(1.5rem, 3vw, 3rem);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.custom-home-section.theme-sand .custom-home-card {
    background:
        radial-gradient(circle at top right, rgba(184, 138, 77, 0.22), transparent 30%),
        linear-gradient(135deg, #fffaf3 0%, #f4e5cf 100%);
}

.custom-home-section.theme-ocean .custom-home-card {
    background:
        radial-gradient(circle at top right, rgba(61, 169, 252, 0.18), transparent 30%),
        linear-gradient(135deg, #eff8ff 0%, #dbeafe 100%);
}

.custom-home-section.theme-forest .custom-home-card {
    background:
        radial-gradient(circle at top right, rgba(72, 187, 120, 0.18), transparent 30%),
        linear-gradient(135deg, #f1fff4 0%, #dcfce7 100%);
}

.custom-home-media {
    position: relative;
    min-height: 320px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.65);
}

.custom-home-media img,
.custom-home-media iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    border: 0;
    display: block;
}

.custom-home-content h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: var(--space-md);
}

.custom-home-content p {
    font-size: var(--text-lg);
    color: var(--text-light);
    margin-bottom: var(--space-xl);
}

.custom-home-content .section-badge {
    margin-bottom: var(--space-md);
}

/* ===================================
   FOOTER
=================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding-top: var(--space-4xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    text-decoration: none;
}

.footer-logo .logo-icon {
    width: var(--footer-logo-size, 90px);
    height: var(--footer-logo-size, 90px);
    flex-shrink: 0;
}

.footer-logo .logo-title {
    color: white;
    font-size: var(--text-lg);
}

.footer-logo .logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: white;
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links ul li a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-base);
    transition: var(--transition-fast);
    padding: var(--space-xs) 0;
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    padding-left: var(--space-xs);
}

.footer-links ul li a i {
    font-size: 0.75rem;
    color: var(--primary-light);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul li i {
    color: var(--primary-light);
    margin-top: 4px;
}

.footer-bank {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
}

.footer-bank h5 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-base);
    color: white;
    margin-bottom: var(--space-sm);
}

.footer-bank p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg) 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    margin: 0;
}

/* ===================================
   WHATSAPP FLOATING BUTTON
=================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 64px;
    height: 64px;
    background: #25D366;
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-normal);
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-tooltip {
    position: absolute;
    left: 80px;
    background: #333;
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    pointer-events: none;
}

.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5)
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0)
    }
}

/* ===================================
   BACK TO TOP
=================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ===================================
   RESPONSIVE DESIGN
=================================== */
@media (max-width: 1200px) {
    .quick-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    :root {
        --text-5xl: 2.75rem;
        --text-4xl: 2.25rem;
        --text-3xl: 1.875rem;
    }

    .nav-link {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-sm);
    }

    .header-buttons .btn {
        padding: 0.625rem 1rem;
        font-size: var(--text-sm);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image-badge {
        bottom: -20px;
        right: 20px;
    }

    .president-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .president-image {
        max-width: 250px;
        margin: 0 auto;
    }

    .president-content blockquote {
        border-left: none;
        padding-left: 0;
        border-top: 4px solid var(--primary);
        padding-top: var(--space-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-grid,
    .announcements-grid {
        grid-template-columns: 1fr;
    }

    .countdown-card {
        flex-direction: column;
        text-align: center;
    }

    .countdown-info p {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .top-bar-left {
        display: none;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: var(--space-sm) 0;
    }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        padding: var(--space-2xl);
        transition: var(--transition-normal);
        overflow-y: auto;
        z-index: 1001;
        display: block;
        border-top: none;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: var(--space-md);
        font-size: var(--text-lg);
        border-bottom: 1px solid var(--border-light);
        color: var(--text-dark);
        text-shadow: none;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary);
        background: rgba(46, 125, 50, 0.08);
    }

    .logo-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .logo-text {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .logo-title,
    .logo-subtitle {
        white-space: normal;
        font-size: 0.85rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 var(--space-lg);
        display: none;
        border: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .header-buttons {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-description {
        font-size: var(--text-lg);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .quick-links {
        margin-top: 0;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-social,
    .contact-social {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
    }

    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }


    .countdown-timer {
        flex-wrap: wrap;
        justify-content: center;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
        bottom: 1.5rem;
        left: 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --text-base: 1rem;
        --text-lg: 1.125rem;
    }

    .quick-links-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        gap: var(--space-lg);
    }

    .stat-item {
        width: 100%;
    }

    .countdown-number {
        font-size: var(--text-2xl);
        min-width: 60px;
        padding: var(--space-sm) var(--space-md);
    }
}

/* Overlay for mobile menu */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 90;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Pages Gallery Styles */
.page-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-gallery-item {
    text-align: center;
}

.page-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.page-gallery-item img:hover {
    transform: scale(1.02);
}

.page-gallery-item p {
    margin-top: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Pages Video Styles */
.page-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.page-video-item {
    text-align: center;
}

.page-video-item h3 {
    margin-top: 15px;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.page-video-item .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-video-item .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    .custom-home-card {
        grid-template-columns: 1fr;
    }

    .custom-home-media,
    .custom-home-media img,
    .custom-home-media iframe {
        min-height: 240px;
    }
}

/* Zengin metin bloğu: admin panelinde düz metin olarak yapıştırılan/yazılan içerikteki
   satır sonları (Enter/yeni satır) HTML'de normalde tek boşluğa indirgenir — bu kural
   metnin yazıldığı/yapıştırıldığı şekliyle (satır satır) görünmesini sağlar. */
.block-rich-text {
    white-space: pre-line;
}

.block-rich-text p {
    margin: 0 0 1em;
}

.block-rich-text p:last-child {
    margin-bottom: 0;
}
