/* ========================================
   COMPONENTS STYLES
   Combines Navbar, Footer, and Sidebar
   ======================================== */

:root {
  --primary-color: #14213D; /* Navy Blue */
  --secondary-color: #D4AF37; /* Gold */
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --bg-light: #F4F4F4;
  --border-color: #e0e0e0;
  --hover-color: #D4AF37; /* Gold for hover */
}

/* ========================================
   NAVBAR STYLES
   ======================================== */

/* Navbar Container Placeholder for Sticky Behavior */
#navbar-placeholder {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background-color: var(--primary-color); /* Navy Blue background */
  border-bottom: 1px solid var(--secondary-color); /* Gold border */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--secondary-color); /* Gold brand */
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* Logo eklendiğinde devreye girecek ayar */
.navbar-brand img {
  max-height: 70px; /* Logo boyutu artırıldı (45px -> 70px) */
  width: auto;      /* Genişlik orantılı kalır */
  display: block;
}

.navbar-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--white);
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--secondary-color);
}

.nav-link.active {
  color: var(--secondary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--secondary-color);
}

/* DROPDOWN */
.nav-item.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.6rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-color); /* Navy bg */
  border: 1px solid var(--secondary-color); /* Gold border */
  border-radius: 4px;
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Invisible bridge to prevent menu from closing when moving mouse from link to menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -0.5rem; /* Matches the top margin */
  left: 0;
  width: 100%;
  height: 0.5rem;
  background-color: transparent;
}

.dropdown.active .dropdown-menu {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--white); /* White text */
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.05); /* Soft separator */
}

.dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--secondary-color); /* Gold text */
  padding-left: 2rem;
}

/* Hover effect for desktop */
@media (min-width: 769px) {
  .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease;
  }
  
  .nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

.dropdown.active .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* MOBILE MENU TOGGLE */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.navbar-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color); /* Gold toggle icons */
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer {
  background-color: var(--primary-color); /* Navy Blue */
  border-top: 1px solid var(--secondary-color); /* Gold border */
  margin-top: 4rem;
  padding: 3rem 0 0 0;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Footer Menu Section */
.footer-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  justify-items: center;
}

.footer-menu-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-menu-column h4 {
  font-size: 0.95rem;
  color: var(--secondary-color); /* Gold headers */
  margin: 0 0 1rem 0;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: left;
}

.footer-menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start; 
  text-align: left;
  width: 100%;
}

.footer-menu-column li {
  margin: 0;
  display: flex;
  align-items: center;
  position: relative;
}

/* Küçük Üçgen İkonu */
.footer-menu-column li::before {
  content: '\f0da'; /* FontAwesome Caret Right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--secondary-color); /* İkon rengi - Altın */
  margin-right: 8px;
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.footer-menu-column li:hover::before {
  color: #fff; /* Hoverda beyaz olsun - opsiyonel */
}

.footer-menu-column a {
  color: #a0a8b0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-menu-column a:hover {
  color: var(--secondary-color); /* Hover rengi altın */
  padding-left: 2px; /* Hafif kayma efekti azaltıldı */
}

/* Footer Bottom Section */
.footer-bottom-section {
  display: flex;
  justify-content: center; /* İçerikleri ortada topla */
  align-items: center;
  gap: 4rem; /* Aralarındaki boşluk */
  padding: 2.5rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer Divider */
.footer-divider {
  width: 1px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0 0.5rem;
}

/* Logo Section */
.footer-logo-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  text-align: left;
  flex: 0 0 auto; /* Esnemeyi kapat */
  min-width: auto;
}

.footer-logo {
  max-height: 80px;
  width: auto;
  display: block;
}

.footer-logo-text h3 {
  font-size: 0.9rem;
  color: var(--secondary-color); /* Gold text */
  margin: 0;
  font-weight: 700;
}

.footer-logo-text p {
  font-size: 0.75rem;
  color: #a0a8b0;
  margin: 0.2rem 0 0 0;
  letter-spacing: 0.5px;
}

/* Contact Section */
.footer-contact-section {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  padding: 0 1rem;
}

.footer-contact-section h4 {
  font-size: 0.95rem;
  color: #ffffff;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  margin-top: 0;
}

.contact-divider {
  width: 1px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0 1rem;
}

.contact-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  color: #a0a8b0;
  text-align: left;
  padding: 0;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: var(--secondary-color); /* Altın rengi yapıldı (görünmez maviden değişti) */
  margin-right: 0.5rem;
  font-size: 1.1rem; /* Adjust font size for icons */
  transition: all 0.3s ease;
}

/* Remove SVG specific styles or just let them be if there are no SVGs */

.contact-item p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.3;
  color: #a0a8b0;
}

.contact-item a {
  color: #a0a8b0;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--secondary-color);
}

/* Social Icons Section */
.footer-social-section {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
  flex: 1;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  color: #a0a8b0;
  transition: all 0.3s ease;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  opacity: 0.5;
}

.social-icon:hover {
  opacity: 1;
  background-color: rgba(212, 175, 55, 0.15); /* Altın rengi arka plan */
  color: var(--secondary-color); /* Altın rengi yazı */
  transform: translateY(-3px);
  border-color: var(--secondary-color);
}

.facebook-icon:hover,
.instagram-icon:hover,
.x-icon:hover,
.youtube-icon:hover {
  color: var(--secondary-color); /* Bütün iconlar hoverda altın olsun */
  background-color: rgba(212, 175, 55, 0.15);
}

.facebook-icon {
  font-size: 1.4rem;
}

