
/* ===== HEADER REDESIGN v2 ===== */
/* sacdanadam.com - Joomla 5 Cassiopeia Header Override */
/* Last updated: 2026-03-19 */

/* -----------------------------------------------
   1. HEADER CONTAINER & STICKY
   ----------------------------------------------- */
header.header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: linear-gradient(135deg, #1f1f1f, #2d2d2d, #333333);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  min-height: 72px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent 0%, #f47920 30%, #f47920 70%, transparent 100%) 1;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  flex-wrap: nowrap;
  gap: 0;
}

/* -----------------------------------------------
   2. GRID-CHILD OVERRIDES (Cassiopeia)
   ----------------------------------------------- */
header.header > .grid-child {
  margin: 0;
  padding: 0;
}

/* Logo column */
header.header > .grid-child:first-child {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

/* Nav column */
header.header > .grid-child.container-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Search column */
header.header > .grid-child.container-search {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* Language column */
header.header > .grid-child.mod-languages {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
}

/* -----------------------------------------------
   3. LOGO
   ----------------------------------------------- */
header.header .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
}

header.header .navbar-brand img {
  height: 84px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

header.header .navbar-brand:hover img {
  opacity: 0.85;
}

/* -----------------------------------------------
   4. NAVBAR & TOP-LEVEL MENU
   ----------------------------------------------- */
header.header .navbar {
  padding: 0;
  background: none;
  width: 100%;
}

header.header .mod-menu.mod-list.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

/* Top-level menu item links */
header.header .mod-menu.nav > li > a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
  white-space: nowrap;
  position: relative;
}

header.header .mod-menu.nav > li > a:hover,
header.header .mod-menu.nav > li > a:focus {
  background: rgba(244, 121, 32, 0.12);
  color: #f47920;
  transform: translateY(-1px);
}

/* Active item */
header.header .mod-menu.nav > li.current > a,
header.header .mod-menu.nav > li.active > a,
header.header .mod-menu.nav > li.alias-parent-active > a {
  color: #f47920;
  background: rgba(244, 121, 32, 0.1);
}

/* Active indicator dot */
header.header .mod-menu.nav > li.current > a::after,
header.header .mod-menu.nav > li.active > a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: #f47920;
  border-radius: 50%;
}

/* Menu item icons (injected by JS) */
header.header .mod-menu.nav > li > a > i.fa-solid,
header.header .mod-menu.nav > li > a > i.fa-brands {
  font-size: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  width: 1.2em;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

header.header .mod-menu.nav > li > a:hover > i.fa-solid,
header.header .mod-menu.nav > li > a:hover > i.fa-brands {
  opacity: 1;
}

/* Parent arrow indicator */
header.header .mod-menu.nav > li.parent > a::before {
  display: none; /* Remove default Cassiopeia arrow */
}

/* mm-toggler button (MetisMenu expand button) */
header.header .mod-menu.nav > li > .mm-toggler {
  display: none; /* Hidden on desktop, shown on mobile */
}

/* -----------------------------------------------
   5. DROPDOWN MENUS (Desktop)
   ----------------------------------------------- */
@media (min-width: 992px) {
  /* Dropdown container */
  header.header .mod-menu.nav > li.parent {
    position: relative;
  }

  header.header .mod-menu.nav > li.parent > ul.mm-collapse {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    list-style: none;
    z-index: 1060;
    /* Override MetisMenu collapse for desktop */
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    border-top: 3px solid #f47920;
  }

  /* Arrow pointer on dropdown */
  header.header .mod-menu.nav > li.parent > ul.mm-collapse::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 6px solid #f47920;
  }

  /* Show dropdown on hover */
  header.header .mod-menu.nav > li.parent:hover > ul.mm-collapse,
  header.header .mod-menu.nav > li.parent > ul.mm-collapse.mm-show {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    height: auto !important;
    overflow: visible !important;
  }

  /* Invisible bridge to prevent gap hover loss */
  header.header .mod-menu.nav > li.parent::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
  }

  /* Dropdown items */
  header.header .mod-menu.nav > li.parent > ul.mm-collapse > li > a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.2rem;
    color: #2d2d2d;
    font-size: 0.88rem;
    font-weight: 450;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
    border-left: 3px solid transparent;
  }

  header.header .mod-menu.nav > li.parent > ul.mm-collapse > li > a:hover,
  header.header .mod-menu.nav > li.parent > ul.mm-collapse > li > a:focus {
    background: #fff8f0;
    color: #f47920;
    border-left-color: #f47920;
    padding-left: 1.4rem;
  }

  /* Dropdown item icons */
  header.header .mod-menu.nav > li.parent > ul.mm-collapse > li > a > i {
    color: #f47920;
    font-size: 0.82rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
  }

  /* Sub-dropdown (3rd level) */
  header.header .mod-menu.nav > li.parent ul.mm-collapse ul.mm-collapse {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(6px);
    border-top: 3px solid #f47920;
    border-left: none;
    z-index: 1061;
  }

  header.header .mod-menu.nav > li.parent ul.mm-collapse ul.mm-collapse::before {
    display: none;
  }

  header.header .mod-menu.nav > li.parent ul.mm-collapse > li:hover > ul.mm-collapse,
  header.header .mod-menu.nav > li.parent ul.mm-collapse > li > ul.mm-collapse.mm-show {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    height: auto !important;
    overflow: visible !important;
  }

  /* Sub-dropdown item links */
  header.header .mod-menu.nav > li.parent ul.mm-collapse ul.mm-collapse > li > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    color: #2d2d2d;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
  }

  header.header .mod-menu.nav > li.parent ul.mm-collapse ul.mm-collapse > li > a:hover {
    background: #fff8f0;
    color: #f47920;
    border-left-color: #f47920;
  }

  /* ---- MEGA-MENU for "Sac" (item-297) ---- */
  header.header .mod-menu.nav > li.item-297 > ul.mm-collapse {
    min-width: 520px;
    display: none;
    padding: 0.75rem 0;
  }

  header.header .mod-menu.nav > li.item-297 > ul.mm-collapse > li {
    break-inside: avoid;
  }

  header.header .mod-menu.nav > li.item-297 > ul.mm-collapse > li > a {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a2e;
  }

  /* Sac sub-items shown inline in mega panel */
  header.header .mod-menu.nav > li.item-297 > ul.mm-collapse > li > ul.mm-collapse {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    background: transparent;
    padding: 0 0 0.5rem 0;
    display: block !important;
    opacity: 1;
    visibility: visible;
    border-radius: 0;
  }

  header.header .mod-menu.nav > li.item-297 > ul.mm-collapse > li > ul.mm-collapse > li > a {
    padding: 0.4rem 1.2rem 0.4rem 2.6rem;
    font-size: 0.84rem;
    color: #555;
    font-weight: 400;
  }

  header.header .mod-menu.nav > li.item-297 > ul.mm-collapse > li > ul.mm-collapse > li > a:hover {
    color: #f47920;
    background: #fff8f0;
  }

  /* Separator line between mega-menu sections */
  header.header .mod-menu.nav > li.item-297 > ul.mm-collapse > li + li {
    border-top: 1px solid #f0f0f0;
    margin-top: 0.25rem;
    padding-top: 0.25rem;
  }
}

