/* ========================================
   DGS GÜVENLİK - Kamera & Alarm Sistemleri
   Kırmızı-beyaz kurumsal tasarım
   ======================================== */

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

:root {
  --primary: #c0392b;
  --primary-dark: #96281b;
  --primary-light: #e74c3c;
  --accent: #c0392b;
  --accent-light: #e74c3c;
  --accent-soft: rgba(192, 57, 43, 0.1);
  --white: #ffffff;
  --gray-50: #fafbfc;
  --gray-100: #f4f5f7;
  --gray-200: #e8eaed;
  --gray-300: #d1d5db;
  --gray-400: #b0b7c3;
  --gray-500: #8b95a5;
  --gray-600: #6b7280;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
  --text: #2d3748;
  --text-light: #5a6577;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--primary-light); transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 32px; border-radius: var(--radius-sm); font-weight: 500;
  font-size: 0.9rem; border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition); text-decoration: none; gap: 8px;
  font-family: 'Inter', sans-serif;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }

.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--white); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  transition: all var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; position: relative; max-width: 1140px; margin: 0 auto; padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 40px; width: auto; }
.brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--primary); font-weight: 400;
  letter-spacing: -0.01em;
}
.brand-text strong { font-weight: 700; }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  position: absolute; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
}
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--gray-700);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary); background: rgba(192,57,43,0.05);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  background: none; border: none; cursor: pointer;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-800); border-radius: 2px; transition: var(--transition); }

.mobile-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 1001; opacity: 0; transition: opacity var(--transition);
}
.mobile-overlay.active { display: block; opacity: 1; }
.mobile-menu {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
  background: var(--white); z-index: 1002; padding: 80px 24px 24px;
  transition: right var(--transition); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.mobile-menu.active { right: 0; }
.mobile-menu-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: var(--primary); font-weight: 600;
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.mobile-menu a {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--gray-700); font-weight: 500;
}
.mobile-menu a:hover, .mobile-menu a.active {
  background: rgba(192,57,43,0.05); color: var(--primary);
}
.mobile-close {
  position: absolute; top: 20px; right: 20px; background: none;
  border: none; font-size: 28px; cursor: pointer; color: var(--gray-600);
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
}

/* --- Hero --- */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: linear-gradient(135deg, #7b1a14 0%, #a93226 40%, #c0392b 100%);
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover;
  background-position: center; opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #7b1a14 0%, #a93226 40%, #c0392b 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(123,26,20,0.85) 0%, rgba(169,50,38,0.70) 50%, rgba(192,57,43,0.55) 100%);
}
.hero-dots {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5);
  background: transparent; cursor: pointer; transition: var(--transition);
}
.hero-dot.active { background: var(--white); border-color: var(--white); }

.hero-content {
  position: relative; z-index: 5; text-align: center;
  color: var(--white); padding: 0 24px; max-width: 720px;
}
.hero-profile { margin-bottom: 24px; }
.hero-avatar {
  width: 150px; height: 150px; border-radius: 50%;
  object-fit: cover; border: 4px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  margin: 0 auto;
}
.hero-welcome {
  font-size: 0.95rem; font-weight: 400; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 10px; opacity: 0.75;
  color: var(--accent-light);
}
.hero-content h1 {
  font-size: 3rem; font-weight: 700; color: var(--white);
  margin-bottom: 14px; line-height: 1.15;
  font-family: 'Playfair Display', serif;
}
.hero-subtitle {
  font-size: 1.05rem; font-weight: 300; opacity: 0.85; margin-bottom: 32px;
}
.hero-affiliation {
  font-size: 0.9rem; font-weight: 400; opacity: 0.65; margin-bottom: 28px;
  font-style: italic;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Sections --- */
.section { padding: 88px 0; }
.section-light { background: var(--gray-50); }
.section-dark { background: var(--gray-900); color: var(--gray-300); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header p { color: var(--text-light); font-size: 1rem; max-width: 600px; margin: 10px auto 0; }
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 2.5px;
  margin-bottom: 10px; font-family: 'Inter', sans-serif;
}
.section-label.light { color: var(--accent-light); }

/* --- Stats Section --- */
.stats-section { background: var(--white); padding: 0; position: relative; z-index: 10; }
.stats-section .container { margin-top: -48px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat-item {
  padding: 36px 24px; text-align: center;
  border-right: 1px solid var(--gray-200);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 700; color: var(--primary);
  line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: 0.82rem; color: var(--text-light); font-weight: 500; }

/* --- Features / Research Areas --- */
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feature-card {
  text-align: center; padding: 36px 20px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--gray-200);
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.feature-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.87rem; color: var(--text-light); line-height: 1.6; }

/* --- About Grid --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-image { border-radius: var(--radius); overflow: hidden; }
.about-image img { width: 100%; height: 420px; object-fit: cover; }
.about-content .section-label { margin-bottom: 8px; }
.about-content h2 { margin-bottom: 18px; }
.about-content p { color: var(--text-light); margin-bottom: 16px; font-size: 0.95rem; }
.about-highlights { display: flex; gap: 28px; margin: 24px 0; }
.highlight { text-align: center; }
.highlight strong {
  display: block; font-size: 1.2rem; color: var(--primary);
  font-weight: 700; font-family: 'Inter', sans-serif;
}
.highlight span { font-size: 0.8rem; color: var(--text-light); }

/* --- Book Cards --- */
.books-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.book-card {
  display: flex; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all var(--transition); border: 1px solid var(--gray-200);
}
.book-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.book-card-featured {
  flex-direction: row; grid-column: span 2;
  border: 1px solid var(--gray-200);
}
.book-card-cover {
  width: 180px; min-height: 240px; flex-shrink: 0;
  background: var(--gray-100); overflow: hidden;
}
.book-card-cover img {
  width: 100%; height: 100%; object-fit: cover;
}
.book-meta {
  display: flex; gap: 16px; margin-bottom: 12px;
  font-size: 0.8rem; color: var(--gray-500);
}
.book-meta span {
  display: inline-flex; align-items: center; gap: 4px;
}
.book-card-accent {
  width: 6px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}
.book-card-body { padding: 24px 28px; flex: 1; }
.book-year {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 10px; border-radius: 12px; margin-bottom: 10px;
}
.book-card-body h3 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.4; }
.book-card-body p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 10px; }
.book-link {
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  transition: color var(--transition);
}
.book-link:hover { color: var(--primary); }
.book-card-link, .book-card-link-simple {
  display: flex; color: inherit; text-decoration: none; width: 100%; height: 100%;
}
.book-card-link:hover, .book-card-link-simple:hover { color: inherit; }

