html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: #f6fafd;
  color: #004080;
  text-align: center;
  padding: 0;
  margin: 0;
  width: 100%;
  min-width: 320px;
}

header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
  background: #004e8f;
  box-shadow: 0 2px 12px #ff8c0022;
  padding: 1rem 0;
  box-sizing: border-box;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
  box-sizing: border-box;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* Hamburger Menu Styles */
.menu-btn {
  background: #004e8f;      /* Koyu mavi arka plan */
  border-radius: 50%;
  padding: 6px;
  box-shadow: none;         /* Border ve gölge kaldırıldı */
  border: none;             /* Border kaldırıldı */
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2001;
  transition: background 0.2s;
}

.menu-btn img {
  width: 32px;
  height: 32px;
  filter: none;             /* Renk filtresi kaldırıldı */
}
.menu-btn:hover {
  background: #ff8c00;
}
.side-menu {
  position: fixed;
  top: 0; right: -270px;
  width: 250px;
  height: 100vh;
  background: #004e8f;
  color: white;
  box-shadow: -4px 0 12px rgba(0,0,0,0.15);
  z-index: 2000;
  padding-top: 2.5rem;
  transition: right 0.35s cubic-bezier(.4,1.4,.8,1);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.side-menu.open {
  right: 0;
}
.side-menu a {
  display: block;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.15rem;
  text-decoration: none;
  border-radius: 20px 0 0 20px;
  margin-bottom: .25rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.side-menu a:hover, .side-menu a:focus {
  background: #ff8c00;
  color: #fffde4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  right: -6px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.28);
  z-index: 1000;
  display: none;
}
.overlay.show {
  display: block;
}

/* Responsive hide original nav */
nav {
  display: none;
}
main {
  padding: 1rem;
  margin-top: 56px;
}
/* Social fixed bottom */
.social-icons-fixed {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.social-icons-fixed a img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 6px #0003);
  background: #fff;
  border-radius: 50%;
  padding: 4px;
  transition: transform .18s;
}
.social-icons-fixed a:hover img {
  transform: scale(1.15) rotate(-8deg);
  background: #ff8c00;
}
/* Sections animation */
section {
  background-color: white;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.5s;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Gallery for mobile */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.gallery img {
  width: 90vw;
  max-width: 360px;
  margin: auto;
}
@media (min-width: 600px) {
  .gallery img { width: calc(33% - 1rem);}
}
@media (max-width: 480px) {
  header, footer {
    font-size: 1rem;
    padding: .75rem;
  }
  main {
    padding: .2rem;
    margin-top: 46px;
  }
}

/* Social orbit animation */
.social-orbit-fixed {
  position: fixed;
  left: 2rem;
  bottom: 2rem;
  z-index: 2100;
  width: 120px;
  height: 120px;
  pointer-events: none;
}
.social-orbit-fixed .orbit {
  width: 100%;
  height: 100%;
  position: relative;
  animation: orbit-rotate 6s linear infinite;
  pointer-events: auto;
}
.social-orbit-fixed a {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 38px;
  height: 38px;
}
.social-orbit-fixed a:nth-child(1) { /* WhatsApp */
  transform: translate(-50%, -50%) rotate(0deg) translate(50px) rotate(0deg);
}
.social-orbit-fixed a:nth-child(2) { /* Facebook */
  transform: translate(-50%, -50%) rotate(90deg) translate(50px) rotate(-90deg);
}
.social-orbit-fixed a:nth-child(3) { /* Instagram */
  transform: translate(-50%, -50%) rotate(180deg) translate(50px) rotate(-180deg);
}
.social-orbit-fixed a:nth-child(4) { /* Telegram */
  transform: translate(-50%, -50%) rotate(270deg) translate(50px) rotate(-270deg);
}
.social-orbit-fixed a img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px #0002;
  padding: 4px;
  transition: transform .18s, background .18s;
  object-fit: cover;
}
.social-orbit-fixed a:hover img {
  transform: scale(1.18) rotate(-10deg);
  background: #ff8c00;
}
@keyframes orbit-rotate {
  100% { transform: rotate(360deg);}
}

/* Social icons horizontal */
.social-icons-horizontal {
  position: fixed;
  left: 50%;
  bottom: 1rem; /* Lower on the page */
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 2100;
}

.social-icons-horizontal a img {
  width: 28px;   /* Smaller icons */
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px #0002;
  padding: 3px;
  transition: background .18s, transform .22s;
}

.social-icons-horizontal a:hover img {
  background: #ff8c00;
}

@keyframes jump {
  0%   { transform: translateY(0);}
  20%  { transform: translateY(-13px);}
  40%  { transform: translateY(0);}
  100% { transform: translateY(0);}
}

.social-icons-horizontal a.jumping img {
  animation: jump 1.2s cubic-bezier(.4,1.4,.8,1) 1; /* Slower */
}

.social-icons-horizontal a.clicked img {
  transform: scale(1.25);
}

#main-page {
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  background: #fff;
  padding: 1.2rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px #0001;
  cursor: pointer;
}

#main-page:hover {
  background: #ffefcf;
  color: #d2691e;
  box-shadow: 0 6px 24px #ff8c0033;
}

