/* === GENERAL RESET === */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #e8f5e9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
}

.navbar-brand img {
  max-height: 60px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32 !important;
  transition: color 0.3s ease-in-out;
}

.nav-link:hover {
  color: #1b5e20 !important;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  width: 100%;
  max-height: 100vh;
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: #f0f0f0;
}

.hero .carousel-item img {
  display: block;
  width: 100%;
  max-height: 100vh;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s ease-in-out;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 10px;
}

@media (max-width: 768px) {
  .hero .carousel-item img {
    max-height: 300px;
    width: 100%;
  }
}

video {
  object-fit: cover;
  height: 100%;
}

/* === SECTION STYLES === */
section {
  padding: 60px 0;
}

section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #388e3c;
  position: relative;
}

#faaliyetlerimiz .card-title {
  font-weight: bold;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card img {
  height: 200px;
  object-fit: cover;
}

#medya-galerisi .carousel-item img {
  object-fit: cover;
  height: 300px;
}

@media (max-width: 768px) {
  #medya-galerisi .carousel-item img {
    height: 200px;
  }
}
#videoCarousel video {
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 768px) {
  #videoCarousel video {
    height: 200px;
  }
}

/* === HAKKIMIZDA === */
#hakkimizda p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

/* === CONTACT SECTION === */
.contact-info {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.contact-info strong {
  color: #333;
}

.btn-whatsapp {
  background-color: #25d366;
  border: none;
  transition: background-color 0.3s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebe5b;
}

/* === FOOTER === */
.footer {
  background-color: #2e7d32;
  font-size: 15px;
  padding: 1.5rem 0;
  color: #fff;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.footer-link:hover {
  color: #a5d6a7;
  text-decoration: underline;
}

.footer-icon {
  color: #ffffff;
  font-size: 1.2rem;
  margin-left: 8px;
  transition: color 0.2s ease-in-out;
}

.footer-icon:hover {
  color: #81c784;
}

.footer img {
  background-color: white;
  border-radius: 4px;
  padding: 2px;
}

/* === SCROLL TO TOP === */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 25px;
  z-index: 1000;
  background-color: #2e7d32;
  color: #fff;
  border: none;
  padding: 5px 6px;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: opacity 0.3s ease;
}

.scroll-top-btn:hover {
  background-color: #1b5e20;
}

/* === DASHBOARD LAYOUT === */
.dashboard-wrapper {
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - 70px);
  gap: 1rem;
  position: relative;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.main-content {
  flex-grow: 1;
}

.sidebar {
  width: 250px;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  min-height: 100%; /* Bunu koruyalım, içerik yüksekliğini korur */
}

.sidebar-right {
  width: 250px;
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
}

.sidebar h5,
.sidebar-right h5 {
  margin-bottom: 1rem;
}

.sidebar a.nav-link {
  color: #2e7d32;
  padding: 5px 10px;
  display: block;
  font-weight: 500;
}

.sidebar a.nav-link:hover {
  background-color: #e0f2f1;
  border-radius: 4px;
}

/* === RESPONSIVE DASHBOARD === */
@media (max-width: 768px) {
  .sidebar {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 999;
    width: 80%;
    max-width: 250px;
    background: #f8f9fa;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
    border-radius: 0 10px 10px 0;
  }

  .sidebar.mobile-visible {
    display: block !important;
  }

  .sidebar-right {
    display: none;
  }
}

/* Masaüstü Ana İçerik Boşluk Ayarı (Desktop Main Content Spacing) */
.main-content-area {
    padding-top: 0 !important; 
    margin-top: 0 !important;   
    
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

@media (min-width: 768px) { 
    .main-content-area {
        padding-top: 0.75rem !important;
    }
}

@media (max-width: 767.98px) { 
    .main-content-area {
        padding-top: 1rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.form-control {
  border: 1px solid #2f7245 !important;
  box-shadow: none;
  border-radius: 10px;
}

.form-control:focus {
  border-color: #495057 !important;
  box-shadow: 0 0 0 0.1rem rgba(108, 117, 125, 0.25);
}

/* Mobile sidebar behavior */
#adminSidebar {
  transition: transform 0.3s ease-in-out;
}
.sidebar a, .sidebar .nav-link {
  color: inherit;
  display: block;
}

@media (max-width: 768px) {
  #adminSidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #592727;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    transform: translateX(-100%);
    z-index: 1045;
  }

  #adminSidebar.open {
    transform: translateX(0);
  }

  body.sidebar-open {
    overflow: hidden;
  }
}

/* Bu yeni kuralı ekleyin */
.row.align-items-start { /* base.html'deki .row */
    min-height: auto !important;
    height: auto !important;
}

/* Bu kuralı da ekleyin */
.row.d-flex { /* Bootstrap'in flex row'ları için genel sıfırlama */
    min-height: auto !important;
    height: auto !important;
}
