/* ===== Sub Pages General Template ===== */

.subpage {
  background-color: #f3f3f3;
  min-height: 100vh;
  padding: 160px 20px;
}

.subpage-container {
  max-width: 1100px;
  margin: 0 auto;
}


/* Label (red small title) */
.subpage-label {
  color: red;
  font-size: 18px;
  margin-bottom: 20px;
}

/* Main Title */
.subpage-title {
  font-size: 56px;
  font-weight: 400;
  color: #6a7380;
  line-height: 1.2;
  margin-bottom: 30px;
}

/* Content */
.subpage-content p {
  font-size: 18px;
  line-height: 1.9;
  color: #6a7380;
  margin-bottom: 20px;
  text-align: justify;
}

/* Sub Titles */
.subpage-content h2 {
  font-size: 32px;
  color: #6a7380;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* Links */
.subpage-content a {
  color: #1a73e8;
  text-decoration: none;
}

.subpage-content a:hover {
  text-decoration: underline;
}

/* Strong text */
.subpage-content strong {
  font-weight: 600;
  /* color: #333; */
   color: #6a7380;
}

/*  ====== subpage ordered list style =====*/
.subpage-orderedlist
{
  padding-left: 0;
  margin: 25px 0;
  list-style:decimal;
}
.subpage-orderedlist li{
  position: relative;
  margin-left: 25px;
  padding-left: 8px;
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.9;
  color: #6a7380;
}

/* ===== Subpage List Style ===== */

.subpage-list {
  list-style: none; /* حذف bullet پیش‌فرض */
  padding-left: 0;
  margin: 25px 0;
}

.subpage-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.9;
  color: #6a7380;
}

/* custom bullet */
.subpage-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background-color: red;
  border-radius: 50%;
}

/* bold title inside li */
.subpage-list li strong {
  /* color: #333; */
   color: #6a7380;
  font-weight: 600;
}

.subpage-list li:hover {
  color: #333;
  transform: translateX(4px);
  transition: 0.3s ease;
}

/* ===== General rich text block for subpages ===== */

.subpage-richtext {
  margin-top: 10px;
}

.subpage-richtext p {
  font-size: 18px;
  line-height: 2;
  color: #6a7380;
  margin-bottom: 22px;
}

.subpage-richtext strong {
  font-weight: 700;
  color: #555f6d;
}

.subpage-richtext em {
  font-style: italic;
  color: #6a7380;
}

.subpage-richtext a {
  color: #1a73e8;
  text-decoration: none;
  margin-left: 2px;
}

.subpage-richtext a:hover {
  text-decoration: underline;
}

/* Optional: tighter spacing if needed */
.subpage-richtext p:last-child {
  margin-bottom: 0;
}


/* ===== General image block for subpages ===== */

.subpage-image {
  width: 100%;
  margin: 30px 0 35px;
}

.subpage-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Optional caption */
.subpage-image figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: #8a8f98;
  line-height: 1.6;
  text-align: center;
}


/* ===== Subpage Logo ===== */

.subpage-logo {
  display: flex;
  display: inline-block;
  justify-content: flex-start; /*چپ پین */
  align-items: center;
  margin: 20px ;
  
  overflow: hidden;
}
.redborder{
border-radius: 15px ;
  border: 2px solid red;
}

