/* ===== CSS VARIABLES ===== */
:root {
  --color1: #bcb388; /* accent */
  --color2: #c8cca3; /* text */
  --color3: #375174; /* primary dark */
  --color4: #5583a4; /* secondary dark */
  --color5: #71b2ad; /* secondary accent */
}

/* ===== BASE STYLES ===== */
body {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  background: #ffffff;
  color: #000000;
  min-height: 100vh;
  padding-top: 58px; /* Account for fixed header height */
}

/* ===== HEADER STYLES ===== */
header {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

/* Remove default container spacing inside header so header height stays compact */
header .container {
  margin: 0 auto;
  padding: 0;
  max-width: 950px;
}

.header-container {
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background-color: #fff;
  max-width: 950px;
}

.header-left {
  height: 100%;
  max-width: 240px;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* flex: 0 0 auto; */
  /* padding: 0 8px; */
}

.header-left .logo {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 100%;
}

.header-left .logo img {
  max-height: 170px;
  max-width: 220px;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-right {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ===== NAVIGATION STYLES ===== */
nav a {
  text-decoration: none;
  color: #333;
  margin-left: 20px;
  font-weight: 600;
  font-size: 1.2rem;
  
  transition: color 0.3s ease;
}

nav a:hover {
  color: #b9975b;
}

nav a.active {
  border-bottom: 2px solid #b9975b;
  padding-bottom: 2px;
}

/* ===== DROPDOWN NAVIGATION ===== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 8px;
  z-index: 1001;
  padding: 8px 0;
  margin-top: 0; /* remove gap to keep hover active */
}

/* Keep menu open when hovering parent or the menu itself */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  margin: 0;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: #f8f9fa;
  color: #b9975b;
}

/* ===== LAYOUT & CONTAINERS ===== */
.container {
  max-width: 950px;
  margin: 2px auto;
  padding: 20px 10px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  color: #000000;
  margin-top: 0;
}

ul, p, label {
  color: #000000;
}

/* ===== FORM ELEMENTS ===== */
input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  margin-bottom: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #000000;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: 2px solid #000080;
}

button {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

button:hover {
  background: #000080;
  color: #ffffff;
}

/* ===== HERO SECTION ===== */
.themis-img {
  width: 100%;
  height: 680px;
  max-width: none;
  margin: 0;
  display: block;
  box-shadow: none;
  margin-bottom: 18px;
  padding: 0;
  background-image: url('../themis2.png');
  background-size: cover;
  background-position: center 10%;
  background-repeat: no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 100%);
}

.overlay-content {
  text-align: left;
  color: #2f2f2f;
  padding: 12px 10px;
  max-width: 950px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.overlay-content .line-1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 0 8px 0;
  color: #2f2f2f;
}

.overlay-content .line-2 {
  color: #2f2f2f;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.overlay-content .line-2.show { 
  opacity: 1; 
  transform: translateY(0); 
}

.image-caption {
  position: absolute;
  left: 10px;
  bottom: 110px;
  margin: 0;
  font-style: italic;
  color: #2f2f2f;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: capitalize;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 4rem 0;
}

.profile-photo {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
}

.profile-img {
  width: 280px;
  height: 350px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(35,41,70,0.3);
  border: 3px solid #f6c177;
}

.about-content {
  flex: 1 1 400px;
}

.about-content h2 {
  margin-bottom: 24px;
  color: #2f2f2f;
  font-family: 'Times New Roman', Times, serif;
}

.about-content p {
  margin-bottom: 18px;
  line-height: 1.6;
  color: #2f2f2f;
  font-family: 'Times New Roman', Times, serif;
  text-align: justify;
}

.about-content ul {
  color: #2f2f2f;
  line-height: 1.6;
  font-family: 'Times New Roman', Times, serif;
  text-align: justify;
}

.about-content li {
  margin-bottom: 8px;
  color: #2f2f2f;
  font-family: 'Times New Roman', Times, serif;
}


.about .container p {
  color: #2f2f2f;
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.2rem;
}

.kings-regular {
  font-family: "Kings", cursive;
  font-weight: 400;
  font-style: normal;
  text-align: center;
 
}


