/**
 * PREMIUM UI - Kayseri Birlik Vakfı Design System
 * Version: 4.0 - Gold Edition
 * 
 * NO GREEN TONES - Pure Gold + Neutral palette
 */

/* ══════════════════════════════════════════════════════════════
   PART 1: DESIGN TOKENS (CSS Variables)
   ══════════════════════════════════════════════════════════════ */

:root {
    /* ─── GOLD PRIMARY PALETTE ─── */
    --gold-300: rgb(176, 151, 70);    /* Açık Altın */
    --gold-500: rgb(188, 145, 60);    /* PRIMARY - Ana Altın */
    --gold-700: rgb(158, 120, 45);    /* Koyu Altın */
    
    /* ─── BRAND (Gold-Based) ─── */
    --c-brand: rgb(188, 145, 60);
    --c-brand-light: rgb(176, 151, 70);
    --c-brand-dark: rgb(158, 120, 45);
    --c-brand-bg: rgba(188, 145, 60, 0.08);
    --c-brand-bg-light: rgba(188, 145, 60, 0.04);
    
    /* ─── NEUTRAL PALETTE (NO GREEN) ─── */
    --c-white: #ffffff;
    --c-bg: #fbfbf9;
    --c-surface: #ffffff;
    --c-gray-50: #fafaf8;
    --c-gray-100: #f5f5f3;
    --c-gray-200: #eeede9;
    --c-gray-300: #e7e3d7;
    --c-gray-400: #c9c4b5;
    --c-gray-500: #9e9a8c;
    --c-gray-600: #6b6860;
    --c-gray-700: #4a4842;
    --c-gray-800: #2d2c28;
    --c-gray-900: #1f2328;
    --c-black: #121210;
    
    /* ─── TEXT COLORS ─── */
    --c-text: #1f2328;
    --c-text-secondary: #4a4842;
    --c-text-muted: #5b6673;
    --c-text-light: #9e9a8c;
    --c-text-inverse: #ffffff;
    
    /* ─── SEMANTIC COLORS (NO GREEN) ─── */
    --c-success: rgb(176, 151, 70);     /* Gold instead of green */
    --c-success-light: rgba(188, 145, 60, 0.12);
    --c-error: #c62828;
    --c-error-light: #ffebee;
    --c-warning: #f57c00;
    --c-warning-light: #fff3e0;
    --c-info: #1565c0;
    --c-info-light: #e3f2fd;
    
    /* ─── BORDER & SHADOW ─── */
    --c-border: #e7e3d7;
    --c-border-light: #f0ede4;
    --c-shadow: rgba(16, 24, 40, 0.08);
    
    /* ─── TYPOGRAPHY ─── */
    /* Türkçe karakter destekli font zinciri */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', 'Noto Serif', serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    
    --fs-xs: 0.75rem;      /* 12px */
    --fs-sm: 0.875rem;     /* 14px */
    --fs-base: 1rem;       /* 16px */
    --fs-md: 1.125rem;     /* 18px */
    --fs-lg: 1.25rem;      /* 20px */
    --fs-xl: 1.5rem;       /* 24px */
    --fs-2xl: 1.875rem;    /* 30px */
    --fs-3xl: 2.25rem;     /* 36px */
    --fs-4xl: 3rem;        /* 48px */
    --fs-5xl: 3.75rem;     /* 60px */
    
    --lh-tight: 1.2;
    --lh-snug: 1.35;
    --lh-normal: 1.5;
    --lh-relaxed: 1.65;
    
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    
    /* ─── SPACING (8px base) ─── */
    --sp-1: 0.25rem;   /* 4px */
    --sp-2: 0.5rem;    /* 8px */
    --sp-3: 0.75rem;   /* 12px */
    --sp-4: 1rem;      /* 16px */
    --sp-5: 1.25rem;   /* 20px */
    --sp-6: 1.5rem;    /* 24px */
    --sp-8: 2rem;      /* 32px */
    --sp-10: 2.5rem;   /* 40px */
    --sp-12: 3rem;     /* 48px */
    --sp-16: 4rem;     /* 64px */
    --sp-20: 5rem;     /* 80px */
    --sp-24: 6rem;     /* 96px */
    
    --section-py: clamp(4rem, 8vw, 6rem);
    --section-py-sm: clamp(3rem, 6vw, 4.5rem);
    
    /* ─── BORDERS & RADIUS ─── */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --border: 1px solid var(--c-border);
    
    /* ─── SHADOWS ─── */
    --shadow-xs: 0 1px 2px var(--c-shadow);
    --shadow-sm: 0 2px 4px var(--c-shadow);
    --shadow-md: 0 4px 12px var(--c-shadow);
    --shadow-lg: 0 8px 24px var(--c-shadow);
    --shadow-xl: 0 16px 48px rgba(16, 24, 40, 0.12);
    --shadow-brand: 0 4px 20px rgba(188, 145, 60, 0.25);
    
    /* ─── TRANSITIONS ─── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --transition: all var(--duration-normal) var(--ease-out);
    --transition-fast: all var(--duration-fast) var(--ease-out);
    
    /* ─── LAYOUT ─── */
    --container-max: 1280px;
    --container-narrow: 960px;
    --container-px: clamp(1rem, 4vw, 2rem);
    --header-height: 80px;
    --header-height-scrolled: 64px;
    
    /* ─── Z-INDEX ─── */
    --z-dropdown: 1050;
    --z-sticky: 1020;
    --z-header: 1030;
    --z-overlay: 1040;
    --z-modal: 1060;
}