.subpage-logo img {
  max-width: 460px;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Optional: hover effect */
.subpage-logo a:hover img {
  opacity: 0.85;
  transition: 0.3s ease;
}

/* *************** Picture Box *************** */
/* ===== Subpage Hero Banner ===== */

.subpage-hero-banner {
  width: 100%;
  margin: 30px 0 35px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  background: #111;
}

.subpage-hero-banner img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.subpage-hero-banner:hover img {
  transform: scale(1.01);
}

/* ===== President / Message Block ===== */

.subpage-message-header {
  margin-bottom: 25px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(106, 115, 128, 0.18);
}

.subpage-message-name {
  font-size: 34px;
  font-weight: 700;
  color: #d91f1f;
  line-height: 1.2;
  margin-bottom: 6px;
}

.subpage-message-role {
  font-size: 20px;
  color: #6a7380;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
  .subpage-hero-banner {
    margin: 25px 0 30px;
    border-radius: 14px;
  }

  .subpage-message-name {
    font-size: 28px;
  }

  .subpage-message-role {
    font-size: 18px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .subpage-hero-banner {
    margin: 20px 0 24px;
    border-radius: 10px;
  }

  .subpage-message-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  .subpage-message-name {
    font-size: 22px;
  }

  .subpage-message-role {
    font-size: 16px;
    line-height: 1.5;
  }
}

/* Soheil Pic */
/* ===== President Feature Section ===== */

/* .president-feature {
  background: linear-gradient(135deg, #0f0f12 0%, #17171c 45%, #2b0000 100%);
  padding: 60px 30px;
  position: relative;
  overflow: hidden;
}

.president-feature::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.18) 0%, rgba(255, 0, 0, 0) 70%);
  pointer-events: none;
}

.president-feature::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 40, 40, 0.14) 0%, rgba(255, 40, 40, 0) 72%);
  pointer-events: none;
}

.president-feature__inner {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.president-feature__image-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.president-feature__image-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

.president-feature__image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  pointer-events: none;
  z-index: 2;
}

.president-feature__image {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.president-feature__image-wrap:hover .president-feature__image {
  transform: scale(1.02);
}

.president-feature__content {
  color: #ffffff;
}

.president-feature__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff4a4a;
  font-weight: 600;
}

.president-feature__title {
  font-size: 52px;
  line-height: 1.08;
  margin-bottom: 16px;
  font-weight: 700;
  color: #ffffff;
}

.president-feature__name {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
  color: #ff3a3a;
  margin-bottom: 6px;
}

.president-feature__role {
  font-size: 21px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 22px;
}

.president-feature__text {
  font-size: 18px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.86);
  max-width: 580px;
  margin-bottom: 28px;
}

.president-feature__btn {
  display: inline-block;
  padding: 14px 26px;
  border: 1.5px solid #ff3a3a;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 58, 58, 0.08);
  transition: all 0.35s ease;
}

.president-feature__btn:hover {
  background: #ff2c2c;
  border-color: #ff2c2c;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 44, 44, 0.28);
}
 */
/* ===== Tablet ===== */
@media (max-width: 1024px) {
  .president-feature {
    padding: 50px 24px;
  }

  .president-feature__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .president-feature__title {
    font-size: 42px;
  }

  .president-feature__name {
    font-size: 30px;
  }

  .president-feature__role {
    font-size: 19px;
  }

  .president-feature__text {
    font-size: 17px;
    max-width: none;
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .president-feature {
    padding: 35px 16px;
  }

  .president-feature__inner {
    gap: 22px;
  }

  .president-feature__image-wrap {
    border-radius: 16px;
  }

  .president-feature__image-wrap::before {
    border-radius: 16px;
  }

  .president-feature__title {
    font-size: 32px;
  }

  .president-feature__name {
    font-size: 25px;
  }

  .president-feature__role {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .president-feature__text {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 22px;
  }

  .president-feature__btn {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
  }
}



/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
  .subpage-logo img {
    max-width: 220px;
  }

  .subpage-logo {
    margin: 18px 0 25px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .subpage-logo img {
    max-width: 180px;
  }

  .subpage-logo {
    margin: 15px 0 20px;
  }
}


/* Desktop large screens */
@media (min-width: 1200px) {
  .subpage-image img {
    max-height: 500px;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .subpage-image {
    margin: 25px 0 30px;
  }

  .subpage-image img {
    max-height: 380px;
    border-radius: 10px;
  }

  .subpage-image figcaption {
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .subpage-image {
    margin: 20px 0 24px;
  }

  .subpage-image img {
    max-height: 260px;
    border-radius: 8px;
  }

  .subpage-image figcaption {
    font-size: 12px;
    line-height: 1.5;
  }
}
/* Tablet */
@media (max-width: 1024px) {
  .subpage-richtext p {
    font-size: 17px;
    line-height: 1.9;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .subpage-richtext p {
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 18px;
  }
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .subpage {
    padding: 40px 15px;
  }

  .subpage-title {
    font-size: 32px;
  }

  .subpage-content p {
    font-size: 16px;
    text-align: justify;
  }

  .subpage-content h2 {
    font-size: 24px;
  }
}
/* ===== Professional Subpage Responsive Override ===== */

.subpage {
  padding: 80px 20px 60px;
}

.subpage-container {
  max-width: 1100px;
  margin: 0 auto;
}

.subpage-title {
  word-break: normal;
  overflow-wrap: break-word;
}

.subpage-content p {
  max-width: 100%;
}

.subpage-content h2 {
  line-height: 1.35;
}

.subpage-logo {
  line-height: 0;
}

.subpage-logo img,
.subpage-image img,
.subpage-hero-banner img {
  display: block;
}

.subpage-list li,
.subpage-orderedlist li {
  overflow-wrap: break-word;
}

/* Tablet */
@media (max-width: 1024px) {
  .subpage {
    padding: 60px 22px 45px;
  }

  .subpage-title {
    font-size: 42px;
  }

  .subpage-content h2 {
    font-size: 28px;
  }

  .subpage-content p,
  .subpage-list li,
  .subpage-orderedlist li,
  .subpage-richtext p {
    font-size: 17px;
    line-height: 1.85;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .subpage {
    padding: 40px 16px 35px;
  }

  .subpage-label {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .subpage-title {
    font-size: 30px;
    line-height: 1.25;
    margin-bottom: 22px;
  }

  .subpage-content h2 {
    font-size: 23px;
    margin-top: 30px;
    margin-bottom: 14px;
  }

  .subpage-content p,
  .subpage-list li,
  .subpage-orderedlist li,
  .subpage-richtext p {
    font-size: 15.5px;
    line-height: 1.75;
    text-align: left;
  }

  .subpage-list li {
    padding-left: 22px;
  }

  .subpage-list li::before {
    top: 9px;
    width: 7px;
    height: 7px;
  }

  .subpage-logo {
    margin: 18px 0;
  }

  .subpage-logo img {
    max-width: 100%;
  }

  .subpage-hero-banner {
    border-radius: 10px;
  }
}