/* İzfen Koleji - Laravel sürümü için ek stiller (kırmızı/beyaz tema) */

/* Tüm başlıklar: Cinzel + koyu mavi. (.hero-slider .caption h2 gibi daha
   spesifik kurallar burada override edilmiyor, kendi rengini korur.) */
h1, h2, h3 {
  font-family: 'Cinzel', serif;
  color: #16284a;
}

#logo { display: flex; align-items: center; height: 100%; }
#logo img { max-height: 68px; width: auto; }
@media (max-width: 767px) {
  #logo img { max-height: 46px; }
}

.site-navbar { border: none; background: transparent; box-shadow: none; margin-bottom: 0; }
.site-navbar .navbar-nav > li > a { font-weight: 600; }
.site-navbar .btn-onkayit {
  background: #dc5b5b;
  color: #fff !important;
  border-radius: 4px;
  padding: 8px 18px !important;
}
.site-navbar .btn-onkayit:hover { background: #c15050; }

/* Navbar taşması / bozuk görünüm düzeltmesi:
   Menüde çok sayıda üst seviye öğe olduğu için 1400px altında her zaman
   hamburger menüye düşürüyoruz, yatay taşıp alt satıra kaymasını engelliyoruz. */
@media (max-width: 1399px) {
  .site-navbar .navbar-header { float: none; }
  .site-navbar .navbar-toggle { display: block; }
  .site-navbar .navbar-collapse.collapse { display: none !important; }
  .site-navbar .navbar-collapse.collapse.in { display: block !important; }
  .site-navbar .navbar-nav { float: none; margin: 0; }
  .site-navbar .navbar-nav > li { float: none; }
  .site-navbar .navbar-nav > li > a { padding-top: 12px; padding-bottom: 12px; }
  .site-navbar .navbar-collapse { border-top: 1px solid rgba(0,0,0,.08); box-shadow: none; max-height: 70vh; overflow-y: auto; }
  .site-navbar .dropdown-menu { position: static; float: none; box-shadow: none; border: none; background: rgba(0,0,0,.02); }
}
@media (min-width: 1400px) {
  /* Tüm menü öğelerini tek satırda, navbar ile aynı hizada tutmak için flex
     kullanıyoruz; böylece "Ön Kayıt" butonu asla alt satıra düşmüyor. */
  .site-navbar .navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    float: none;
  }
  .site-navbar .navbar-nav > li { float: none; }
  .site-navbar .navbar-nav > li > a {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
    white-space: nowrap;
  }
  .site-navbar .navbar-nav > li:last-child { margin-left: 8px; }
  .site-navbar .navbar-nav > li:last-child > a.btn-onkayit {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* Owl Carousel eklentisi JS ile "owl-loaded" sınıfı eklenene kadar
   .owl-carousel öğesini display:none yapıyor. JS herhangi bir sebeple
   çalışmazsa slider tamamen kaybolmasın diye, JS devreye girene kadar
   ilk slaytı düz CSS ile gösteriyoruz. */
.hero-slider.owl-carousel { display: block; }
.hero-slider.owl-carousel:not(.owl-loaded) .item { display: none; }
.hero-slider.owl-carousel:not(.owl-loaded) .item:first-child { display: block; }

.hero-slider .item { position: relative; overflow: hidden; }
.hero-slider .item img {
  width: 100%;
  height: 100vh;
  min-height: 480px;
  object-fit: cover;
  animation: heroKenBurns 9s ease-in-out infinite alternate;
}
@media (max-width: 767px) {
  .hero-slider .item img { height: 70vh; min-height: 380px; }
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}
.hero-slider .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0; top: 0;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-slider .caption .inner { max-width: 640px; padding: 0 60px; }
.hero-slider .caption h2 { color: #fff; font-size: 44px; margin-bottom: 14px; text-shadow: 0 2px 10px rgba(0,0,0,.65), 0 0 2px rgba(0,0,0,.5); }
.hero-slider .caption p { color: #fff; font-size: 17px; text-shadow: 0 1px 6px rgba(0,0,0,.65), 0 0 2px rgba(0,0,0,.5); }
@media (max-width: 767px) {
  .hero-slider .caption .inner { padding: 0 30px; }
  .hero-slider .caption h2 { font-size: 28px; }
}
.section-title-sm { text-transform: uppercase; letter-spacing: .08em; color: #dc5b5b; font-weight: 700; font-size: 13px; }
.cta-section { margin-bottom: 50px; }
@media (max-width: 767px) {
  .cta-section { margin-bottom: 30px; }
}
.news-card, .campus-card, .school-card { height: 100%; }
.news-card img, .campus-card img, .school-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .5s ease;
}
.news-card:hover img, .campus-card:hover img, .school-card:hover img { transform: scale(1.08); }
.staff-grid.row { display: flex; flex-wrap: wrap; }
.staff-grid.row > div { display: flex; }

@media (max-width: 767px) {
  .staff-grid.row > div { width: 100%; flex: 0 0 100%; max-width: 100%; }
}
.staff-card {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(20, 20, 20, .08);
  transition: transform .25s ease, box-shadow .25s ease;
  border: none !important;
  background: #fff;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.staff-card > .stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.staff-card .body .staff-email { position: relative; z-index: 2; }
.staff-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(20, 20, 20, .14);
}
.staff-card .overlay-container {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f9fb 0%, #eef0f3 100%);
  padding: 36px 0 30px;
  text-align: center;
}
.staff-card .overlay-container:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 58%;
  width: 230px;
  height: 152px;
  transform: translate(-50%, -50%);
  background-image: url('../images/logo-original.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 1;
}
.staff-card .overlay-container img {
  position: relative;
  z-index: 1;
  width: 176px;
  height: 176px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 10px 24px rgba(20, 20, 20, .16);
  transition: transform .4s ease;
}
.staff-card:hover .overlay-container img { transform: scale(1.06); }
.staff-card .body {
  padding: 22px 22px 26px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.staff-card .body .staff-email { margin-top: auto; padding-top: 10px; }
.staff-card .body h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #16284a;
}
.staff-card .body h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #dc5b5b;
  background: rgba(220, 91, 91, .09);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  margin: 0 0 14px;
}
.staff-card .body p { margin: 0; }
.staff-card .body p .btn-default {
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 20px;
  border-color: #e4e4e4;
}
.staff-card .body p .btn-default:hover { border-color: #dc5b5b; }
.staff-detail-photo {
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 10px 24px rgba(20, 20, 20, .16);
}
.staff-detail-title {
  font-family: 'Raleway', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #dc5b5b;
  background: rgba(220, 91, 91, .09);
  display: inline-block;
  padding: 7px 18px;
  border-radius: 20px;
  margin: 10px 0 18px;
}
.gallery-thumb img { width: 100%; height: 220px; object-fit: cover; }
.page-rich-content img { max-width: 100%; height: auto; }
.page-content-image { margin-bottom: 24px; }
.page-content-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
}
.brochure-frame { width: 100%; height: 800px; border: 1px solid #ddd; }

.forma-table { margin-bottom: 30px; }
.forma-table th, .forma-table td { vertical-align: middle; padding: 12px 14px; }
.forma-table thead th { background: #16284a; color: #fff; font-weight: 600; }
.forma-table td:first-child { background: #f7f7f7; font-weight: 700; white-space: nowrap; }

/* ---------------------------------------------------------------
   Genel tasarım cilası: tipografi, boşluk düzeni, kart/buton detayları
   --------------------------------------------------------------- */

/* Bölüm başlıkları: "İzfen Koleji / Okullarımız" gibi ikili başlık bloğu */
.section-title-sm {
  position: relative;
  display: inline-block;
}
.text-center .section-title-sm { display: block; }
.section > .container > .text-center.mb-30,
.section > .container > .row > .text-center.mb-30 { margin-bottom: 44px !important; }
.section .text-center.mb-30 h2 {
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -.01em;
  margin-top: 6px;
  position: relative;
  padding-bottom: 18px;
}
.section .text-center.mb-30 h2:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 46px;
  height: 3px;
  background: #dc5b5b;
  border-radius: 2px;
}

/* Bölümler arası dikey ritim biraz daha ferah olsun */
.section.pv-40 { padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 767px) {
  .section.pv-40 { padding-top: 42px; padding-bottom: 42px; }
}

/* Kartlar: okul / haber / kampüs kutuları — yumuşak gölge + hover kaldırma efekti */
.school-card, .news-card, .campus-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(20, 20, 20, .07);
  transition: transform .25s ease, box-shadow .25s ease;
  border: none !important;
}
.school-card:hover, .news-card:hover, .campus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(20, 20, 20, .13);
}
.school-card .body, .news-card .body, .campus-card .body { padding: 22px 20px; }
.school-card h4, .news-card h5, .campus-card h5 {
  font-weight: 700;
  margin-bottom: 10px;
}
.news-card h5 a { color: inherit; }
.news-card h5 a:hover { color: #dc5b5b; }

/* Butonlar: kırmızı temaya uyumlu, yumuşak köşe ve geçiş */
.btn-default {
  border-radius: 4px;
  transition: all .2s ease;
}
.btn-default:hover {
  background: #dc5b5b;
  border-color: #dc5b5b;
  color: #fff;
  transform: translateY(-1px);
}
.btn-animated { border-radius: 4px; }

/* ---------------------------------------------------------------
   Footer: koyu lacivert zemin, ortada logo + renkli sosyal ikonlar
   --------------------------------------------------------------- */
.site-footer {
  background: #101d38;
  border-top: 4px solid #dc5b5b;
}

.site-footer .footer-top {
  padding: 44px 0 8px;
  background: linear-gradient(180deg, #16284a 0%, #101d38 100%);
}
.site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  padding: 14px 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .25s ease;
}
.site-footer .footer-logo:hover { transform: translateY(-3px); }
.site-footer .footer-logo img { max-height: 56px; width: auto; }

.site-footer .footer-social {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0;
}
.site-footer .footer-social li { display: inline-block; margin: 0 6px; }
.site-footer .footer-social li a {
  width: 42px;
  height: 42px;
  line-height: 42px;
  display: block;
  border-radius: 50%;
  text-align: center;
  font-size: 17px;
  color: #fff;
  background: rgba(255,255,255,.1);
  border: none;
  transition: all .25s ease;
}
.site-footer .footer-social li a i { line-height: 42px; }
.site-footer .footer-social li.facebook a:hover { background: #3b5998; transform: translateY(-3px); }
.site-footer .footer-social li.youtube a:hover { background: #ff0000; transform: translateY(-3px); }
.site-footer .footer-social li.instagram a:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  transform: translateY(-3px);
}

.site-footer .footer {
  background: transparent;
  padding: 44px 0 20px;
}
.site-footer .footer h4 {
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  letter-spacing: .03em;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}
.site-footer .footer h4:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: #dc5b5b;
}
.site-footer .footer p,
.site-footer .footer li { color: rgba(255,255,255,.65); }
.site-footer .footer a { color: rgba(255,255,255,.65); transition: color .2s ease, padding-left .2s ease; }
.site-footer .footer li a:hover { color: #fff; padding-left: 4px; }
.site-footer .footer .list-unstyled li { margin-bottom: 8px; }

.site-footer .sub-footer {
  background: #0b1428;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.site-footer .sub-footer .copyright { color: rgba(255,255,255,.5); margin: 0; font-size: 13px; }
.site-footer .sub-footer .copyright a { color: rgba(255,255,255,.8); }
.site-footer .sub-footer .copyright a:hover { color: #dc5b5b; }