/* ══════════════════════════════════════════════════════════════
   PART 2: RESET & BASE
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
    color: var(--c-text);
    background: var(--c-bg);
    overflow-x: hidden;
    padding-top: var(--header-height);
}

img, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ══════════════════════════════════════════════════════════════
   PART 3: TYPOGRAPHY
   ══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    color: var(--c-text);
    margin: 0 0 var(--sp-4);
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw + 0.5rem, 2.5rem); }
h3 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p {
    margin: 0 0 var(--sp-4);
    color: var(--c-text-secondary);
    max-width: 70ch;
}

p:last-child { margin-bottom: 0; }

.text-lead { font-size: var(--fs-lg); line-height: var(--lh-relaxed); }
.text-small { font-size: var(--fs-sm); }
.text-muted { color: var(--c-text-muted) !important; }
.text-brand { color: var(--c-brand) !important; }
.text-center { text-align: center; }

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--sp-12);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-brand);
    margin-bottom: var(--sp-3);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--sp-4);
}

.section-subtitle {
    font-size: var(--fs-md);
    color: var(--c-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   PART 4: LAYOUT
   ══════════════════════════════════════════════════════════════ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.container-narrow { max-width: var(--container-narrow); }

.section { padding: var(--section-py) 0; }
.section-sm { padding: var(--section-py-sm) 0; }
.section-alt { background: var(--c-gray-50); }

.section-dark {
    background: linear-gradient(135deg, var(--c-gray-900) 0%, var(--c-black) 100%);
    color: var(--c-text-inverse);
}

.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark .section-title { color: var(--c-text-inverse); }
.section-dark p, .section-dark .section-subtitle { color: rgba(255,255,255,0.8); }

/* Grid */
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

/* ══════════════════════════════════════════════════════════════
   PART 5: BUTTONS
   ══════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-6);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(188, 145, 60, 0.25);
}

.btn i { font-size: 1.1em; }

/* Primary - Gold */
.btn-primary {
    background: var(--gold-500);
    color: var(--c-white);
    border-color: var(--gold-500);
}

.btn-primary:hover {
    background: var(--gold-700);
    border-color: var(--gold-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

/* Secondary - Dark */
.btn-secondary {
    background: var(--c-gray-900);
    color: var(--c-white);
    border-color: var(--c-gray-900);
}

.btn-secondary:hover {
    background: var(--c-black);
    border-color: var(--c-black);
    transform: translateY(-2px);
}

/* Outline */
.btn-outline {
    background: transparent;
    color: var(--gold-500);
    border-color: var(--gold-500);
}

.btn-outline:hover {
    background: var(--gold-500);
    color: var(--c-white);
}

/* Ghost */
.btn-ghost {
    background: transparent;
    color: var(--c-text-secondary);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--c-gray-100);
    color: var(--c-text);
}

/* White - For dark backgrounds */
.btn-white {
    background: var(--c-white);
    color: var(--gold-700);
    border-color: var(--c-white);
}

.btn-white:hover {
    background: var(--c-gray-50);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Sizes */
.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); }
.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: var(--fs-base); }

/* Override Bootstrap success (NO GREEN) */
.btn-success {
    background: var(--gold-500) !important;
    border-color: var(--gold-500) !important;
    color: var(--c-white) !important;
}
.btn-success:hover {
    background: var(--gold-700) !important;
    border-color: var(--gold-700) !important;
}

/* ══════════════════════════════════════════════════════════════
   PART 6: CARDS
   ══════════════════════════════════════════════════════════════ */

.card {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.card-elevated {
    box-shadow: var(--shadow-md);
}

.card-elevated:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-bordered {
    border: var(--border);
}

.card-bordered:hover {
    border-color: var(--c-brand);
}

.card-body { padding: var(--sp-6); }

/* Feature Card */
.feature-card {
    text-align: center;
    padding: var(--sp-8);
    background: var(--c-surface);
    border-radius: var(--radius-xl);
    border: var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--c-brand);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--c-brand-bg);
    color: var(--c-brand);
    font-size: var(--fs-2xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--sp-6);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--c-brand);
    color: var(--c-white);
}

.feature-title {
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-3);
}

.feature-text {
    color: var(--c-text-muted);
    margin: 0;
}

/* News Card */
.news-card {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.news-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-body { padding: var(--sp-5); }

.news-card-date {
    font-size: var(--fs-xs);
    color: var(--c-brand);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--sp-2);
}

.news-card-title {
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stat Card */
.stat-card {
    text-align: center;
    padding: var(--sp-6);
}

.stat-value {
    font-family: var(--font-display);
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    color: var(--c-brand);
    line-height: 1;
    margin-bottom: var(--sp-2);
}

.stat-label {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Service Card */
.service-card {
    text-align: center;
    padding: var(--sp-8);
    background: var(--c-surface);
    border-radius: var(--radius-xl);
    border: var(--border);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--c-brand);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--c-brand), var(--c-brand-dark));
    border-radius: 50%;
    margin-bottom: var(--sp-6);
    transition: var(--transition);
}