/* --- Event Featured Card --- */
.events-featured-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.event-featured-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.event-featured-img {
  width: 100%; overflow: hidden; background: var(--gray-100);
}
.event-featured-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.event-featured-body {
  padding: 32px 36px; flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.event-date {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  color: var(--white); background: var(--primary);
  padding: 4px 12px; border-radius: 12px; margin-bottom: 12px; width: fit-content;
}
.event-type {
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px !important;
}
.event-featured-body h3 {
  font-family: 'Playfair Display', serif; font-size: 1.4rem;
  color: var(--primary-dark); margin-bottom: 6px; line-height: 1.3;
}
.event-featured-body p {
  font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.6;
}
.event-details {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 0.82rem; color: var(--gray-500); margin-top: 8px;
  padding-top: 12px; border-top: 1px solid var(--gray-200);
}

/* --- Timeline --- */
.timeline {
  position: relative; max-width: 700px; margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: rgba(255,255,255,0.15);
}
.timeline-item {
  position: relative; display: flex; gap: 20px;
  margin-bottom: 28px; align-items: flex-start;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -29px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); border: 2px solid rgba(255,255,255,0.3);
}
.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700; color: var(--accent-light);
  min-width: 52px; flex-shrink: 0;
}
.timeline-content h4 { color: var(--white); margin-bottom: 4px; font-size: 1rem; }
.timeline-content p { font-size: 0.88rem; opacity: 0.7; }

/* --- Gallery --- */
.gallery-grid { display: grid; gap: 14px; }
.gallery-grid-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-item {
  position: relative; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(192,57,43,0.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition); color: var(--white);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-bottom: 32px;
}
.gallery-filter-btn {
  padding: 8px 20px; border-radius: 20px; border: 1px solid var(--gray-300);
  background: var(--white); color: var(--gray-700); font-size: 0.85rem;
  cursor: pointer; transition: all var(--transition); font-weight: 500;
  font-family: 'Inter', sans-serif;
}
.gallery-filter-btn:hover, .gallery-filter-btn.active {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}

/* --- Event / News Cards --- */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition);
  border: 1px solid var(--gray-200);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.event-card-img { height: 200px; overflow: hidden; background: var(--gray-100); }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-card-body { padding: 24px; }
.event-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.event-card-body p { color: var(--text-light); font-size: 0.88rem; }
.event-card-date { font-size: 0.78rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; }

/* --- Press Cards --- */
.press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.press-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition);
  border: 1px solid var(--gray-200);
}
.press-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.press-card-img { height: 180px; overflow: hidden; background: var(--gray-100); }
.press-card-img img { width: 100%; height: 100%; object-fit: cover; }
.press-card-body { padding: 24px; }
.press-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.press-card-body p { color: var(--text-light); font-size: 0.88rem; margin-bottom: 10px; }
.press-source { font-size: 0.78rem; color: var(--gray-500); font-weight: 500; }

