/* Instagram Grid Responsive */
.instagram-embeds-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2rem;
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .instagram-embeds-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 992px) {
  .instagram-embeds-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.instagram-embed {
  width: 100%;
  display: flex;
  justify-content: center;
}
@media (min-width: 768px) {
  .instructor-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 4%; /* yatayda ve dikeyde boşluk */
  }
  .instructor-card {
    flex: 0 0 48%;
    max-width: 48%;
    margin: 0;
  }
}
/* ===================== */
/* Instructor Card Responsive Width & Image Sizing */
/* ===================== */

.instructor-card {
  width: 100%;
}
@media (min-width: 768px) {
  .instructor-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem 2%; /* yatayda boşluk, dikeyde boşluk */
  }
  /* .instructor-card genişlik ayarı kaldırıldı */
  .instructor-card {
    width: 100%;
  }
  .instructor-img-fixed {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center;
  }
}
/* ===================== */
/* Education Card Responsive Width */
/* ===================== */

.education-card-width {
  max-width: 700px;
  width: 100%;
}
@media (min-width: 993px) {
  .education-card-width {
    max-width: 85%;
  }
}
/* ===================== */
/* Education Table Border Radius */
/* ===================== */

/* Tüm tablo köşelerine radius uygula */
.education-table-radius {
  border-radius: 1rem !important;
  overflow: hidden;
}
.education-table-radius thead > tr:first-child > th:first-child {
  border-top-left-radius: 1rem;
}
.education-table-radius thead > tr:first-child > th:last-child {
  border-top-right-radius: 1rem;
}
.education-table-radius tbody > tr:last-child > td:first-child {
  border-bottom-left-radius: 1rem;
}
.education-table-radius tbody > tr:last-child > td:last-child {
  border-bottom-right-radius: 1rem;
}
/* ===================== */
/* Education Card Margin (navbar ile çakışmayı önler) */
/* ===================== */

.education-hero-margin {
  margin-top: 7.5rem !important;
}
/* ===================== */
/* Navbar ve Menü Stilleri */
/* ===================== */

/* Şeffaf ve gölgesiz navbar */
.custom-navbar,
.card {
  background-color: rgba(0, 0, 0, 0);
  box-shadow: none;
  --bs-card-border-width: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Navbar linkleri */
.custom-navbar .nav-link {
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 12px !important;
}
.custom-navbar .nav-link.active,
.custom-navbar .card .nav-link:active {
  background-color: #fff !important;
  color: #222 !important;
  border-radius: 0.5rem;
}
.custom-navbar .nav-link.active:hover,
.custom-navbar .nav-link:active:hover {
  color: #111 !important;
  background-color: #f8f9fa !important;
}
.custom-navbar .navbar-brand {
  font-size: 18px !important;
}
/* Scroll öncesi hover */
.custom-navbar:not(.scrolled) .nav-link:hover,
.custom-navbar:not(.scrolled) .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.8);
  color: #000 !important;
}
/* Scroll sonrası hover */
.custom-navbar.scrolled .nav-link:hover,
.custom-navbar.scrolled .nav-link:focus {
  background-color: rgba(0, 0, 0, 0.1);
  color: #000 !important;
}
.custom-navbar .nav-link.active {
  background-color: rgba(0, 0, 0, 0.15);
  color: #000 !important;
}
.custom-navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.custom-navbar.scrolled .nav-link {
  color: #000 !important;
}
.custom-navbar.scrolled .nav-link.active {
  color: #000 !important;
}
.custom-navbar.scrolled .navbar-brand {
  color: #000 !important;
}

/* Navbar toggler ikon ve buton renkleri */
.navbar-dark .navbar-toggler-icon,
[data-bs-theme="dark"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-dark .navbar-toggler,
[data-bs-theme="dark"] .navbar-toggler {
  border-color: #fff !important;
}
.custom-navbar.scrolled .navbar-toggler {
  border-color: #000 !important;
}
.custom-navbar.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280,0,0,1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-toggler:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* Navbar açıldığında içerik aşağı kayar */
body.navbar-open .container {
  margin-top: 320px;
  transition: margin-top 0.3s;
}

/* ===================== */
/* Arka Plan ve Genel Yardımcı Sınıflar */
/* ===================== */

.bg-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("../assets/img/climbinnheader.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -1;
}
.bg-section-education {
  background-image: url("../assets/img/climbinnheaderTech.png");
}
.mt-7 {
  margin-top: 6rem !important;
}
.mt-8 {
  margin-top: 8rem !important;
}

/* ===================== */
/* Footer Stilleri */
/* ===================== */

footer .nav-link {
  color: white !important;
  font-size: 12px !important;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s, color 0.3s;
}
footer .nav-link:hover,
footer .nav-link:focus {
  background-color: rgba(255, 255, 255, 0.1);
}
footer .text-white-50 {
  font-size: 12px !important;
}

/* ===================== */
/* Modal ve Oyun Kartı Stilleri */
/* ===================== */

#gameModal .modal-dialog {
  z-index: -1;
}
#gameModal .modal-content {
  margin-top: 120px;
}
.custom-modal {
  background-color: rgba(226, 208, 178, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
  border: none;
}
.modal-dialog-fullscreen {
  margin: auto;
  width: 70%;
  max-width: 90%;
  height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* reusable utility */
.muted-on-dark {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.45);
}

/* Prevent the utility from forcing color into tabular or form UI elements
   when it's applied at a container level. Keep table cells and captions
   using their own styles (browser/default or site table rules). */
.muted-on-dark table,
.muted-on-dark thead,
.muted-on-dark tbody,
.muted-on-dark tr,
.muted-on-dark th,
.muted-on-dark td,
.muted-on-dark caption,
.muted-on-dark .table {
  color: initial;
  text-shadow: none;
}

/* If you prefer tables to follow a specific color inside dark cards,
   set that explicitly instead of inheriting the muted-on-dark color. */

/* Light-weight form text shadow and visibility for muted-on-dark containers
   - use 0 2px 3px for text-shadow (less "boğuk")
   - placeholders and typed text get subtle shadows for legibility */
.muted-on-dark .form-control,
.muted-on-dark textarea.form-control,
.muted-on-dark .form-select {
  background-color: transparent; /* keep input bg transparent */
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.12);
  background-clip: padding-box;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.6); /* lighter shadow */
}

.muted-on-dark .form-control::placeholder,
.muted-on-dark textarea.form-control::placeholder {
  color: rgba(255, 255, 255, 0.58);
  opacity: 1;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}
.muted-on-dark .form-control::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.58);
}
.muted-on-dark .form-control:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.58);
}
.muted-on-dark .form-control::-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.muted-on-dark .form-control:focus,
.muted-on-dark textarea.form-control:focus,
.muted-on-dark .form-select:focus {
  color: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0.32rem rgba(255, 255, 255, 0.06),
    0 0.75rem 1.25rem rgba(0, 0, 0, 0.22);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.68);
  outline: none;
}