/* -----------------------------------------------
   6. SEARCH BAR (Desktop)
   ----------------------------------------------- */
header.header .mod-finder__search {
  display: flex;
  align-items: center;
  position: relative;
}

header.header .mod-finder__search .form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  width: 170px;
  transition: width 0.3s ease, background 0.2s ease, border-color 0.2s ease;
}

header.header .mod-finder__search .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

header.header .mod-finder__search .form-control:focus {
  width: 220px;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(244, 121, 32, 0.4);
  outline: none;
  box-shadow: 0 0 0 2px rgba(244, 121, 32, 0.15);
}

/* Hide search button (search triggers on Enter) */
header.header .mod-finder__search .btn {
  display: none;
}

/* -----------------------------------------------
   7. LANGUAGE SWITCHER (Desktop)
   ----------------------------------------------- */
header.header .mod-languages .btn-group .btn.dropdown-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

header.header .mod-languages .btn-group .btn.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(244, 121, 32, 0.3);
}

header.header .mod-languages .dropdown-menu {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  border: none;
  padding: 0.4rem 0;
  min-width: 80px;
  margin-top: 8px;
}

header.header .mod-languages .dropdown-menu li a {
  padding: 0.45rem 1rem;
  color: #2d2d2d;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  display: block;
  transition: background 0.15s ease, color 0.15s ease;
}

header.header .mod-languages .dropdown-menu li a:hover {
  background: #fff8f0;
  color: #f47920;
}

header.header .mod-languages .dropdown-menu li.lang-active a {
  color: #f47920;
  font-weight: 700;
}

/* -----------------------------------------------
   8. HAMBURGER / NAVBAR-TOGGLER (Mobile only)
   ----------------------------------------------- */
header.header .navbar-toggler {
  display: none; /* Hidden on desktop */
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
  z-index: 1100;
}

header.header .navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.15);
}

header.header .navbar-toggler .icon-menu {
  display: block;
}