.slider {
  width: 100%;
  max-width: 420px;
  margin: 1rem auto 1.5rem auto;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 2px 16px #0001;
  background: #fff;
  min-height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slider img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f6f6f6;
  position: absolute;
  left: 0; top: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.7s, transform 0.7s;
}
.slider img.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.slider img.fade { transition: opacity 0.7s; }
.slider img.zoom { transition: transform 0.7s, opacity 0.7s; }
.slider img.slide { transition: transform 0.7s, opacity 0.7s; }
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  color: #004e8f;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #0002;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}
.slider-btn:hover {
  background: #ff8c00;
  color: #fff;
  box-shadow: 0 4px 16px #ff8c0033;
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider-btn.pause { left: 50%; transform: translate(-50%, -50%); top: 12%; }
.slider-btn {
  opacity: 1 !important;
  filter: none !important;
  display: flex !important;
}

.exchange-photo-slider .finance-prev {
  left: 10px;
  right: auto;
}

.exchange-photo-slider .finance-next {
  right: 10px;
  left: auto;
}
/* Exchange photo slider button visibility */
.exchange-photo-slider button,
.slider-btn,
.slider-btn.prev,
.slider-btn.next {
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  filter: none !important;
}

/* Gallery thumbs styles */
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1rem;
}
.gallery-thumbs img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 6px #0001;
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s;
}
.gallery-thumbs img:hover {
  transform: scale(1.25) translateY(-8px);
  z-index: 2;
  box-shadow: 0 4px 18px #0002;
}

/* New gallery grid styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px; /* Daha yakın! */
  margin: 1.5rem 0 1rem 0;
  justify-items: center;
  align-items: center;
}
.gallery-grid img {
  width: 100%;
  max-width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-60px) scale(0.9);
  animation: gallery-in 0.7s cubic-bezier(.4,1.4,.8,1) forwards;
  transition: box-shadow 0.2s, transform 0.2s;
}
.gallery-grid img:hover {
  box-shadow: 0 8px 32px #ff8c0033, 0 2px 8px #0002;
  transform: scale(1.18);
  z-index: 2;
}
.gallery-grid img:active {
  filter: brightness(0.95);
}
.gallery-grid img:nth-child(odd) {
  animation-name: gallery-in-left;
}
.gallery-grid img:nth-child(even) {
  animation-name: gallery-in-right;
}
.gallery-grid img {
  animation-delay: calc(var(--i, 1) * 0.08s);
}
@keyframes gallery-in-left {
  from { opacity: 0; transform: translate(-60px, -60px) scale(0.7);}
  to   { opacity: 1; transform: translate(0,0) scale(1);}
}
@keyframes gallery-in-right {
  from { opacity: 0; transform: translate(60px, -60px) scale(0.7);}
  to   { opacity: 1; transform: translate(0,0) scale(1);}
}

/* Modal büyük görsel için */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.gallery-modal.active {
  display: flex;
}
.gallery-modal img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 8px 32px #0008;
  background: #fff;
  opacity: 1;
  transition: opacity 0.5s, transform 0.5s;
}
.gallery-modal img.fade {
  opacity: 0;
  transition: opacity 0.5s;
}
.gallery-modal img.zoom-in {
  opacity: 0;
  transform: scale(1.2);
  transition: opacity 0.5s, transform 0.5s;
}
.gallery-modal img.slide-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.5s, transform 0.5s;
}
.gallery-modal img.slide-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.5s, transform 0.5s;
}
.close-modal {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  font-weight: bold;
}
.gallery-modal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  z-index: 11;
  transition: box-shadow 0.2s, transform 0.2s, opacity 0.25s;
  box-shadow: 0 2px 8px #ff8c0033;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35; /* Zayıf görünüm */
  filter: blur(0.5px);
}
.gallery-modal-btn.pause {
  opacity: 0.22; /* Duraklatma butonu daha da zayıf */
}
.gallery-modal-btn:hover,
.gallery-modal-btn:focus {
  opacity: 1 !important;
  filter: none;
  background: #fff;
  box-shadow: 0 4px 16px #ff8c0033;
}
.gallery-modal-btn:hover svg circle,
.gallery-modal-btn:focus svg circle {
  fill: #ff8c00;
  stroke: #fff;
}
.gallery-modal-btn:hover svg polyline,
.gallery-modal-btn:hover svg rect,
.gallery-modal-btn:hover svg polygon,
.gallery-modal-btn:focus svg polyline,
.gallery-modal-btn:focus svg rect,
.gallery-modal-btn:focus svg polygon {
  stroke: #fff;
  fill: #fff;
}
.gallery-modal-btn.prev { left: 18px; }
.gallery-modal-btn.next { right: 18px; }
.gallery-modal-btn.pause { left: 50%; top: 12%; transform: translate(-50%, 0);}
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .gallery-grid img {
    max-width: 100%;
    height: 22vw;
    min-height: 60px;
    min-width: 60px;
  }
}

