/* ===== INDEX PAGE ===== */

/* Exam Icons Section */
#exam-icons {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
}

#exam-icons .section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
  letter-spacing: -0.02em;
}

#exam-icons p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.exam-icon {
  text-decoration: none;
  color: inherit;
  background: white;
  padding: 20px 15px;
  border-radius: 20px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.15);
  height: 100%;
}

body.dark-theme .exam-icon {
  background: var(--surface-soft);
  border-color: var(--surface-soft);
}

.exam-icon:hover {
  transform: translateY(-5px);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border-color: var(--primary);
  text-decoration: none;
  color: inherit;
}

body.dark-theme .exam-icon:hover {
  border-color: var(--light);
}

.exam-icon-emoji {
  font-size: 36px;
  margin-bottom: 10px;
}

.exam-icon strong {
  font-size: 15px;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 4px;
}

body.dark-theme .exam-icon strong {
  color: var(--light);
}

.exam-icon span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Why Choose Section */
#why-choose {
  padding: 80px 0;
}

#why-choose .section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

#why-choose p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* About Short Section */
#about-short {
  padding: 60px 0;
}

.about-short-card {
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  text-align: center;
}

body.dark-theme .about-short-card {
  background: var(--surface-soft);
  border-color: var(--nav-border);
}

.about-short-card .section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 25px;
  letter-spacing: -0.02em;
}

.about-short-card p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-short-card p:last-of-type {
  margin-bottom: 30px;
}

/* CTA Section */
#cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: white;
  position: relative;
}

#cta-section .jarallax-img {
  background-image: url('../img/about2.webp');
  background-size: cover;
  background-position: center;
}

#cta-section .parallax-overlay {
  background: rgba(0, 0, 0, 0.65) !important;
}

#cta-section .parallax-content {
  position: relative;
  z-index: 2;
}

#cta-section h2 {
  color: white;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

#cta-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Landing */
.landing {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  pointer-events: auto;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.slide-1 { background-image: url('../img/landing-bg1.webp'); }
.slide.slide-2 { background-image: url('../img/landing-bg2.webp'); }
.slide.slide-3 { background-image: url('../img/landing-bg3.webp'); }

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.slide-caption {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 24px 28px;
  border-radius: 20px;
  max-width: 750px;
  max-height: 90%;
  text-align: left;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: translateZ(0);
  pointer-events: auto;
  overflow-y: auto;
}

body.dark-theme .slide-caption {
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(30, 64, 175, 0.6);
}

body.dark-theme .slide-caption .pill {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text);
}

body.dark-theme .slide-caption h1 {
  color: var(--text);
}

body.dark-theme .slide-caption p {
  color: #cbd5f5;
}

body.dark-theme #exam-icons {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.35) 0%, rgba(29, 78, 216, 0.35) 100%);
}

body.dark-theme #why-choose,
body.dark-theme #about-short {
  background: transparent;
}

body.dark-theme .section-title {
  color: var(--text);
}

/* Ensure hero section titles are bright in dark mode */
body.dark-theme #exam-icons .section-title,
body.dark-theme #why-choose .section-title,
body.dark-theme .about-short-card .section-title {
  color: var(--text);
}

.slide-caption .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #0b1020;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 12px;
  margin-bottom: 14px;
}

