/* Home Page Specific Layout & Component Styles */

.home-page {
  padding-bottom: 40px;
  background-color: var(--bg-off, #f2f7fd);
}

@media (max-width: 768px) {
  .home-page {
    padding-top: 0px;
  }
}

/* ==========================================
   1. MANŞET & SIDE NEWS & TICKER SECTION
   ========================================== */
.home-manset-wrapper {
  margin-bottom: 32px;
  margin-top: 30px;
}

.home-manset-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 992px) {
  .home-manset-grid {
    grid-template-columns: 68% 1fr;
  }
}

/* Slider Box Left */
.manset-slider-card {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.slider-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
  border-radius: 0;
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background: #ffffff;
}

.slider-slide a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

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

/* akademiktr.com üzerinden gelen ve kendinden beyaz boşluklu olan görselleri otomatik kırp (zoom) */
.slider-slide img[src*="akademiktr.com/universite/"] {
  transform: scale(1.28);
  transform-origin: center center;
}

/* Centered Big Headline Banner Overlay */
.slider-title-overlay {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  width: 82%;
  max-width: 580px;
  text-align: center;
  pointer-events: none;
}

.slider-title-overlay span {
  display: inline-block;
  background-color: rgba(217, 56, 58, 0.94);
  color: #ffffff;
  font-weight: 700;
  font-size: 27px;
  line-height: 1.3;
  text-transform: uppercase;
  padding: 16px 24px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  word-break: break-word;
}

@media (max-width: 768px) {
  .slider-title-overlay {
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
    text-align: left;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 65%, transparent 100%);
    padding: 30px 14px 12px 14px;
    box-sizing: border-box;
  }

  .slider-title-overlay span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    background: none !important;
    font-size: 13.5px !important;
    line-height: 1.35 !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    text-transform: none !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  }
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: transparent;
  color: #0078d4;
  border: none;
  width: 70px;
  height: 100px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.slider-arrow svg {
  width: 100px;
  height: 100px;
  display: block;
}

.slider-arrow:disabled {
  color: rgba(203, 213, 225, 0.5) !important;
  cursor: not-allowed;
  pointer-events: none;
}

.slider-arrow.prev {
  left: 12px;
}

.slider-arrow.next {
  right: 12px;
}

/* Slider Pagination Numbers Below */
.slider-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  background: #ffffff;
  margin-top: 0;
}

.pag-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #000000;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pag-item:hover {
  background: #e5e7eb;
  color: #000000;
}

.pag-item.active {
  background: #0078d4;
  color: #ffffff;
}

.manset-left-column {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Side Grid Right (2x2) & Sidebar Layout */
.manset-right-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}

.side-news-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-news-card {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 76px;
}

.side-news-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.side-news-img {
  width: 100px;
  height: 100%;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
}

.side-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.side-news-card:hover .side-news-img img {
  transform: scale(1.04);
}

.side-news-title {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  flex: 1;
}



/* Ticker Bar (Son İlanlar) */
.home-ticker-bar {
  margin-top: 16px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.ticker-label {
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ticker-wrapper {
  position: relative;
  flex: 1;
  height: 20px;
  overflow: hidden;
}

.ticker-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #475569;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.ticker-item.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ticker-item:hover {
  color: #4545a1;
}

/* ==========================================
   SIMPLE PORTAL CARDS (ALES, YDS, AI, BURS, TEZ)
   ========================================== */
.section-title-line-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 24px;
  width: 100%;
}

.section-title-text {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  white-space: nowrap;
}

.section-title-line {
  flex: 1;
  height: 4px;
  background-color: #3b4252;
  border-radius: 2px;
}

.portal-categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .portal-categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }
}

.simple-guide-card {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid #f1f5f9;
  transition: box-shadow 0.2s ease;
}

.simple-guide-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.simple-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f8fafc;
}

.simple-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.simple-guide-card:hover .simple-card-img img {
  opacity: 0.95;
}

.simple-card-content {
  padding: 16px;
  background: #ffffff;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.simple-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.563em;
  margin: 0;
  transition: color 0.15s ease;
}

.simple-guide-card:hover .simple-card-title {
  color: var(--primary);
}

@media (max-width: 480px) {
  .simple-card-content {
    padding: 12px;
  }

  .simple-card-title {
    font-size: 13.5px;
  }
}