.main-page-text {
  font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
  font-size: 1.13rem;
  text-align: justify;         /* Justify hizalama */
  line-height: 2.1;
  background: #fffdfa;
  padding: 1.3rem 1.1rem;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px #ff8c0022;
  color: #3d2c13;
  margin: 1.2rem auto 1.5rem auto;
  max-width: 600px;
  letter-spacing: 0.01em;
  border: 1.5px solid #f3e7d6; /* Hafif renkli border */
}

.other-services-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #ff8c0022;
  margin: 2rem 0 1.5rem 0;
  padding: 2rem 1rem 1.5rem 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.other-services-section h2 {
  color: #004e8f;
  text-align: center;
  margin-bottom: 2.2rem;
  font-size: 2.1rem;
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.01em;
}
.other-services-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.service-box {
  display: block;
  margin-bottom: 0;
  direction: rtl;
}
.service-content {
  flex: 1 1 0;
  min-width: 0;
  text-align: right;
}
.service-box h3,
.service-content h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-weight: bold;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.01em;
  background: #ff8c00;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(255,140,0,0.2);
  transition: all 0.3s ease;
}
.service-box h3:hover,
.service-content h3:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,140,0,0.3);
  background: #ffa033;
}
.service-icon {
  background: #fff;
  padding: 8px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.service-box h3 {
  color: #004e8f;
  font-size: 1.35rem;
  margin: 0 0 0.5rem 0;
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-weight: bold;
  letter-spacing: 0.01em;
}
.service-box p {
  color: #fff;
  font-size: 1.08rem;
  text-align: justify;
  line-height: 2.1;
  margin: 0;
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-weight: 400;
  background: #004e8f;
  border-radius: 10px;
  padding: 1rem 1.1rem 1rem 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}
.service-box p:hover {
  box-shadow: 0 4px 16px rgba(0,78,143,0.3);
  transform: translateY(-2px);
}
.service-icon-col {
  flex: 0 0 70px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  margin-right: 1.2rem;
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
}
.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 700px) {
  .other-services-section {
    padding: 1.2rem 0.3rem 1rem 0.3rem;
  }
  .other-services-list {
    gap: 1.2rem;
  }
  .service-box {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 0.7rem;
  }
  .service-content h3 {
    justify-content: center;
    font-size: 1.13rem;
  }
  .service-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
  .service-icon, .service-icon svg {
    width: 44px;
    height: 44px;
  }
  .service-content {
    width: 100%;
  }
  .service-box h3, .service-box p {
    text-align: center;
  }
}

.double-photo-section {
  max-width: 800px;
  margin: 2.5rem auto 2rem auto;
  padding: 0 1rem;
}
.double-photo-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}
.photo-box {
  flex: 1 1 320px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #ff8c0022;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  max-width: 380px;
}
.photo-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;   /* Fotoğrafın tamamı görünür, kırpılmaz */
  aspect-ratio: 4/3;     /* Oran sabit kalır, ama kırpma olmaz */
  background: #f9f9fb;   /* Arka plan açık renk, boşluklarda */
  transition: transform 0.3s;
  border-radius: 16px; /* veya istediğin kadar */
}
.photo-box img:hover {
  transform: scale(1.04) rotate(-1deg);
}
@media (max-width: 700px) {
  .double-photo-grid {
    flex-direction: column;
    gap: 1rem;
  }
  .photo-box {
    max-width: 100%;
    min-width: 0;
  }
}

.afg-flag-inline {
  width: 28px;
  height: 18px;
  vertical-align: middle;
  margin-left: 8px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid #222;
}

.fixed-flags {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 3000;
  display: flex;
  gap: 10px;
  align-items: center;
}
.afg-flag {
  width: 48px;
  height: 48px;
  border-radius: 50%;         /* Tam dairesel */
  object-fit: cover;
  box-shadow: 0 2px 16px #ff8c0055, 0 0 0 3px #fff;
  border: 2.5px solid #ff8c00;
  transition: transform 0.25s cubic-bezier(.4,1.4,.8,1), box-shadow 0.25s;
  background: #fff;
}
.afg-flag:hover {
  transform: scale(1.13) rotate(-4deg);
  box-shadow: 0 4px 32px #ff8c00aa, 0 0 0 4px #fff;
}
.site-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;         /* Tam dairesel */
  object-fit: cover;
  box-shadow: 0 2px 16px #ff8c0055, 0 0 0 3px #fff;
  border: 2.5px solid #ff8c00;
  transition: transform 0.25s cubic-bezier(.4,1.4,.8,1), box-shadow 0.25s;
  background: #fff;
}
.site-logo:hover {
  transform: scale(1.13) rotate(-4deg);
  box-shadow: 0 4px 32px #ff8c00aa, 0 0 0 4px #fff;
}
.header-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 0.7rem;
  flex-direction: row-reverse; /* RTL için sağdan sola */
  position: relative;
}

.home-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 16px #ff8c0055;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.home-icon img {
  width: 32px;
  height: 32px;
  display: block;
}
.home-icon:hover {
  background: #ff8c00;
  box-shadow: 0 4px 24px #ff8c00aa;
  transform: translateY(-50%) scale(1.12);
}

.afg-flag,
.site-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 16px #ff8c0055;
  background: #fff;
  border: none;
}