.slide-caption h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--dark);
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.slide-caption p {
  font-size: 16px;
  color: rgba(11, 16, 32, 0.75);
  margin: 0 0 20px;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Partners */
.partners {
  padding: 48px 0;
  text-align: center;
}

.logo-strip {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  opacity: 0.7;
}

.logo-strip img {
  height: 40px;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.logo-strip img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Highlights */
.highlights {
  padding: 64px 0 72px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.card {
  background: var(--white);
  border-radius: 20px;
  padding: 0;
  transition: transform 0.18s ease, box-shadow 0.25s, background 0.25s;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

body.dark-theme .card {
  background: var(--surface-soft);
  border-color: var(--nav-border);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card .btn {
  margin-top: auto;
  width: auto;
  align-self: flex-start;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #fff 100%);
}

.card h3 {
  color: var(--dark);
  font-size: clamp(20px, 2.2vw, 24px);
  margin: 0 0 12px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-content p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 16px;
}

/* Projects */
.projects {
  padding: 24px 0 72px;
}

.projects h2 {
  color: var(--dark);
  font-size: clamp(28px, 3.5vw, 36px);
  margin: 0 0 12px;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.project-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.25s, border-color 0.25s;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #16a34a;
  color: var(--white);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  flex-shrink: 0;
}

.ribbon.muted {
  background: #9ca3af;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.project-card h3 {
  color: var(--dark);
  line-height: 1.3;
  font-size: 20px;
  padding: 20px 20px 4px 20px;
  flex-shrink: 0;
}

.project-card p {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 15px;
  padding: 4px 20px;
  flex-shrink: 0;
}

.project-card .btn {
  margin: 4px 10px 10px 10px;
  margin-top: auto;
  flex-shrink: 0;
  width: auto;
  align-self: flex-start;
}

/* Careers Apply Section */
.careers-apply-section {
  width: 100%;
  padding: 64px 0;
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: visible;
  z-index: 1;
}

.careers-apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  position: relative;
}

.careers-apply-image {
  width: 100%;
  height: auto;
  overflow: visible;
  display: flex;
  align-items: center;
  margin-top: -100px;
  position: relative;
  z-index: 2;
}

.careers-apply-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.careers-apply-form {
  padding: 48px;
  color: var(--white);
}

.careers-apply-form h2 {
  color: var(--white);
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: 700;
}

.careers-apply-form > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.careers-apply-form .form-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.careers-apply-form .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.careers-apply-form .form-group {
  margin-bottom: 24px;
}

.careers-apply-form .form-group label {
  display: block;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  font-size: 15px;
}

.careers-apply-form .form-group input,
.careers-apply-form .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: all 0.3s ease;
  background: var(--white);
}

.careers-apply-form .form-group input:focus,
.careers-apply-form .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.careers-apply-form .form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.careers-apply-form .form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.careers-apply-form .form-status {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.careers-apply-form .form-status.success {
  color: var(--light);
}

.careers-apply-form .form-status.error {
  color: #ff6b6b;
}

/* Parallax Section */
.parallax-section {
  width: 100%;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.parallax-section .jarallax-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.parallax-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 60px 20px;
  width: 100%;
}

#cta-section .parallax-content .container {
  width: 100%;
}

#cta-section .parallax-content .row {
  justify-content: center;
}

#cta-section .parallax-content .col-lg-8 {
  text-align: center;
}

.parallax-content h2 {
  font-size: 36px;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.parallax-content p {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .slide-caption {
    padding: 28px 32px;
    max-width: 680px;
  }
  
  .slide-caption h1 {
    font-size: clamp(24px, 3.5vw, 36px);
  }
  
  #exam-icons {
    padding: 50px 0;
  }
  
  #why-choose {
    padding: 70px 0;
  }
  
  #about-short {
    padding: 50px 0;
  }
  
  .highlights {
    padding: 48px 0 56px;
  }
  
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .careers-apply-section {
    padding: 48px 0;
  }
  
  .careers-apply-form {
    padding: 40px 32px;
  }
  
  .parallax-content {
    padding: 60px 20px;
  }
  
  .parallax-content h2 {
    font-size: 32px;
  }
  
  .parallax-content p {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  /* Mobilde landing: arka plan resmi yok, overlay kapalı, düz beyaz arka plan */
  .landing .carousel {
    background-color: var(--white);
    height: auto;
    overflow: hidden;
    box-shadow: none;
  }
  .landing .carousel .slide {
    background-image: none !important;
    background-color: var(--white);
    filter: none;
  }
  .landing .carousel .slide-overlay {
    background: transparent;
  }
  /* Mobilde carousel yüksekliği içerikten gelsin: aktif slide akışta */
  .landing .carousel .slide {
    position: absolute;
    inset: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    min-height: 0;
  }
  .landing .carousel .slide.active {
    position: relative;
    width: 100%;
  }
  .landing .slide-caption {
    max-height: none;
    backdrop-filter: none;
  }

  .slide-caption {
    padding: 24px 20px;
    margin: 0 16px;
    border-radius: 20px;
  }
  
  .slide-caption h1 {
    font-size: clamp(22px, 4.5vw, 32px);
    margin-bottom: 12px;
  }
  
  .slide-caption p {
    font-size: 15px;
    margin-bottom: 16px;
  }
  
  #exam-icons {
    padding: 40px 0;
    background: none;
  }
  
  #why-choose {
    padding: 60px 0;
  }
  
  #about-short {
    padding: 40px 0;
  }
  
  .about-short-card {
    padding: 40px 30px;
  }
  
  #cta-section h2 {
    font-size: clamp(24px, 3vw, 36px);
  }
  
  #cta-section p {
    font-size: 16px;
  }
  
  .cta-row {
    gap: 10px;
    margin-top: 16px;
  }
  
  .highlights {
    padding: 40px 0 48px;
  }
  
  .cards,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .card-image {
    height: 160px;
  }
  
  .card h3 {
    font-size: clamp(18px, 2vw, 22px);
  }
  
  .projects {
    padding: 20px 0 48px;
  }
  
  .projects h2 {
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 20px;
  }
  
  .project-card h3 {
    font-size: 18px;
    padding: 16px 16px 4px;
  }
  
  .project-card p {
    font-size: 14px;
    padding: 4px 16px;
  }
  
  .exam-icon {
    padding: 16px 12px;
  }
  
  .exam-icon-emoji {
    font-size: 32px;
    margin-bottom: 8px;
  }
  
  .exam-icon strong {
    font-size: 14px;
  }
  
  .exam-icon span {
    font-size: 10px;
  }
  
  .careers-apply-section {
    padding: 40px 0;
  }
  
  .careers-apply-grid {
    grid-template-columns: 1fr;
  }
  
  .careers-apply-image {
    margin-top: 0;
  }
  
  .careers-apply-image img {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  
  .careers-apply-form {
    padding: 32px 20px;
  }
  
  .careers-apply-form h2 {
    font-size: 28px;
  }
  
  .careers-apply-form > p {
    font-size: 16px;
  }
  
  .careers-apply-form .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .careers-apply-form .form-card {
    padding: 24px 20px;
  }
  
  .parallax-section {
    min-height: 220px;
  }
  
  .parallax-content {
    padding: 50px 20px;
  }
  
  .parallax-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .parallax-content p {
    font-size: 15px;
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .slide-caption {
    padding: 20px 16px;
    margin: 12px 6px;
    border-radius: 20px;
  }
  
  .slide-caption h1 {
    font-size: clamp(20px, 5vw, 28px);
    margin-bottom: 10px;
  }
  
  .slide-caption p {
    font-size: 14px;
    margin-bottom: 14px;
  }
  
  .cta-row {
    flex-direction: column;
    gap: 8px;
  }
  
  .cta-row .btn {
    width: 100%;
  }
  
  #exam-icons {
    padding: 32px 0;
    background: none;
  }
  
  .exam-icon {
    padding: 14px 10px;
  }
  
  .exam-icon-emoji {
    font-size: 28px;
  }
  
  .about-short-card {
    padding: 32px 20px;
  }
  
  .parallax-section {
    min-height: 200px;
  }
  
  .parallax-content {
    padding: 40px 16px;
  }
  
  .parallax-content h2 {
    font-size: 20px;
  }
  
  .parallax-content p {
    font-size: 14px;
  }
}
