:root {
  --navy-primary: #082034;
  --navy-secondary: #0d2940;
  --accent-blue: #7ec8e3;
  --accent-blue-mid: #1f6f8b;
  --accent-blue-light: #a9d6e5;
  --accent-red: #8b1e1e;
  --bg-cream: #fefcf9;
  --text-heading: #12202e;
  --text-body: #2a2118;
  --text-muted: #5c5347;
  --text-muted-light: #8a7f6f;
  --border-subtle: #e6ddc9;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background: var(--bg-cream);
  color: var(--text-body);
  font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-family: var(--font-sans);
}

a {
  color: var(--accent-blue-mid);
}

.text-muted {
  color: var(--text-muted) !important;
}

/* ---------- Masthead ---------- */

.masthead-topbar {
  background: var(--navy-primary);
  color: var(--accent-blue-light);
  font-size: 12px;
  padding: 5px 0;
}

.masthead-logo-band {
  background: var(--navy-primary);
  padding: 18px 0;
  text-align: left;
}

.masthead-logo-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.masthead-logo-link {
  flex-shrink: 0;
  display: inline-block;
}

.masthead-logo {
  height: 72px;
  width: auto;
}

.masthead-wordmark {
  display: flex;
  flex-direction: column;
}

.masthead-logo-text {
  display: block;
  font-size: 90px;
  font-weight: 800;
  letter-spacing: 12px;
  color: #ffffff;
  line-height: 1;
}

.masthead-logo-text span {
  color: var(--accent-blue);
}

.masthead-tagline {
  margin-top: 4px;
  font-size: 11.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-blue-light);
}

/* ---------- Nav bar ---------- */

.site-navbar {
  background: var(--navy-primary);
  border-bottom: 3px solid var(--accent-red);
}

.site-navbar .nav-link {
  color: var(--accent-blue-light);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
}

.site-navbar .nav-link:hover {
  color: #ffffff;
}

.site-navbar .nav-link.active {
  background: var(--navy-primary);
  color: #ffffff;
}

.site-navbar .btn-search {
  color: var(--accent-blue-light);
  border: none;
  background: none;
}

.site-navbar .navbar-toggler {
  border-color: var(--accent-blue-light);
}

.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(169, 214, 229, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-navbar.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

#mainContainer.has-fixed-nav {
  padding-top: var(--fixed-nav-height, 0px);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: 13px;
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

/* ---------- Article cards ---------- */

.news-card {
  border: 1px solid var(--border-subtle);
  background: #ffffff;
}

.news-card img,
.news-card-img {
  object-fit: cover;
  height: 150px;
  width: 100%;
}

.news-card-img-sm {
  object-fit: cover;
  height: 90px;
  width: 100%;
}

.category-badge {
  display: inline-block;
  background: var(--accent-blue-mid);
  color: #ffffff;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.news-card-title a,
.news-list-item-title a {
  color: var(--text-heading);
  text-decoration: none;
}

.news-card-title a:hover,
.news-list-item-title a:hover {
  color: var(--accent-blue-mid);
}

.excerpt {
  color: var(--text-muted);
}

.news-meta {
  color: var(--text-muted-light);
  font-size: 12.5px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--navy-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
}

.section-heading h2 {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.4rem;
}

.section-heading a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Manşet carousel ---------- */

.hero-slide {
  position: relative;
  overflow: hidden;
  background: var(--navy-primary);
}

.hero-slide img {
  height: 500px;
  object-fit: cover;
  width: 100%;
  display: block;
}

.hero-slide-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 25%;
  background: rgba(4, 14, 23, 0.72);
  pointer-events: none;
}

.hero-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem;
  height: 25%;
  display: flex;
  align-items: center;      /* yeni satır — dikey ortalama */

}

.hero-slide-caption .category-badge {
  background: var(--accent-red);
  color: #ffffff;
}

.hero-slide-caption h1 {
  margin: 0.4rem 0 0.4rem;
  color: #fdfaf3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  align-items: center;
  transform: translateY(-5px);
}

.hero-slide-caption h1 a {
  color: inherit;
  text-decoration: none;
  align-items: center;
}

.hero-slide-author {
  color: #dcecf2;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---------- Manşet side cards ---------- */

.hero-side-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 500px;
}

.hero-side-card {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--navy-primary);
  text-decoration: none;
}

.hero-side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-side-card-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background: rgba(4, 14, 23, 0.72);
  pointer-events: none;
}