@media (max-width: 600px) {
  .afg-flag,
  .site-logo {
    width: 36px;
    height: 36px;
  }
  .home-icon {
    width: 34px;
    height: 34px;
  }
  .home-icon img {
    width: 22px;
    height: 22px;
  }
  .header-logos {
    gap: 10px;
  }
}

header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
  background: #004e8f;
  box-shadow: 0 2px 12px #ff8c0022;
  padding: 1rem 0;
  box-sizing: border-box;
}

header h1 {
  color: #fff;
  background-color: #ff8c00;
  padding: clamp(0.5rem, 0.3rem + 1vw, 1rem);
  border-radius: 8px;
  margin: clamp(0.5rem, 1rem + 1vw, 2rem) auto;
  width: fit-content;
  box-shadow: 0 2px 12px rgba(255,140,0,0.2);
  transition: all 0.3s ease;
}

header h1:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255,140,0,0.3);
  background-color: #ffa033;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.1rem;
    padding: 0 0.2rem;
  }
}

.exchange-photo-section {
  margin: 2rem auto;
  max-width: 800px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #ff8c0022;
  padding: 2rem 1rem;
  text-align: center;
}
.exchange-photo-section h2 {
  color: #004e8f;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Vazirmatn', Arial, sans-serif;
}
.exchange-photo-grid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.exchange-photo-box {
  flex: 1 1 220px;
  max-width: 320px;
  background: #fffdfa;
  border-radius: 14px;
  box-shadow: 0 2px 12px #ff8c0022;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.exchange-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: #f9f9fb;
}
@media (max-width: 700px) {
  .exchange-photo-grid {
    flex-direction: column;
    gap: 1rem;
  }
}

