.portal-guncel-section {
  padding: 80px 0 80px;
  background: #fff;
  font-family: "Poppins", sans-serif;
}

.modern-grid-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Desktop spacing adjustment to allow button to float up */
@media (min-width: 992px) {
  .portal-title-row {
    margin-bottom: 75px !important;
  }
}

/* Left Column: Title & Banner */
.left-column {
  flex: 1.6;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.section-title-box h2 {
  font-weight: 800;
  font-size: 28px;
  color: #1e293b;
  margin-bottom: 5px;
}

.section-title-box p {
  color: #718096;
  font-size: 1rem;
  margin: 0;
}

.featured-banner {
  width: 100%;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  background: #f0f4f8;
  position: relative;
}

.featured-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.featured-banner:hover img {
  transform: scale(1.02);
}

/* Right Column: Dynamic Menu & Grid */
.right-column {
  flex: 2;
  display: flex;
  gap: 20px;
}

.menu-and-grid-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0; /* Gap is managed by margins for better alignment control */
}

/* Horizontal Tabs */
.top-action-tabs {
  display: flex;
  gap: 15px;
  position: relative;
  z-index: 5;
}

/* Float button up on desktop to align grid with banner */
@media (min-width: 992px) {
  .top-action-tabs {
    margin-top: -65px;
    margin-bottom: 20px;
  }
}

/* Reset on mobile */
@media (max-width: 991px) {
  .top-action-tabs {
    margin-top: 15px;
    margin-bottom: 10px;
    justify-content: flex-start;
  }
}

.action-tab-btn {
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  background: #f1f5f9;
  color: #475569;
  text-transform: uppercase;
  border: none;
}

.action-tab-btn i {
  font-size: 1.1rem;
}

.action-tab-btn.active {
  background: #b62829;
  color: #fff;
  box-shadow: 0 10px 20px rgba(226, 29, 33, 0.2);
  position: relative;
}

.action-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #b62829;
}

/* 3x3 Grid */
.service-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.service-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 18px;
    padding: 22px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    min-height: 130px;
}

.service-card:hover {
  border-color: #0089d8;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

.service-card .icon-box {
  font-size: 1.8rem;
  color: #1a365d;
}

.service-card span {
  font-size: 0.75rem;
  font-weight: 800;
  color: #2d3748;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Far Right: PORTAL TV Section */
.tv-banner-column {
  width: 240px;
  height: 100%;
}

.tv-vertical-card {
  height: 480px;
  background: #003380;
  border-radius: 25px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: #fff;
  position: relative;
  text-decoration: none !important;
}

.tv-vertical-card::before {
  content: "PORTAL TV";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  font-weight: 900;
  opacity: 0.1;
  width: 100%;
  text-align: center;
}

.tv-vertical-card img {
  width: 120px;
  margin-bottom: auto;
}

.tv-vertical-card h3 {
  font-weight: 900;
  font-size: 2rem;
  margin: 0;
}

.tv-vertical-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 5px 0 0;
}

@media (max-width: 1200px) {
  .modern-grid-layout {
    flex-direction: column;
  }
  .right-column {
    width: 100%;
  }
  .tv-banner-column {
    width: 100%;
    height: 200px;
  }
  .tv-vertical-card {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .portal-guncel-section {
    padding: 40px 0 40px;
    background: #fff;
    margin-bottom: 1rem;
    font-family: "Poppins", sans-serif;
  }
  .service-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px 0;
    margin: 0;
    overflow: visible;
  }
  .service-card {
    min-height: 100px;
    padding: 15px 5px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    border-radius: 15px;
  }
  .service-card:nth-child(n + 7) {
    display: none;
  }
  .service-card .icon-box {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  .service-card span {
    font-size: 10px;
    line-height: 1.1;
  }
  .section-title-box h2 {
    font-size: 20px !important;
    line-height: 1.2;
  }
  .section-title-box p {
    font-size: 0.85rem;
  }
  .top-action-tabs {
    margin-top: 15px;
  }
  .action-tab-btn {
    padding: 8px 15px;
    font-size: 0.75rem;
  }
}