.service-icon i {
    font-size: var(--fs-2xl);
    color: var(--c-white);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--sp-3);
    color: var(--c-text);
}

.service-desc {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    margin-bottom: var(--sp-4);
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--c-brand);
    text-decoration: none;
    transition: var(--transition-fast);
}

.service-link:hover {
    color: var(--c-brand-dark);
    gap: var(--sp-3);
}

.service-link i {
    transition: var(--transition-fast);
}

/* ══════════════════════════════════════════════════════════════
   PART 7: FORMS
   ══════════════════════════════════════════════════════════════ */

.form-group { margin-bottom: var(--sp-5); }

.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--c-text);
    margin-bottom: var(--sp-2);
}

.form-control {
    display: block;
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--fs-base);
    color: var(--c-text);
    background: var(--c-surface);
    border: 2px solid var(--c-border);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.form-control::placeholder { color: var(--c-text-light); }

.form-control:focus {
    outline: none;
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px rgba(188, 145, 60, 0.15);
}

textarea.form-control { min-height: 120px; resize: vertical; }

/* ══════════════════════════════════════════════════════════════
   PART 8: HEADER
   ══════════════════════════════════════════════════════════════ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-header);
    transition: var(--transition);
    overflow: visible;
}

.header.scrolled {
    height: var(--header-height-scrolled);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    overflow: visible;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.header-logo img {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

.header.scrolled .header-logo img { height: 40px; }

.header-logo-text {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--c-text);
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    overflow: visible;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--c-text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--c-brand);
    background: var(--c-brand-bg);
}

/* Dropdown - BS5 Compatible */
.nav-dropdown {
    position: relative;
    overflow: visible;
}

.nav-dropdown.dropdown {
    position: relative;
}

/* Bootstrap 5 dropdown-toggle override */
.nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-4);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--c-text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    cursor: pointer;
    background: transparent;
    border: none;
}

.nav-link.dropdown-toggle::after {
    display: none; /* Hide BS5 default caret, we use bi-chevron-down */
}

.nav-link.dropdown-toggle:hover,
.nav-link.dropdown-toggle.show {
    color: var(--c-brand);
    background: var(--c-brand-bg);
}

/* Dropdown Menu - BS5 Override */
.header-nav .dropdown-menu,
.header-cta .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: var(--sp-2);
    margin-top: var(--sp-1);
    background: var(--c-surface);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1055;
}

.header-cta .dropdown-menu {
    right: 0;
    left: auto;
}

/* Legacy .open support removed - using BS5 native now */

/* Button dropdown toggle in header */
.header-cta .btn.dropdown-toggle::after {
    display: none;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--fs-sm);
    color: var(--c-text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--c-gray-100);
    color: var(--c-brand);
}

.dropdown-item i {
    font-size: var(--fs-md);
    color: var(--c-text-light);
}

.dropdown-item:hover i { color: var(--c-brand); }

/* Header CTA */
.header-cta {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    overflow: visible;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
    .header-nav, .header-cta { display: none; }
    .menu-toggle { display: flex; }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--c-surface);
    padding: var(--sp-6);
    transform: translateX(100%);
    transition: var(--transition);
    z-index: calc(var(--z-header) - 1);
    overflow-y: auto;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    color: var(--c-text);
    border-bottom: var(--border);
    transition: var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--c-brand);
}

.mobile-nav-link i {
    color: var(--c-brand);
    font-size: var(--fs-lg);
}

/* ══════════════════════════════════════════════════════════════
   PART 9: HERO
   ══════════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: calc(var(--header-height) * -1);
    padding-top: var(--header-height);
    overflow: visible;
}

.hero > .container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img, .hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--c-text-inverse);
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-4);
}

@media (max-width: 767px) {
    .hero-content {
        padding: var(--sp-4) var(--sp-3);
    }
}

.hero-label {
    display: inline-block;
    padding: var(--sp-2) var(--sp-4);
    background: var(--c-brand);
    color: var(--c-white);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: var(--sp-6);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--c-text-inverse);
    margin-bottom: var(--sp-5);
}

.hero-subtitle {
    font-size: var(--fs-lg);
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--sp-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--lh-relaxed);
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

@media (max-width: 575px) {
    .hero-actions {
        flex-direction: column;
        gap: var(--sp-3);
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
    margin-top: var(--sp-10);
    padding: var(--sp-6);
    background: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat {
    text-align: center;
    padding: var(--sp-3);
}

.hero-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--fw-bold);
    color: var(--gold-300);
    line-height: 1.1;
    margin-bottom: var(--sp-1);
}

.hero-stat-label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

/* Hero Stats Responsive */
@media (max-width: 991px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-3);
        padding: var(--sp-5);
        max-width: 500px;
    }
}

@media (max-width: 575px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-2);
        padding: var(--sp-4);
    }
    
    .hero-stat {
        padding: var(--sp-2);
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .hero-stat-label {
        font-size: 0.65rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   PART 10: PAGE HEADER
   ══════════════════════════════════════════════════════════════ */

.page-header {
    padding: var(--sp-16) 0 var(--sp-12);
    background: linear-gradient(135deg, var(--c-gray-900) 0%, var(--c-black) 100%);
    color: var(--c-text-inverse);
    text-align: center;
    margin-top: calc(var(--header-height) * -1);
    padding-top: calc(var(--header-height) + var(--sp-16));
}

.page-header-content {
    max-width: 640px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
    font-size: var(--fs-sm);
}

.breadcrumb a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition-fast);
}