.exchange-photo-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.exchange-photo-slider img {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.exchange-photo-slider img.active {
  opacity: 1;
  position: relative;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes zoomIn {
  from { transform: scale(1.18); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes slideIn {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.exchange-photo-slider img.paused {
  transform: scale(1.13);
  box-shadow: 0 6px 32px #ff8c00aa;
  z-index: 1;
  transition: transform 0.3s, box-shadow 0.3s;
}
@media (max-width: 700px) {
  .exchange-photo-slider {
    max-width: 98vw;
    aspect-ratio: 4/3;
  }
}
 
.contact-section {
  background: linear-gradient(135deg, #e3f0ff 0%, #f9f9fb 100%);
  min-height: 380px;
  padding: 0;
  margin-top: 2.5rem;
  display: flex;
  align-items: stretch;
  justify-content: center;
  border-radius: 18px;
  box-shadow: 0 4px 32px #004e8f11;
}

.contact-overlay {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(8px) saturate(1.3);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  border-radius: 18px;
  max-width: 800px;
  margin: 2.5rem auto;
  width: 100%;
  box-shadow: 0 4px 32px #004e8f22;
  color: #004e8f;
  text-align: right;
  border: 1.5px solid #e0eafc;
}

.contact-section h2 {
  font-size: 2.1rem;
  margin-bottom: 2.2rem;
  color: #004e8f;
  font-family: 'Vazirmatn', Arial, sans-serif;
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px #fff8, 0 1px 0 #e0eafc;
}

.contact-addresses {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.contact-box {
  background: rgba(255,255,255,0.22);
  border-radius: 18px;
  box-shadow: 0 4px 24px #004e8f22;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  min-width: 220px;
  max-width: 340px;
  flex: 1 1 280px;
  margin: 1rem 0.7rem 1rem 0.7rem;
  color: #004e8f;
  position: relative;
  overflow: hidden;
  font-size: 1.13rem;
  font-family: 'Vazirmatn', Arial, sans-serif;
  border: 1.5px solid #e0eafc;
  background-clip: padding-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.25s, transform 0.22s;
}
.contact-box:hover {
  box-shadow: 0 8px 32px #ff8c0033, 0 2px 8px #004e8f11;
  transform: translateY(-4px) scale(1.03);
}

.contact-box.kabul,
.contact-box.herat {
  background-image: linear-gradient(120deg, rgba(0,78,143,0.18) 0%, rgba(255,255,255,0.22) 100%),
    url('images/25-herat.jpg'); /* <-- Change Kabul background image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 180px;
  max-width: 340px;
  border-radius: 18px;
  color: #fff;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  box-shadow: 0 4px 24px #004e8f22;
  position: relative;
  overflow: hidden;
  /* Görseli daha belirgin yapmak için */
  background-blend-mode: lighten;
  transition: box-shadow 0.25s, transform 0.22s, background 0.3s;
}
.contact-box.herat {
  background-image: linear-gradient(120deg, rgba(0,78,143,0.18) 0%, rgba(255,255,255,0.22) 100%),
    url('images/27-mazar.jpg'); /* <-- Change Herat background image */
}

/* Arka planı koyulaştırmak için ek overlay */
.contact-box.kabul::before,
.contact-box.herat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(0,0,0,0.38) 60%, rgba(0,0,0,0.22) 100%);
  border-radius: 18px;
  pointer-events: none;
}

/* Metin ve butonlar üstte kalsın */
.contact-box.kabul > *,
.contact-box.herat > * {
  position: relative;
  z-index: 2;
}

/* Metinleri daha okunaklı yap */
.contact-box.kabul h3,
.contact-box.herat h3,
.contact-box.kabul p,
.contact-box.herat p {
  color: #fff;
  text-shadow: 0 2px 8px #000a, 0 1px 0 #222b;
  font-weight: bold;
  background: rgba(0,0,0,0.22);
  padding: 0.4em 0.7em;
  border-radius: 8px;
  margin-bottom: 0.5em;
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
}

.contact-box.kabul:hover,
.contact-box.herat:hover {
  box-shadow: 0 12px 36px #ff8c0033, 0 2px 8px #004e8f11;
  transform: translateY(-6px) scale(1.04);
  background-blend-mode: normal;
  background-color: rgba(255,255,255,0.10);
}

/* Telefon numarası için daha düzgün ve modern görünüm */
.contact-box .whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.7rem;
  background: #25d366; /* Yeşil arka plan */
  color: #fff;         /* Beyaz yazı */
  border-radius: 2.2rem;
  padding: 0.38rem 1.25rem 0.38rem 1.1rem;
  box-shadow: 0 2px 8px #25d36633;
  font-weight: bold;
  color: #25d366;
  font-size: 1.13rem;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  border: 1.5px solid #25d36622;
  letter-spacing: 0.03em;
  font-family: 'Vazirmatn', Arial, sans-serif;
  direction: ltr;
  white-space: nowrap;
}
.contact-box .whatsapp-link:hover,
.contact-box .whatsapp-link:focus {
  background: #128c4b;
  color: #fff;
  box-shadow: 0 4px 18px #25d36655;
}
.contact-box .whatsapp-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px #25d36622;
  transition: transform 0.18s, background 0.18s;
}

/* Telefon numarası için özel stil */
.contact-box .whatsapp-link .phone-number {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: 'Vazirmatn', Arial, sans-serif;
  color: inherit;
  direction: ltr;
  margin-right: 0.2em;
}

/* Yönetici kutusu */
.manager-box {
  background: linear-gradient(100deg, #fffbe7 60%, #ffe2c2 100%);
  border-radius: 18px;
  padding: 1.3rem 1.4rem 1.1rem 1.4rem;
  margin: 1.5rem 0 0.7rem 0;
  box-shadow: 0 6px 28px #ff8c0033, 0 2px 8px #004e8f11;
  font-size: 1.18rem;
  color: #004e8f;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
  border: 2.5px solid #ffb36b;
  position: relative;
  overflow: hidden;
}

.manager-box::before {
  content: "";
  position: absolute;
  left: -40px; top: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, #ff8c0033 0%, transparent 80%);
  z-index: 0;
}

.manager-box strong {
  color: #ff8c00;
  font-weight: 900;
  font-size: 1.13rem;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px #ff8c0033, 0 1px 0 #fff8;
  z-index: 1;
}

.manager-contact-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 0.2rem;
  flex-wrap: wrap;
  z-index: 1;
}

.manager-phone {
  font-size: 1.22rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, #25d366 0%, #43e97b 100%);
  padding: 0.28em 1.2em;
  border-radius: 2.2rem;
  text-decoration: none;
  direction: ltr;
  margin-right: 0.2rem;
  box-shadow: 0 2px 12px #25d36655;
  border: none;
  letter-spacing: 0.04em;
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.18s;
  border: 2px solid #fff;
}
.manager-phone:hover {
  background: linear-gradient(90deg, #ff8c00 0%, #ffb36b 100%);
  color: #fff;
  box-shadow: 0 4px 18px #ff8c0055;
  transform: scale(1.07);
  border: 2px solid #ff8c00;
}

.manager-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  margin-right: 0.3rem;
  box-shadow: 0 2px 12px #25d36655;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  border: 2px solid #fff;
  position: relative;
  z-index: 2;
}
.manager-whatsapp img {
  width: 26px;
  height: 26px;
  background: none;
  border-radius: 50%;
  transition: transform 0.18s;
}
.manager-whatsapp:hover,
.manager-whatsapp:focus {
  background: #ff8c00;
  box-shadow: 0 4px 18px #ff8c0055;
  transform: scale(1.13) rotate(-8deg);
  border: 2px solid #ff8c00;
}
.manager-whatsapp:hover img,
.manager-whatsapp:focus img {
  transform: scale(1.13) rotate(-8deg);
}

/* Yazıları daha belirgin ve kontrastlı yap */
.contact-box.kabul h3,
.contact-box.herat h3,
.contact-box.kabul p,
.contact-box.herat p,
.contact-box .phone-link,
.contact-box .whatsapp-link .phone-number {
  text-shadow: 0 2px 12px #004e8f77, 0 1px 0 #fff8;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.01em;
}

.contact-box.kabul h3,
.contact-box.herat h3 {
  font-size: 1.32rem;
}

.contact-box.kabul p,
.contact-box.herat p {
  font-size: 1.13rem;
  background: rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 1.1rem;
  font-weight: 600;
}

.contact-box .phone-link,
.contact-box .whatsapp-link {
  font-size: 1.16rem;
  font-weight: 800;
  box-shadow: 0 4px 18px #25d36633;
}

.contact-box .whatsapp-link img,
.contact-box .phone-link img {
  filter: drop-shadow(0 2px 8px #25d36655);
}

.contact-box .phone-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.1rem;
  width: 100%;
}

.contact-box .whatsapp-link,
.contact-box .phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 2.2rem;
  padding: 0.38rem 1.25rem;
  font-size: 1.18rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 8px #25d36633;
  border: none;
  letter-spacing: 0.04em;
  font-family: 'Vazirmatn', Arial, sans-serif;
  direction: ltr;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  min-width: 220px;
  margin: 0 auto;
  gap: 0.7rem;
}
.contact-box .whatsapp-link:hover,
.contact-box .phone-link:hover,
.contact-box .whatsapp-link:focus,
.contact-box .phone-link:focus {
  background: #128c4b;
  color: #fff;
  box-shadow: 0 4px 18px #25d36655;
}
.contact-box .whatsapp-link img,
.contact-box .phone-link img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px #25d36622;
  transition: transform 0.18s, background 0.18s;
  margin-left: 0.5rem;
  margin-right: 0;
  display: inline-block;
  vertical-align: middle;
}
.contact-box .whatsapp-link .phone-number {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: 'Vazirmatn', Arial, sans-serif;
  color: inherit;
  direction: ltr;
  margin-right: 0.2em;
}

.contact-box.manager {
  background-image: linear-gradient(120deg, rgba(0,78,143,0.18) 0%, rgba(255,255,255,0.22) 100%),
    url('images/call.png'); /* Manager box background image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  background-blend-mode: lighten;
  transition: box-shadow 0.25s, transform 0.22s, background 0.3s;
}

.contact-box.manager::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(0,0,0,0.38) 60%, rgba(0,0,0,0.22) 100%);
  border-radius: 18px;
  pointer-events: none;
}

.contact-box.manager > * {
  position: relative;
  z-index: 2;
}

.contact-box.manager h3,
.contact-box.manager p {
  color: #fff;
  text-shadow: 0 2px 8px #000a, 0 1px 0 #222b;
  font-weight: bold;
  background: rgba(0,0,0,0.22);
  padding: 0.4em 0.7em;
  border-radius: 8px;
  margin-bottom: 0.5em;
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .gallery-grid img {
    max-width: 100%;
    height: 22vw;
    min-height: 60px;
    min-width: 60px;
  }
}

/* Tarih kartı görseldeki gibi */
.card {
  background: #fff;
  border-radius: 18px;
  border: 2.5px solid #0a6ebd;
  box-shadow: 0 2px 16px #0a6ebd22;
  padding: 2.2rem 1.2rem 1.5rem 1.2rem;
  max-width: 340px;
  margin: 2.5rem auto 2rem auto;
  text-align: center;
  position: relative;
  /* Arka plan görseli için ekleme */
  background: #fff;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(0deg, #fff8 60%, #fff9 100%), url('images/27-mazar.jpg') center center/cover no-repeat;
  opacity: 0.80;
  border-radius: 18px;
  pointer-events: none;
}
.card > * {
  position: relative;
  z-index: 1;
}
.card .title {
  color: #0a3e8f;
  font-size: 1.45rem;
  font-weight: bold;
  margin-bottom: 0.7rem;
  letter-spacing: 0.01em;
}
.card .date-line {
  color: #222;
  font-size: 1.08rem;
  margin: 0.3rem 0;
  font-weight: 500;
  text-align: center;
}
.card .divider {
  width: 80%;
  height: 2px;
  margin: 1.1rem auto;
  background: none;
  border: none;
  display: block;
  position: relative;
  opacity: 1;
  overflow: visible;
  padding: 0;
}
.card .divider::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0; top: 0;
  border-radius: 2px;
  /* Ortada sabit kalın, uçlara doğru incelen özel degrade */
  background: linear-gradient(
    to right,
    transparent 0%,
    #ffb36b 12%,
    #ff9800 50%,
    #ff9800 78%,
    #ffb36b 88%,
    transparent 100%
  );
  z-index: 1;
}
.card .divider::after {
  content: "";
  display: block;
  width: 56%;
  height: 4px;
  position: absolute;
  left: 22%;
  top: -1px;
  border-radius: 2px;
  background: #ff9800;
  opacity: 0.85;
  z-index: 2;
  /* Ortada sabit kalın turuncu çizgi */
}
.card .footer {
  color: #ff8c00;
  font-size: 1.13rem;
  font-weight: bold;
  margin-top: 1.2rem;
  letter-spacing: 0.01em;
  text-align: center;
}

/* Basit ve okunaklı döviz tablosu stilleri */
#exchangeRatesTable {
  width: 100%;
  border-collapse: collapse;
  font-family: "Vazirmatn", sans-serif;
  margin: 0 auto;
  background: #fff;
}

