/*--------------------------------------------------------------
# Homepage CSS - Sadece Ana Sayfaya Özel Stiller
--------------------------------------------------------------*/

/* Ana sayfa özel tasarım */
.home-custom {
  background-color: #fff;
  min-height: 100vh;
  width: 100%;
}

.home-custom .card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  height: 100%;
  background-color: #fff;
}

.home-custom .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.home-custom .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-custom .card-title {
  color: #2c3644;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.home-custom .card-text {
  color: #6c757d;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.home-custom .btn {
  background-color: #2baae1;
  border-color: #2baae1;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin-top: auto;
  border: 2px solid #2baae1;
  line-height: 1.2;
}

.home-custom .btn:hover {
  background-color: #ff6644;
  border-color: #ff6644;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.home-custom .search-form {
  margin-bottom: 3rem;
}

.home-custom .input-group {
  display: flex;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.home-custom .form-control {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-right: none;
  border-radius: 0;
  font-size: 1rem;
  outline: none;
  line-height: 1.5;
}

.home-custom .form-control:focus {
  border-color: #2baae1;
  box-shadow: none;
}

.home-custom .input-group .btn {
  border-radius: 0;
  margin-top: 0;
  border-left: none;
  padding: 0.75rem 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-custom .text-center {
  text-align: center;
}

.home-custom h1.text-center.mb-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.home-custom .mb-4 {
  margin-bottom: 2rem;
}

.home-custom .mb-5 {
  margin-bottom: 3rem;
}

.home-custom .my-5 {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.home-custom .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.home-custom .col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
}

.home-custom .seo-section {
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 2rem;
  margin-bottom: 3rem;
  width: 100%;
}

.home-custom .seo-section .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: fit-content;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 200px;
  line-height: 1;
}

.home-custom .seo-section h1,
.home-custom .seo-section h2,
.home-custom .seo-section h3,
.home-custom .seo-section h4,
.home-custom .seo-section h5,
.home-custom .seo-section h6 {
  color: #2c3644;
  text-align: left !important;
  text-transform: none !important;
}

.home-custom .seo-section h2 {
  margin-bottom: 1.5rem;
}

.home-custom .seo-section h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.home-custom .seo-section p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.home-custom .promo-placeholder {
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
  padding: 2rem;
  text-align: center;
  color: #6c757d;
  border-radius: 8px;
}

/* Öne Çıkan Sınavlar Stilleri */
.home-custom .featured-exams {
  margin: 3rem 0;
}

.home-custom .featured-exams h2 {
  color: #2c3644;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.home-custom .exam-card {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}


.home-custom .exam-image-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.home-custom .exam-image-link:hover {
  text-decoration: none;
  color: inherit;
}

.home-custom .exam-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.home-custom .exam-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}


.home-custom .exam-category-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(43, 170, 225, 0.9);
  color: #fff;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.home-custom .exam-content {
  padding: 1rem 1.75rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.home-custom .exam-title {
  color: #2c3644;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  flex-grow: 1;
  min-height: 2.8em;
}

/* Category ve Button yan yana için alt kısım */
.home-custom .exam-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 0.5rem;
}

.home-custom .exam-category {
  display: inline-block;
  background-color: #e3f2fd;
  color: #1565c0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 25px;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.home-custom .exam-content .btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-top: 0;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: auto;
}

.home-custom .exam-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43, 170, 225, 0.3);
}

/* Placeholder görseller için stil */
.home-custom .exam-image:empty::before {
  content: "📝";
  font-size: 3rem;
  color: #6c757d;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  .home-custom .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  
  /* Mobilde kartları ortala */
  .home-custom .row {
    justify-content: center;
    align-items: center;
  }
  
  .home-custom .col-md-4 {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .home-custom .card,
  .home-custom .exam-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }
  
  .home-custom .input-group {
    flex-direction: column;
    border-radius: 5px;
  }
  
  .home-custom .form-control {
    border-radius: 5px;
    margin-bottom: 0.5rem;
    border: 2px solid #e9ecef;
  }
  
  .home-custom .input-group .btn {
    border-radius: 5px;
    border: 2px solid #2baae1;
  }
}

/* Özel mobil ortalama - daha küçük ekranlar için */
@media (max-width: 480px) {
  .home-custom .card,
  .home-custom .exam-card {
    max-width: 320px;
    margin: 0 auto 1.5rem auto;
  }
  
  .home-custom .col-md-4 {
    padding: 0 10px;
  }
}

/* ANA SAYFA FOOTER LİNKLERİ - BEYAZ MAVİ */
.home #site-bottom .site-info a {
  color: #fff !important;
}

.home #site-bottom .site-info a:hover {
  color: #2baae1 !important;
}

.home #site-bottom .footer-nav li a {
  color: #fff !important;
}

.home #site-bottom .footer-nav li a:hover {
  color: #2baae1 !important;
}

/* Mobil ve masaüstü için aynı renkler */
@media (max-width: 768px) {
  .home #site-bottom .site-info a {
    color: #fff !important;
  }
  
  .home #site-bottom .site-info a:hover {
    color: #2baae1 !important;
  }
  
  .home #site-bottom .footer-nav li a {
    color: #fff !important;
  }
  
  .home #site-bottom .footer-nav li a:hover {
    color: #2baae1 !important;
  }
}

/* TÜM LİNKLERDEKİ KARE ÇERÇEVE KALDIRMA */
.home-custom a,
.home-custom a:focus,
.home-custom a:active,
.home-custom button,
.home-custom button:focus,
.home-custom button:active,
.home-custom input,
.home-custom input:focus,
.home-custom input:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Genel outline kaldırma - tüm sayfa için */
* {
  outline: none !important;
}

*:focus {
  outline: none !important;
  box-shadow: none !important;
}

a, a:focus, a:active {
  outline: none !important;
  box-shadow: none !important;
}

button, button:focus, button:active {
  outline: none !important;
  box-shadow: none !important;
}

input, input:focus, input:active {
  outline: none !important;
  box-shadow: none !important;
}