/*
.facebook-icon:hover {
  color: #1877F2;
  background-color: rgba(24, 119, 242, 0.15);
}

.instagram-icon:hover {
  color: #E1306C;
  background-color: rgba(225, 48, 108, 0.15);
}
*/

/*
.x-icon:hover {
  color: #000000;
  background-color: rgba(0, 0, 0, 0.15);
}

.youtube-icon:hover {
  color: #FF0000;
  background-color: rgba(255, 0, 0, 0.15);
}
*/

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Footer Copyright */
.footer-copyright {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #444;
  color: #7a8290;
  font-size: 0.85rem;
}

.footer-copyright p {
  margin: 0;
  color: #7a8290;
}

/* ===================================
   BLOG SIDEBAR STYLES
   =================================== */

.blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  z-index: 10;
}

.sidebar-widget {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border: 1px solid #eee;
}

.sidebar-title {
  font-size: 1.1rem;
  font-weight: 700 !important;
  color: #555555 !important;
  margin-bottom: 1.5rem;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 8px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  background-color: #fff;
  color: #7a7a7a !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: all 0.3s ease; 
  font-size: 0.95rem;
  border: 1px solid #eee;
}

.sidebar-menu a i {
  margin-right: 12px;
  font-size: 1rem;
  color: #bbb;
  transition: color 0.3s ease;
  width: 20px;
  text-align: center;
}

/* Sidebar Hover */
.sidebar-menu a:hover {
  background-color: #fff;
  color: var(--secondary-color) !important; /* Gold text */
  border-color: var(--secondary-color); /* Gold border */
  transform: translateX(5px);
}

.sidebar-menu a:hover i {
  color: var(--secondary-color);
}

/* Sidebar Aktif Link */
.sidebar-menu a.active {
  background-color: var(--primary-color); /* Navy BG */
  color: var(--white) !important;
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(20, 33, 61, 0.2);
}

.sidebar-menu a.active i {
  color: var(--secondary-color); /* Gold icon */
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .blog-sidebar {
    top: 20px;
  }
}

@media (max-width: 768px) {

  .navbar-brand img {
    max-height: 50px; /* Mobilde logo 40px -> 50px */
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--primary-color); /* Navy BG */
    border-top: 1px solid rgba(255,255,255,0.1);
    
    /* Kapalıyken padding ve yükseklik 0 olmalı ki görünmesin */
    padding: 0;
    max-height: 0;
    
    overflow: hidden;
    transition: all 0.3s ease; /* max-height ve padding için genel transition */
  }

  .navbar-menu.active {
    padding: 1rem 0; /* Açılınca padding ver */
    max-height: 100vh; /* Allow enough space for dropdowns */
    overflow-y: auto; /* Scroll if content is too long */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  }

  .nav-link {
    display: block;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--white);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    background-color: rgba(255,255,255,0.05); /* Light highlight */
    color: var(--secondary-color); /* Gold text */
  }

  .dropdown-menu {
    position: static;
    display: none; /* Controlled by parent class */
    border: none;
    box-shadow: none;
    background-color: rgba(0,0,0,0.2); /* Darker inset for dropdown */
    margin: 0;
    padding: 0;
    min-width: auto;
  }

  /* Remove conflicting old rule if any */
  
  .dropdown-menu li a {
    padding: 0.8rem 2rem 0.8rem 3.5rem; /* More indentation */
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: #ccc; /* Slightly dimmed white */
  }

  .dropdown-menu li a:hover {
    padding-left: 3.5rem;
    background-color: rgba(255,255,255,0.05);
    color: var(--secondary-color);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer {
    padding: 2rem 0;
    margin-top: 3rem;
  }

  .blog-sidebar {
    position: static;
    order: -1;
    padding: 25px 20px;
  }

  .sidebar-title {
    font-size: 1.2rem;
  }

  .blog-menu-link {
    font-size: 0.9rem;
  }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .footer-menu {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .footer-bottom-section {
    gap: 2rem;
  }

  .footer-menu-column h4 {
    font-size: 0.9rem;
  }

  .footer-menu-column a {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .footer-menu {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

  .footer-bottom-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .footer-logo-section {
    order: 1;
  }

  .footer-contact-section {
    order: 2;
    align-items: center;
    width: 100%;
  }

  .footer-social-section {
    order: 3;
  }

  .contact-info {
    flex-direction: column;
    gap: 1rem;
  }

  .contact-item {
    justify-content: center;
    padding: 0 1rem;
  }

  .contact-divider {
    display: none;
  }

  .footer-divider {
    display: none;
  }

  .footer {
    padding: 1.5rem 0 0 0;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-menu-column h4 {
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 480px) {
  .footer-menu {
    grid-template-columns: 1fr; /* Tek sütun */
    gap: 2rem;
    padding: 1.5rem 0;
    justify-items: start; /* Sola yasla ki başlık ve liste hizalı olsun */
    text-align: left;
  }

  .footer-menu-column {
    width: 100%;
    align-items: flex-start; /* İçerikleri sola yasla */
    padding-left: 1rem; /* Hafif içten başlat */
  }

  .footer-menu-column h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Altına çizgi ekle ki bölüm ayrılsın */
    padding-bottom: 0.5rem;
  }

  .footer-menu-column a {
    font-size: 0.8rem;
  }

  .footer-logo {
    max-height: 70px;
  }

  .footer-logo-text h3 {
    font-size: 0.95rem;
  }

  .footer-logo-text p {
    font-size: 0.8rem;
  }

  .footer-contact-section h4 {
    font-size: 0.9rem;
  }

  .contact-item p {
    font-size: 0.85rem;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .social-icon svg {
    width: 20px;
    height: 20px;
  }

  .footer-social-section {
    gap: 1rem;
  }
}