#exchangeRatesTable thead tr {
  background: #1976d2;
}

#exchangeRatesTable thead th {
  color: #fff;
  font-size: 1em;
  font-weight: 700;
  padding: 0.7em 0.3em;
  text-align: center;
  border: none;
}

#exchangeRatesTable tbody tr {
  background: #f7fbff;
  border-bottom: 1px solid #e3e3e3;
  transition: background 0.2s;
}

#exchangeRatesTable tbody tr:hover {
  background: #e3f0ff;
}

#exchangeRatesTable td {
  font-size: 1em;
  color: #222;
  padding: 0.6em 0.3em;
  text-align: center;
  border: none;
  vertical-align: middle;
}

#exchangeRatesTable td:first-child {
  display: flex;
  align-items: center;
  gap: 0.5em;
  justify-content: right;
  text-align: right;
  background: #d4d9d7; /* sadece bu sütunun arka planı */
  border: none;
}

#exchangeRatesTable td:first-child img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e3e3e3;
  margin-left: 0.4em;
}

#exchangeRatesTable td:first-child span {
  font-weight: 600;
  color: #1976d2;
  font-size: 1em;
}

@media (max-width: 600px) {
  #exchangeRatesTable th, #exchangeRatesTable td {
    font-size: 0.95em;
    padding: 0.4em 0.1em;
  }
  #exchangeRatesTable td:first-child img {
    width: 22px;
    height: 22px;
  }
}