.breadcrumb a:hover { color: var(--c-white); }
.breadcrumb-separator { color: rgba(255,255,255,0.4); }
.breadcrumb-current { color: var(--c-brand-light); }

.page-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--c-text-inverse);
    margin-bottom: var(--sp-3);
}

.page-description {
    font-size: var(--fs-md);
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   PART 11: CTA SECTION
   ══════════════════════════════════════════════════════════════ */

.cta-section {
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-700) 100%);
    padding: var(--sp-12) 0;
    text-align: center;
}

.cta-section-title, .cta-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--c-white);
    margin-bottom: var(--sp-3);
}

.cta-section-text, .cta-text {
    font-size: var(--fs-base);
    color: rgba(255,255,255,0.9);
    max-width: 560px;
    margin: 0 auto var(--sp-6);
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-section-buttons {
    display: flex;
    justify-content: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

/* CTA Cards */
.cta-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

@media (max-width: 991px) {
    .cta-cards { grid-template-columns: 1fr; }
}

.cta-card {
    position: relative;
    padding: var(--sp-8);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.cta-card-content {
    position: relative;
    z-index: 2;
    color: var(--c-white);
}

.cta-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.cta-card-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    color: var(--c-white);
    margin-bottom: var(--sp-2);
}

.cta-card-text {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--sp-5);
}

.cta-card-boys { background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%); }
.cta-card-girls { background: linear-gradient(135deg, #C2185B 0%, #880E4F 100%); }
.cta-card-scholarship { background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-700) 100%); }

/* ══════════════════════════════════════════════════════════════
   PART 12: NEWSLETTER
   ══════════════════════════════════════════════════════════════ */

.newsletter-section {
    background: var(--c-gray-100);
    padding: var(--sp-10) 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-8);
}

.newsletter-text h3 {
    font-family: var(--font-body);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--c-text);
    margin-bottom: var(--sp-1);
}

.newsletter-text p {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 400px;
    width: 100%;
}

.newsletter-form .form-control {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.newsletter-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-form {
        flex-direction: column;
        gap: var(--sp-3);
        max-width: 100%;
    }
    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: var(--radius-md);
        border: 2px solid var(--c-border);
    }
    .newsletter-form .form-control { border-right: 2px solid var(--c-border); }
}

/* ══════════════════════════════════════════════════════════════
   PART 13: FOOTER
   ══════════════════════════════════════════════════════════════ */

.footer {
    background: var(--c-gray-900);
    color: var(--c-gray-400);
    padding: var(--sp-16) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--sp-8);
}

@media (max-width: 991px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { padding-right: var(--sp-8); }

.footer-brand img {
    height: 48px;
    margin-bottom: var(--sp-4);
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    color: var(--c-gray-400);
    margin-bottom: var(--sp-5);
}

.footer-social {
    display: flex;
    gap: var(--sp-3);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--c-gray-400);
    border-radius: var(--radius-md);
    font-size: var(--fs-md);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--c-brand);
    color: var(--c-white);
}

.footer-col h5 {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--c-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--sp-4);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.footer-links a {
    font-size: var(--fs-sm);
    color: var(--c-gray-400);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--c-white);
    padding-left: var(--sp-2);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
    font-size: var(--fs-sm);
}

.footer-contact i {
    margin-top: 3px;
    color: var(--c-brand-light);
}

.footer-contact a {
    color: var(--c-gray-400);
}

.footer-contact a:hover { color: var(--c-white); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sp-6) 0;
    margin-top: var(--sp-12);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: var(--fs-sm);
}

.footer-bottom a {
    color: var(--c-gray-400);
    margin-left: var(--sp-4);
}

.footer-bottom a:hover { color: var(--c-white); }

@media (max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        gap: var(--sp-3);
        text-align: center;
    }
    .footer-bottom a { margin: 0 var(--sp-2); }
}

/* ══════════════════════════════════════════════════════════════
   PART 14: ACCORDION (FAQ)
   ══════════════════════════════════════════════════════════════ */

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--c-surface);
    border: var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--sp-4);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.accordion-item:hover { box-shadow: var(--shadow-md); }
.accordion-item:last-child { margin-bottom: 0; }

.accordion-header,
.accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--sp-5) var(--sp-6);
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    text-align: left;
    background: var(--c-surface);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    gap: var(--sp-4);
    color: var(--c-text);
}

.accordion-header:hover,
.accordion-toggle:hover {
    background: var(--c-gray-50);
}

.accordion-header i,
.accordion-toggle i {
    font-size: var(--fs-lg);
    color: var(--c-brand);
    transition: var(--transition);
    flex-shrink: 0;
}

.accordion-toggle.active i {
    transform: rotate(180deg);
}

.accordion-body,
.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--sp-6);
    color: var(--c-text-secondary);
    line-height: var(--lh-relaxed);
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.accordion-content.show {
    max-height: 500px;
    padding: 0 var(--sp-6) var(--sp-5);
}

/* ══════════════════════════════════════════════════════════════
   PART 15: ALERTS & BADGES (NO GREEN)
   ══════════════════════════════════════════════════════════════ */