/* ===== DETAIL SECTION ===== */
.detail {
  background: #e8e2d6;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid #e5e7eb;
}
.detail .connect h2,
.detail .connect p {
  color: #4d4a46;
}
.detail .warn .warning {
  color: #4d4a46;
  text-align: justify;
}
/* ===== FOOTER ===== */
footer {
  background: #ffffff;
  color: #2f2f2f;
  text-align: center;
  padding: 20px 0;
  /* margin-top: 56px; */
  font-size: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* ===== SERVICES GRID ===== */
.page-title {
  text-align: center;
  color: #2f2f2f;
  font-family: 'Times New Roman', Times, serif;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-box {
  background: #ffffff;
  border: 2px solid #e8e2d6;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.service-image {
  width: 100%;
  height: 200px;
  background: #f5f0e6;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #d4c4a8;
  color: #8b7355;
  font-style: italic;
  font-size: 0.9rem;
}

.service-box h3 {
  color: #2f2f2f;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.service-box p {
  color: #2f2f2f;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
  margin: 0;
  flex-grow: 1;
}

/* Responsive design for services grid */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .service-box {
    padding: 1rem;
  }
  
  .page-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .service-image {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .service-box {
    padding: 0.8rem;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .service-box h3 {
    font-size: 1.2rem;
  }
  
  .service-box p {
    font-size: 0.9rem;
  }
}

/* ===== MAP SECTION STYLES ===== */
.map-section {
  background-color: #f8f9fa;
  padding: 3rem 0;
  margin-top: 2rem;
}

/* ===== BLOG LISTING (MAKALELER) ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 2rem 0 3rem;
}

.article-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.article-image {
  width: 100%;
  height: 160px;
  background: #f6f6f6;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-content {
  padding: 16px;
}

.article-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #2f2f2f;
  text-align: left;
}

.article-meta {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.article-content p {
  margin: 0 0 12px 0;
  color: #2f2f2f;
  text-align: justify;
}

.read-more {
  display: inline-block;
  color: #ffffff;
  background: #000000;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  background: #000080;
}

/* ===== PETITIONS LISTING (ÖRNEK DİLEKÇELER) ===== */
.petitions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 2rem 0 3rem;
}

.petition-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  align-items: stretch;
  gap: 0;
}

.petition-icon {
  width: 110px;
  min-height: 110px;
  background: #f6f6f6;
  flex-shrink: 0;
}

.petition-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.petition-content {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.petition-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
  color: #2f2f2f;
}

.petition-content p {
  margin: 0 0 12px 0;
  color: #2f2f2f;
  text-align: justify;
}

.download-btn {
  align-self: flex-start;
  display: inline-block;
  color: #ffffff;
  background: #000000;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.download-btn:hover {
  background: #000080;
}

@media (max-width: 600px) {
  .article-image { height: 140px; }
  .petition-icon { width: 90px; min-height: 90px; }
}

/* ===== FOOTER SOCIAL ICONS ===== */
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-left {
  min-width: 260px;
  text-align: left;
}

.footer-right { display: flex; justify-content: flex-end; }

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Footer icons variant used on Faaliyet Alanlarımız page */
.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.map-section h3 {
  text-align: center;
  color: var(--color3);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.address-info {
  text-align: center;
  margin-bottom: 2rem;
}

.address-info p {
  font-size: 1.2rem;
  color: var(--color4);
  margin: 0;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: inline-block;
}

.map-container {
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* ===== ACTIVITY AREAS (FAALİYET ALANLARIMIZ) ===== */
.activity-areas {
  padding: 2rem 0 1rem;
}

.section-title {
  text-align: center;
  color: #2f2f2f;
  font-family: 'Times New Roman', Times, serif;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.activity-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.activity-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 35%, rgba(0,0,0,0.5) 100%);
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.activity-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay h3 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
}

.card-overlay p {
  margin: 0;
  font-size: 0.95rem;
}

.card-content {
  padding: 12px 14px;
}

.card-content h3 {
  margin: 0;
  text-align: center;
  font-size: 1.1rem;
  color: #2f2f2f;
}

@media (max-width: 600px) {
  .card-image { height: 150px; }
  .activity-cards { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
  header { 
    height: 52px; 
  }
  
  body { 
    padding-top: 52px; 
  }
  
  .about-section {
    flex-direction: column;
    gap: 24px;
  }
  
  .profile-photo {
    flex: none;
  }
  
  .profile-img {
    width: 240px;
    height: 300px;
  }
}

@media (max-width: 600px) {
  header { 
    height: 50px; 
  }
  
  body { 
    padding-top: 50px; 
  }
  
  .themis-img {
    width: 100%;
    height: 320px;
    max-width: none;
    margin: 0;
    padding: 0;
    background-position: center top;
  }
  
  .overlay-content .line-1 { 
    font-size: 28px; 
  }
  
  .overlay-content .line-2 { 
    font-size: 20px; 
  }
  
  .profile-img {
    width: 200px;
    height: 250px;
  }
  
  .logo img { 
    height: 28px; 
  }
  
  .header-container {
    padding: 0 12px;
  }
  
  nav a {
    margin-left: 12px;
    font-size: 0.9rem;
  }
  
  .map-section {
    padding: 2rem 0;
  }
  
  .map-section h3 {
    font-size: 1.5rem;
  }
  
  .address-info p {
    font-size: 1rem;
    padding: 0.8rem;
  }
  
  .map-container iframe {
    height: 300px;
  }
}