/* --- Product / Service Cards (Eserler) --- */
.rooms-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.room-card {
  display: flex; background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition);
  border: 1px solid var(--gray-200);
}
.room-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.room-card-img { position: relative; width: 200px; min-height: 180px; overflow: hidden; background: var(--gray-100); flex-shrink: 0; }
.room-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.room-card:hover .room-card-img img { transform: scale(1.05); }
.room-card-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200)); color: var(--gray-400);
}
.room-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--white);
  padding: 3px 12px; border-radius: 14px; font-size: 0.72rem; font-weight: 600;
}
.room-card-body { padding: 24px; flex: 1; }
.room-card-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.room-card-body p { color: var(--text-light); font-size: 0.88rem; line-height: 1.6; }
.room-card-link {
  display: flex; color: inherit; text-decoration: none;
  width: 100%; height: 100%;
}
.room-card-link:hover { color: inherit; }
.room-card-meta {
  display: flex; gap: 12px; margin-top: 10px;
  font-size: 0.78rem; color: var(--gray-500);
}
.room-card-meta span {
  background: var(--gray-100); padding: 3px 10px; border-radius: 12px;
}

/* --- Eser Detay --- */
.eser-detay {
  display: flex; gap: 48px; align-items: flex-start;
}
.eser-detay-cover {
  width: 300px; flex-shrink: 0;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.eser-detay-cover img {
  width: 100%; height: auto; display: block;
}
.eser-detay-body {
  flex: 1;
}
.eser-detay-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; color: var(--primary-dark);
  margin-bottom: 24px; line-height: 1.3;
}
.eser-detay-meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-bottom: 32px; padding: 24px;
  background: var(--gray-50); border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.eser-meta-item { display: flex; flex-direction: column; gap: 4px; }
.eser-meta-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--gray-500);
}
.eser-meta-value {
  font-size: 0.95rem; font-weight: 500; color: var(--text);
}
.eser-detay-desc {
  margin-bottom: 28px;
}
.eser-detay-desc h3 {
  font-size: 1.1rem; color: var(--primary);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-soft);
}
.eser-detay-desc p {
  font-size: 0.95rem; line-height: 1.8; color: var(--text-light);
}
.eser-detay-actions {
  margin-bottom: 16px;
}
.eser-detay-back {
  margin-top: 12px;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #7b1a14, #a93226, #c0392b);
  text-align: center; color: var(--white);
}
.cta-content h2 { color: var(--white); margin-bottom: 14px; font-size: 2rem; }
.cta-content p { opacity: 0.85; font-size: 1rem; margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { margin-bottom: 20px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-info-item .icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--accent);
}
.contact-info-item .text strong { display: block; font-size: 0.88rem; margin-bottom: 2px; }
.contact-info-item .text span, .contact-info-item .text a { font-size: 0.88rem; color: var(--text-light); }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 500; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 16px; border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 0.92rem; font-family: inherit;
  transition: border-color var(--transition); background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(192,57,43,0.08); }
textarea.form-control { min-height: 130px; resize: vertical; }

/* --- Page Content --- */
.page-header {
  background: linear-gradient(135deg, #7b1a14, #a93226);
  padding: 130px 0 56px; text-align: center; color: var(--white);
}
.page-header h1 { color: var(--white); font-size: 2.2rem; margin-bottom: 8px; }
.page-header p { opacity: 0.75; font-size: 0.95rem; }
.page-content { padding: 56px 0; }
.page-content h2 { margin-bottom: 14px; }
.page-content h3 { margin-bottom: 10px; margin-top: 24px; }
.page-content p { margin-bottom: 14px; color: var(--text-light); }
.page-content ul { margin-left: 24px; margin-bottom: 14px; }
.page-content li { margin-bottom: 8px; color: var(--text-light); }
.page-content hr { border: none; border-top: 1px solid var(--gray-200); margin: 28px 0; }

/* --- Categories page (Eserler) --- */
.categories-section { padding: 56px 0; }
.category-block { margin-bottom: 48px; }
.category-block h2 {
  font-size: 1.5rem; margin-bottom: 24px; padding-bottom: 10px;
  border-bottom: 2px solid var(--accent); display: inline-block;
}

/* --- Publications List --- */
.publications-list { max-width: 800px; margin: 0 auto; }
.publication-item {
  padding: 20px 0; border-bottom: 1px solid var(--gray-200);
}
.publication-item:last-child { border-bottom: none; }
.publication-item h3 { font-size: 1.05rem; margin-bottom: 6px; font-weight: 500; }
.publication-item p { font-size: 0.88rem; color: var(--text-light); }
.publication-meta { font-size: 0.78rem; color: var(--gray-500); margin-top: 4px; }

/* --- Theses Grid --- */
.theses-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.thesis-group h3 {
  font-size: 1.15rem; margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--accent); display: inline-block;
}