.alert {
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    border: 1px solid;
}

.alert-success {
    background: var(--c-success-light);
    border-color: var(--c-brand);
    color: var(--c-brand-dark);
}

.alert-danger {
    background: var(--c-error-light);
    border-color: var(--c-error);
    color: var(--c-error);
}

.alert-warning {
    background: var(--c-warning-light);
    border-color: var(--c-warning);
    color: var(--c-warning);
}

.alert-info {
    background: var(--c-info-light);
    border-color: var(--c-info);
    color: var(--c-info);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--sp-1) var(--sp-3);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-full);
}

.badge-primary { background: var(--c-brand-bg); color: var(--c-brand); }
.badge-success { background: var(--c-success-light) !important; color: var(--c-brand) !important; }
.badge-danger { background: var(--c-error-light); color: var(--c-error); }
.badge-warning { background: var(--c-warning-light); color: var(--c-warning); }

/* Override Bootstrap text-success */
.text-success { color: var(--c-brand) !important; }
.bg-success { background-color: var(--c-brand) !important; }
.border-success { border-color: var(--c-brand) !important; }

/* ══════════════════════════════════════════════════════════════
   PART 16: UTILITIES
   ══════════════════════════════════════════════════════════════ */

.bg-cream { background: linear-gradient(180deg, #FDFCF9 0%, #FAF8F3 100%); }
.bg-gold { background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-700) 100%); }

.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-0 { margin-bottom: 0 !important; }
.mx-auto { margin-left: auto; margin-right: auto; }

.img-rounded { border-radius: var(--radius-xl); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.hide-mobile { display: block; }
@media (max-width: 767px) { .hide-mobile { display: none; } }

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: var(--sp-6);
    right: var(--sp-6);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-brand);
    color: var(--c-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--fs-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: var(--z-sticky);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--c-brand-dark);
    transform: translateY(-2px);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: var(--sp-6);
    left: var(--sp-6);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    font-size: 1.75rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-sticky);
    transition: var(--transition);
}

.whatsapp-float:hover {
    background: #1DA851;
    transform: scale(1.1);
}

/* Rich Text */
.rich-text {
    line-height: var(--lh-relaxed);
    color: var(--c-text-secondary);
}

.rich-text p { margin-bottom: var(--sp-4); }
.rich-text ul, .rich-text ol { margin-bottom: var(--sp-4); padding-left: var(--sp-6); }
.rich-text li { margin-bottom: var(--sp-2); list-style-type: disc; }
.rich-text ol li { list-style-type: decimal; }

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c-gray-100) 0%, var(--c-gray-50) 100%);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--c-gray-300);
}

.empty-icon {
    font-size: 4rem;
    color: var(--c-gray-400);
}

/* Team Card */
.team-card {
    text-align: center;
    padding: var(--sp-6);
    background: var(--c-surface);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.team-card:hover { box-shadow: var(--shadow-lg); }

.team-card-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto var(--sp-4);
    border: 4px solid var(--c-brand-bg);
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-name {
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-1);
}

.team-card-role {
    font-size: var(--fs-sm);
    color: var(--c-brand);
    font-weight: var(--fw-medium);
    margin-bottom: var(--sp-3);
}

.team-card-bio {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
}

/* Dorm Card */
.dorm-card {
    background: var(--c-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    padding: var(--sp-6);
    text-align: center;
}

.dorm-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--c-brand-bg);
    color: var(--c-brand);
    font-size: var(--fs-2xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--sp-4);
}

.dorm-card-title {
    font-size: var(--fs-xl);
    margin-bottom: var(--sp-3);
}

.dorm-card-text {
    color: var(--c-text-muted);
    margin-bottom: var(--sp-4);
}

.dorm-card-price {
    text-align: center;
    padding: var(--sp-4);
    background: var(--c-brand-bg-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--sp-4);
}

.price-value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--c-brand);
}

.price-period {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
}

.dorm-card-features {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    text-align: left;
}

.dorm-card-features li {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    color: var(--c-text-secondary);
}

.dorm-card-features i {
    color: var(--c-brand);
    font-size: var(--fs-sm);
}

/* Contact Info */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: var(--sp-5);
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    border: var(--border);
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--c-brand);
    box-shadow: var(--shadow-md);
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--c-brand-bg);
    color: var(--c-brand);
    border-radius: var(--radius-md);
    font-size: var(--fs-lg);
    flex-shrink: 0;
}

.contact-info-content h5 {
    font-size: var(--fs-base);
    font-family: var(--font-body);
    margin-bottom: var(--sp-1);
}

.contact-info-content p {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    margin: 0;
}

/* Dorm Features */
.dorm-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
    margin-bottom: var(--sp-6);
}

.dorm-feature {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-sm);
    color: var(--c-text-secondary);
}

.dorm-feature i { color: var(--c-brand); }

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
}

@media (max-width: 767px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img { transform: scale(1.1); }

/* Application Form */
.application-form {
    background: var(--c-surface);
    border-radius: var(--radius-xl);
    padding: var(--sp-8);
    box-shadow: var(--shadow-md);
}

.application-form-title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--sp-2);
}

.application-form-subtitle {
    color: var(--c-text-muted);
    margin-bottom: var(--sp-8);
}

