/* ================================
   Custom Navigation Menu Styling
   ================================ */
/* @import url("navbar.css"); */
/* @import url("cart.css"); */

/* ====== */
/* ====== */
/* ====== */
/* ====== */

.hero-section {
  font-family: var(--font-text1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  padding: 1em 2em;
  color: var(--color-txt-light);

  p {
    font-size: var(--font-size1);
  }
}
.aboutus {
  font-family: var(--font-text1);
  font-size: var(--font-size1);
  text-align: justify;
}

/* ================================================ */
/* =========== Blog List Section*/
/* ================================================ */
.shabbo {
  /* background-image: url("./assets/images/bg2.png");
  background-position: center;
  background-repeat: repeat;
  background-size: 10000px; */
  max-width: 900px;
  margin: 0 auto;
  /* background-color: red; */
}

.shabbo .container {
  padding: 1em 0;
  font-size: 36px;
  font-weight: 900;
  max-width: 900px;
  margin: 0 auto;
}
.shabbo .blog-list {
  display: flex;
  flex-direction: row;
  /* padding: 1em; */
  margin: 0.1em auto;
  background-color: #00000015;
  border-radius: 10px;
  /* max-height: 350px; */
  /* min-height: 350px; */
  max-height: 280px;
}

.shabbo .blog-thumb {
  flex: 1 1 30%;
}

.shabbo .blog-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 0 10px 10px 0;
}

.shabbo .blog-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  /* background-color: red; */
  padding: 1em;
}

.shabbo .blog-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin: 0.5rem 0; */
  line-height: 1.4;
  /* width: 100%; */

  font-family: var(--font-title);

  h2 {
    flex: 0 0 85%;
    font-size: 1.5rem;
  }

  .title {
    font-weight: bold;
    text-decoration: none;
    color: #000;
  }
}

.shabbo .blog-date {
  font-size: clamp(14px, 1vw, 1rem);
  font-family: var(--font-label);
}

.shabbo .blog-label {
  font-size: clamp(14px, 0.5vw, 3rem);
  /* align-self: end; */
  justify-self: start;
  font-family: var(--font-text1);
  /* background-color: #a81c3b; */
}

.shabbo .blog-content .blog-desc {
  font-family: var(--font-text1);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--color-txt-muted);
  max-width: 900px;
  margin: 0 auto;
  max-height: 100px;
  overflow: hidden;
}

@media (max-width: 921px) {
  .shabbo {
    margin: 0 1em;
  }
}
@media (max-width: 768px) {
  .shabbo {
    margin: 0 1em;
  }
  .shabbo .blog-list {
    flex-direction: column;
    max-height: 100%;
  }

  .blog-thumb img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 10px 10px 0 0;
  }

  .blog-title {
    font-size: 1.25rem;
  }
}

/* ================================================ */
/* =========== Header of Each Section*/
/* ================================================ */

.section-header {
  display: flex;
  align-items: center;
  margin: 0 auto;
  gap: 0.5rem;
  /* direction: ltr; */
  flex-direction: row;
  font-family: var(--font-h);
}

.section-header h1 {
  font-size: clamp(22px, 2vw, 5rem);
  font-weight: 900;
}

.section-header .section-line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--color-bg1);
}

.section-header .section-icon {
  width: 48px;
  height: 48px;
  fill: var(--color-bg3);
  align-self: right;
  margin-bottom: 12px;
  margin-right: -10px;
}

.section-header .section-text {
  font-weight: bold;
  font-size: 1rem;
  color: var(--color-txt-light);
  white-space: nowrap;
  font-size: clamp(18px, 1.8vw, 5rem);
  text-align: start;
}

/* ================================================ */
/* =========== Blog Detail Section*/
/* ================================================ */
/* ===== News / Announcement Post Styles ===== */

.news-container {
  direction: rtl;
  text-align: right;
  font-family: var(--font-text, "sade", sans-serif);
}

