/* ISCASS CMS - Site CSS — T3 Vakfı inspired design */

/* ---- Değişkenler ----------------------------------------- */
:root {
  --primary:       #1B2B4B;
  --accent:        #C8161D;
  --accent-dark:   #a31118;
  --text-body:     #1a1a1a;
  --text-muted:    #6b7280;
  --bg-light:      #f4f6f9;
  --border:        #e5e7eb;
  --white:         #ffffff;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:     0 6px 24px rgba(0,0,0,0.10);
  --radius:        8px;
  --radius-lg:     12px;
}

/* ---- Genel ------------------------------------------------ */
body {
  font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-dark); }

/* ---- Navbar ---------------------------------------------- */
.navbar {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.navbar-brand img {
  transition: opacity 0.2s;
}
.navbar-brand:hover img { opacity: 0.9; }

.navbar-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--primary) !important;
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 2px solid var(--border);
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.navbar-lang-switch img {
  display: block;
  border-radius: 2px;
}
.navbar-lang-switch:hover {
  border-color: var(--primary);
  background: rgba(27,43,75,0.05);
  color: var(--primary) !important;
}

.navbar .nav-link {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--accent) !important;
  background: rgba(200,22,29,0.06);
}
/* Dropdown — koyu lacivert arka plan, beyaz metin */
.navbar .dropdown-menu {
  background-color: var(--primary);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  min-width: 240px;
}
@media (min-width: 992px) {
  .navbar .dropdown-menu .dropend {
    position: relative;
  }
  .navbar .dropdown-menu .dropend > .dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 0.15rem;
    display: none;
  }
  .navbar .dropdown-menu .dropend:hover > .dropdown-menu,
  .navbar .dropdown-menu .dropend:focus-within > .dropdown-menu {
    display: block;
  }
}
.navbar .dropdown-item {
  font-family: 'Quicksand', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.65rem 1.25rem;
  border-radius: 0;
  transition: background 0.15s, padding-left 0.15s;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.navbar .dropdown-item:last-child { border-bottom: none; }
.navbar .dropdown-item:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  padding-left: 1.6rem;
}

/* Mobilde 2. seviye menüyü yana taşımak yerine akışta aç */
@media (max-width: 991.98px) {
  .navbar .dropdown-menu .dropend > .dropdown-menu {
    position: static;
    transform: none;
    margin: 0;
    border: 0;
    border-left: 2px solid rgba(255,255,255,0.2);
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }

  .navbar .dropdown-menu .dropend > .dropdown-menu .dropdown-item {
    padding-left: 2rem;
  }
}

/* ---- Butonlar -------------------------------------------- */
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  border-radius: 6px;
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ---- Hero Bölümü (statik fallback) ----------------------- */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, #2d4a7a 60%, #1B2B4B 100%);
  min-height: 380px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.hero-section h1 {
  color: var(--white);
  font-size: 2.4rem;
  font-weight: 800;
}
.hero-section p { color: rgba(255,255,255,0.85); }

/* ---- Hero Carousel --------------------------------------- */
.hero-carousel-section { position: relative; }
.hero-carousel-section .carousel-item {
  min-height: 380px;
  position: relative;
}
.hero-carousel-section .hero-slide-inner {
  min-height: 380px;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-carousel-section .hero-slide-inner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.hero-carousel-section .hero-title {
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.hero-carousel-section .hero-subtitle {
  font-size: 1.1rem !important;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-carousel-section .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.6);
  border: none;
  margin: 0 4px;
}
.hero-carousel-section .carousel-indicators .active {
  background-color: var(--accent);
  transform: scale(1.2);
}
.hero-carousel-section .carousel-control-prev,
.hero-carousel-section .carousel-control-next {
  width: 5%;
  opacity: 0.7;
}
.hero-carousel-section .carousel-control-prev:hover,
.hero-carousel-section .carousel-control-next:hover { opacity: 1; }

/* Yan resim */
.hero-yan-resim {
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---- Sayfa Başlık ---------------------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #2d4a7a 100%);
  padding: 2.5rem 0;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.page-header h1,
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a,
.page-header .breadcrumb-item.active {
  color: inherit;
}

/* ---- Bölüm başlığı --------------------------------------- */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---- Kartlar --------------------------------------------- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
}
.card-header {
  background: var(--primary);
  color: inherit;
  font-weight: 700;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  border-bottom: none;
}

/* ---- CMS İçerik ------------------------------------------ */
.cms-content {
  line-height: 1.85;
  font-size: 1rem;
}
.cms-content h1, .cms-content h2, .cms-content h3, .cms-content h4 {
  color: var(--primary);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.cms-content h2 {
  font-size: 1.45rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.4rem;
}
.cms-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1rem 0;
}
.cms-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.cms-content table th,
.cms-content table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.85rem;
}
.cms-content table th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--primary);
}
.cms-content blockquote {
  border-left: 4px solid var(--accent);
  margin: 1.25rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--bg-light);
  color: #444;
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.cms-content ul, .cms-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.cms-content p { margin-bottom: 1rem; }
.cms-content a { color: var(--accent); }
.cms-content a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---- Footer ---------------------------------------------- */
footer {
  background-color: var(--primary) !important;
}
footer h6 { color: var(--white); }
footer .border-secondary { border-color: rgba(255,255,255,0.15) !important; }
footer a { color: rgba(255,255,255,0.75) !important; }
footer a:hover { color: var(--white) !important; opacity: 1; }

/* ---- Sayfalama ------------------------------------------- */
.pagination .page-link {
  color: var(--primary);
  border-color: var(--border);
  border-radius: 6px !important;
  margin: 0 2px;
  font-weight: 500;
}
.pagination .page-item.active .page-link {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.pagination .page-link:hover {
  background-color: var(--bg-light);
  color: var(--accent);
}

/* ---- Sidebar --------------------------------------------- */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 768px) {
  .hero-section {
    min-height: 260px;
    padding: 2rem 0;
  }
  .hero-section h1 { font-size: 1.7rem; }
  .section-title   { font-size: 1.4rem; }
}

/* ---- Yükleniyor ------------------------------------------ */
.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}
.spinner-border { color: var(--accent) !important; }