/* ══════════════════════════════════════════════════════════════
   PART 17: INPUT GROUP & FORM CHECKBOX
   ══════════════════════════════════════════════════════════════ */

.input-group {
    display: flex;
    width: 100%;
}

.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    margin-bottom: var(--sp-3);
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--c-brand);
    flex-shrink: 0;
}

.form-check-label {
    font-size: var(--fs-sm);
    color: var(--c-text-secondary);
    line-height: 1.5;
}

.form-check-label a {
    color: var(--c-brand);
    text-decoration: underline;
}

.form-check-label a:hover {
    color: var(--c-brand-dark);
}

/* Text Accent */
.text-accent {
    color: var(--c-error);
}

/* Map Container */
.map-container {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* H3 Styling */
.h3 {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    margin-bottom: var(--sp-4);
}

.h5 {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-snug);
}

/* Margin Utilities */
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.pt-6 { padding-top: var(--sp-6); }
.py-12 { padding-top: var(--sp-12); padding-bottom: var(--sp-12); }

/* News Card Enhancements */
.news-card-category {
    position: absolute;
    top: var(--sp-3);
    left: var(--sp-3);
    padding: var(--sp-1) var(--sp-3);
    background: var(--c-brand);
    color: var(--c-white);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    border-radius: var(--radius-full);
}

.news-card-image {
    position: relative;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    margin-bottom: var(--sp-2);
}

.news-card-meta i {
    margin-right: var(--sp-1);
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--c-brand);
    margin-top: var(--sp-3);
    transition: var(--transition-fast);
}

.news-card-link:hover {
    color: var(--c-brand-dark);
    gap: var(--sp-2);
}

/* Team Card Enhancements */
.team-card-image {
    position: relative;
}

.team-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--c-gray-100);
    color: var(--c-gray-400);
    font-size: 3rem;
}

.team-card-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3);
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover .team-card-social {
    opacity: 1;
}

.team-card-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    color: var(--c-white);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    transition: var(--transition-fast);
}

.team-card-social a:hover {
    background: var(--c-brand);
}

.team-card-name {
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-1);
}

.team-card-title {
    font-size: var(--fs-sm);
    color: var(--c-brand);
    margin-bottom: var(--sp-2);
}

.team-card-bio {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    margin-bottom: var(--sp-2);
}

.team-card-category {
    display: inline-block;
    padding: var(--sp-1) var(--sp-2);
    background: var(--c-brand-bg);
    color: var(--c-brand);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-sm);
}

.team-card-body {
    padding: var(--sp-4);
}

/* Alert Error */
.alert-error {
    background: var(--c-error-light);
    border-color: var(--c-error);
    color: var(--c-error);
}

