/* ==========================================================================
   HİZMET KATEGORİ & DETAY SAYFALARI STİLLERİ
   ========================================================================== */

/* --------------------------------------------------------------------------
   NAVBAR LIGHT (Beyaz arka plan)
   -------------------------------------------------------------------------- */
.navbar-light {
  background: #fff !important;
  box-shadow: none;
}

.navbar-light .nav-link {
  color: #071D49 !important;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.navbar-light .nav-link:hover,
.navbar-light .nav-link.active {
  color: #005bff !important;
}

.navbar-light .dropdown-menu {
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-light .dropdown-item {
  color: #071D49;
  font-size: 0.85rem;
}

.navbar-light .dropdown-item:hover {
  background: #f5f6f8;
  color: #005bff;
}

.lang-btn-dark {
  background: transparent;
  border: none;
  color: #071D49;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.lang-btn-dark:hover {
  color: #005bff;
}

/* --------------------------------------------------------------------------
   MEGA MENU
   -------------------------------------------------------------------------- */
.mega-dropdown {
  position: static;
}

.mega-dropdown > .nav-link {
  position: relative;
}

/* Görünmez köprü - hover alanını genişletir */
.mega-dropdown > .nav-link::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 20px;
}

.mega-dropdown .mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 800px;
  max-width: 1100px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  transition-delay: 0.15s; /* Kapanmada gecikme */
  pointer-events: none;
}

/* Responsive: Mobil görünümde mega menu tam genişlik */
@media (max-width: 991.98px) {
  .mega-dropdown .mega-menu {
    left: 0;
    right: 0;
    transform: none;
    min-width: auto;
    max-width: 100%;
  }
}

.mega-dropdown:hover .mega-menu,
.mega-dropdown:focus-within .mega-menu,
.mega-dropdown .mega-menu.show {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s; /* Açılmada gecikme yok */
  pointer-events: auto;
}

.mega-menu-inner {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.mega-menu-info {
  width: 280px;
  padding-right: 2rem;
  border-right: 1px solid #e5e9f0;
}

.mega-menu-icon {
  width: 64px;
  height: 64px;
  background: #f0f4ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.mega-menu-icon svg {
  width: 32px;
  height: 32px;
  color: #071D49;
}

.mega-menu-info p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.mega-menu-info .view-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: #071D49;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mega-menu-info .view-all:hover {
  color: #005bff;
}

.mega-menu-links {
  flex: 1;
  padding-left: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 3rem;
}

.mega-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  color: #071D49;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}

.mega-menu-link:hover {
  color: #005bff;
  border-bottom-color: #005bff;
}

.mega-menu-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

.mega-menu-link:hover svg {
  opacity: 1;
}

/* Navbar altındaki boşluğu kaldır */
main {
    padding-top: 0 !important;
}

/* --------------------------------------------------------------------------
   BREADCRUMB
   -------------------------------------------------------------------------- */
.breadcrumb-section {
    background-color: #fff;
    padding-top: 20px;
    padding-bottom: 10px;
}

.breadcrumb-nav {
    color: #888;
    font-size: 12px;
    text-align: center;
}

.breadcrumb-nav a {
    color: #888;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    color: #0d6efd;
}

/* --------------------------------------------------------------------------
   HERO BANNER (Hizmet Kategori Sayfası)
   -------------------------------------------------------------------------- */
.hizmet-kategori-hero {
    background-color: #fff;
    padding: 0 0 40px;
}

.hizmet-kategori-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hizmet-hero-content {
    margin-bottom: 30px;
}

.hizmet-hero-content .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.hizmet-hero-image {
    max-width: 996px;
    width: 100%;
    margin: 0 auto;
}

.hizmet-hero-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   CATEGORY GRID (Kartlar)
   -------------------------------------------------------------------------- */
.category-grid {
    padding: 40px 0 80px;
    background-color: #fff;
}

.category-card {
    height: 280px;
    border-radius: 0;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

/* Can Sigortaları için özel stil */
.category-grid[data-category="can"] .category-card,
.category-grid[data-category="can-sigortalari"] .category-card {
    height: 260px;
}

.category-grid[data-category="can"] .category-card::before,
.category-grid[data-category="can-sigortalari"] .category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #071D493D;
    z-index: 1;
    pointer-events: none;
}

.category-grid[data-category="can"] .category-card-overlay,
.category-grid[data-category="can-sigortalari"] .category-card-overlay {
    z-index: 2;
}

/* Bireysel Sigortalar için özel stil */
.category-grid[data-category="bireysel"] .category-card::before,
.category-grid[data-category="bireysel-sigortalar"] .category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #071D4999;
    z-index: 1;
    pointer-events: none;
}

.category-grid[data-category="bireysel"] .category-card-overlay,
.category-grid[data-category="bireysel-sigortalar"] .category-card-overlay {
    z-index: 2;
}

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: flex-end;
    height: 50%;
}

.category-card-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* --------------------------------------------------------------------------
   HİZMET DETAY SAYFASI (service-*)
   -------------------------------------------------------------------------- */
.sector-detail-section {
    padding: 3rem 0 5rem;
    background: #fff;
    margin-top: 30px;
}

.sector-detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sector-detail-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #071D49;
    margin-bottom: 1.5rem;
}

.sector-hexagon-image {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.sector-hexagon-image img {
    width: 100%;
    height: auto;
    display: block;
}

.sector-detail-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.sector-detail-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #071D49;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.sector-detail-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.sector-detail-content li {
    margin-bottom: 0.5rem;
}

.sector-cta {
    max-width: 900px;
    margin: 4rem auto 0;
    text-align: center;
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 12px;
}

.sector-cta-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #071D49;
    margin-bottom: 0.5rem;
}

.sector-cta-subtitle {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-sector-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #071D49;
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-sector-cta:hover {
    background: #005bff;
    color: #fff;
}

/* --------------------------------------------------------------------------
   ACCORDION LINKS
   -------------------------------------------------------------------------- */
#accordionContainer {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #212529;
    transition: all 0.2s ease;
}

.accordion-link:hover {
    background-color: #e9ecef;
    color: #071D49;
    border-color: #ced4da;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.accordion-link svg {
    transition: transform 0.2s ease;
    color: #6c757d;
}

.accordion-link:hover svg {
    transform: translateX(5px);
    color: #071D49;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .mega-menu-inner {
    flex-direction: column;
    padding: 1.5rem;
  }

  .mega-menu-info {
    width: 100%;
    padding-right: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-right: none;
    border-bottom: 1px solid #e5e9f0;
  }

  .mega-menu-links {
    padding-left: 0;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
    .hizmet-hero-content .page-title {
        font-size: 2rem;
    }
    .hizmet-hero-image img {
        max-height: 250px;
    }
    .category-card {
        height: 200px;
    }
    .category-grid[data-category="can"] .category-card,
    .category-grid[data-category="can-sigortalari"] .category-card {
        height: 220px;
    }
}