/*--------------------------------------------------------------
# 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.5;
}

.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: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
  width: 100%;
}

.home-custom .seo-section .btn {
  display: block;
  margin: 0 auto;
  width: fit-content;
}

.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 .ad-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-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.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-card:hover .exam-image img {
  transform: scale(1.08);
}

.home-custom .exam-content {
  padding: 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: 1rem;
  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;
  }
  
  .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;
  }
}