html::before {
  content: "";
  position: absolute; /* Pseudo-elementi tam ekran kaplamak için */
  width: 100%;
  height: 100%;
  background-image: url("/assets/images/background-images/bg-photo16.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(60%); /* Arka planın parlaklığını düşürür */
  z-index: -1000; /* İçeriklerin önünde görünmesini engeller */
}

.catagories-header {
  padding: 0;
}
.catagories-container h2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  font-size: 2rem;
  font-weight: bolder;
  margin-bottom: 15px;
  margin-top: 0;
  padding-left: 20px;
}
.padded {
  padding: 20px 0;
}
.catagories-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 0px 100px 0px;
}
.catagories-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.catagories-container .card {
  height: 250px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  background-size: cover !important;
  color: white;
  position: relative;
  border-radius: 7px;
  margin: 10px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  overflow: hidden;
}
.catagories-container .card-image {
  width: 100%;
  height: 100%;
  transition: all 0.3s ease-out;
  filter: brightness(0.75);
}
.catagories-container .card:hover .card-image {
  transform: scale(1.05);
}

.card-category {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  color: black;
  background-color: white;
  text-shadow: none;
}
.card-description {
  position: absolute;
  bottom: 0px;
  left: 15px;
}
.card-description h2 {
  font-size: 1.3rem;
}
.card-description p {
  font-size: 15px;
}
.card-link {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  z-index: 2;
  background: black;
  opacity: 0;
}
.card-link:hover {
  opacity: 0.1;
}
/* Tabs */
.tabs-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  height: auto;
  box-shadow: none;
  padding-bottom: 50px;
}
.tabs-container h2 {
  font-size: 2.5rem;

  color: #060348;
}
.tab-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  width: 100%;
  padding: 20px 0;
}

.tabs {
  display: flex;
  gap: 20px;
  margin: 0px auto;
  padding-bottom: 60px;
}

.tab-button {
  padding: 10px 20px;
  border: 1px solid #ccc;
  background-color: #ffffff;
  cursor: pointer;
  border-radius: 20px;
  font-size: 1.1rem;
}

.tab-button.active {
  background-color: rgb(9, 17, 98);
  color: white;
  border: none;
}
.tab-panels {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  position: relative;
}

.tab-panel {
  display: flex;
  flex-direction: row;
  justify-content: stretch;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out,
    visibility 0s linear 0.4s;
}

.tab-panel.active {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  opacity: 1;
  visibility: visible;
  position: relative;
  pointer-events: all;
  transform: translateY(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.tab-panel .card {
  border: 1px solid #ccc;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 20px;
  background: white;
  max-width: 380px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.1s ease-out,
    box-shadow 0.1s ease;
}

.tab-panel.active .card {
  opacity: 1;
  transform: translateY(0);
}

/* Add staggered animation delay to cards */
.tab-panel.active .card:nth-child(1) {
  transition-delay: 0.1s;
}
.tab-panel.active .card:nth-child(2) {
  transition-delay: 0.1s;
}
.tab-panel.active .card:nth-child(3) {
  transition-delay: 0.1s;
}
.tab-panel.active .card:nth-child(4) {
  transition-delay: 0.1s;
}

.tab-panel .card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}
.tab-panel .card p {
  padding-bottom: 20px;
  margin-bottom: auto;
  font-size: 1.2rem;
  color: rgb(87, 86, 86);
}
.tab-panel .card a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #060348;
}
/* Rent or Buy Quiz Styles */
.quiz-section {
  width: 100%;
  padding: 60px 30px;
  background-color: #ededed42;
  display: flex;
  justify-content: space-between;
  justify-content: center;
}

.quiz-container {
  max-width: 600px;
  margin-left: 30px;
  margin-right: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.7) 100%
  );
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 40px;
  position: relative;
}

.quiz-header {
  text-align: center;
  margin-bottom: 30px;
}

.quiz-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: rgb(15, 4, 88);
  margin-bottom: 10px;
}

.quiz-header p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.quiz-content {
  position: relative;
}