/* "X" state when menu is open */
header.header .navbar-toggler[aria-expanded="true"] .icon-menu::before {
  content: "\f00d"; /* FontAwesome times */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* -----------------------------------------------
   9. MOBILE STYLES (<=991px)
   ----------------------------------------------- */
@media (max-width: 991px) {

  header.header {
    flex-wrap: wrap;
    padding: 0 1rem;
    min-height: 60px;
    position: sticky;
    top: 0;
  }

  /* Logo + hamburger row */
  header.header > .grid-child:first-child {
    flex: 1 1 auto;
    order: 1;
  }

  header.header .navbar-brand img {
    height: 60px;
  }

  /* Nav takes full width below */
  header.header > .grid-child.container-nav {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
  }

  header.header .navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
    margin-left: auto;
  }

  /* Hide search and lang on header bar - move into mobile menu */
  header.header > .grid-child.container-search {
    order: 3;
    display: none;
  }

  header.header > .grid-child.mod-languages {
    order: 5;
    display: none;
  }

  /* Navbar wrapper */
  header.header .navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  /* Mobile menu overlay — !important overrides Cassiopeia & Bootstrap conflicts */
  header.header .navbar-collapse,
  .container-header .navbar-collapse.show,
  .container-header .navbar-collapse {
    background: linear-gradient(180deg, #1f1f1f 0%, #2d2d2d 100%) !important;
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    z-index: 1080 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0 !important;
    border-top: 2px solid rgba(244, 121, 32, 0.3);
    display: none;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }

  header.header .navbar-collapse.sda-open {
    display: flex !important;
  }

  header.header .navbar-collapse:not(.sda-open) {
    display: none !important;
  }

  /* Mobile menu list */
  header.header .mod-menu.mod-list.nav {
    flex-direction: column;
    gap: 0;
    padding: 0 1rem;
    width: 100%;
  }

  /* Mobile top-level items */
  header.header .mod-menu.nav > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  header.header .mod-menu.nav > li > a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    min-height: 48px;
    border-radius: 8px;
    width: 100%;
  }

  header.header .mod-menu.nav > li > a:hover {
    transform: none;
  }

  /* Mobile top-level items need relative */
  header.header .mod-menu.nav > li {
    position: relative;
  }

  

  /* ===== MOBILE SUBMENU FIX ===== */
  /* Override Cassiopeia template.min.css:
     .metismenu.mod-menu .mm-collapse { position:absolute }
     .metismenu.mod-menu .mm-collapse:not(.mm-show) { display:none }
  */
  .metismenu.mod-menu .mm-collapse,
  header.header .metismenu.mod-menu .mm-collapse,
  header.header .mod-menu.nav ul.mm-collapse,
  header.header .mod-menu.nav > li.parent > ul.mm-collapse,
  header.header .mod-menu.nav > li.parent ul.mm-collapse ul.mm-collapse,
  header.header .mod-menu.nav > li.item-297 > ul.mm-collapse,
  header.header .mod-menu.nav > li.item-297 > ul.mm-collapse > li > ul.mm-collapse {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: auto !important;
    background: rgba(255,255,255,.04) !important;
    border-radius: 8px !important;
    padding: 0 0 0 .75rem !important;
    margin: 0 !important;
    list-style: none !important;
    flex-basis: auto !important;
  }

  /* Override Cassiopeia's :not(.mm-show) rule - use our own sda-sub-open */
  .metismenu.mod-menu .mm-collapse:not(.mm-show),
  header.header .metismenu.mod-menu .mm-collapse:not(.mm-show),
  header.header .mod-menu.nav ul.mm-collapse:not(.sda-sub-open) {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Show when sda-sub-open OR mm-show */
  header.header .mod-menu.nav ul.mm-collapse.sda-sub-open,
  header.header .metismenu.mod-menu .mm-collapse.sda-sub-open {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Remove ::before arrows */
  header.header .mod-menu.nav ul.mm-collapse::before {
    display: none !important;
  }

  /* All parent items relative for toggle button */
  header.header .mod-menu.nav li.deeper.parent,
  header.header .mod-menu.nav li.parent {
    position: relative !important;
  }

  /* Toggle buttons for ALL levels */
  header.header .mod-menu.nav li.deeper.parent > .mm-toggler,
  .metismenu.mod-menu .mm-collapse > li.parent > .mm-toggler {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: none;
    color: rgba(255,255,255,.6);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    position: absolute;
    right: 4px;
    top: 4px;
    z-index: 3;
    padding: 0;
    transition: background .2s, color .2s;
  }

  header.header .mod-menu.nav li.deeper.parent > .mm-toggler:hover,
  header.header .mod-menu.nav li.deeper.parent > .mm-toggler.sda-sub-open {
    background: rgba(244,121,32,.2);
    color: #f47920;
  }

  /* Links need right padding for toggle button */
  header.header .mod-menu.nav li.deeper.parent > a {
    padding-right: 52px !important;
  }

  /* Submenu item links */
  header.header .mod-menu.nav ul.mm-collapse > li > a,
  .metismenu.mod-menu .mm-collapse > li > a {
    display: flex !important;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1rem !important;
    color: rgba(255,255,255,.78) !important;
    font-size: .92rem !important;
    text-decoration: none !important;
    min-height: 44px;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: background .2s, color .2s;
    font-weight: 450 !important;
    background: transparent !important;
    white-space: normal !important;
  }

  header.header .mod-menu.nav ul.mm-collapse > li > a:hover {
    background: rgba(244,121,32,.08) !important;
    color: #f47920 !important;
    border-left-color: #f47920;
  }

  /* Submenu icons */
  header.header .mod-menu.nav ul.mm-collapse > li > a > i {
    color: #f47920;
    font-size: .8rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    opacity: .8;
  }

  /* Level 3+ items */
  header.header .mod-menu.nav ul.mm-collapse ul.mm-collapse > li > a {
    padding: .55rem .75rem !important;
    font-size: .86rem !important;
    color: rgba(255,255,255,.65) !important;
    min-height: 40px;
  }

  header.header .mod-menu.nav ul.mm-collapse ul.mm-collapse > li > a:hover {
    color: #f47920 !important;
    background: rgba(244,121,32,.06) !important;
  }

}

/* -----------------------------------------------
   10. UTILITY & ANIMATION HELPERS
   ----------------------------------------------- */

/* Smooth scrollbar for mobile menu */
header.header .navbar-collapse::-webkit-scrollbar {
  width: 4px;
}

header.header .navbar-collapse::-webkit-scrollbar-track {
  background: transparent;
}

header.header .navbar-collapse::-webkit-scrollbar-thumb {
  background: rgba(244, 121, 32, 0.3);
  border-radius: 4px;
}

/* Focus visible outlines for accessibility */
header.header a:focus-visible,
header.header button:focus-visible {
  outline: 2px solid #f47920;
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  header.header,
  header.header * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Override Cassiopeia default grid for header */
header.header {
  grid-template-columns: none !important;
  display: flex !important;
}

/* Fix any Cassiopeia padding/margin overrides */
.site-grid > header.header {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

/* Prevent content jump from sticky header */
body {
  scroll-padding-top: 80px;
}

/* ---- Yukarı çık butonu ---- */
#back-top {
  position: fixed;
  bottom: 84px;
  right: 22px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg,#d4600a,#f47920);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(212,96,10,.45);
  transition: transform .2s, box-shadow .2s;
  z-index: 1000;
}
#back-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px rgba(212,96,10,.55);
  color: #fff !important;
}
#back-top .icon-arrow-up {
  font-size: 1.4rem;
  line-height: 1;
}

/* ---- WhatsApp butonu (JS inline override) ---- */
.whatsapp-button {
  width: 52px !important;
  height: 52px !important;
  padding: 0 !important;
  bottom: 22px !important;
  right: 22px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg,#1da851,#25D366) !important;
  box-shadow: 0 4px 18px rgba(37,211,102,.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform .2s, box-shadow .2s !important;
}
.whatsapp-button:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 26px rgba(37,211,102,.55) !important;
}
.whatsapp-button a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none !important;
}
.whatsapp-button i {
  font-size: 1.7rem !important;
  color: #fff !important;
  line-height: 1 !important;
}

