/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'MyCustomFont', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-y: auto;
}

body {
  font-family: 'MyCustomFont';
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@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 */
.dropdown-nested {
  position: relative;
}

.dropdown-nested-toggle::after {
  content: '◀';
  margin-right: 8px;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.dropdown-nested-menu {
  position: absolute;
  top: 0;
  right: 100%;
  background: #f9f9f9;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 8px;
  min-width: 280px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  margin-left: -10px;
}

.dropdown-nested:hover .dropdown-nested-menu {
    opacity: 1;
    visibility: visible;
    /* transform: translateX(0); */
    margin-left: 0px;
    transform: translateX(530px);
}


.dropdown-nested:hover .dropdown-nested-toggle::after {
  transform: rotate(180deg);
}

.dropdown-nested-menu a {
  padding: 10px 20px;
  font-size: 13px;
}

.dropdown-nested-menu a:hover {
  background: #fff;
  color: #667eea;
}

/* ===== 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;
  }

  .dropdown-nested:hover .dropdown-nested-menu {
    transform: translateY(0) !important;
  }

  .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 Styles ========== */
@media (max-width: 780px) {
  .dropdown-toggle::after,
  .dropdown-nested-toggle::after {
    float: left;
  }
  
  .dropdown-nested:hover .dropdown-nested-menu {
    transform: translateY(0) !important;
  }
  .dropdown-menu,
  .dropdown-nested-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.05);
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  .dropdown.is-open > .dropdown-menu {
    max-height: 800px;
  }
  
  .dropdown-nested.is-open > .dropdown-nested-menu {
    max-height: 700px;
  }
  
  .dropdown-menu a,
  .dropdown-nested-menu a {
    padding: 12px 20px;
    padding-right: 40px;
    border-right: 3px solid transparent;
  }
  
  .dropdown-nested-menu a {
    padding-right: 60px;
    font-size: 13px;
    background: rgba(0,0,0,0.1);
  }
  
  .dropdown-menu a:hover,
  .dropdown-nested-menu a:hover {
    background: rgba(255,255,255,0.15);
    border-right-color: #667eea;
  }
  
  /* مهم: nested dropdown باید داخل dropdown-menu باشه */
  .dropdown-nested {
    display: block;
    width: 100%;
  }
  
  .dropdown-nested-toggle {
    display: block;
    width: 100%;
  }
}


  /* 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;
  }
  .dropdown-nested:hover .dropdown-nested-menu {
    transform: translateY(0) !important;
  }
}

/* ========== Tablet Landscape (780px - 1024px) ========== */
@media (max-width: 1024px) {
  .container {
    max-width: 90%;
  }
  
  .site-nav a {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
}

/* ========== Tablet Portrait (600px - 780px) ========== */
@media (max-width: 780px) {
  /* کدهای موجود شما... */
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 60px 0;
  }
}

/* ========== Mobile Large (480px - 600px) ========== */
@media (max-width: 600px) {
  .hero {
    min-height: 500px;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 14px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section h2 {
    font-size: 1.8rem;
  }
}

/* ========== Mobile Small (320px - 480px) ========== */
@media (max-width: 480px) {
  .container {
    max-width: 95%;
    padding: 0 15px;
  }
  
  .site-header {
    padding: 12px 0;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  .hero {
    min-height: 450px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 0.9rem;
    margin: 15px 0 25px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .section p {
    font-size: 14px;
  }
  
  .dropdown-menu a,
  .dropdown-nested-menu a {
    padding: 10px 15px;
    font-size: 13px;
  }
  
  .dropdown-nested-menu a {
    padding-right: 50px;
    font-size: 12px;
  }
  
  .site-footer {
    padding: 30px 0;
    font-size: 13px;
  }
}

/* ========== Mobile Extra Small (< 360px) ========== */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.3rem;
  }
  
  .hero p {
    font-size: 0.85rem;
  }
  
  .section h2 {
    font-size: 1.3rem;
  }
  
  .btn {
    padding: 8px 18px;
    font-size: 12px;
  }
}

/* ========== Large Desktop (> 1400px) ========== */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .hero p {
    font-size: 1.3rem;
  }
  
  .section h2 {
    font-size: 2.8rem;
  }
}


/* ==================== Hero Section ==================== */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 120px 20px 80px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

/* ==================== Content Section ==================== */
.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 p {
  line-height: 1.8;
  color: #555;
  font-size: 1.1rem;
}

/* ==================== Tabs ==================== */
.tabs-container {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}

.tabs-nav {
  display: flex;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 10px;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  flex: 1;
  min-width: 150px;
  padding: 15px 25px;
  background: rgba(255,255,255,0.2);
  border: 2px solid transparent;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.tab-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: white;
  color: #667eea;
  border-color: white;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.tab-content {
  display: none;
  padding: 40px;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content h3 {
  color: #667eea;
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}

/* ==================== Definition Grid ==================== */
.definition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.definition-item {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.definition-item:hover {
  transform: translateY(-5px);
  border-color: #667eea;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.definition-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.definition-item h4 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.definition-item p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ==================== Modern Table ==================== */
.table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.modern-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.modern-table th {
  padding: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.modern-table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background 0.3s ease;
}

.modern-table tbody tr:hover {
  background: #f8f9fa;
}

.modern-table td {
  padding: 18px 20px;
  text-align: center;
  color: #555;
}

.modern-table tbody tr:last-child {
  border-bottom: none;
}

.table-note {
  margin-top: 20px;
  padding: 15px;
  background: #fff3cd;
  border-right: 4px solid #ffc107;
  border-radius: 8px;
  color: #856404;
}

/* ==================== Steps ==================== */
.steps-container {
  margin-top: 30px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 15px;
  border-right: 5px solid #667eea;
  transition: all 0.3s ease;
}

.step-item:hover {
  transform: translateX(-5px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.step-content h4 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.step-content p {
  color: #666;
  line-height: 1.6;
}

/* ==================== Accordion ==================== */
.accordion {
  margin-top: 30px;
}

.accordion-item {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: #667eea;
}

.accordion-header {
  width: 100%;
  padding: 20px 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  text-align: right;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 25px;
  background: white;
}

.accordion-item.active .accordion-body {
  max-height: 500px;
  padding: 20px 25px;
}

.accordion-body p {
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* ==================== Calculator ==================== */
.calculator-section {
  margin-top: 40px;
}

.calculator-section h3 {
  color: #667eea;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
}

.calculator-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 0 auto;
}

.calc-input-group {
  margin-bottom: 25px;
}

.calc-input-group label {
  display: block;
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
  font-size: 1rem;
}

.calc-input-group input,
.calc-input-group select {
  width: 100%;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.calc-input-group input:focus,
.calc-input-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.calc-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.calc-btn:active {
  transform: translateY(0);
}

.calc-result {
  margin-top: 25px;
  padding: 25px;
  background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%);
  border-radius: 12px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #155724;
  display: none;
  animation: slideDown 0.5s ease;
}

.calc-result.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .hero-section {
    padding: 100px 20px 60px;
  }

  .info-card {
    padding: 25px;
  }

  .tabs-nav {
    flex-direction: column;
  }

  .tab-btn {
    min-width: 100%;
  }

  .tab-content {
    padding: 25px;
  }

  .definition-grid {
    grid-template-columns: 1fr;
  }

  .step-item {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin: 0 auto 15px;
  }

  .calculator-card {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .tab-content h3 {
    font-size: 1.5rem;
  }

  .modern-table th,
  .modern-table td {
    padding: 12px 8px;
    font-size: 0.9rem;
  }
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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('../384.Font.Farsi/384.Font.Farsi/Badr.ttf') format('ttf');
  font-weight: normal;
  font-style: normal;
}

/* ===== 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;
  }
}

.projects-section {
  padding: 60px 20px;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.projects-title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 40px;
  position: relative;
}

.projects-title::after {
  content: '';
  display: block;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  margin: 12px auto 0;
  border-radius: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.project-item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  text-align: center;
  padding-bottom: 15px;
}

.project-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.project-item h3 {
  font-size: 1.1rem;
  color: #444;
  padding: 18px 10px 12px;
}

.project-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .projects-title {
    font-size: 1.6rem;
  }

  .project-item img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .projects-section {
    padding: 40px 15px;
  }

  .project-item h3 {
    font-size: 1rem;
  }

  .project-item img {
    height: 180px;
  }
}


/* ================= Projects Column Section ================= */

.projects-column-section {
  padding: 80px 20px;
  background:
    radial-gradient(circle at top right, rgba(102,126,234,0.12), transparent 35%),
    linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.projects-heading {
  text-align: center;
  margin-bottom: 50px;
}

.projects-heading span {
  display: inline-block;
  color: #667eea;
  background: rgba(102,126,234,0.1);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  margin-bottom: 15px;
}

.projects-heading h1 {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 12px;
}

.projects-heading p {
  color: #666;
  font-size: 1rem;
}

.projects-column-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.project-column-card{
    position:relative;
    border-radius:20px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
    transition:.35s;
    cursor:pointer;
}

.project-column-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 45px rgba(0,0,0,.18);
}

.project-image {
  position: relative;
  width: 100%;
  height: 430px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  display: block;
}

.project-column-card:hover .project-image img {
  transform: scale(1.08);
}

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(0,0,0,0.72), rgba(0,0,0,0.25), rgba(0,0,0,0.08)),
    linear-gradient(to top, rgba(0,0,0,0.45), transparent);
  z-index: 1;
}

.project-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 35px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  color: #fff;
}

.project-number {
  position: absolute;
  top: 25px;
  left: 30px;
  font-size: 4.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.18);
  line-height: 1;
}

.project-info {
  max-width: 650px;
  padding: 22px 25px;
  border-radius: 20px;
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
}

.project-info h2 {
  font-size: 17px;
  margin-bottom: 10px;
  color: #fff;
}

.project-info p {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
}

.project-link {
  flex-shrink: 0;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 13px 24px;
  border-radius: 50px;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.project-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102,126,234,0.45);
}

/* Responsive */
@media (max-width: 768px) {
  .projects-column-section {
    padding: 55px 15px;
  }

  .projects-heading h1 {
    font-size: 1.6rem;
    line-height: 1.7;
  }

  .project-image {
    height: 360px;
  }

  .project-overlay {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 25px;
  }

  .project-info {
    width: 100%;
  }

  .project-info h2 {
    font-size: 1.35rem;
  }

  .project-link {
    width: 100%;
    text-align: center;
  }

  .project-number {
    font-size: 3.5rem;
    top: 20px;
    left: 20px;
  }
}

@media (max-width: 480px) {
  .project-image {
    height: 300px;
  }

  .project-overlay {
    padding: 18px;
  }

  .project-info {
    padding: 18px;
  }

  .project-info h2 {
    font-size: 1.15rem;
  }

  .project-info p {
    font-size: 0.9rem;
  }
}


/* ================= Project Clickable Cards ================= */
.project-card-trigger {
  cursor: pointer;
}

/* ================= Gallery Modal ================= */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.gallery-modal.active {
  display: flex;
}

.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(8px);
}

.gallery-content {
  position: relative;
  z-index: 2;
  width: min(1000px, 100%);
  max-height: 90vh;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  padding: 22px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.gallery-slider {
  width: 100%;
  height: 70vh;
  max-height: 620px;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #111;
}

.gallery-close {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 5;
  transition: 0.3s ease;
}

.gallery-close:hover {
  background: rgba(255,255,255,0.24);
  transform: rotate(90deg);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  z-index: 4;
  transition: all 0.3s ease;
}

.gallery-nav:hover {
  background: rgba(255,255,255,0.24);
  transform: translateY(-50%) scale(1.08);
}

.gallery-prev {
  right: 20px;
}

.gallery-next {
  left: 20px;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 8px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.25);
  border-radius: 20px;
}

.gallery-thumb {
  width: 95px;
  height: 70px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb.active {
  border-color: #667eea;
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .gallery-modal {
    padding: 15px;
  }

  .gallery-content {
    padding: 14px;
    border-radius: 18px;
  }

  .gallery-slider {
    height: 52vh;
  }

  .gallery-nav {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .gallery-prev {
    right: 10px;
  }

  .gallery-next {
    left: 10px;
  }

  .gallery-thumb {
    width: 78px;
    height: 58px;
  }
}


