/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

/* Sarı renk değişkeni - tüm hover efektleri için aynı renk */
:root {
  --header-hover-yellow: #FFC107;
}

/* Fix header alignment - logo and menu should be vertically centered */
header.header.menu_fixed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: 80px;
}

header.header.menu_fixed.sticky {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

header.header.menu_fixed #logo {
  display: flex;
  align-items: center;
  float: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

header.header.menu_fixed #logo a {
  display: flex;
  align-items: center;
  height: 100%;
}

header.header.menu_fixed #logo img {
  display: block;
  height: auto;
  max-height: 55px;
}

/* Normal durumda sadece logo_normal görünsün */
header.header.menu_fixed .logo_normal {
  display: block !important;
}

header.header.menu_fixed .logo_sticky {
  display: none !important;
}

/* Sticky durumda sadece logo_sticky görünsün */
header.header.menu_fixed.sticky .logo_normal {
  display: none !important;
}

header.header.menu_fixed.sticky .logo_sticky {
  display: block !important;
  max-height: 40px;
}

header.header.menu_fixed .main-menu {
  display: flex;
  align-items: center;
  float: none;
  top: 0 !important;
  right: 0;
  position: relative;
  margin: 0;
  padding: 0;
  height: 100%;
}

header.header.menu_fixed .main-menu > ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  height: 100%;
  list-style: none;
}

header.header.menu_fixed .main-menu > ul > li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  height: 100%;
  position: relative;
}

header.header.menu_fixed .main-menu > ul > li > span {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

header.header.menu_fixed .main-menu > ul > li span > a {
  display: flex;
  align-items: center;
  padding: 0 12px !important;
  height: 100%;
  line-height: 1;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  border-radius: 6px;
}

/* Navigation linkler için sarı yazı rengi hover efekti (btn_top olmayanlar) */
header.header.menu_fixed .main-menu > ul > li span > a:not(.btn_top):hover {
  color: var(--header-hover-yellow) !important;
  background-color: transparent !important;
}

/* Sticky durumda da aynı hover efekti */
header.header.menu_fixed.sticky .main-menu > ul > li span > a:not(.btn_top):hover {
  color: var(--header-hover-yellow) !important;
  background-color: transparent !important;
}

header.header.menu_fixed .main-menu > ul > li span > a.btn_top {
  padding: 8px 16px !important;
  border-radius: 6px;
  background-color: #3578fa;
  color: #fff !important;
  margin-left: 8px;
  white-space: nowrap;
  transition: all 0.3s ease-in-out;
}

/* Bulgu Oluştur butonu hover efekti - sarı arka plan */
header.header.menu_fixed .main-menu > ul > li span > a.btn_top:hover {
  background-color: var(--header-hover-yellow) !important;
  color: #222 !important;
}

header.header.menu_fixed .main-menu > ul > li:last-child > span {
  padding: 0;
  margin-left: 12px;
}

/* Ensure profile icon container is properly aligned */
header.header.menu_fixed .main-menu > ul > li:last-child > span > div {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out !important;
}

/* Profil butonu hover efekti - sarı arka plan */
header.header.menu_fixed .main-menu > ul > li:last-child > span:hover > div {
  background-color: var(--header-hover-yellow) !important;
  border-color: var(--header-hover-yellow) !important;
  color: #222 !important;
}

header.header.menu_fixed .main-menu > ul > li:last-child > span:hover > div svg circle,
header.header.menu_fixed .main-menu > ul > li:last-child > span:hover > div svg path {
  stroke: #222 !important;
}

header.header.menu_fixed .main-menu > ul > li:last-child > span:hover > div img {
  opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  header.header.menu_fixed {
    flex-wrap: wrap;
  }
  
  header.header.menu_fixed #logo {
    order: 1;
  }
  
  header.header.menu_fixed .main-menu {
    order: 2;
  }
}

/* Center heading and subtitle in Home v2 hero without affecting form */
.hero_single.version_2 .wrapper .container > h3,
.hero_single.version_2 .wrapper .container > p {
  text-align: center;
}

