:root {
  --font-primary: "BNazanin", sans-serif;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;

  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;

  --theme-network: #3b82f6;
  --theme-photo: #ec4899;
  --theme-accounting: #10b981;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-main: #090d16;
  --bg-card: #151f32;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #1e293b;

  --primary-color: #3b82f6;
  --primary-hover: #60a5fa;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-primary);
  text-decoration: none;
  list-style: none;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.7;
  transition:
    opacity 0.3s ease background-color 0.3s ease,
    color 0.3s ease;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  opacity: 1;
}
body.fade-out {
  opacity: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  border-radius: 15px;
}

.section-padding {
  padding: 35px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-main.primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-main.primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-main.outline {
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

.btn-main.outline:hover {
  background-color: var(--border-color);
  transform: translateY(-2px);
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

[data-theme="dark"] .main-header {
  background-color: rgba(21, 31, 50, 0.85);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo i {
  font-size: 32px;
  color: var(--primary-color);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text span {
  font-weight: 800;
  font-size: 18px;
  color: var(--text-primary);
}

.logo-text small {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.theme-toggle:hover {
  background-color: var(--border-color);
}

.btn-portal {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.btn-portal:hover {
  background-color: var(--primary-hover);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-primary);
  cursor: pointer;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  padding: 80px 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 35px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  background: linear-gradient(135deg, var(--primary-color), #4f46e5);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: morphing 8s ease-in-out infinite alternate;
}

.hero-icon {
  font-size: 100px;
  color: #ffffff;
  animation: float 4s ease-in-out infinite;
}

.honarestanlogo {
  background-color: rgba(21, 31, 50, 0.85);
  border-radius: 100%;
  width: 50px;
  height: 50px;
  margin: 0 40px;
  overflow: hidden;
}

@keyframes morphing {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  100% {
    border-radius: 64% 36% 41% 59% / 59% 41% 59% 41%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.majors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.major-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.major-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 5px;
}

.major-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.network-theme::before {
  background-color: var(--theme-network);
}
.network-theme .major-icon {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--theme-network);
}

.photo-theme::before {
  background-color: var(--theme-photo);
}
.photo-theme .major-icon {
  background-color: rgba(236, 72, 153, 0.1);
  color: var(--theme-photo);
}

.accounting-theme::before {
  background-color: var(--theme-accounting);
}
.accounting-theme .major-icon {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--theme-accounting);
}

.major-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.major-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.major-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.major-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  font-size: 13px;
}

.student-count {
  color: var(--text-primary);
  font-weight: 600;
}

.student-count i {
  color: var(--text-muted);
  margin-left: 6px;
}

.major-badge {
  background-color: var(--bg-main);
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 500;
  color: var(--text-muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.news-img-placeholder {
  height: 200px;
  background-color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 40px;
  transition: var(--transition-smooth);
}

.news-card:hover .news-img-placeholder {
  filter: brightness(0.9);
}

.news-body {
  padding: 24px;
}

.news-date {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-date i {
  margin-left: 4px;
}

.news-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.news-card:hover h3 {
  color: var(--primary-color);
}

.news-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  transition: var(--transition-smooth);
}

.news-link:hover {
  gap: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background-color: var(--border-color);
  cursor: pointer;
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--bg-card);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.gallery-placeholder i {
  font-size: 32px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.gallery-placeholder span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-placeholder {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.gallery-item:hover .gallery-placeholder i,
.gallery-item:hover .gallery-placeholder span {
  color: #ffffff;
  transform: scale(1.05);
}

.portals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.portal-icon {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.portal-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.portal-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.location-wrapper {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 20px;
}

.location-info h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.location-info p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-info p i {
  color: var(--primary-color);
  font-size: 18px;
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 300px;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
}

.map-placeholder i {
  font-size: 48px;
}

.map-placeholder span {
  font-size: 14px;
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.developer-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.developer-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.dev-matin:hover {
  border-color: #a2c6ff;
}
.dev-kamyar:hover {
  border-color: #f992c6;
}
.dev-monib:hover {
  border-color: #b0fee4;
}

.dev-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 32px;
  color: var(--text-muted);
  border: 2px solid var(--border-color);
  transition: var(--transition-smooth);
}

.developer-card:hover .dev-avatar {
  color: #ffffff;
}

.dev-matin:hover .dev-avatar {
  background-color: #a2c6ff;
  border-color: #a2c6ff;
}
.dev-kamyar:hover .dev-avatar {
  background-color: #f992c6;
  border-color: #f992c6;
}
.dev-monib:hover .dev-avatar {
  background-color: #b0fee4;
  border-color: #b0fee4;
}

.developer-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.dev-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.dev-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.dev-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-main);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.dev-socials a:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: scale(1.1);
}

.main-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid #1e293b;
}

.footer-about h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-about h3 i {
  color: var(--primary-color);
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-links h4,
.footer-social h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links ul li a {
  color: #94a3b8;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.footer-links ul li a i {
  font-size: 10px;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-right: 6px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: #1e293b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-smooth);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.tel-info {
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tel-info i {
  color: var(--primary-color);
}

.footer-bottom {
  padding: 24px 0;
}

.footer-bottom-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
}

.footer-bottom .highlight {
  color: var(--primary-color);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 50px 0;
  }
  .hero-content {
    align-items: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .location-wrapper {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
  }
  .footer-social {
    grid-column: span 2;
  }
  .honarestanlogo {
    margin: 0 30px;
  }
  .honarestanlogo {
    width: 70px;
    height: 50px;
    margin: 0 15px;
  }
}
@media (max-width: 768px) {
  .section-padding {
    padding: 30px 0;
  }
  .section-header {
    margin-bottom: 30px;
  }
  .section-header h2 {
    font-size: 24px;
  }

  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    gap: 12px;
    display: none;
    box-shadow: var(--shadow-md);
    text-align: right;
  }
  .nav-menu.active {
    display: flex;
    animation: floatAnimate 0.3s ease-in-out;
  }

  .majors-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .major-card {
    padding: 24px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .news-img-placeholder {
    height: 120px;
    font-size: 28px;
  }
  .news-body {
    padding: 16px;
  }
  .news-body h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .news-body p {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .gallery-placeholder {
    gap: 6px;
    border-width: 1px;
  }
  .gallery-placeholder i {
    font-size: 20px;
  }
  .gallery-placeholder span {
    font-size: 11px;
    text-align: center;
  }

  .portals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .portal-card {
    padding: 20px;
  }
  .portal-card h4 {
    font-size: 15px;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .developer-card {
    padding: 16px 8px;
    border-radius: var(--radius-sm);
  }
  .dev-avatar {
    width: 48px;
    height: 48px;
    font-size: 18px;
    margin-bottom: 10px;
  }
  .developer-card h3 {
    font-size: 12px;
    white-space: nowrap;
  }
  .dev-role {
    font-size: 9px;
    margin-bottom: 10px;
    line-height: 1.3;
  }
  .dev-socials a {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-social {
    grid-column: span 1;
  }
  .footer-bottom-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .visual-wrapper {
    display: none !important;
  }
  .honarestanlogo {
    width: 50px;
    height: 50px;
    margin: 0 15px;
  }
  .logo-text span {
    font-size: 12px;
  }
  .btn-portal {
    padding: 10px 3px;
    font-size: 11px;
  }
  .designers_pic {
    width: 25px !important;
    height: 25px !important;
  }
}

@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .developer-card h3 {
    font-size: 10px;
  }
  .dev-role {
    font-size: 8px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .portals-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 26px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .btn-main {
    width: 100%;
  }
  .honarestanlogo {
    width: 50px;
    height: 50px;
    margin: 0 15px;
  }
}

@keyframes floatAnimate {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;

  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);

  opacity: 0;
  visibility: hidden;

  transition: 0.35s;

  z-index: 9999;
}

.news-modal.active {
  opacity: 1;
  visibility: visible;
}

.news-modal-box {
  width: min(900px, 95%);
  max-height: 90vh;

  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-card);

  border-radius: 24px;

  padding: 35px;

  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);

  animation: popup 0.35s ease;

  position: relative;
  scrollbar-width: thin;
}


.news-modal-box::-webkit-scrollbar {
  width: 8px;
}

.news-modal-box::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 50px;
}


#modalImage {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
  margin: 0;
  border-radius: 24px 24px 0 0;
  transition: 0.3s;
}

#modalImage:hover {
  transform: scale(1.02);
}


#modalTitle {
  font-size: 2rem;

  font-weight: 700;

  line-height: 1.5;

  margin-bottom: 20px;
}


.news-meta {
  display: flex;

  gap: 12px;

  flex-wrap: wrap;

  margin-bottom: 30px;
}

#modalDate,
#modalCategory {
  background: rgba(100, 100, 100, 0.12);

  padding: 8px 18px;

  border-radius: 50px;

  font-size: 0.9rem;

  font-weight: 600;
}


#modalText {
  font-size: 16px;
  line-height: 2.2;
  color: var(--text-primary);
  text-align: justify;
}

#modalText p {
  margin: 20px 0;
}


.close-news {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}
.close-news:hover {
  background: #ef4444;
  transition: 0.3s;
  color: #fff;

  transform: rotate(90deg);
}


@keyframes popup {
  from {
    transform: translateY(30px);

    opacity: 0;
  }

  to {
    transform: translateY(0);

    opacity: 1;
  }
}

@media (max-width: 768px) {
  .news-modal {
    padding: 12px;
  }

  .news-modal-box {
    width: 100%;
    max-height: 90vh;
  }

  #modalImage {
    height: 200px;
  }

  .news-modal-content {
    padding: 20px;
  }

  #modalTitle {
    font-size: 22px;
  }

  #modalText {
    font-size: 15px;
    line-height: 2;
  }
}
@media (max-width: 576px) {
  .news-modal-box {
    padding: 18px;
  }
  .news-meta {
    flex-direction: column;
    gap: 8px;
  }
  #modalTitle {
    font-size: 20px;
  }
}


