.haber-baslik {
  font-size: 28px !important;
}
@font-face {
  font-family: "GlossAndBloom";
  src: url("/assets/css/fonts/Gloss_And_Bloom.ttf");
}

:root {
  --news-primary: #2e4190;
  --news-red: #6cc6d8;
  --news-accent: #2e4190;
  --sidebar-bg: #ffffff;
  --card-radius: 12px; /* Reduced for more rectangular look */
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-modern-section {
  padding: 60px 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .news-modern-header .btn-all-modern {
    display: none !important;
  }
}

.news-modern-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-script-title {
  font-family: "GlossAndBloom", sans-serif;
  font-size: 42px;
  color: var(--news-primary);
  line-height: 1;
  margin: 0;
}

.title-accent {
  width: 50px;
  height: 5px;
  background: var(--news-accent);
  margin-top: 8px;
  border-radius: 3px;
}

.btn-all-modern {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 6px 6px 6px 18px;
  border-radius: 100px;
  color: #1e293b;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-all-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  color: var(--news-primary);
}

.btn-all-modern .icon-circle {
  width: 32px;
  height: 32px;
  background: var(--news-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

/* Grid Layout - 3 Column */
.news-modern-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1.1fr;
  gap: 20px;
  align-items: stretch;
}

.news-modern-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.main-news-card {
  display: block;
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  flex: 1;
  height: 450px; /* Fixed height for consistent size */
  text-decoration: none !important;
  background: #000;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.main-news-media {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.main-news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.main-news-card:hover .main-news-media img {
  transform: scale(1.08);
}

.main-news-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 80%
  );
}

.main-news-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}

.badge-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.main-news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  z-index: 2;
  color: #fff;
}

.main-news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.main-news-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;

  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.main-news-excerpt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Slider Controls */
.slider-bottom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.slider-arrows {
  display: flex;
  gap: 10px;
}