/* Ensure category select is visible even if jQuery niceSelect is not initialized */
.custom-search-input-2 select.wide {
  display: block !important;
}

/* Match Top Categories spacing like template */
.box_cat_home { margin-bottom: 25px; }

/* Increase card vertical space to avoid text overflow under cards */
.box_cat_home { padding: 25px 20px 20px 10px; overflow: hidden; }
.box_cat_home h3 { margin-top: 5px; }
.box_cat_home ul { margin: 5px; }

/* Align inputs perfectly like template */
.custom-search-input-2 .form-group {
  margin: 0;
}
.custom-search-input-2 .form-group .form-control {
  height: 54px;
  border: none;
  box-shadow: none;
  border-right: 0;
  border-radius: 6px 0 0 6px;
}
.custom-search-input-2 .row > [class^='col-'],
.custom-search-input-2 .row > [class*=' col-'] {
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex;
  align-items: stretch;
}
.custom-search-input-2 .nice-select {
  height: 54px;
  line-height: 52px;
  margin: 0;
  border: 0;
  border-left: 1px solid #e8ebed;
  border-right: 1px solid #e8ebed;
  border-radius: 0;
}
.custom-search-input-2 .nice-select .current { line-height: 52px; }
.custom-search-input-2 input[type='submit'],
.custom-search-input-2 .btn_1.full-width {
  height: 54px;
  margin-left: 0;
  border-radius: 0 6px 6px 0;
  display: block;
  width: 100%;
  line-height: 54px;
  padding: 0 28px;
 
}

/* Ensure template primary button fills the cell height */
.custom-search-input-2 .btn_1.full-width { text-align: center; }

/* Fresh minimal search (results bar) */
.results-search {
  display: flex;
  gap: 8px;
}
.results-search input[type="text"] {
  height: 46px;
  border-radius: 4px;
  border: 1px solid #e8ebed;
  padding: 0 14px;
  outline: none;
  flex: 1;
}
.results-search button {
  height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  border: 0;
  background: #3578fa;
  color: #fff;
  font-weight: 500;
}
.results-search button:hover {
  background: #2967db;
}