.quiz-question {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.quiz-question.active {
  display: block;
}

.question-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.question-number {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.progress-container {
  width: 100%;
  height: 6px;
  background-color: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color, #1c0787);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.question-text {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.answer-option {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background-color: white;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.answer-option:hover {
  border-color: var(--primary-color, #2c3e50);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.answer-option.selected {
  border-color: var(--primary-color, #2c3e50);
  background-color: rgba(44, 62, 80, 0.05);
}

.answer-option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ccc;
  margin-right: 15px;
  position: relative;
  transition: all 0.2s ease;
}

.answer-option.selected .answer-option-radio {
  border-color: var(--primary-color, #0a0764);
}

.answer-option.selected .answer-option-radio:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color, #0a0764);
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.quiz-btn {
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.prev-btn {
  background-color: #f0f0f0;
  color: #666;
}

.prev-btn:hover:not([disabled]) {
  background-color: #e0e0e0;
}

.next-btn {
  background-color: #0f0458;
  color: white;
}

.next-btn:hover:not([disabled]) {
  background-color: navy;
  transform: translateY(-2px);
}

.quiz-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.quiz-slogan {
  width: 50%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 30px;
}
.quiz-slogan h1 {
  font-size: 3rem;
  color: rgb(15, 4, 88);
  font-weight: 700;
  font-family: "Cal Sans", sans-serif;
}

/* Quiz Result Styles */
.quiz-result {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

.result-title {
  font-size: 18px;
  color: #666;
  margin-bottom: 15px;
}

.result-recommendation {
  font-size: 36px;
  font-weight: 700;
  color: #0f0458;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.result-recommendation:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #0f0458;
  border-radius: 3px;
}

.result-explanation {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.result-btn {
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  outline: none;
}

.view-listings-btn {
  background-color: #0f0458;
  color: white;
}

.view-listings-btn:hover {
  background-color: #130379;
  transform: translateY(-2px);
}

.retake-btn {
  background-color: #d6d5d5;
  color: #666;
}

.retake-btn:hover {
  background-color: #e0e0e0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .quiz-container {
    padding: 30px 20px;
    margin: 0 15px;
  }

  .quiz-header h2 {
    font-size: 24px;
  }

  .question-text {
    font-size: 18px;
  }

  .result-recommendation {
    font-size: 30px;
  }

  .result-actions {
    flex-direction: column;
    gap: 10px;
  }

  .result-btn {
    width: 100%;
  }
}

.card-image-container {
  width: 100% !important;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}
.recommended-cities img {
  width: 100%;
  object-fit: cover;
  height: 180px;
  border-radius: 20px 20px 0 0;
}
.learn-more {
  width: 100%;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1;
  position: relative;
}
.learn-more::before {
  content: "";
  background-image: url("/assets/images/background-images/bg-photo12.jpg");
  width: 100%;
  height: 100%;
  z-index: -1;
  position: absolute;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(50%);
}
.learn-more-header {
  width: 100%;
  color: white;
}
.learn-more-header h4 {
  font-weight: 300;
}
.learn-more a {
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.219);
  color: white;
  border: 1px solid white;
  border-radius: 30px;
  font-size: 1.1rem;
  text-decoration: none;
}

.all-homes-btn {
  background-color: #13096f;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 15px 20px;
}
@media screen and (max-width: 1200px) {
  .category-card {
    flex: 1 1 50%;
  }
}
@media screen and (max-width: 1000px) {
  .tab-content .tab-panel {
    flex-direction: column;
  }
  .tab-panel .card {
    max-width: 100%;
  }
  .quiz-section{
    flex-wrap: wrap;
  }
  .quiz-slogan{
    width: 80%;
    display: flex;
    text-align: center;
  }
}
@media screen and (max-width: 770px) {
  .category-card {
    flex: 1 1 100%;
  }
} /* Top Agents of the Week Section Styles */
.top-agents-section {
  padding: 80px 0;
  background-color: #adadb12b;
  position: relative;
}

.top-agents-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.top-agents-section .container {
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #050c3a;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: navy;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(5, 18, 99, 0.2);
}

.section-subtitle {
  color: #595d60;
  font-size: 1.2rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 20px;
}

/* Agent Card Styles */
.agent-spotlight-card {
  background-color: #fff;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 25px;
  border: 1px solid rgba(74, 74, 76, 0.186);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.agent-spotlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #051263, #2a3baa, #4a5bda);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.agent-spotlight-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 3px 10px rgba(0, 0, 0, 0.05);
  transform: translateY(-10px);
}

.agent-spotlight-image {
  position: relative;
  margin: 0 auto;
  width: 150px;
  height: 150px;
  border-radius: 100%;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.agent-spotlight-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

.agent-spotlight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.agent-spotlight-image:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18), 0 3px 10px rgba(0, 0, 0, 0.1);
}

.agent-spotlight-image:hover img {
  transform: scale(1.08);
}

.agent-spotlight-image:hover::before {
  opacity: 1;
}

.agent-spotlight-info {
  text-align: center;
}

.agent-spotlight-info h4 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #333;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.agent-spotlight-info h4::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #051263, #2a3baa);
  transition: width 0.4s ease;
  border-radius: 2px;
}

.agent-spotlight-info h4:hover {
  color: #051263;
}

.agent-spotlight-info h4:hover::after {
  width: 100%;
}

.agent-spotlight-company {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 18px;
  display: block;
  font-weight: 500;
  position: relative;
}

.agent-spotlight-company::before {
  content: "\f1ad"; /* Font Awesome building icon */
  font-family: "Font Awesome 5 Free";
  margin-right: 5px;
  color: #051263;
  opacity: 0.8;
}

.agent-spotlight-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(159, 157, 157, 0.329);
  position: relative;
}

.agent-stat-item {
  text-align: center;
  flex: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  padding: 10px 5px;
  border-radius: 10px;
}

.agent-stat-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(5, 18, 99, 0.03);
  border-radius: 10px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.agent-stat-item:hover {
  transform: translateY(-8px);
}

.agent-stat-item:hover::before {
  opacity: 1;
}

.agent-stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: #051059;
  margin-bottom: 8px;
  display: block;
  background: linear-gradient(135deg, #051263, #2a3baa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

.agent-stat-item:hover .agent-stat-value {
  transform: scale(1.1);
  background: navy;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.agent-stat-label {
  font-size: 0.85rem;
  color: #6c757d;
  display: block;
  font-weight: 500;
  transition: all 0.3s ease;
}

.agent-stat-item:hover .agent-stat-label {
  color: #333;
}

.agent-profile-btn {
  width: 100%;
  padding: 10px 15px;
  margin-top: 20px;
  background: rgb(2, 2, 108);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.agent-profile-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgb(1, 1, 147);
  transition: all 0.4s ease-in-out;
  z-index: -1;
}

.agent-profile-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(5, 18, 99, 0.25);
}

.agent-profile-btn:hover::before {
  left: 0;
}

.agent-profile-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 8px rgba(5, 18, 99, 0.2);
}

.agent-profile-btn i {
  margin-right: 8px;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .top-agents-section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .top-agents-section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .agent-spotlight-image {
    height: 220px;
  }
}

@media (max-width: 575.98px) {
  .top-agents-section {
    padding: 40px 0;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .agent-spotlight-image {
    height: 200px;
  }

  .agent-stat-value {
    font-size: 1.1rem;
  }

  .agent-stat-label {
    font-size: 0.8rem;
  }
}

/* HTML: <div class="loader"></div> */
#preLoader {
  width: 100%;
  height: 100vh;
  background-color: white;
  z-index: 1000;
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  transition: opacity 0.5s ease;
}
#preLoader.hidden {
  opacity: 0;
  pointer-events: none;
}

#preLoader .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  position: relative;
}
#preLoader img {
  z-index: 1001;
}
#preLoader .img1 {
  width: 50px;
  z-index: 1001;
}
#preLoader .img2 {
  width: 100px;
  z-index: 1001;
}
.loader-wrapper {
  position: fixed;
  inset: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 6px solid transparent;
  border-top-color: orange;
  animation: spin 1s linear infinite;
}

.loader-2 {
  width: 150px;
  height: 150px;
  border-top-color: #ffa94d;
  animation-duration: 1.5s;
  animation-direction: reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