#loader {
  position: fixed;
  inset: 0;

  background: rgba(240, 244, 250, 0.85);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
}

[data-theme="dark"] #loader {
  background: rgba(10, 15, 25, 0.55);
}

.loader-box {
  background: rgba(255, 255, 255, 0.75);
  padding: 35px 45px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-spinner {
  width: 45px;
  height: 45px;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loader-logo-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden; 
}

.loader-logo {
  width: 85px;
  height: 85px;
  object-fit: contain;
  border-radius: 50%; 
  animation: pulse 1.4s infinite;
}
.loader-hide {
  opacity: 0;
  visibility: hidden;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}
.index-gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.index-gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.index-img-box {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--border-color);
  position: relative;
}

.index-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.index-gallery-img:hover {
  transform: scale(1.05);
}

.index-pic-body {
  padding: 20px;
}

.index-pic-body h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.index-pic-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

#imageModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  padding: 30px;
  animation: popup 0.3s ease;
}

#imageModal img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

#imageModal .close-modal {
  position: absolute;
  top: 20px;
  left: 25px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

#imageModal .close-modal:hover {
  background: #ef4444;
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .index-img-box {
    height: 160px;
  }
}
.custom-slider {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.slides-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.slide-img.active {
  opacity: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 4px;
  z-index: 10;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: var(--primary-color);
}

.prev-btn {
  right: 8px;
}

.next-btn {
  left: 8px;
}

#imageModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  padding: 30px;
}

#imageModal img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

#imageModal .close-modal {
  position: absolute;
  top: 20px;
  left: 25px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

#imageModal .close-modal:hover {
  background: #ef4444;
  transform: rotate(90deg);
}
