/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'MyCustomFont', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'MyCustomFont' !important;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@font-face {
  font-family: 'MyCustomFont';
  src: url('../Vazir-Bold.ttf') format('truetype');
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
}

.brand-mark {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  border-radius: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 18px;
  color: #333;
}

.brand-text small {
  font-size: 12px;
  color: #666;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Desktop Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav > a,
.site-nav .dropdown > a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
  cursor: pointer;
}

.site-nav > a::after,
.site-nav .dropdown > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.site-nav > a:hover,
.site-nav .dropdown > a:hover {
  color: #667eea;
}

.site-nav > a:hover::after,
.site-nav .dropdown > a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 8px;
  min-width: 250px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
  margin-top: 10px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu > a {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.dropdown-menu > a:hover {
  background: #f5f5f5;
  color: #667eea;
  padding-right: 25px;
}

/* ===== NESTED DROPDOWN - ACCORDION STYLE (Desktop) ===== */
.dropdown-nested {
  position: relative;
}

.dropdown-nested-toggle {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dropdown-nested-toggle::after {
  content: '▼';
  margin-right: 8px;
  font-size: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.dropdown-nested:hover .dropdown-nested-toggle {
  background: #f5f5f5;
  color: #667eea;
  padding-right: 25px;
}

.dropdown-nested-menu {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  margin: 0;
}

.dropdown-nested:hover .dropdown-nested-menu {
  max-height: 500px;
  opacity: 1;
  padding: 10px 0;
  margin-top: 5px;
}

.dropdown-nested:hover .dropdown-nested-toggle::after {
  transform: rotate(180deg);
}

.dropdown-nested-menu a {
  display: block;
  padding: 10px 20px 10px 35px;
  font-size: 13px;
  background: transparent;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-nested-menu a:hover {
  background: #fff;
  color: #667eea;
  padding-right: 40px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 40px 0 20px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand-mark {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.footer-brand-block h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.footer-brand-block p {
  font-size: 14px;
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.footer-credit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-credit a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.footer-credit a:hover {
  opacity: 0.7;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 780px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 0 20px;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0,0,0,0.3);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .site-nav.is-open {
    left: 0;
  }

  .site-nav > a,
  .site-nav .dropdown > a {
    width: 100%;
    padding: 15px 25px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.4s ease forwards;
  }

  .site-nav.is-open > a:nth-child(1),
  .site-nav.is-open > .dropdown:nth-child(1) > a {
    animation-delay: 0.1s;
  }

  .site-nav.is-open > a:nth-child(2),
  .site-nav.is-open > .dropdown:nth-child(2) > a {
    animation-delay: 0.15s;
  }

  .site-nav.is-open > a:nth-child(3),
  .site-nav.is-open > .dropdown:nth-child(3) > a {
    animation-delay: 0.2s;
  }

  .site-nav.is-open > a:nth-child(4),
  .site-nav.is-open > .dropdown:nth-child(4) > a {
    animation-delay: 0.25s;
  }

  .site-nav.is-open > a:nth-child(5),
  .site-nav.is-open > .dropdown:nth-child(5) > a {
    animation-delay: 0.3s;
  }

  @keyframes slideIn {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .site-nav > a::after,
  .site-nav .dropdown > a::after {
    display: none;
  }

  /* Mobile Dropdown */
  .dropdown {
    width: 100%;
  }

  .dropdown-toggle::after {
    content: '▼';
    float: left;
    margin-left: 10px;
    font-size: 10px;
    transition: transform 0.3s ease;
  }

  .dropdown.is-open .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.4s ease;
  }

  .dropdown.is-open .dropdown-menu {
    max-height: 800px;
  }

  .dropdown-menu > a {
    padding: 12px 25px 12px 45px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
  }

  /* Mobile Nested Dropdown */
  .dropdown-nested-toggle::after {
    content: '▼';
    margin-right: 0;
    margin-left: 10px;
    float: left;
  }

  .dropdown-nested.is-open .dropdown-nested-toggle::after {
    transform: rotate(180deg);
  }

  .dropdown-nested-menu {
    position: static;
    box-shadow: none;
    background: #ececec;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height 0.4s ease;
  }

  .dropdown-nested.is-open .dropdown-nested-menu {
    max-height: 600px;
  }

  .dropdown-nested-menu a {
    padding: 10px 25px 10px 65px;
    font-size: 13px;
  }

  /* Mobile Overlay */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
  }

  body.menu-open::before {
    opacity: 1;
    visibility: visible;
  }

  /* Footer Mobile */
  .footer-container {
    gap: 25px;
  }

  .footer-brand-block {
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }

  .footer-credit {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .brand-text strong {
    font-size: 16px;
  }

  .brand-text small {
    font-size: 11px;
  }

  .site-nav {
    width: 280px;
  }
}

/* ========== Content Sections ========== */
.content-section {
  padding: 60px 20px;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.info-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.15);
}

.info-card h2 {
  color: #667eea;
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.info-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.info-card h3 {
  color: #764ba2;
  font-size: 1.5rem;
  margin: 25px 0 15px;
}

.info-card p, .info-card ol, .info-card ul {
  line-height: 1.8;
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 15px;
}

.info-card ol, .info-card ul {
  padding-right: 25px;
}

.info-card li {
  margin-bottom: 10px;
}

.info-card hr {
  border: none;
  border-top: 2px solid #e9ecef;
  margin: 30px 0;
}

/* Board Members Section */
.board-members {
  padding: 5rem 2rem;
  background: #f8f9fa;
}

.board-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.board-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #d4a574 0%, #c89860 100%);
  border-radius: 2px;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  justify-items: center;
}

.member-card {
  background: #fff;
  border: 2px solid #2c3e50;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  max-width: 350px;
  width: 100%;
}

.member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.member-image {
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.member-info {
  padding: 1.5rem;
  text-align: center;
  background: #fff;
}

.member-position {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.8rem;
}

.member-description {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .board-members {
    padding: 3rem 1rem;
  }
  
  .board-title {
    font-size: 1.5rem;
  }
  
  .members-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .member-card {
    max-width: 100%;
  }
  
  .member-image {
    height: 300px;
  }
  
  .member-position {
    font-size: 1rem;
  }
  
  .member-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .member-image {
    height: 250px;
  }
}