/* Override list hover color to blue instead of yellow */
.list_home ul li a:hover { background-color: #3578fa !important; color: #fff !important; }
.list_home ul li a:hover:after { color: #fff !important; }
.list_home ul li a:after { color: #3578fa !important; }

/* Ensure CTA content text is white */
.call_section_2 p { color: #fff !important; }

/* Brand detail header look */
.sub_header_in {
  background: #051d4d linear-gradient(to bottom, rgba(0,0,0,0.15), transparent);
  padding-top: 100px;
  padding-bottom: 30px;

  color: #fff;
}
.sub_header_in h1 { color:#fff; }

/* Align sub_header_in content with header logo - match header padding exactly */
.sub_header_in {
  padding-left: 30px !important;
  padding-right: 30px !important;
}

.sub_header_in h1 {
  text-align: left !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

@media (max-width: 767px) {
  .sub_header_in {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Contact page - make both boxes have same border radius */
.contact-page .box_general {
  border-radius: 16px !important;
}

/* Make results bar stick below header and avoid overlap */
.category-page #results {
  position: relative; /* allow stacking context */
  top: 0; /* start at very top of the viewport */
  z-index: 0; /* header (z:999) stays above */
  /* Pull dark bar under the transparent header */
  margin-top: -80px; /* match header height */
  padding-top: 98px; /* 80 header + 28 spacing */
  padding-bottom: 22px; /* increase height */
}

/* Match header bg with content bg on category page to avoid visual gap */
.category-page .header.menu_fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: transparent !important; /* let results bar show behind for contrast */
  border-bottom: none;
}

/* Offset page content for fixed header */
main.category-page { padding-top: 80px; }

/* Force dark nav link colors on category page header */
.category-page .main-menu > ul > li span > a {
  color: #fff !important;
  opacity: 1 !important;
}
.category-page .main-menu > ul > li span:hover > a {
  color: #fff !important;
  opacity: 0.85 !important;
}

/* Force white logo sticky hidden state off */
.category-page .logo_normal { display: inline-block !important; }
.category-page .logo_sticky { display: none !important; }

/* Force header to look like sticky even at top */
.category-page .header.menu_fixed {
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.category-page .header.menu_fixed .main-menu > ul > li span > a { color: #444 !important; }

/* Ensure white header background on report page */
.report-page .header.menu_fixed { background: #fff !important; border-bottom: 1px solid #ededed; }
.report-page .main-menu > ul > li span > a { color: #444 !important; }

.box_dark_placeholder { background: #051d4d; height: 140px; border-radius: 6px; }

.report_hero_bar { background: #051d4d; height: 90px; width: 100%; }

/* Fire rating pills */
.fire-rating { display: flex; gap: 8px; }
.fire-pill {
  width: 36px; height: 36px; border-radius: 6px; border: 1px dashed rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(2px);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.fire-pill img { opacity: .25; }
.fire-pill:hover { background: rgba(255,255,255,0.3); }
.fire-pill.active { background: #ffe9cf; border-color: #ffb15a; }
.fire-pill.active img { opacity: 1; }

/* Disabled primary button look */
.btn_1[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

/* Confirm page styles */
.circle_ok { width: 80px; height: 80px; border-radius: 50%; border: 2px solid #66bb6a; color:#66bb6a; display:flex; align-items:center; justify-content:center; margin: 0 auto; font-size:32px; }
.circle_error { width: 80px; height: 80px; border-radius: 50%; border: 2px solid #e57373; color:#e57373; display:flex; align-items:center; justify-content:center; margin: 0 auto; font-size:32px; }

/* Fix footer newsletter form alignment */
#newsletter .form-group {
  display: flex;
  align-items: center;
  gap: 0;
}

#newsletter .form-group input[type="email"] {
  flex: 1;
  margin-right: 0;
  border-radius: 6px 0 0 6px;
}

#newsletter .form-group input[type="submit"] {
  border-radius: 0 6px 6px 0;
  margin-left: 0;
  height: 100%;
}

/* Space footer columns evenly */
footer .row:first-child {
  display: flex;
  justify-content: space-between;
}

footer .row:first-child .col-lg-3 {
  flex: 1;
  max-width: none;
}

/* Align Keep in touch section to the right */
.col-lg-3:last-child {
  text-align: left;
}

.col-lg-3:last-child .follow_us {
  text-align: left;
}

.col-lg-3:last-child .follow_us ul {
  justify-content: flex-start;
  display: flex;
}

/* Empty state styles for brand reviews */
.empty_state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty_state_content h4 {
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.empty_state_content p {
  color: #666;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Search Detail page styles */
.search_results {
  margin-top: 20px;
}

.search_result_item {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 1px solid #e8ebed;
  border-radius: 8px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
}

.search_result_item:hover {
  border-color: #3578fa;
  box-shadow: 0 2px 8px rgba(53, 120, 250, 0.1);
  transform: translateY(-2px);
}

.result_logo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid #e8ebed;
}

.logo_image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.logo_fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.logo_fallback i {
  font-size: 24px;
  color: #3578fa;
}

.result_content {
  flex: 1;
  min-width: 0;
}

.result_header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}

.result_title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.result_type {
  background: #3578fa;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result_meta {
  color: #666;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result_primary_info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.result_sector {
  color: #3578fa;
  font-weight: 500;
  font-size: 13px;
}

.result_owner {
  color: #666;
  font-size: 13px;
  font-weight: 500;
}

.result_description {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 2px;
}

.result_secondary_info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.result_website,
.result_phone,
.result_founded {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #666;
  font-size: 12px;
}

.result_website i,
.result_phone i,
.result_founded i {
  font-size: 12px;
  color: #999;
}

.result_website:hover,
.result_phone:hover,
.result_founded:hover {
  color: #3578fa;
}

.result_action {
  color: #ccc;
  font-size: 18px;
  margin-left: 15px;
  flex-shrink: 0;
}

.search_result_item:hover .result_action {
  color: #3578fa;
}