#guidance-page {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

#guidance-hero {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin: 40px 0;
  align-items: center;
}

#guidance-hero-content {
  width: 50%;
  padding: 40px;
  background: linear-gradient(135deg, #adb2d4 0%, #c7d9dd 100%);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(173, 178, 212, 0.3);
  color: white;
  text-align: center;
}

#guidance-hero-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  opacity: 0.8;
}

#guidance-hero-image {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
}

#guidance-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
}

#guidance-content-container {
  margin: 40px 0;
}

#journey-components {
  margin: 60px 0;
}

#journey-components h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #333;
}

.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.component-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  text-align: center;
}

.component-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(173, 178, 212, 0.3);
}

.component-card h3 {
  color: #adb2d4;
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.component-card p {
  color: #4f4f4f;
  line-height: 1.6;
  font-size: 1.1em;
  text-align: right;
  direction: rtl;
}

#call-to-action {
  margin: 60px 0;
  text-align: center;
}

.cta-card {
  background: linear-gradient(135deg, #c7d9dd 0%, #adb2d4 100%);
  color: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(173, 178, 212, 0.3);
  max-width: 600px;
  margin: 0 auto;
}

.cta-card p {
  font-size: 1.3em;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
}

.cta-card strong {
  font-size: 1.5em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#meetings-section {
  margin: 80px 0;
}

#meetings-section h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 50px;
  color: #333;
}

/* Course Benefits Section */
#course-benefits {
  margin: 80px 0;
}

#course-benefits h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #333;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center; /* center last row when not full */
}

.benefit-item {
  background: #fff;
  border-radius: 15px;
  padding: 24px 26px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  min-height: 110px; /* balance heights across row */
}

.benefit-icon {
  font-size: 1.6em;
  line-height: 1;
  flex-shrink: 0;
  margin-bottom: 2px;
}

.benefit-item p {
  margin: 0;
  color: #4f4f4f;
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 768px) {
  #course-benefits h2 {
    font-size: 2em;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* Force perfect symmetry on wide screens: 3 columns x 2 rows */
@media (min-width: 1100px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.meetings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.meeting-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
  overflow: hidden;
  transition: all 0.3s ease;
}

.meeting-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(173, 178, 212, 0.3);
}

.meeting-header {
  background: linear-gradient(135deg, #adb2d4 0%, #c7d9dd 100%);
  color: white;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meeting-header h3 {
  margin: 0;
  font-size: 1.4em;
  font-weight: bold;
}

.meeting-number {
  background: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
  backdrop-filter: blur(10px);
}

.meeting-content {
  padding: 30px;
}

.meeting-content h4 {
  color: #333;
  font-size: 1.3em;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

.meeting-content p {
  color: #4f4f4f;
  line-height: 1.6;
  margin-bottom: 15px;
  text-align: right;
  direction: rtl;
}

.meeting-content p:last-child {
  margin-bottom: 0;
}

#closing-section {
  margin: 80px 0;
  text-align: center;
}

.closing-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
  max-width: 700px;
  margin: 0 auto;
}

.closing-card h3 {
  color: #adb2d4;
  font-size: 2em;
  margin-bottom: 30px;
  font-weight: bold;
}

.closing-card p {
  color: #4f4f4f;
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: center;
}

.closing-card p:last-child {
  margin-bottom: 0;
}

#pricing-section {
  margin: 60px 0;
  text-align: center;
}

.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
  max-width: 500px;
  margin: 0 auto;
}

.pricing-card h3 {
  color: #333;
  font-size: 1.8em;
  margin-bottom: 30px;
  font-weight: bold;
}

.price-details {
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #adb2d4 0%, #c7d9dd 100%);
  border-radius: 15px;
  color: white;
}

.price-details p {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.price-details .small-text {
  font-size: 0.9em;
  opacity: 0.8;
}

.contact-info p {
  color: #4f4f4f;
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 10px;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

#gallery-section {
  margin: 80px 0;
}

#gallery-section h2 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #333;
}

#gallery-mobile-instructions {
  display: none;
  font-size: 1.2em;
  color: #666;
  text-align: center;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 40px 0;
  position: relative;
}

.gallery-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(173, 178, 212, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Expanded gallery item styles for mobile */
@media only screen and (max-width: 768px) {
}

.meeting-image {
  margin-bottom: 20px;
  text-align: center;
}

.meeting-image img {
  width: 100%;
  max-width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

@media only screen and (max-width: 1200px) {
  #guidance-hero {
    flex-direction: column;
    gap: 30px;
  }

  #guidance-hero-content,
  #guidance-hero-image {
    width: 100%;
  }

  #guidance-hero-content h1 {
    font-size: 2.5em;
  }

  .components-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }

  .gallery-item {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .gallery-item:active {
    transform: scale(0.95);
  }

  .meetings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #journey-components h2,
  #meetings-section h2,
  #gallery-section h2 {
    font-size: 2em;
  }

  .component-card,
  .pricing-card,
  .closing-card {
    padding: 25px;
  }

  .meeting-card {
    padding: 0 !important; /* Remove padding override for meeting cards */
    border-radius: 20px !important; /* Ensure card maintains rounded corners */
    overflow: hidden; /* Ensure content doesn't spill outside rounded corners */
  }

  .meeting-header {
    padding: 20px 25px !important; /* Reduce header padding slightly on mobile */
    border-radius: 20px 20px 0 0 !important; /* Ensure top corners are rounded */
    margin: 0 !important; /* Remove any margin */
    border: none !important; /* Remove any border */
    width: 100% !important; /* Ensure full width */
    box-sizing: border-box !important; /* Include padding in width calculation */
    display: flex !important; /* Maintain flex layout */
    justify-content: space-between !important;
    align-items: center !important;
  }

  .meeting-content {
    padding: 25px; /* Apply padding only to content area */
    border-radius: 0 0 20px 20px; /* Ensure bottom corners are rounded */
  }

  .gallery-item img {
    height: 150px;
  }

  .meeting-image img {
    max-width: 150px;
    height: 120px;
  }

  #gallery-mobile-instructions {
    display: block;
  }

  .gallery-item.expanded {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 90vw;
    height: 90vh;
    max-width: none;
    max-height: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  }

  .gallery-item.expanded img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
  }

  /* Overlay for expanded images */
  .gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .gallery-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

#videos-section {
  margin: 80px 0;
  text-align: center;
}

#videos-section h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #333;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.video-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e8e8e8;
  padding: 10px;
}

.video-item video {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.video-item p {
  margin-top: 10px;
  font-size: 1.1em;
  color: #4f4f4f;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }
}