/* =======================
   AI Tools Page (clean)
   ======================= */

/* Vars actually used */
:root {
  --brand-maroon: #071952;
  --brand-gold: #cf9b48;
}

/* Layout container */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  text-align: left;
}

/* Banner */
.course-banner {
  display: flex;
  align-items: flex-start;     /* top align vertically */
  justify-content: flex-start; /* push content to left */
}
.course-banner .banner-text {
  text-align: left;
  max-width: 1440px;
}

/* Section wrapper just centers things */
.video-section { max-width: 1440px; margin: 0 auto; }

/* Each breakpoint shows exactly one box with a fixed ratio */
.v1, .v2, .v3 {
  display: none;
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: #000;     /* letterbox color */
  border-radius: 12px;
  overflow: hidden;     /* for rounded corners only */
}

/* Video always fills the box; its CONTENT scales inside (no cropping) */
.video-hero .responsive-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;  /* show full frame, add bars if needed */
  object-position: center;
  background: #000;
}

/* ===== Breakpoints ===== */
@media (min-width: 1025px) {
  .v1 { display: block; max-width: 1440px; aspect-ratio: 1440 / 350; }
}
@media (min-width: 481px) and (max-width: 1024px) {
  .v2 { display: block; max-width: 990px; aspect-ratio: 990 / 350; }
}
@media (max-width: 480px) {
  .v3 { display: block; max-width: 480px; aspect-ratio: 480 / 384; }
}

/* ===== Container helper ===== */
.page-wrap{
  display: flex;
  justify-content: center;
}

h1 {
  margin-bottom: 5px;
  margin-top: 5px;
}

.wa-btn {
  display: inline-block;
  margin-top: 8px;          /* gap under Venue line */
  margin-bottom: 8px;
  padding: 10px 16px;       /* rectangular feel */
  border-radius: 8px;       /* subtle rounding */
  background: #25D366;      /* WhatsApp green (no icon) */
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .15s ease, filter .15s ease;
}
.wa-btn:hover,
.wa-btn:focus {
  transform: translateY(-1px);
  filter: brightness(0.95);
  text-decoration: none;
}

@media (max-width: 600px) {
  .wa-btn { display: block; width: 100%; text-align: center; }
}

/* ===== Two-column layout: LEFT ~60% | RIGHT ~40% ===== */
.course-layout{
  display: grid !important;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px;
  align-items: stretch;          /* ok: row height follows tallest item */
  margin: 5px;
  width: 100%;
  padding: 10px;
  max-width: 1434px;
  box-sizing: border-box;
  background-color: #e0edff;     /* keep or remove as needed */
}

/* Prevent overflow & accidental 100% widths from elsewhere */
.course-layout > .highlight-grid,
.course-layout > * { min-width: 0; }

/* ===== LEFT: cards grid ===== */
.highlight-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 10px;
  align-items: stretch;          /* each card stretches to row height */
}

/* ===== Card visuals (left highlights) ===== */
.highlight-card {
  position: relative;            /* for number badge */
  background: #fff;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  font-family: Arial, sans-serif;
  transition: transform .15s ease, box-shadow .15s ease;

  /* Let content define height */
  min-height: 322px;             /* baseline height for short cards */
  height: auto;                  /* grow as content grows */
  max-height: none;              /* remove the cap that caused clipping */
  overflow: visible;             /* allow content to be visible */
  word-wrap: break-word;         /* prevent long words/URLs overflow */
}

/* Optional: if you want inner layout stability */
.highlight-card > *:last-child { margin-bottom: 0; }

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.15);
}