/* ===== FOOTER ===== */
.sda-footer{background:#2d2d2d;color:#c9cdd3;margin-top:1.5rem;padding:3rem 1.5rem 0;font-family:inherit}
.sda-footer-inner{max-width:1100px;margin:0 auto}
.sda-footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.4fr;gap:2.5rem;padding-bottom:2rem}
/* Marka kolonu */
.sda-footer-brand img{max-width:190px;height:auto;filter:brightness(1.05)}
.sda-footer-brand p{font-size:.88rem;color:#c9cdd3;margin-top:.9rem;line-height:1.75;max-width:220px}
.sda-footer-brand .sda-social{display:flex;gap:.55rem;margin-top:1.1rem}
.sda-footer-brand .sda-social a{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;background:rgba(255,255,255,.07);color:#c9cdd3;font-size:.95rem;text-decoration:none;transition:background .15s,color .15s}
.sda-footer-brand .sda-social a:hover{background:#f47920;color:#fff}
/* Kolon başlıkları */
.sda-footer-col h4{color:#e5e7eb;font-size:.7rem;font-weight:700;margin:0 0 1rem;letter-spacing:.1em;text-transform:uppercase;padding-bottom:.55rem;border-bottom:2px solid #f47920;display:inline-block}
.sda-footer-col ul{list-style:none;padding:0;margin:0}
.sda-footer-col li{margin-bottom:.5rem}
.sda-footer-col a{color:#c9cdd3;text-decoration:none;font-size:.88rem;transition:color .15s;display:flex;align-items:center;gap:.4rem}
.sda-footer-col a:hover{color:#f47920;text-decoration:none}
.sda-footer-col a i{width:14px;font-size:.78rem;color:#f47920;opacity:.8}
/* İletişim kolonu */
.sda-footer-contact .sda-contact-item{display:flex;align-items:flex-start;gap:.6rem;margin-bottom:.7rem;font-size:.88rem;line-height:1.5;color:#c9cdd3}
.sda-footer-contact .sda-contact-item i{color:#f47920;font-size:.95rem;margin-top:.15rem;flex-shrink:0;width:16px}
.sda-footer-contact .sda-contact-item a{color:#c9cdd3;text-decoration:none;transition:color .15s}
.sda-footer-contact .sda-contact-item a:hover{color:#f47920}
.sda-footer-hours{margin-top:.8rem;padding:.7rem .9rem;background:rgba(255,255,255,.04);border-radius:8px;border-left:3px solid #f47920}
.sda-footer-hours p{margin:.15rem 0;font-size:.82rem;color:#c9cdd3;line-height:1.5}
.sda-footer-hours p strong{color:#e5e7eb;font-weight:600}
/* Alt bar */
.sda-footer-bottom{border-top:1px solid #2a2a2a;padding:1rem 0;text-align:center;margin-top:.5rem;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
.sda-footer-bottom p{margin:0;font-size:.8rem;color:#c9cdd3}
.sda-footer-bottom .sda-footer-badges{display:flex;gap:.5rem;align-items:center}
.sda-footer-bottom .sda-badge{font-size:.7rem;background:rgba(244,121,32,.12);color:#f47920;border:1px solid rgba(244,121,32,.25);border-radius:4px;padding:.15rem .5rem;font-weight:600;letter-spacing:.04em}
@media(max-width:900px){
  .sda-footer-grid{grid-template-columns:1fr 1fr;gap:2rem}
  .sda-footer-brand p{max-width:100%}
}
@media(max-width:640px){
  .sda-footer{padding:2rem 1rem 0}
  .sda-footer-grid{grid-template-columns:1fr;gap:1.8rem;text-align:center}
  .sda-footer-brand{display:flex;flex-direction:column;align-items:center}
  .sda-footer-brand img{max-width:160px}
  .sda-footer-brand p{max-width:100%;text-align:center}
  .sda-footer-brand .sda-social{justify-content:center}
  .sda-footer-col h4{display:block;text-align:center;border-bottom:none;padding-bottom:0;position:relative;margin-bottom:.8rem}
  .sda-footer-col h4::after{content:'';display:block;width:40px;height:2px;background:#f47920;margin:.4rem auto 0}
  .sda-footer-col ul{display:flex;flex-direction:column;align-items:center}
  .sda-footer-col a{justify-content:center}
  .sda-footer-contact .sda-contact-item{justify-content:center;text-align:left}
  .sda-footer-contact .sda-contact-item span,
  .sda-footer-contact .sda-contact-item a{word-break:break-word}
  .sda-footer-hours{text-align:center}
  .sda-footer-hours p{text-align:center}
  .sda-footer-bottom{flex-direction:column;justify-content:center;text-align:center;gap:.8rem;padding:1rem 0}
  .sda-footer-bottom .sda-footer-badges{flex-wrap:wrap;justify-content:center}
}
@media(max-width:380px){
  .sda-footer{padding:1.5rem .75rem 0}
  .sda-footer-brand img{max-width:140px}
  .sda-footer-col a{font-size:.84rem}
  .sda-footer-contact .sda-contact-item{font-size:.84rem}
  .sda-footer-bottom p{font-size:.75rem}
  .sda-footer-bottom .sda-badge{font-size:.65rem;padding:.1rem .4rem}
}

/* ===== İÇ ALAN MODERNİZASYONU ===== */

/* Sayfa arka planı */
body.site {
  background: #f2f2f2 !important;
}

/* Ana içerik sarmalayıcı */
.grid-child.container-component {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(0,0,0,.07), 0 4px 24px rgba(0,0,0,.05);
  padding: 1.8rem 2rem !important;
  margin: 1.2rem 0;
}
@media(max-width:767px){
  .grid-child.container-component{padding:1.1rem 1rem !important;border-radius:8px}
}

/* Breadcrumb */
.mod-breadcrumbs__wrapper {
  margin-bottom: .5rem;
}
.mod-breadcrumbs.breadcrumb {
  background: transparent;
  font-size: .9rem;
  padding: .4rem 0 !important;
  margin: 0 0 1rem;
  border-radius: 0;
}
.mod-breadcrumbs__item.breadcrumb-item a {
  color: #f47920;
  text-decoration: none;
}
.mod-breadcrumbs__item.breadcrumb-item a:hover {
  color: #d4600a;
  text-decoration: underline;
}
.mod-breadcrumbs__item.breadcrumb-item.active {
  color: #6b6b6b;
}
.mod-breadcrumbs__here {
  color: #a0a0a0;
  font-size: .8rem;
}

/* Sayfa başlığı (h1) */
.page-header {
  border-bottom: 2px solid #e5e5e5;
  margin-bottom: 1.4rem;
  padding-bottom: .7rem;
}
.page-header h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0;
  line-height: 1.3;
}

/* Makale gövdesi */
.com-content-article__body {
  color: #333;
  line-height: 1.8;
  font-size: 1.05rem;
}
.com-content-article__body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e1e1e;
  margin: 1.6rem 0 .7rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #e5e5e5;
}
.com-content-article__body h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: #f47920;
  margin: 1.3rem 0 .5rem;
}
.com-content-article__body a {
  color: #f47920;
}
.com-content-article__body a:hover {
  color: #d4600a;
}
.com-content-article__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin: 1rem 0;
}
.com-content-article__body table th {
  background: #2d2d2d;
  color: #fff;
  font-weight: 600;
  padding: .55rem .8rem;
  text-align: left;
}
.com-content-article__body table td {
  padding: .45rem .8rem;
  border-bottom: 1px solid #e5e5e5;
  color: #333;
}
.com-content-article__body table tr:nth-child(even) td {
  background: #f8f8f8;
}
.com-content-article__body table tr:hover td {
  background: #fff3e0;
}

/* Makale meta bilgileri */
.article-info.text-muted {
  font-size: .78rem;
  color: #a0a0a0 !important;
  margin-bottom: 1.2rem;
  padding: .5rem .8rem;
  background: #f8f8f8;
  border-radius: 6px;
  border-left: 3px solid #f47920;
}
.article-info-term {
  display: none;
}

/* Etiketler */
.tags.list-inline {
  margin: 1rem 0 .5rem;
}
.tags .list-inline-item a {
  display: inline-block;
  background: #ffe0b2;
  color: #d4600a;
  font-size: .74rem;
  font-weight: 600;
  padding: .22rem .65rem;
  border-radius: 20px;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.tags .list-inline-item a:hover {
  background: #f47920;
  color: #fff;
}

/* Kategori tablosu */
.com-content-category__table.table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  font-size: 1rem;
}
.com-content-category__table thead th {
  background: #2d2d2d !important;
  color: #fff !important;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  border: none !important;
  padding: .7rem 1rem;
}
.com-content-category__table tbody td {
  padding: .6rem 1rem;
  border-color: #e5e5e5 !important;
  vertical-align: middle;
  color: #333;
}
.com-content-category__table tbody tr:nth-child(odd) td {
  background: #fff;
}
.com-content-category__table tbody tr:nth-child(even) td {
  background: #f8f8f8;
}
.com-content-category__table tbody tr:hover td {
  background: #fff3e0 !important;
}
.com-content-category__table a {
  color: #f47920;
  font-weight: 500;
  text-decoration: none;
}
.com-content-category__table a:hover {
  color: #d4600a;
  text-decoration: underline;
}

/* Kategori liste görünümü */
.content-category {
  margin-top: .5rem;
}
.com-content-category__articles .cat-list-row0,
.com-content-category__articles .cat-list-row1 {
  padding: .7rem 0;
  border-bottom: 1px solid #e5e5e5;
}
.com-content-category__articles .cat-list-row0:last-child,
.com-content-category__articles .cat-list-row1:last-child {
  border-bottom: none;
}

/* Sayfalama */
.pagination {
  gap: .25rem;
  margin: 1.5rem 0;
}
.pagination .page-link {
  border-radius: 7px !important;
  border: 1px solid #e0e0e0;
  color: #f47920;
  font-size: .95rem;
  font-weight: 500;
  padding: .38rem .7rem;
  transition: background .12s, color .12s, border-color .12s;
}
.pagination .page-link:hover {
  background: #fff3e0;
  border-color: #f47920;
  color: #d4600a;
}
.pagination .page-item.active .page-link {
  background: #f47920 !important;
  border-color: #f47920 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(212,96,10,.35);
}
.pagination .page-item.disabled .page-link {
  color: #b0b0b0;
  background: #f8f8f8;
  border-color: #e0e0e0;
}

/* Butonlar */
.btn-primary {
  background: linear-gradient(135deg,#d4600a,#f47920) !important;
  border: none !important;
  border-radius: 7px !important;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(212,96,10,.25);
  transition: box-shadow .15s, transform .1s;
}
.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(212,96,10,.4) !important;
  transform: translateY(-1px);
}
.btn-info {
  background: linear-gradient(135deg,#3d3d3d,#555) !important;
  border: none !important;
  border-radius: 7px !important;
  color: #fff !important;
  font-weight: 600;
}

/* Kartlar */
.card {
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 8px rgba(0,0,0,.07) !important;
}
.card-header {
  background: #2d2d2d !important;
  color: #fff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  border-radius: 10px 10px 0 0 !important;
  padding: .7rem 1rem !important;
  border: none !important;
}
.card-body {
  padding: .8rem 1rem !important;
}

/* Benzer öğeler liste */
.mod-tagssimilar a {
  color: #f47920;
  font-size: .95rem;
  text-decoration: none;
}
.mod-tagssimilar a:hover {
  color: #d4600a;
  text-decoration: underline;
}
.mod-tagssimilar li {
  padding: .3rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.mod-tagssimilar li:last-child {
  border-bottom: none;
}

/* Badge */
.badge.bg-secondary {
  background: #4a4a4a !important;
  font-size: .72rem;
  border-radius: 5px;
}

/* Form seçiciler */
.form-select {
  border: 1px solid #d0d0d0;
  border-radius: 7px;
  font-size: .84rem;
  color: #333;
  background-color: #fff;
}
.form-select:focus {
  border-color: #f47920;
  box-shadow: 0 0 0 2px rgba(244,121,32,.2);
  outline: none;
}

/* Footer container */
.container-footer.footer {
  background: transparent !important;
  padding: 0 !important;
}

/* ===== MODERN BANNER / SLIDER ===== */
.container-banner {
  position: relative !important;
  overflow: hidden !important;
}
.container-banner .banner-overlay {
  position: relative !important;
  min-height: 520px !important;
  display: flex !important;
  align-items: center !important;
  background-size: cover !important;
  background-position: center center !important;
  overflow: hidden !important;
}
.container-banner .banner-overlay > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important;
}
.container-banner .banner-overlay::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(15,20,40,0.3) 0%, rgba(26,26,46,0.2) 40%, rgba(15,52,96,0.15) 100%) !important;
  z-index: 1 !important;
}
.container-banner .overlay {
  position: relative !important;
  z-index: 2 !important;
  max-width: 960px !important;
  margin: 0 auto !important;
  padding: 60px 30px !important;
  text-align: center !important;
}
/* Banner badge */
.sda-banner-badge {
  display: inline-block;
  background: rgba(192,57,43,0.15);
  border: 1px solid rgba(192,57,43,0.4);
  color: #ffa64d !important;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
}
/* Banner heading */
.sda-banner-h2 {
  text-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
  font-size: 2.6rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  margin-bottom: 10px !important;
  letter-spacing: -0.5px !important;
}
.sda-banner-h2 span {
  color: #f47920 !important;
}
.sda-banner-sub {
  text-shadow: 0 1px 6px rgba(0,0,0,0.5) !important;
  font-size: 1.15rem !important;
  color: rgba(255,255,255,0.85) !important;
  max-width: 700px !important;
  margin: 0 auto 30px !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
}
/* Banner stats row */
.sda-banner-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}
.sda-banner-stat {
  text-align: center;
}
.sda-banner-stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #f47920 !important;
  line-height: 1.1;
}
.sda-banner-stat-lbl {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}
/* Banner CTA buttons */
.sda-banner-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.sda-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  cursor: pointer;
}
.sda-banner-cta-primary {
  background: linear-gradient(135deg, #c0392b, #e74c3c) !important;
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 20px rgba(192,57,43,0.4);
}
.sda-banner-cta-primary:hover {
  background: linear-gradient(135deg, #a93226, #c0392b) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(192,57,43,0.5);
}
.sda-banner-cta-secondary {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  backdrop-filter: blur(4px);
}
.sda-banner-cta-secondary:hover {
  background: rgba(255,255,255,0.2) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.5) !important;
  transform: translateY(-2px);
}
/* Banner divider line */
.sda-banner-divider {
  width: 60px;
  height: 3px;
  background: #f47920;
  margin: 0 auto 25px;
  border-radius: 2px;
}
/* Responsive */
@media (max-width: 768px) {
  .container-banner .banner-overlay {
    min-height: 440px !important;
  }
  .container-banner .overlay {
    padding: 40px 20px !important;
  }
  .sda-banner-h2 {
  text-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
    font-size: 1.8rem !important;
  }
  .sda-banner-stats {
    gap: 24px;
  }
  .sda-banner-stat-num {
    font-size: 1.7rem;
  }
  .sda-banner-cta {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* ===== HOMEPAGE CLEANUP & TITLE CARD ===== */
/* Hide breadcrumbs on homepages */
.itemid-105 .container-breadcrumbs,
.itemid-104 .container-breadcrumbs,
.itemid-346 .container-breadcrumbs {
  display: none !important;
}
/* Hide category info block on homepages */
.itemid-105 .com-content-article__info,
.itemid-104 .com-content-article__info,
.itemid-346 .com-content-article__info {
  display: none !important;
}
/* Banner to content smooth transition */
.container-banner + .container-component {
  margin-top: -20px !important;
  position: relative;
  z-index: 3;
}
/* Article title card on homepage */
.itemid-105 .com-content-article .page-header,
.itemid-104 .com-content-article .page-header,
.itemid-346 .com-content-article .page-header,
.itemid-105 .com-content-article__header,
.itemid-104 .com-content-article__header,
.itemid-346 .com-content-article__header {
  background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 50%, #333333 100%) !important;
  border: 1px solid rgba(244,121,32,0.3) !important;
  border-radius: 12px !important;
  padding: 28px 35px !important;
  margin: -40px 20px 30px !important;
  position: relative;
  z-index: 4;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05) inset !important;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease !important;
  overflow: hidden;
}
.itemid-105 .com-content-article .page-header::before,
.itemid-104 .com-content-article .page-header::before,
.itemid-346 .com-content-article .page-header::before,
.itemid-105 .com-content-article__header::before,
.itemid-104 .com-content-article__header::before,
.itemid-346 .com-content-article__header::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, #f47920, #c0392b);
  border-radius: 12px 0 0 12px;
}
.itemid-105 .com-content-article .page-header:hover,
.itemid-104 .com-content-article .page-header:hover,
.itemid-346 .com-content-article .page-header:hover,
.itemid-105 .com-content-article__header:hover,
.itemid-104 .com-content-article__header:hover,
.itemid-346 .com-content-article__header:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 40px rgba(0,0,0,0.3), 0 0 20px rgba(244,121,32,0.15), 0 0 0 1px rgba(244,121,32,0.4) inset !important;
}
.itemid-105 .com-content-article .page-header h1,
.itemid-105 .com-content-article .page-header h2,
.itemid-104 .com-content-article .page-header h1,
.itemid-104 .com-content-article .page-header h2,
.itemid-346 .com-content-article .page-header h1,
.itemid-346 .com-content-article .page-header h2,
.itemid-105 .com-content-article__header h1,
.itemid-105 .com-content-article__header h2,
.itemid-104 .com-content-article__header h1,
.itemid-104 .com-content-article__header h2,
.itemid-346 .com-content-article__header h1,
.itemid-346 .com-content-article__header h2 {
  color: #ffffff !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Breadcrumb contrast fix */
.mod-breadcrumbs__here, .mod-breadcrumbs a, .mod-breadcrumbs li {
  color: #555 !important;
}
/* Container-component on homepage - subtle bg transition */
.itemid-105 .container-component,
.itemid-104 .container-component,
.itemid-346 .container-component {
  background: #f8f8f8 !important;
}

/* ===== TOOL BUTTONS (banner alt) ===== */
.sda-tools-bar{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;padding:28px 20px;width:100% !important;max-width:100% !important;position:relative;z-index:5;box-sizing:border-box;grid-column:full-start/full-end;margin-left:auto;margin-right:auto}
.sda-tool-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:16px 28px;border-radius:14px;font-size:1.05rem;font-weight:700;text-decoration:none !important;transition:all .2s ease;border:2px solid #e2e8f0;background:#fff;color:#1e293b !important;box-shadow:0 4px 15px rgba(0,0,0,.06);letter-spacing:-.01em;white-space:nowrap}
.sda-tool-btn:hover{transform:translateY(-3px);box-shadow:0 8px 30px rgba(244,121,32,.18);color:#f47920 !important;border-color:#f47920;background:#fffbf5}
.sda-tool-btn svg{width:24px;height:24px;flex-shrink:0;color:#f47920}
@media(min-width:1200px){.sda-tool-btn{padding:22px 48px;font-size:1.2rem;gap:14px}.sda-tool-btn svg{width:28px;height:28px}}
@media(max-width:900px){.sda-tools-bar{flex-direction:column;align-items:stretch;gap:10px;padding:20px 16px}.sda-tool-btn{padding:14px 20px;font-size:.95rem;width:100%;max-width:100%;justify-content:center}}
@media(max-width:480px){.sda-tools-bar{gap:8px;padding:14px 12px}.sda-tool-btn{padding:12px 16px;font-size:.88rem;border-radius:10px;gap:8px}.sda-tool-btn svg{width:20px;height:20px}}


/* ===== CATEGORY LIST PAGES (stok listesi) ===== */

/* Pagination dropdown */
.com-content-category__articles .com-content-category__pagination{margin-bottom:1rem}
.com-content-category__articles .com-content-category__pagination .form-select{border-radius:8px;border:1px solid #e2e8f0;padding:6px 12px;font-size:.85rem}

/* "Alt kategoriler" label */
.cat-children > h3{font-size:.78rem;color:#94a3b8;font-weight:700;margin:0 0 1rem;text-transform:uppercase;letter-spacing:.08em}

/* Grid */
.cat-children{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin:1rem 0 2rem}
.cat-children > h3{grid-column:1/-1}

/* Card - clickable via CSS */
.cat-children > .com-content-category__children{background:#fff;border:2px solid #e2e8f0;border-radius:16px;overflow:hidden;transition:all .3s ease;display:flex;flex-direction:column;cursor:pointer;position:relative}
.cat-children > .com-content-category__children:hover{border-color:#f47920;box-shadow:0 8px 30px rgba(244,121,32,.12);transform:translateY(-3px)}

/* Make entire card clickable - stretch the link */
.com-content-category__children h3.page-header.item-title a::before{content:'';position:absolute;inset:0;z-index:1}

/* Card header with icon */
.com-content-category__children h3.page-header.item-title{background:linear-gradient(135deg,#0f172a,#1e3a5f);margin:0;padding:1.15rem 1.25rem;border-bottom:none;font-size:1.05rem;display:flex;align-items:center;gap:12px}
.com-content-category__children h3.page-header.item-title::before{content:'\f6d1';font-family:'Font Awesome 6 Free','Font Awesome 5 Free',FontAwesome;font-weight:900;font-size:1.4rem;color:#f47920;flex-shrink:0;width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:rgba(244,121,32,.12);border-radius:10px}
.com-content-category__children h3.page-header.item-title a{color:#fff !important;text-decoration:none;font-weight:700;display:flex;align-items:center;justify-content:space-between;flex:1}
.com-content-category__children h3.page-header.item-title a::after{content:'\2192';font-size:1.2rem;opacity:.4;transition:all .3s;flex-shrink:0}
.com-content-category__children:hover h3.page-header.item-title a::after{opacity:1;transform:translateX(4px);color:#f47920}

/* Card body */
.com-content-category__children .category-desc{padding:1.15rem 1.25rem;margin:0;background:#fff;flex:1;display:flex;align-items:flex-start}
.com-content-category__children .category-desc p{margin:0;font-size:.88rem;color:#475569;line-height:1.65}

/* ---- Per-category icons via nth-child ---- */
/* Level 1: Asinma = shield, Esneme = arrows-spin */
.cat-children > .com-content-category__children:nth-child(2) h3.page-header::before{content:'\f3ed'}
.cat-children > .com-content-category__children:nth-child(3) h3.page-header::before{content:'\e0a8'}

/* Level 2 under Asinma: Hardox, Miilux, Dillidur, Quard */
/* Hardox = fire, Miilux = snowflake, Dillidur = gem, Quard = shield-halved */
.cat-children > .com-content-category__children:nth-child(2) h3.page-header::before{content:'\f3ed'}
.cat-children > .com-content-category__children:nth-child(3) h3.page-header::before{content:'\e0a8'}
.cat-children > .com-content-category__children:nth-child(4) h3.page-header::before{content:'\f3a5'}
.cat-children > .com-content-category__children:nth-child(5) h3.page-header::before{content:'\f132'}

/* ---- Article table view ---- */
.com-content-category__table.table{border-collapse:separate;border-spacing:0;border-radius:14px;overflow:hidden;box-shadow:0 2px 16px rgba(0,0,0,.06);margin:1.5rem 0;width:100%}
.com-content-category__table.table thead{background:linear-gradient(135deg,#0f172a,#1e3a5f)}
.com-content-category__table.table thead th{color:#fff;font-weight:600;padding:14px 18px;font-size:.88rem;border:none}
.com-content-category__table.table tbody td{padding:12px 18px;border-bottom:1px solid #f0f0f0;font-size:.93rem}
.com-content-category__table.table tbody tr{transition:background .15s}
.com-content-category__table.table tbody tr:nth-child(even){background:#f8fafc}
.com-content-category__table.table tbody tr:hover{background:#fff7ed !important}
.com-content-category__table.table tbody td a{color:#1e293b;text-decoration:none;font-weight:500;transition:color .2s}
.com-content-category__table.table tbody tr:hover td a{color:#f47920}

/* ---- Pagination ---- */
.com-content-category .pagination{display:flex;justify-content:center;gap:4px;margin:2rem 0;flex-wrap:wrap}
.com-content-category .pagination .page-link{border-radius:8px;padding:8px 14px;border:1px solid #e2e8f0;color:#475569;font-weight:500;transition:all .2s;text-decoration:none;font-size:.9rem}
.com-content-category .pagination .page-link:hover,.com-content-category .pagination .page-item.active .page-link{background:#f47920;color:#fff;border-color:#f47920}

/* ---- Responsive ---- */
@media(max-width:640px){
  .cat-children{grid-template-columns:1fr;gap:12px}
  .com-content-category__children h3.page-header.item-title{padding:1rem;font-size:.95rem}
  .com-content-category__children .category-desc{padding:1rem}
  .cat-children > .com-content-category__children:hover{transform:none}
  .com-content-category__table.table thead th{padding:10px 12px;font-size:.8rem}
  .com-content-category__table.table tbody td{padding:10px 12px;font-size:.85rem}
}

/* ===== BLOG CATEGORY CARD LAYOUT ===== */
.com-content-category-blog__items.blog-items {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 1.5rem !important;
}
.com-content-category-blog__item.blog-item {
  background: #fff !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: all .3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  cursor: pointer !important;
  min-height: 0 !important;
  max-height: 280px !important;
}
.com-content-category-blog__item.blog-item:hover {
  border-color: #f47920 !important;
  box-shadow: 0 8px 30px rgba(244,121,32,.12) !important;
  transform: translateY(-3px) !important;
}
/* Intro image - fixed height at top */
.blog-item .item-image {
  margin: 0 !important;
  padding: 0 !important;
  order: -1 !important;
  flex-shrink: 0 !important;
  height: 160px !important;
  overflow: hidden !important;
}
.blog-item .item-image img {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
  display: block !important;
}
.blog-item .item-image figcaption {
  display: none !important;
}
/* Title section */
.blog-item .item-content {
  padding: 0 !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #1f1f1f, #2d2d2d, #333333) !important;
}
.blog-item .item-content > .page-header {
  margin: 0 !important;
  padding: 1rem 1.25rem !important;
  background: none !important;
  border: none !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}.blog-item .item-content > .page-header h2 {
  margin: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}
.blog-item .item-content > .page-header h2 a {
  color: #fff !important;
  text-decoration: none !important;
  transition: color .2s !important;
}
.blog-item:hover .item-content > .page-header h2 a {
  color: #f47920 !important;
}
/* Make entire card clickable */
.blog-item .item-content > .page-header h2 a::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}
/* Arrow */
.blog-item .item-content > .page-header::after {
  content: '\2192' !important;
  display: block !important;
  margin-top: .6rem !important;
  color: #f47920 !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  opacity: .4 !important;
  transition: all .3s !important;
}
.blog-item:hover .item-content > .page-header::after {
  opacity: 1 !important;
  transform: translateX(6px) !important;
}
/* HIDE EVERYTHING inside item-content except the first page-header */
.blog-item .item-content > *:not(.page-header) {
  display: none !important;
}
.blog-item .item-content > .page-header ~ .page-header {
  display: none !important;
}
/* Also hide any article body that appears */
.blog-item .com-content-article,
.blog-item .com-content-article.item-page,
.blog-item .article-info,
.blog-item .icons,
.blog-item .readmore {
  display: none !important;
}
@media(max-width:640px) {
  .com-content-category-blog__items.blog-items {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .com-content-category-blog__item.blog-item {
    max-height: 260px !important;
  }
}