.news-post {
  background: var(--extra-light, #fff);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #eee;
  transition: box-shadow 0.3s ease;
}

.news-post:hover {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
}

.news-banner img {
  max-height: 420px;
  object-fit: cover;
  border-bottom: 4px solid var(--color-bg2, #00837e);
}

.news-body {
  background-color: #fff;
  border-right: 6px solid var(--color-bg2, #00837e);
  border-top: none;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.news-title {
  font-family: var(--font-title, "Ziba", sans-serif);
  color: var(--color-bg2, #00837e);
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.4;
  border-bottom: 2px solid var(--color-bg3, #dcae00);
  padding-bottom: 0.5rem;
}

.news-meta {
  font-family: var(--font-label, "Nafis", sans-serif);
  color: var(--color-txt-muted, #666);
}

.news-meta .badge {
  background-color: var(--accent, #ffc87e);
  font-size: 0.85rem;
}

.news-content {
  color: var(--color-txt-primary, #222);
  line-height: 2;
  margin-top: 1rem;
}

.news-content p {
  margin-bottom: 1.2rem;
}

.news-content a {
  color: var(--color-txt-link, #e34f33);
  text-decoration: underline;
}

.news-content a:hover {
  color: var(--color-txt-hover, #e3503389);
}

.news-tags {
  border-top: 1px solid #eee;
  margin-top: 2rem;
  padding-top: 1rem;
  color: var(--color-txt-muted, #555);
}

.news-tags i {
  color: var(--color-txt-link, #e34f33);
  margin-left: 6px;
}

/* ====================login */
/* ========================
   Login & Register Pages
   ======================== */

.auth-page {
  direction: rtl;
  text-align: right;
  background-color: #f7f9fc;
  min-height: 100vh;
  font-family: var(--font-title, "Ziba", sans-serif);
}

.auth-card {
  border: 1px solid #e5e5e5;
  transition: box-shadow 0.3s ease;
}

.auth-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.auth-card h2 {
  font-family: var(--font-title, "Ziba", sans-serif);
  font-weight: bold;
}

.auth-form label {
  font-weight: 600;
  color: #333;
}

.auth-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* Responsive */
@media (max-width: 992px) {
  .auth-form {
    margin-top: 3rem;
  }
}

/* ====================Contact */
/* ========================
   contact us Pages
   ======================== */

.contact-page {
  min-height: 80vh;
}

.form-section h1 {
  width: 100%;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  padding: 1em 0;
}

.form-section .form-text {
  padding: 1em 0;
  text-align: justify;

  span {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
  }
}

.form-section h3 {
  padding: 0;
  background-color: red;
}

.contact-form-card,
.contact-info-card {
  transition: all 0.3s ease;
  background-color: var(--color-bg4);
  padding: 1em;
  border-radius: 0.5em;
  /* box-shadow: 10px 10px 5px var(--color-bg4); */
  font-family: var(--font-text2);
}

.contact-form-card:hover,
.contact-info-card:hover {
  transform: translateY(-5px);
}

#contactFormMsg {
  font-weight: 500;
}

.profile {
  font-family: var(--font-h);
}

/* ===============================
   Single Summer School Program
================================ */

.program-single {
  padding: 4rem 1rem;
  background-color: #f9f9f9;
}

.program-container {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3rem;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.program-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 1rem;
}

.program-title {
  font-size: 2.2rem;
  line-height: 1.4;
  color: #222;
}

.program-image {
  margin: 2rem 0;
}

.program-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.program-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
}

.program-content p {
  margin-bottom: 1.2rem;
}

/* ===============================
   Programs Pages
================================ */

:root {
  --pesi-primary: #2b2e4a;
  --pesi-accent: #c9a24d;
  --pesi-bg: #f7f7f9;
  --pesi-text: #2a2a2a;
}

.pesi-program {
  background: var(--pesi-bg);
}

.pesi-program__hero {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, var(--pesi-primary), #1f2235);
  color: #fff;
}

.pesi-program__hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pesi-program__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.pesi-program__subtitle {
  font-size: 1.2rem;
  max-width: 720px;
  opacity: 0.9;
}

.pesi-program__content {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.pesi-program__main p {
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.pesi-program__sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.pesi-program__meta {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pesi-program__meta li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
}

.pesi-program__cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 1.5rem;
  background: var(--pesi-accent);
  color: #000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}

/* ===============================
Avatar: members
================================ */
.marketing h2 {
  font-size: 22px;
}

.marketing p {
  font-size: 14px;
}

/* ===============================
   Bootstrap Front Pages
================================ */
/* ===============================
   Full Width Carousel – Pesi Theme
   =============================== */

/* ساختار اصلی carousel */
.carousel,
.carousel-inner,
.carousel-item {
  width: 100%;
  height: 100vh; /* ارتفاع تمام صفحه */
  position: relative;
}

/* تصویر اسلاید */
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* تمرکز تصویر */
}

/* لایه تیره برای خوانایی متن */
.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* متن و کپشن */
.carousel-caption {
  position: absolute;
  bottom: 15%;
  z-index: 2;
  color: #fff;
}

/* تیتر */
.carousel-caption h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* متن توضیح */
.carousel-caption p {
  font-size: 1.15rem;
  max-width: 600px;
  line-height: 1.8;
  /* margin: 0 auto; */
}

/* دکمه */
.carousel-caption .btn {
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* ===============================
   Responsive – موبایل و تبلت
   =============================== */

@media (max-width: 992px) {
  .carousel,
  .carousel-inner,
  .carousel-item {
    height: 80vh;
  }

  .carousel-caption h1 {
    font-size: 2.2rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .carousel,
  .carousel-inner,
  .carousel-item {
    height: 70vh;
  }

  .carousel-caption {
    bottom: 10%;
    text-align: center;
  }

  .carousel-caption h1 {
    font-size: 1.8rem;
  }

  .carousel-caption p {
    font-size: 0.95rem;
    max-width: 100%;
  }
}

/* ==============footer */
/* ==============================
   Footer Styling
   ============================== */

.site-footer {
  background-color: var(--color-bg4, #f8f9fa); /* fallback if no CSS variable */
  color: var(--color-txt-secondary, #6c757d);
  font-family: var(--font-text1, Arial, sans-serif);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1.5rem;
}

.site-footer .footer-logo {
  max-height: 50px;
  width: auto;
}

.site-footer .nav-link {
  font-weight: 400;
  transition: color 0.3s ease;
}

.site-footer .nav-link:hover {
  color: var(--color-bg3, #dcae00); /* hover color variable */
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-footer .d-flex {
    flex-direction: column;
    text-align: center;
  }

  .site-footer .nav {
    justify-content: center !important;
    margin-top: 1rem;
  }

  .site-footer .col-md-4 {
    margin-bottom: 0.5rem;
  }
}

/* =============== */

/* Latest Posts – Minimal Academic Style */
.latest-posts .post-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.latest-posts .post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

/* Image */
.latest-posts .post-card__image img {
  width: 100%;
  height: 160px; /* 👈 reduced image height */
  object-fit: cover;
  display: block;
}

/* Content */
.latest-posts .post-card__content {
  padding: 1.5rem 1.25rem 2rem;
}

.latest-posts .post-card__title {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.latest-posts .post-card__title a {
  color: #212529;
  text-decoration: none;
}

.latest-posts .post-card__title a:hover {
  text-decoration: underline;
}

/* Text */
.latest-posts .post-card__excerpt {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Link */
.latest-posts .post-card__link {
  font-size: 0.85rem;
  color: #6c757d;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.latest-posts .post-card__link:hover {
  border-color: #6c757d;
}

.no-caret .dropdown-toggle::after {
  display: none;
}