.hero-side-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  height: 28%;              /* .hero-side-card-gradient'teki height ile aynı sayı olsun */
  display: flex;
  align-items: center;      /* yeni satır — dikey ortalama */
}

.hero-side-card-title {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  color: #f4c95d;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  transform: translateY(-2px);
}

.hero-carousel-frame {
  position: relative;
}

.hero-carousel .carousel-indicators {
  position: static;
  margin: 0.75rem 0 0;
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  flex: 1 1 auto;
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--border-subtle);
  border-radius: 1px;
  background-color: rgba(8, 32, 52, 0.05);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-indent: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.hero-carousel .carousel-indicators .active {
  background-color: var(--accent-blue-mid);
  border-color: var(--accent-blue-mid);
  color: #ffffff;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 8%;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  background-color: rgba(8, 32, 52, 0.6);
  border-radius: 50%;
  padding: 1.25rem;
  background-size: 50%;
}

/* ---------- Author strip ---------- */

.author-strip {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 0.75rem;
}

.author-strip-item {
  flex: 0 0 auto;
  width: 140px;
  text-align: center;
  text-decoration: none;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: var(--accent-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 0.5rem;
  object-fit: cover;
}

.author-strip-name {
  color: var(--text-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Sidebar boxes ---------- */

.most-read-box {
  background: var(--navy-primary);
  color: #ffffff;
  padding: 1.25rem;
}

.most-read-box h2 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.most-read-box ol {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  counter-reset: most-read;
}

.most-read-box li {
  counter-increment: most-read;
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.most-read-box li:first-child {
  border-top: none;
}

.most-read-box li::before {
  content: counter(most-read);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
  flex: 0 0 auto;
}

.most-read-box a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.featured-box {
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 1.25rem;
}

.featured-box h2 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.featured-box ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.featured-box li {
  padding: 0.4rem 0;
}

.featured-box a {
  color: var(--text-heading);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.featured-box a:hover,
.most-read-box a:hover {
  color: var(--accent-blue-mid);
}

.home-secondary-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
}

.home-secondary-col > * {
  flex: 1;
}

/* ---------- 4'lü haber listesi (2x2 blok) ---------- */

.home-4-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.home-4-grid .news-card {
  display: flex;
  flex-direction: column;
  height: 340px;
}

.home-4-grid .news-card-img {
  flex: 3 1 0;
  min-height: 0;
}

.home-4-grid .news-card .p-3 {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.home-4-grid .excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Category block (1 big + 4 small) ---------- */

.category-block-list .news-list-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border-subtle);
}

.category-block-list .news-list-item:first-child {
  border-top: none;
}

.category-block-list .news-list-item img {
  flex: 0 0 auto;
  width: 80px;
  height: 60px;
  object-fit: cover;
}

.category-block-list .news-list-item-excerpt {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Article detail ---------- */

.article-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-body);
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
}

.article-content blockquote {
  border-left: 4px solid var(--accent-blue);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.1rem;
}

.tag-pill {
  display: inline-block;
  background: var(--accent-blue-light);
  color: var(--navy-primary);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  margin: 0 0.4rem 0.4rem 0;
}

.author-box {
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 1.25rem;
}

.author-box-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--navy-primary);
  color: var(--accent-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.comment-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
}

.comment-item:first-child {
  border-top: none;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-blue-mid);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-primary);
  color: var(--accent-blue-light);
  padding: 3rem 0 0;
  margin-top: 3rem;
}

.site-footer h5 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer a {
  color: var(--accent-blue-light);
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding: 1rem 0;
  font-size: 12.5px;
  color: var(--text-muted-light);
}

/* ---------- Mobile responsive ---------- */

@media (max-width: 767.98px) {

  .hero-carousel .carousel-indicators {
  display: none;
}
  .masthead-logo {
    height: 40px;
  }

  .masthead-logo-text {
    font-size: 36px;
  }

  .masthead-tagline {
    font-size: 10px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2, .section-heading h2 {
    font-size: 1.2rem;
  }

  .hero-slide-caption {
    padding: 1.1rem;
  }

  .hero-slide-caption h1 {
    font-size: 1.3rem;
  }

  .hero-slide img {
    height: 240px;
  }

  .hero-side-cards {
    height: auto;
  }

  .hero-side-card {
    height: 160px;
  }

  .home-secondary-col {
    height: auto;
  }

  .home-4-grid {
    grid-template-columns: 1fr;
  }

  .home-4-grid .news-card {
    height: 300px;
  }

  body {
    font-size: 15px;
  }
}