/* Kabul ve Herat döviz tabloları için ortak stiller */
#exchangeRatesTable,
#heratExchangeRatesTable,
#afgBankExchangeRatesTable,
#otherCurrenciesTable,
#specialFirstRateTable {
  width: 100%;
  border-collapse: collapse;
  font-family: "Vazirmatn", sans-serif;
  margin: 0 auto;
  background: #fff;
}

#exchangeRatesTable thead tr,
#heratExchangeRatesTable thead tr,
#afgBankExchangeRatesTable thead tr,
#otherCurrenciesTable thead tr,
#specialFirstRateTable thead tr {
  background: #1976d2;
}

#exchangeRatesTable thead th,
#heratExchangeRatesTable thead th,
#afgBankExchangeRatesTable thead th,
#otherCurrenciesTable thead th,
#specialFirstRateTable thead th {
  color: #fff;
  font-size: 1em;
  font-weight: 700;
  padding: 0.7em 0.3em;
  text-align: center;
  border: none;
}

#exchangeRatesTable tbody tr,
#heratExchangeRatesTable tbody tr,
#afgBankExchangeRatesTable tbody tr,
#otherCurrenciesTable tbody tr,
#specialFirstRateTable tbody tr {
  background: #f7fbff;
  border-bottom: 1px solid #e3e3e3;
  transition: background 0.2s;
}

#exchangeRatesTable tbody tr:hover,
#heratExchangeRatesTable tbody tr:hover,
#afgBankExchangeRatesTable tbody tr:hover,
#otherCurrenciesTable tbody tr:hover,
#specialFirstRateTable tbody tr:hover {
  background: #e3f0ff;
}

#exchangeRatesTable td,
#heratExchangeRatesTable td,
#afgBankExchangeRatesTable td,
#otherCurrenciesTable td,
#specialFirstRateTable td {
  font-size: 1em;
  color: #222;
  padding: 0.6em 0.3em;
  text-align: center;
  border: none;
  vertical-align: middle;
}

#exchangeRatesTable td:first-child,
#heratExchangeRatesTable td:first-child,
#afgBankExchangeRatesTable td:first-child,
#otherCurrenciesTable td:first-child,
#specialFirstRateTable td:first-child {
  display: flex;
  align-items: center;
  gap: 0.5em;
  justify-content: right;
  text-align: right;
  background: #d4d9d7;
  border: none;
}

#exchangeRatesTable td:first-child img,
#heratExchangeRatesTable td:first-child img,
#afgBankExchangeRatesTable td:first-child img,
#otherCurrenciesTable td:first-child img,
#specialFirstRateTable td:first-child img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e3e3e3;
  margin-left: 0.4em;
}

#exchangeRatesTable td:first-child span,
#heratExchangeRatesTable td:first-child span,
#afgBankExchangeRatesTable td:first-child span,
#otherCurrenciesTable td:first-child span,
#specialFirstRateTable td:first-child span {
  font-weight: 600;
  color: #1976d2;
  font-size: 1em;
}

@media (max-width: 600px) {
  #exchangeRatesTable th, #exchangeRatesTable td,
  #heratExchangeRatesTable th, #heratExchangeRatesTable td,
  #afgBankExchangeRatesTable th, #afgBankExchangeRatesTable td,
  #otherCurrenciesTable th, #otherCurrenciesTable td,
  #specialFirstRateTable th, #specialFirstRateTable td {
    font-size: 0.95em;
    padding: 0.4em 0.1em;
  }
  #exchangeRatesTable td:first-child img,
  #heratExchangeRatesTable td:first-child img,
  #afgBankExchangeRatesTable td:first-child img,
  #otherCurrenciesTable td:first-child img,
  #specialFirstRateTable td:first-child img {
    width: 22px;
    height: 22px;
  }
}

/* Kabul ve Herat döviz tabloları için ortak stiller */
#exchangeRatesTable th:nth-child(2),
#exchangeRatesTable th:nth-child(3),
#heratExchangeRatesTable th:nth-child(2),
#heratExchangeRatesTable th:nth-child(3),
#afgBankExchangeRatesTable th:nth-child(2),
#afgBankExchangeRatesTable th:nth-child(3),
#otherCurrenciesTable th:nth-child(2),
#otherCurrenciesTable th:nth-child(3),
#specialFirstRateTable th:nth-child(2),
#specialFirstRateTable th:nth-child(3) {
  background: #ff8c00 !important;
  color: #fff !important;
}