/* --- Map --- */
.map-container { border-radius: var(--radius); overflow: hidden; height: 350px; margin-top: 28px; }
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* --- Footer --- */
.footer { background: #7b1a14; color: rgba(255,255,255,0.75); padding: 56px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 14px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer h4 {
  color: var(--white); font-size: 0.95rem; margin-bottom: 14px;
  font-family: 'Inter', sans-serif; font-weight: 600;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color var(--transition); }
.footer ul a:hover { color: var(--white); }
.footer ul li:not(:has(a)) { font-size: 0.88rem; }
.footer-bottom { padding: 20px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-logo { color: var(--white); }
.footer-contact ul li { color: rgba(255,255,255,0.75); }

/* --- Flash Messages --- */
.flash-container { position: fixed; top: 76px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.flash-message {
  padding: 14px 40px 14px 20px; border-radius: var(--radius-sm);
  font-size: 0.88rem; box-shadow: var(--shadow-lg); position: relative;
  animation: flashIn 0.3s ease;
}
.flash-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.flash-danger { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.flash-warning { background: #fff3cd; color: #856404; border-left: 4px solid #ffc107; }
.flash-close {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  background: none; border: none; font-size: 18px; cursor: pointer; opacity: 0.6;
}
@keyframes flashIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* --- Lightbox --- */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 10000;
  display: none; align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-content { text-align: center; max-width: 90vw; max-height: 90vh; }
.lightbox-content img { max-width: 100%; max-height: 85vh; border-radius: 4px; }
.lightbox-caption { color: var(--white); margin-top: 12px; font-size: 0.88rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; color: var(--white);
  font-size: 36px; cursor: pointer; padding: 12px; opacity: 0.8;
  transition: opacity var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* --- Helpers --- */
.text-center { text-align: center; }
.mt-40 { margin-top: 36px; }
.mb-40 { margin-bottom: 36px; }

.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- Hakkinda / Biography Detail --- */
.bio-detail { max-width: 800px; margin: 0 auto; }
.bio-detail h2 { margin-top: 32px; margin-bottom: 14px; font-size: 1.5rem; }
.bio-detail h3 { margin-top: 24px; margin-bottom: 10px; font-size: 1.2rem; }
.bio-detail p { margin-bottom: 12px; color: var(--text-light); line-height: 1.8; }
.bio-detail ul { margin-left: 20px; margin-bottom: 14px; }
.bio-detail li { margin-bottom: 6px; color: var(--text-light); font-size: 0.92rem; }
.bio-detail .bio-photo {
  float: right; margin: 0 0 24px 32px; width: 240px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.bio-detail .bio-photo img { width: 100%; height: auto; }

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .books-grid { grid-template-columns: 1fr; }
  .book-card-featured { grid-column: span 1; }
  .rooms-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .press-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero { min-height: 80vh; }
  .hero-avatar { width: 120px; height: 120px; }
  .section { padding: 64px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-image img { height: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .book-card-featured { grid-column: span 1; flex-direction: column; }
  .book-card-cover { width: 100%; min-height: 200px; }
  .rooms-grid { grid-template-columns: 1fr; }
  .room-card { flex-direction: column; }
  .room-card-link { flex-direction: column; }
  .room-card-img { width: 100%; min-height: 160px; }
  .eser-detay { flex-direction: column; gap: 28px; }
  .eser-detay-cover { width: 100%; max-width: 300px; margin: 0 auto; }
  .eser-detay-meta { grid-template-columns: 1fr; }
  .events-featured-grid { grid-template-columns: 1fr; }
  .event-featured-body { padding: 24px; }
  .events-grid { grid-template-columns: 1fr; }
  .press-grid { grid-template-columns: 1fr; }
  .gallery-grid-4, .gallery-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .stat-item:nth-child(even) { border-left: 1px solid var(--gray-200); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .page-header { padding: 110px 0 40px; }
  .page-header h1 { font-size: 1.7rem; }
  .timeline { padding-left: 32px; }
  .theses-grid { grid-template-columns: 1fr; gap: 28px; }
  .bio-detail .bio-photo { float: none; margin: 0 auto 24px; width: 200px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-avatar { width: 100px; height: 100px; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid-4, .gallery-grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; border-left: none !important; border-bottom: 1px solid var(--gray-200); }
  .stat-item:last-child { border-bottom: none; }
  .about-highlights { flex-direction: column; gap: 12px; }
  .btn { padding: 10px 24px; font-size: 0.88rem; }
  .container { padding: 0 16px; }
  .brand-text { font-size: 1rem; }
}