.arrow-btn {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.arrow-btn:hover {
  background: var(--news-primary);
  color: #fff;
}

.slider-pagination-custom {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pagination-item {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-item.active {
  background: var(--news-primary);
  color: #fff;
}

/* Side Columns */
.premium-side-column {
  display: flex;
  flex-direction: column;
}

.premium-side-card {
  background: #fff;
  border-radius: var(--card-radius);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.side-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--news-red);
}

.header-left h4 {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.side-view-all {
  font-size: 12px;
  font-weight: 700;
  color: var(--ann-red);
  text-decoration: none;
  background: #34468e26;
  padding: 5px 10px;
  border-radius: 8px;
  transition: var(--transition);
}

.side-view-all:hover {
  background: var(--news-accent);
  color: #fff;
}

.side-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.side-news-item {
  display: flex;
  gap: 12px;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 5px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.side-news-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--news-accent);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1;
  border-radius: 12px;
}

.side-news-item:hover::before {
  width: 100%;
}

.side-news-item:hover .side-news-title,
.side-news-item:hover .side-news-date {
  color: #fff !important;
  transition: color 0.2s ease;
}

.side-news-item:hover .side-news-date i {
  color: #fff !important;
}

.side-news-thumb {
  width: 100px; /* Made slightly wider for better rectangular ratio */
  height: 65px;
  border-radius: 8px; /* Reduced for more rectangular look */
  overflow: hidden;
  flex-shrink: 0;
}

.side-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-news-info {
  flex: 1;
}

.side-news-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-news-date {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Announcement Items */
.side-ann-item {
  display: flex;
  gap: 12px;
  text-decoration: none !important;
  align-items: center;
  padding: 10px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.side-ann-item:hover {
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: var(--news-primary);
}

.ann-icon-box {
  width: 36px;
  height: 36px;
  background: #fff;
  color: var(--news-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.side-ann-info {
  flex: 1;
}

.side-ann-title {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin: 0 0 3px;
  line-height: 1.3;
}

.side-ann-date {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1200px) {
  .news-modern-grid {
    grid-template-columns: 1fr 1fr;
  }
  .news-modern-main {
    grid-column: span 2;
  }
}

@media (max-width: 992px) {
  .premium-side-column:not(:has(.ann-card-v2)) {
    display: none !important;
  }
  .news-modern-grid {
    grid-template-columns: 1fr;
  }
  .news-modern-main {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .news-modern-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .news-modern-main {
    grid-column: span 1;
  }
  .main-news-card {
    height: 350px; /* Fixed height instead of min-height */
    border-radius: 12px; /* Matching desktop for consistency */
  }
  .main-news-content {
    padding: 25px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.95) 0%,
      transparent 100%
    );
  }
  .main-news-title {
    font-size: 20px;
    letter-spacing: -0.5px;
  }
  .section-script-title {
    font-size: 32px;
  }
  .news-modern-header {
    margin-bottom: 10px;
    flex-direction: row;
    margin-top: 25px;
    align-items: center;
  }
  .haber-baslik {
    font-size: 22px !important;
    font-weight: 900;
  }
  .btn-all-modern {
    padding: 6px 6px 6px 16px;
    font-size: 13px;
  }

  .premium-side-column {
    margin-top: 10px;
  }
  .premium-side-card {
    border: none;
    background: none;
    padding: 10px;
    border-radius: 25px;
    box-shadow: none;
  }
  .side-news-item {
    background: #fff;
    padding: 12px;
    margin-bottom: 5px;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  }
  .side-news-thumb {
    width: 100px;
    height: 70px;
    border-radius: 8px; /* Matching desktop for consistency */
  }
  .side-news-title {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .side-ann-item {
    background: #34468e14;
    padding: 15px;
    border-radius: 18px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 10px;
  }
  .ann-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(28, 107, 181, 0.08);
    box-shadow: none;
  }

  .side-scroll-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .side-scroll-list::-webkit-scrollbar {
    display: none;
  }

  .slider-arrows .btn-all-modern {
    background: #fff;
    padding: 0 20px;
    height: 44px;
    border-radius: 22px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--news-accent);
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  }
}

@media (max-width: 480px) {
  .news-modern-section {
    padding: 50px 0;
  }
  .main-news-card {
    height: 300px; /* Fixed height for consistency */
  }
  .main-news-title {
    font-size: 18px;
  }
  .main-news-excerpt {
    display: none;
  }
  .slider-bottom-controls {
    flex-direction: column-reverse;
    gap: 15px;
    align-items: center;
  }
  .slider-pagination-custom {
    width: 100%;
    overflow-x: auto;
    justify-content: start;
    padding: 8px;
  }
}

/* Archive Page Styles */
.archive-news-container {
  padding: 20px 0 60px;
}

.archive-main-card {
  display: flex;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  text-decoration: none !important;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.archive-main-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.main-card-img {
  flex: 1.2;
  position: relative;
  overflow: hidden;
  height: 400px;
}

.main-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.archive-main-card:hover .main-card-img img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 25px;
  left: 25px;
  background: var(--news-red);
  color: #fff;
  padding: 6px 15px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  z-index: 2;
}

.main-card-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-date {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.card-title {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 15px;
  line-height: 1.3;
}

.card-excerpt {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 25px;
}

.read-more {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--news-primary);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
}

/* Regular Archive Cards */
.archive-news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  text-decoration: none !important;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.archive-news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(28, 107, 181, 0.1);
}

.card-img {
  height: 220px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.archive-news-card:hover .card-img img {
  transform: scale(1.08);
}

.card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.archive-news-card .card-title {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-news-card .card-text {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer-action {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}

.archive-news-card:hover .card-footer-action {
  color: var(--news-primary);
}

.pagination-modern-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

@media (max-width: 992px) {
  .archive-main-card {
    flex-direction: column;
  }
  .main-card-img {
    min-height: 250px;
  }
  .main-card-content {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .card-title {
    font-size: 20px;
  }
}