#prg {
  background-color: #004e8f;
  color: white;
  text-align: justify;
}

footer {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  background: #035397; /* same as header */
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1rem,2vw,2.5rem) clamp(1rem,4vw,2.5rem);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 fit-content;
  min-width: fit-content;
  /* Remove max-width for flexibility */
}

.footer-section h3 {
  color: #ff8c00;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-family: 'Vazirmatn', Arial, sans-serif;
  position: relative;
  padding-bottom: 0.5rem;
  background-color: white;
  border-radius: 5px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: #ff8c00;
}

.footer-section p {
  color: #fff;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
  padding: 0.3rem;
  border-radius: 6px;
  background-color: #ff8c00;
}

.footer-contact a:hover {
  color: #ff8c00;
  background: rgba(255,255,255,0.1);
}

.footer-contact img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.footer-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-left: 8px;
  opacity: 0.9;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.8rem;
  background-color: #ff8c00;
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: background-color 0.3s, transform 0.2s;
}

.footer-contact p:hover {
  background-color: #ffa033;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,140,0,0.2);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }
}

/* Main Navigation Styles */
.main-nav {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  margin: 1rem auto 0.5rem auto;
  width: 100%;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: 'Vazirmatn', Arial, sans-serif;
}

/* Side menu links to match main nav */
.side-menu a {
  display: block;
  color: white;
  padding: 1rem 2rem;
  font-size: 1.15rem;
  text-decoration: none;
  border-radius: 20px 0 0 20px;
  margin-bottom: .25rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}

/* Media query for desktop screens */
@media (min-width: 768px) {
  .main-nav a {
    background-color: #ff8c00;
    box-shadow: 0 2px 8px rgba(255,140,0,0.2);
    margin: 0 0.3rem;
  }
  
  .main-nav a:hover {
    background: #ffa033;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,140,0,0.3);
  }
  
  .menu-btn {
    display: none; /* Hide burger on desktop */
  }
  
  .main-nav {
    display: flex; /* Show horizontal menu on desktop */
  }
  
  .side-menu {
    display: none !important; /* Always hide side menu on desktop */
  }
  
  header {
    padding-bottom: 1rem;
  }
}

/* Media query for mobile */
@media (max-width: 767px) {
  .main-nav {
    display: none !important; /* Always hide horizontal menu on mobile */
  }
  
  .menu-btn {
    display: block; /* Show burger on mobile */
  }
}

.contact-box.parwan {
  background-image: linear-gradient(120deg, rgba(0,78,143,0.18) 0%, rgba(255,255,255,0.22) 100%),
    url('images/parwan.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  background-blend-mode: lighten;
  transition: box-shadow 0.25s, transform 0.22s, background 0.3s;
}

.contact-box.parwan::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(0,0,0,0.38) 60%, rgba(0,0,0,0.22) 100%);
  border-radius: 18px;
  pointer-events: none;
}

.contact-box.parwan > * {
  position: relative;
  z-index: 2;
}

.contact-box.parwan h3,
.contact-box.parwan p {
  color: #fff;
  text-shadow: 0 2px 8px #000a, 0 1px 0 #222b;
  font-weight: bold;
  background: rgba(0,0,0,0.22);
  padding: 0.4em 0.7em;
  border-radius: 8px;
  margin-bottom: 0.5em;
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
}

.contact-box.parwan:hover {
  box-shadow: 0 12px 36px #ff8c0033, 0 2px 8px #004e8f11;
  transform: translateY(-6px) scale(1.04);
  background-blend-mode: normal;
  background-color: rgba(255,255,255,0.10);
}

/* E-posta ikonu stili */
.footer-contact img[alt="ایمیل"],
.footer-contact img[alt="تلفن"],
.footer-contact img[alt="تلفن مدیریت"] {
  border-radius: 10px;
}

/* Yeni stil değişiklikleri */
.footer-contact a, .footer-contact p {
  direction: ltr;
  unicode-bidi: plaintext;
  justify-content: flex-start;
  text-align: right;
  font-family: 'Vazirmatn', Arial, sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row-reverse; /* icon sağda, yazı solda */
}

.footer-contact img {
  margin-left: 0;
  margin-right: 0.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.footer-section {
  flex: 1 1 fit-content;
  min-width: fit-content;
}
@media (max-width: 800px) {
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer-section {
    min-width: 0;
  }
}

#tableSelector {
  width: 100%;
  padding: 8px;
  margin-bottom: 1rem; /* Add space below the select box */
  border: none;
  background-color: rgba(255, 140, 0);
  font-size: 1.5rem;
  border-radius: 20px;
  box-shadow:  3px 2px rgba(255, 140, 0, 0.2);
  color: #fff;
}
.title-selector {
  font-size: 2rem;
  font-weight: bold;
  color: #004e8f;
  text-align: center;
  font-family: 'Vazirmatn', Arial, sans-serif;
}