/* Print Styles */
@media print {
    .header, .footer, .cta-section, .newsletter-section,
    .scroll-top, .whatsapp-float, .mobile-menu {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .page-header {
        margin-top: 0;
        padding-top: var(--sp-8);
    }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE FIX PACK
   360px - Full Mobile First Support
   ══════════════════════════════════════════════════════════════ */

/* A) Global Container & Spacing */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Section padding mobile optimization */
@media (max-width: 767px) {
    .section {
        padding-top: 48px;
        padding-bottom: 48px;
    }
    
    .section-sm {
        padding-top: 32px;
        padding-bottom: 32px;
    }
    
    :root {
        --section-py: 48px;
        --section-py-sm: 32px;
    }
}

/* B) Navbar Mobile Fix */
@media (max-width: 991px) {
    .header-inner {
        padding: 0 16px;
    }
    
    .header-logo img {
        height: 40px;
    }
    
    .header-logo-text {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
    
    .mobile-menu {
        top: var(--header-height);
        padding: 16px;
    }
    
    .mobile-nav-link {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .mobile-menu .btn {
        min-height: 44px;
    }
}

/* C) Hero Mobile Optimization */
@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 32px);
        padding-bottom: 48px;
    }
    
    .hero-content {
        padding: 24px 16px;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .hero-label {
        font-size: 0.75rem;
        padding: 8px 16px;
        margin-bottom: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-stats {
        margin-top: 32px;
        padding: 16px;
        gap: 8px;
    }
    
    .hero-stat {
        padding: 8px 4px;
    }
    
    .hero-stat-value {
        font-size: 1.25rem;
    }
    
    .hero-stat-label {
        font-size: 0.6rem;
        line-height: 1.2;
    }
}

/* D) Cards & Grid Mobile */
@media (max-width: 767px) {
    .grid {
        gap: 16px;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 24px 16px;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    .feature-title {
        font-size: 1.125rem;
    }
    
    /* News Cards */
    .news-card-body {
        padding: 16px;
    }
    
    .news-card-title {
        font-size: 1.125rem;
    }
    
    .news-card-image {
        aspect-ratio: 16/10;
    }
    
    .news-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Team Cards */
    .team-card {
        padding: 24px 16px;
    }
    
    .team-card-image {
        width: 100px;
        height: 100px;
    }
}

/* Medium screens - 2 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* E) Forms Mobile */
@media (max-width: 767px) {
    .form-control {
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    /* Two column forms to single column */
    .row.g-3 > [class*="col-md-"],
    .row.g-4 > [class*="col-md-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Checkbox text wrap */
    .form-check-label {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .form-check {
        display: flex;
        align-items: flex-start;
        gap: 8px;
    }
    
    .form-check-input {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        margin-top: 2px;
    }
}

/* Newsletter form mobile */
@media (max-width: 767px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

/* F) Page Header Mobile */
@media (max-width: 767px) {
    .page-header {
        padding-top: calc(var(--header-height) + 48px);
        padding-bottom: 48px;
    }
    
    .page-header h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.8rem;
    }
}

/* G) Footer Mobile */
@media (max-width: 767px) {
    .footer {
        padding: 48px 0 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand img {
        margin: 0 auto 16px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-contact ul {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-bottom nav {
        justify-content: center;
    }
}

/* H) CTA Section Mobile */
@media (max-width: 767px) {
    .cta-section {
        padding: 48px 0;
    }
    
    .cta-section-title, .cta-title {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }
    
    .cta-section-text, .cta-text {
        font-size: 0.9rem;
    }
    
    .cta-section-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-section-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .cta-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cta-card {
        padding: 32px 24px;
    }
}

/* I) Section Headers Mobile */
@media (max-width: 767px) {
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .section-label {
        font-size: 0.75rem;
    }
}

/* J) Buttons Mobile Touch Target */
.btn {
    min-height: 44px;
}

@media (max-width: 767px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 14px 28px;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 8px 16px;
    }
}

/* K) Tables Responsive */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    table {
        min-width: 600px;
    }
    
    .table th,
    .table td {
        padding: 10px 12px;
        font-size: 0.875rem;
    }
}

/* L) Dropdown Mobile */
@media (max-width: 991px) {
    .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        bottom: 0;
        left: 0 !important;
        right: 0;
        transform: none !important;
        width: 100%;
        max-height: 60vh;
        overflow-y: auto;
        border-radius: 16px 16px 0 0;
        padding: 16px;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    }
    
    .dropdown-item {
        padding: 14px 16px;
        min-height: 44px;
    }
}

/* M) Image Aspect Ratios */
.news-card-image,
.team-card-image,
.dorm-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-card-image img,
.team-card-image img,
.dorm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Team card image circular */
.team-card .team-card-image {
    aspect-ratio: 1/1;
    border-radius: 50%;
}

/* N) Gallery Swiper Mobile */
@media (max-width: 767px) {
    .dorm-gallery .swiper-slide img {
        height: 250px;
        object-fit: cover;
    }
    
    .gallery-swiper {
        padding-bottom: 40px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}

/* O) Scroll/Float Buttons Mobile Position */
@media (max-width: 767px) {
    .scroll-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    
    .whatsapp-float {
        bottom: 16px;
        left: 16px;
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

/* P) Prevent Horizontal Scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Q) Contact Info Mobile */
@media (max-width: 767px) {
    .contact-info-box {
        padding: 24px 16px;
        margin-bottom: 24px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
}

/* R) Application Form Mobile */
@media (max-width: 767px) {
    .application-form {
        padding: 24px 16px;
    }
    
    .application-form .row > [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* S) Stats Section Mobile */
@media (max-width: 575px) {
    .stats-section .row {
        gap: 16px;
    }
    
    .stat-box {
        padding: 24px 16px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* T) Info Box Mobile */
@media (max-width: 767px) {
    .info-box {
        padding: 24px 16px;
        text-align: center;
    }
    
    .info-icon {
        margin: 0 auto 16px;
    }
}

/* U) Values Grid Mobile */
@media (max-width: 767px) {
    .values-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .value-item {
        padding: 12px 16px;
    }
}

/* V) Announcement Box Mobile */
@media (max-width: 767px) {
    .announcement-box {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 24px 16px;
    }
    
    .announcement-icon {
        margin: 0 auto;
    }
    
    .announcement-box .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* W) Dorm Gallery Mobile */
@media (max-width: 767px) {
    .dorm-gallery {
        margin-bottom: 32px;
    }
}

/* X) News Detail Mobile */
@media (max-width: 767px) {
    .news-detail-header h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .news-detail-image {
        margin: 0 -16px 24px;
        border-radius: 0;
    }
    
    .news-detail-content {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    .news-share {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}

/* Y) Scholarship Card Mobile */
@media (max-width: 767px) {
    .scholarship-card {
        padding: 24px 16px;
    }
}

/* Z) Requirements List Mobile */
@media (max-width: 767px) {
    .requirements-list ul {
        padding-left: 0;
    }
    
    .requirements-list li {
        padding: 12px 0;
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }
    
    .requirements-list li i {
        flex-shrink: 0;
        margin-top: 2px;
    }
}

/* Extra: Fix for 360px screens */
@media (max-width: 375px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 10px 18px;
    }
}

/* ══════════════════════════════════════════════════════════════
   ICON COLOR SYSTEM - Kalıcı Kontrast Çözümü
   FIX: İkonların arka planla aynı renkte görünme problemi
   ══════════════════════════════════════════════════════════════ */

/* Base icon styling - her zaman görünür olsun */
.bi {
    display: inline-block;
    vertical-align: -0.125em;
    line-height: 1;
}

/* Icon Color Variants - Merkezi yönetim */
.icon-brand { color: var(--c-brand) !important; }
.icon-white { color: #ffffff !important; }
.icon-dark { color: var(--c-text) !important; }
.icon-muted { color: var(--c-text-muted) !important; }
.icon-light { color: var(--c-gray-400) !important; }

/* Dark section'larda ikonlar beyaz olsun */
.section-dark .bi,
.section-dark i.bi,
.cta-card .bi,
.cta-card i.bi {
    color: #ffffff;
}

/* Button icon'ları parent rengini alsın */
.btn .bi,
.btn i.bi {
    color: inherit;
}

/* Feature card icon'ları brand rengi */
.feature-icon .bi,
.feature-icon i.bi {
    color: var(--c-brand);
}

/* Team card social icon'ları */
.team-card-social a .bi,
.team-card-social a i.bi {
    color: #ffffff;
}

/* Empty state icon'ları */
.empty-state .bi,
.empty-icon .bi,
.empty-state i.bi,
.empty-icon i.bi {
    color: var(--c-gray-400);
    font-size: inherit;
}

/* Footer icon'ları */
.footer .bi,
.footer i.bi {
    color: rgba(255, 255, 255, 0.8);
}

/* Page header breadcrumb icon'ları */
.breadcrumb .bi,
.breadcrumb i.bi {
    color: var(--c-text-muted);
}

/* News card meta icon'ları */
.news-card-meta .bi,
.news-card-meta i.bi {
    color: var(--c-text-muted);
    font-size: 0.9em;
}

/* News card link icon'ları */
.news-card-link .bi,
.news-card-link i.bi {
    color: var(--c-brand);
    transition: transform 0.2s ease;
}

.news-card-link:hover .bi,
.news-card-link:hover i.bi {
    transform: translateX(4px);
}

/* Contact info icon'ları */
.contact-info-card .bi,
.contact-info-card i.bi {
    color: var(--c-brand);
}

/* Dorm card feature icon'ları */
.dorm-card-features .bi,
.dorm-card-features i.bi {
    color: var(--c-brand);
}

/* ══════════════════════════════════════════════════════════════
   PLACEHOLDER COMPONENTS - Görsel olmadığında kullanılır
   FIX: Boş görsel alanlarında düzgün placeholder göster
   ══════════════════════════════════════════════════════════════ */

/* News Card Placeholder */
.news-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--c-gray-100) 0%, var(--c-gray-200) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.news-card-placeholder .bi,
.news-card-placeholder i.bi {
    font-size: 3rem;
    color: var(--c-gray-400);
}

/* Team Card Placeholder */
.team-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--c-gray-100) 0%, var(--c-gray-200) 100%);
    border-radius: inherit;
}

.team-card-placeholder .bi,
.team-card-placeholder i.bi {
    font-size: 2.5rem;
    color: var(--c-gray-400);
}

/* Generic Image Placeholder */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c-gray-100) 0%, var(--c-gray-200) 100%);
    border-radius: var(--radius-md);
    min-height: 150px;
}

.img-placeholder .bi,
.img-placeholder i.bi {
    font-size: 2rem;
    color: var(--c-gray-400);
}

/* Empty state daha belirgin */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sp-12) var(--sp-6);
    background: linear-gradient(135deg, var(--c-gray-100) 0%, var(--c-gray-50) 100%);
    border-radius: var(--radius-xl);
    border: 2px dashed var(--c-gray-300);
    min-height: 300px;
    text-align: center;
}

.empty-state .empty-icon {
    margin-bottom: var(--sp-4);
}

.empty-state .empty-icon .bi,
.empty-state .empty-icon i.bi {
    font-size: 4rem;
    color: var(--c-gray-400);
}

.empty-state p {
    color: var(--c-text-muted);
    font-size: var(--fs-md);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   ICON CONTRAST FIX - Specifik durumlar
   ══════════════════════════════════════════════════════════════ */

/* White background button içindeki ikonlar */
.btn-white .bi,
.btn-white i.bi {
    color: var(--gold-700);
}

/* Outline button hover'da */
.btn-outline:hover .bi,
.btn-outline:hover i.bi {
    color: #ffffff;
}

/* Primary button içindeki ikonlar */
.btn-primary .bi,
.btn-primary i.bi {
    color: #ffffff;
}

/* Ghost button ikonları */
.btn-ghost .bi,
.btn-ghost i.bi {
    color: var(--c-text-secondary);
}

.btn-ghost:hover .bi,
.btn-ghost:hover i.bi {
    color: var(--c-text);
}

/* CTA card'daki icon container */
.cta-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: var(--sp-4);
}

.cta-card-icon .bi,
.cta-card-icon i.bi {
    font-size: 1.75rem;
    color: #ffffff;
}

/* Header nav icon'ları */
.header-nav .bi,
.header-nav i.bi {
    color: inherit;
}

/* WhatsApp float icon */
.whatsapp-float .bi,
.whatsapp-float i.bi {
    color: #ffffff;
}

/* Scroll top icon */
.scroll-top .bi,
.scroll-top i.bi {
    color: #ffffff;
}

/* Alert ikonları */
.alert .bi,
.alert i.bi {
    margin-right: var(--sp-2);
}

.alert-info .bi,
.alert-info i.bi {
    color: var(--c-info);
}

/* Badge içindeki sayılar */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    background: rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    margin-left: var(--sp-2);
}

.btn-primary .badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.btn-outline .badge {
    background: var(--c-brand-bg);
    color: var(--c-brand);
}