.highlight-card h3 {
  margin: 4px 0 12px;            /* (0.25rem 0 0.75rem converted to px) */
  color: var(--brand-maroon, #071952);
  font-size: 18px;
  line-height: 1.3;
}

.highlight-card p,
.highlight-card ul {
  margin: 0;
  color: #000;
  font-size: 16px;
  line-height: 1.6;
}

.highlight-card ul {
  padding-left: 1.2rem;          /* keep bullets aligned */
  list-style: disc;
}

/* ===== Responsive: let cards breathe on smaller screens ===== */
/* Large tablets: keep two columns if you like */
@media (max-width: 1024px) {
  .highlight-grid {
    grid-template-columns: 1fr;  /* switch to 1 column for readability */
  }
}

/* Phones */
@media (max-width: 600px) {
  .course-layout {
    grid-template-columns: 1fr;  /* stack left/right */
  }
  .highlight-grid {
    grid-template-columns: 1fr;  /* single column */
    row-gap: 12px;
  }
  .highlight-card {
    padding: 20px;               /* slightly tighter padding on mobile */
  }
}

/* Number badge */
.highlight-number {
  position: relative;
  top: -12px;
  left: -12px;
  width: 36px; height: 36px;
  background: var(--brand-maroon, #071952);
  color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ===== Registration Form (right column) ===== */
.registration-form{
  /* card visuals */
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  padding: 20px;
  box-sizing: border-box;

  /* fill the grid track (fixes “half-height” look) */
  align-self: stretch;
  height: 100%;
  min-height: auto;      /* remove any fixed caps */
  max-height: none;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Keep sticky on larger screens without breaking the fill */
@media (min-width: 901px){
  .registration-form{
    position: sticky;
    top: 10px;           /* offset below header */
  }
}

/* On small screens stack and disable sticky */
@media (max-width: 900px){
  .course-layout{ grid-template-columns: 1fr; }
  .registration-form{ position: static; }
}

/* ===== Form internals ===== */
.form-banner-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 5px;
  margin-bottom: 5px;
  display: block;
}

.form-title{
  font-size: 24px;
  margin-bottom: 5px;
  margin-top: 5px;
  font-weight: 700;
  text-align: center;
  color: var(--brand-maroon, #071952);
}

.registration-form form{ display: block; }

.registration-form .form-row{
  display: grid;
  grid-template-columns: 130px 1fr;   /* label | field */
  column-gap: 10px;
  row-gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}
.registration-form .form-row.full{ grid-template-columns: 1fr; }

.registration-form .form-row label{
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.registration-form input,
.registration-form select,
.registration-form textarea{
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
  outline: none;
}
.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus{
  border-color: var(--brand-gold, #cf9b48);
  box-shadow: 0 0 0 3px rgba(207,155,72,0.15);
}
.registration-form .form-section[hidden]{ display: none !important; }

/* Button */
#request-submit{
  display: inline-block;
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  background: var(--brand-maroon, #071952);
  color: #fff;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
#request-submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
#request-submit[data-mode="download"]{
  background: #071952;
  color: #fff;
}
#request-submit[data-mode="download"]:hover{
  box-shadow: 0 6px 14px rgba(7,25,82,0.35);
}

/* =======================
   Course Sections (Unified)
   ======================= */

/* Every section gets the same spacing */
.course-section {
  margin: 0 0 20px;         /* bottom spacing */
  padding: 0 0 20px;        /* inner spacing for border line effect */
  box-sizing: border-box;
}

/* Separator line between sections */
.course-section:not(:last-child) {
  border-bottom: 3px solid transparent;
  background: linear-gradient(to right, transparent, #071952, transparent);
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: bottom;
}

/* Headings inside sections */
.course-section h2 {
  color: #071952;
  font-size: 26px;
  margin: 5px 0 5px;
  font-weight: 700 !important;
}

/* Paragraphs inside sections */
.course-section p {
  color: #000;
  margin: 0 0 10px;
  max-width: 1040px;  /* 65ch ≈ 1040px at 16px font */
}

/* Lists inside sections */
.course-section ul,
.course-section ol {
  margin: 0 0 8px;
  padding-left: 20px;
  line-height: 1.7;
}

/* =======================
   Course Outline (3 Columns)
   ======================= */
#outline .outline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 20px;
  margin: 0;
  padding: 0;
}

#outline .outline-item {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 5px 5px;
  box-sizing: border-box;
}

#outline .outline-item strong {
  display: block;
  margin-bottom: 5px;
  color: #071952;
  font-size: 18px;
}

#outline .outline-item ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
  color: #000;
}

#outline .outline-item li {
  margin-top: 5px;
  margin-bottom: 5px;
  line-height: 1.6;
}

#outline .outline-item li:last-child {
  margin-bottom: 0;
}

/* Responsive fallback */
@media (max-width: 1024px) {
  #outline .outline-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  #outline .outline-grid { grid-template-columns: 1fr; }
}

#outline .outline-item h3 {
  margin: 5px !important;
}

/* Limit margin for h3 inside #investment section */
#investment h3 {
  margin: 5px;
}

/* =======================
   Instructor Section
   ======================= */
.instructor-section h2 {
  margin-bottom: 5px;
}

.instructor-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 1440px;
}

.instructor-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--brand-gold, #cf9b48);
  flex: 0 0 96px;
}

@media (max-width: 600px) {
  .instructor-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* =======================
   Testimonials
   ======================= */
.testimonials h2 {
  margin-bottom: 5px;
  font-weight: 700;
  color: var(--brand-maroon, #071952);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.testimonial-text {
  font-style: italic;
  margin: 0 0 12px;
  color: #000000;
}

.testimonial-author {
  font-weight: 600;
  color: var(--brand-gold, #cf9b48);
  margin: 0;
}

/* =======================
   Related Trainings Grid
   ======================= */
.related-trainings { margin-top: 10px; }
.related-trainings h2 { margin-bottom: 5px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.related-card figure { margin: 0; display: flex; flex-direction: column; }
.related-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.related-card figcaption {
  padding: 12px 14px;
  font-weight: 600;
  line-height: 1.3;
  border-top: 3px solid var(--brand-gold, #cf9b48);
  background: #FAFAF8;
}
@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
  .related-card figcaption { font-size: 15px; }
}

/* =======================
   FAQ Section
   ======================= */
.course-section#faqs {
  max-width: 1440px;
  margin: 0 auto 10px;
  padding: 0 10px 10px;
}

.course-section details {
  margin-bottom: 10px;
  padding: 10px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.course-section details[open] {
  background: #fff;
  border-color: var(--brand-gold);
}
.course-section details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.course-section details summary::-webkit-details-marker { display: none; }

/* === Banner intro paragraph spacing === */
.course-banner .banner-text > p {
  margin: 0 0 16px;   /* 16px bottom for the big intro paragraph */
}

/* === Course info (Course Title → Venue) spacing === */
.course-info p {
  margin: 0 0 8px;    /* 8px between each line */
}
.course-info p:last-child { margin-bottom: 0; }  /* tidy end */

