/* ==========================================================================
   TGC India – visual polish layer (2026-11-23)
   Loaded after tgc-typography.css. px units on purpose (legacy html{font-size:10px}).
   Sections: V1 course-card bands · V2 popup forms (.pop_view) · V3 placement infographic
             · V4 course reviews · V5 video reviews
   To undo: remove the tgc-visual.css <link> from layouts/app.blade.php.
   ========================================================================== */
:root {
  --tgc-red: #ED1C24;
  --tgc-red-dark: #C8141B;
  --tgc-navy: #192F60;
  --tgc-navy-deep: #0F1E40;
  --tgc-ink: #1D2433;
  --tgc-muted: #5B6475;
  --tgc-line: #DCE2EC;
  --tgc-soft: #F5F7FB;
  --tgc-gold: #F5B301;
}

/* ---------- V1. Course cards (round-icon variant, .cirlce_ic): every gradient band the same height;
                 long titles end in "..." after 3 lines. The banner-image variant (.logo_bx_new) is left alone. ---------- */
html body .first_display .courseimgmain:has(.cirlce_ic) {
  height: 112px !important;
  min-height: 112px !important;
  max-height: 112px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
}
html body .first_display .courseimgmain:has(.cirlce_ic) .cirlce_ic { flex: 0 0 auto; }
html body .first_display .courseimgmain:has(.cirlce_ic) .cr_titless { min-width: 0 !important; flex: 1 1 auto !important; height: auto !important; max-height: 100% !important; display: flex; align-items: center; }
html body .first_display .courseimgmain:has(.cirlce_ic) .cr_title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  line-clamp: 3;
  overflow: hidden !important;
  text-overflow: ellipsis;
  white-space: normal !important;
  height: auto !important;
  max-height: calc(3 * 1.25em) !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  overflow-wrap: break-word;
}
@media (max-width: 767px) {
  /* the title is hidden on phones (hidden-xs), so the band only holds the icon */
  html body .first_display .courseimgmain:has(.cirlce_ic) { height: 92px !important; min-height: 92px !important; max-height: 92px !important; }
}

/* ---------- V2. Popup forms (all 13 .pop_view modals: Apply Now, Book a Demo, Enroll Now …) ---------- */
body .modal.pop_view .modal-dialog { width: auto; max-width: 880px; margin: 40px auto; padding: 0 16px; }
body .modal.pop_view .modal-content {
  border: 0; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 30, 64, .35);
  background: #fff;
}
body .modal.pop_view .modal-body { padding: 0 !important; }
body .modal.pop_view .modal-body > .row { margin: 0; display: flex; flex-wrap: wrap; }
body .modal.pop_view .modal-body > .row > [class*="col-"] { padding: 0; }

/* left: brand panel instead of clip-art on white (column = panel, .product_img = badge + headline, column::after = benefits) */
@media (min-width: 768px) {
  body .modal.pop_view .modal-body > .row > [class*="col-"]:first-child {
    display: flex; flex-direction: column; justify-content: center; box-sizing: border-box;
    min-height: 470px; padding: 44px 40px;
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(237, 28, 36, .55) 0%, rgba(237, 28, 36, 0) 55%),
      linear-gradient(160deg, var(--tgc-navy) 0%, var(--tgc-navy-deep) 100%);
    color: #fff;
  }
  body .modal.pop_view .modal-body > .row > [class*="col-"]:first-child::after {
    content: "\2713   Free one-to-one counselling\A\2713   Classroom and live online batches\A\2713   Portfolio projects and placement support";
    white-space: pre-line; font: 500 16px/2 var(--tgc-font); color: rgba(255, 255, 255, .92);
  }
}
body .modal.pop_view .product_img { display: flex; flex-direction: column; align-items: flex-start; background: none; padding: 0; margin: 0 0 22px; }
body .modal.pop_view .product_img img { display: none !important; }
body .modal.pop_view .product_img::before {
  content: "TGC INDIA \2022  SINCE 2000";
  display: inline-block;
  font: 700 12px/1 var(--tgc-head); letter-spacing: .14em; color: #fff;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  margin-bottom: 22px;
}
body .modal.pop_view .product_img::after {
  content: "Start your creative career with the right course";
  font: 800 30px/1.2 var(--tgc-head); letter-spacing: -.02em; color: #fff;
}

/* right: the form */
body .modal.pop_view .modal-form-fill {
  position: relative; padding: 40px 40px 28px !important; background: #fff; box-sizing: border-box;
}
body .modal.pop_view .modal-form-fill .close {
  position: absolute !important; top: 14px !important; right: 14px !important; left: auto !important; z-index: 3;
  display: flex !important; align-items: center; justify-content: center;
  width: 38px !important; height: 38px !important; border-radius: 50% !important;
  background: var(--tgc-soft) !important; color: var(--tgc-ink) !important;
  opacity: 1 !important; text-shadow: none; border: 1px solid var(--tgc-line) !important;
  padding: 0 !important; margin: 0 !important;
}
body .modal.pop_view .modal-form-fill .close > span {
  position: static !important; display: block !important; width: auto !important; height: auto !important;
  background: none !important; color: inherit !important; border-radius: 0 !important; padding: 0 !important; margin: 0 !important;
  font: 600 17px/1 var(--tgc-font) !important; text-transform: lowercase;
}
body .modal.pop_view .modal-form-fill .close:hover { background: var(--tgc-red) !important; color: #fff !important; border-color: var(--tgc-red) !important; }
body .modal.pop_view .form-heading { display: block !important; text-align: left !important; margin: 0 0 22px !important; padding-right: 40px; }
body .modal.pop_view .form-heading img { display: none !important; }
body .modal.pop_view .form-heading::before {
  content: "FREE COUNSELLING"; display: block;
  font: 700 12px/1 var(--tgc-head); letter-spacing: .14em; color: var(--tgc-red); margin-bottom: 10px;
}
body .modal.pop_view .modal-heading {
  font-family: var(--tgc-head) !important; font-weight: 800 !important;
  font-size: 28px !important; line-height: 1.15 !important; letter-spacing: -.02em !important;
  color: var(--tgc-navy) !important; margin: 0 !important; text-transform: none !important;
}
body .modal.pop_view .form-heading::after {
  content: "Share your details and a TGC counsellor will call you back.";
  display: block; margin-top: 8px; font: 400 15px/1.5 var(--tgc-font); color: var(--tgc-muted);
}
body .modal.pop_view form input[type="text"],
body .modal.pop_view form input[type="email"],
body .modal.pop_view form input[type="tel"],
body .modal.pop_view form input[type="number"],
body .modal.pop_view form select,
body .modal.pop_view form textarea {
  display: block; width: 100% !important; box-sizing: border-box;
  height: 52px !important; margin: 0 0 14px !important; padding: 0 16px !important;
  border: 1.5px solid var(--tgc-line) !important; border-radius: 12px !important;
  background: var(--tgc-soft) !important; color: var(--tgc-ink) !important;
  font: 500 16px/1.2 var(--tgc-font) !important; box-shadow: none !important; outline: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
body .modal.pop_view form textarea { height: 96px !important; padding-top: 14px !important; }
body .modal.pop_view form input::placeholder, body .modal.pop_view form textarea::placeholder { color: #7A8394; opacity: 1; }
body .modal.pop_view form input:focus, body .modal.pop_view form select:focus, body .modal.pop_view form textarea:focus {
  border-color: var(--tgc-navy) !important; background: #fff !important;
  box-shadow: 0 0 0 4px rgba(25, 47, 96, .12) !important;
}
body .modal.pop_view .valide-text { margin: 0 !important; }
body .modal.pop_view .drop-number { display: flex !important; gap: 10px; align-items: stretch; border: 0 !important; padding: 0 !important; margin: 0 !important; }
body .modal.pop_view form .drop-number .choosecode {
  position: static !important; left: auto !important; top: auto !important;
  flex: 0 0 112px; width: 112px !important; padding: 0 10px !important; font-weight: 600 !important;
}
body .modal.pop_view form .drop-number input[type="tel"] { flex: 1 1 auto; width: auto !important; min-width: 0; position: static !important; padding-left: 16px !important; }
body .modal.pop_view .popbtn,
body .modal.pop_view form button[type="submit"] {
  display: flex !important; align-items: center; justify-content: center; gap: 10px;
  width: 100% !important; height: 56px !important; margin: 6px 0 0 !important; padding: 0 20px !important;
  border: 0 !important; border-radius: 12px !important;
  background: var(--tgc-red) !important; color: #fff !important;
  font: 700 17px/1 var(--tgc-head) !important; letter-spacing: 0 !important; text-transform: none !important;
  box-shadow: 0 10px 24px rgba(237, 28, 36, .30) !important; cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
}
body .modal.pop_view .popbtn::after, body .modal.pop_view form button[type="submit"]::after { content: "\2192"; font-size: 20px; line-height: 1; }
body .modal.pop_view .popbtn:hover, body .modal.pop_view form button[type="submit"]:hover {
  background: var(--tgc-red-dark) !important; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(237, 28, 36, .36) !important;
}
body .modal.pop_view .popbtn:disabled, body .modal.pop_view form button[type="submit"]:disabled { opacity: .55; transform: none; box-shadow: none !important; cursor: not-allowed; }
body .modal.pop_view .modal-form-fill form + br { display: none; }
body .modal.pop_view .modal-form-fill > p,
body .modal.pop_view .modal-form-fill p:last-child {
  margin: 16px 0 0 !important; font-size: 13px !important; line-height: 1.55 !important; color: var(--tgc-muted) !important; text-align: left !important;
}
body .modal.pop_view .modal-form-fill p a { color: var(--tgc-navy) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
body .modal.pop_view .modal-form-fill .alert { border-radius: 10px; font-size: 14px; }

@media (max-width: 767px) {
  body .modal.pop_view .modal-dialog { margin: 16px auto; padding: 0 12px; }
  body .modal.pop_view .modal-body > .row > [class*="col-"]:first-child { display: none; }  /* brand panel hidden on phones */
  body .modal.pop_view .modal-body > .row > [class*="col-"] { width: 100%; }
  body .modal.pop_view .modal-form-fill { padding: 28px 20px 22px !important; }
  body .modal.pop_view .modal-content { border-top: 6px solid var(--tgc-red); }
  body .modal.pop_view .modal-heading { font-size: 24px !important; }
}
@media (min-width: 768px) {
  body .modal.pop_view .modal-body > .row > [class*="col-"] { width: 50%; }
}

/* ---------- V3. Placement process: vector infographic (partial: frontend/tgc/placement_process) ---------- */
.process_sect .tgc-pp { max-width: 1240px; margin: 0 auto; padding: 0 16px 8px; }
.tgc-pp__intro { text-align: center; color: var(--tgc-muted); font-size: 17px; line-height: 1.6; max-width: 640px; margin: -8px auto 40px; }
.tgc-pp__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; counter-reset: none; }
/* the connecting track behind the icons */
.tgc-pp__steps::before {
  content: ""; position: absolute; top: 40px; left: 10%; right: 10%; height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--tgc-line) 0 10px, transparent 10px 18px);
}
.tgc-pp__step {
  position: relative; text-align: center; background: #fff; border: 1px solid var(--tgc-line); border-radius: 18px;
  padding: 0 20px 26px; margin-top: 40px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tgc-pp__step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(25, 47, 96, .12); border-color: transparent; }
.tgc-pp__icon {
  width: 80px; height: 80px; margin: -40px auto 14px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--tgc-navy) 0%, #2B4A8E 100%);
  box-shadow: 0 0 0 6px #fff, 0 10px 24px rgba(25, 47, 96, .28);
  position: relative; z-index: 1;
}
.tgc-pp__step:last-child .tgc-pp__icon { background: linear-gradient(145deg, var(--tgc-red) 0%, #FF5A60 100%); box-shadow: 0 0 0 6px #fff, 0 10px 24px rgba(237, 28, 36, .32); }
.tgc-pp__icon svg { width: 38px; height: 38px; }
.tgc-pp__num { display: block; font: 800 13px/1 var(--tgc-head); letter-spacing: .12em; color: var(--tgc-red); margin-bottom: 8px; }
body .tgc-pp__title { font-size: 18px !important; line-height: 1.3 !important; color: var(--tgc-navy) !important; margin: 0 0 10px !important; text-transform: none !important; }
.tgc-pp__text { font-size: 15px !important; line-height: 1.6 !important; color: var(--tgc-muted); margin: 0 !important; }

@media (max-width: 1100px) and (min-width: 768px) {
  .tgc-pp__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 56px; }
  .tgc-pp__steps::before { display: none; }
}
@media (max-width: 767px) {
  .tgc-pp__intro { font-size: 16px; margin-bottom: 24px; }
  .tgc-pp__steps { grid-template-columns: 1fr; gap: 14px; padding-left: 4px; }
  .tgc-pp__steps::before { top: 30px; bottom: 30px; left: 31px; right: auto; width: 3px; height: auto;
    background: repeating-linear-gradient(180deg, var(--tgc-line) 0 10px, transparent 10px 18px); }
  .tgc-pp__step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; margin-top: 0; padding: 16px 16px 16px 0; border: 0; background: transparent; }
  .tgc-pp__step:hover { transform: none; box-shadow: none; }
  .tgc-pp__icon { grid-row: 1 / span 3; width: 56px; height: 56px; margin: 0; box-shadow: 0 0 0 5px #fff, 0 6px 16px rgba(25, 47, 96, .25); }
  .tgc-pp__step:last-child .tgc-pp__icon { box-shadow: 0 0 0 5px #fff, 0 6px 16px rgba(237, 28, 36, .3); }
  .tgc-pp__icon svg { width: 28px; height: 28px; }
  .tgc-pp__num { margin: 4px 0 4px; }
  body .tgc-pp__title { font-size: 17px !important; margin-bottom: 6px !important; }
}

/* ---------- V4. Course reviews (#testimonail_rev): clean cards, readable quote, equal heights ---------- */
#testimonail_rev .owl-stage { display: flex; }
#testimonail_rev .owl-item { display: flex; }
#testimonail_rev .owl-item > .item { display: flex; width: 100%; padding: 10px 2px 18px; }
body #testimonail_rev .customer-review-tile {
  position: relative; display: flex; flex-direction: column; width: 100%;
  height: auto !important; min-height: 300px; max-height: none !important; box-sizing: border-box;
  background: #fff; border: 1px solid var(--tgc-line) !important; border-radius: 16px !important;
  box-shadow: 0 6px 20px rgba(25, 47, 96, .07) !important; padding: 24px 22px 22px !important;
  overflow: hidden;
}
body #testimonail_rev .customer-review-tile::before {
  content: "\201C"; position: absolute; top: 2px; right: 18px;
  font: 800 88px/1 Georgia, serif; color: rgba(237, 28, 36, .12); pointer-events: none;
}
body #testimonail_rev .customer-pers-details { display: flex !important; align-items: center; gap: 14px; margin: 0 0 14px !important; padding: 0 !important; border: 0 !important; }
body #testimonail_rev .rev_alpha_img { flex: 0 0 56px; width: 56px !important; height: 56px !important; margin: 0 !important; }
body #testimonail_rev .rev_alpha_img img { width: 56px !important; height: 56px !important; border-radius: 50% !important; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(237, 28, 36, .35); }
body #testimonail_rev .customer-pers-details .details { min-width: 0; text-align: left; }
body #testimonail_rev .customer-name { font: 700 17px/1.25 var(--tgc-head) !important; color: var(--tgc-navy) !important; margin: 0 0 4px !important; }
body #testimonail_rev .customer-proffession {
  display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  font: 500 13px/1.4 var(--tgc-font) !important; color: var(--tgc-muted) !important; margin: 0 !important; white-space: normal !important;
}
body #testimonail_rev .customer-review {
  display: flex; flex-direction: column; flex: 1 1 auto; padding: 0 !important; border: 0 !important;
  height: auto !important; max-height: none !important; overflow: visible !important;   /* site CSS made this a small scroll box */
}
body #testimonail_rev .customer-rating { display: flex !important; align-items: center; margin: 0 0 10px !important; padding: 0 !important; border: 0 !important; }
body #testimonail_rev .customer-course { display: none !important; }   /* the label only ever said "TGC India" */
body #testimonail_rev .rating-stars i { color: var(--tgc-gold) !important; font-size: 15px !important; margin-right: 2px; }
body #testimonail_rev .review-text,
body #testimonail_rev .customer-review > span {
  display: block !important; position: relative; overflow: hidden !important; flex: 0 0 auto !important; min-height: 0;
  font-size: 15px !important; line-height: 1.65 !important; color: var(--tgc-ink) !important;
  height: auto !important; max-height: calc(7 * 1.65em) !important;   /* about 7 lines, then a soft fade */
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
body #testimonail_rev .review-text p, body #testimonail_rev .customer-review > span p {
  margin: 0 !important; font-size: 15px !important; line-height: 1.65 !important; text-align: left !important; max-width: none !important;
}
body #testimonail_rev .review-text p:empty { display: none; }
/* reviews pasted from Word/web carry inline highlights and tiny fonts – neutralise them */
body #testimonail_rev .customer-review > span *, body #testimonail_rev .review-text * {
  background: transparent !important; font-size: inherit !important; font-family: inherit !important; color: inherit !important; line-height: inherit !important;
}

/* ---------- V5. Video reviews: tidy caption under each video ---------- */
body .videoreview_details__30DPz { padding: 12px 4px 0 !important; text-align: left; }
body .videoreview_name__PQLuo { display: block; font: 700 16px/1.3 var(--tgc-head) !important; color: var(--tgc-navy) !important; }
body .videoreview_company_name__2kQoo { display: block; font: 500 13px/1.4 var(--tgc-font) !important; color: var(--tgc-muted) !important; margin-top: 2px; }
body .videoreview_company_name__2kQoo:empty { display: none; }

/* ---------- V6. Mock-interview steps on course pages (partial: frontend/tgc/mock_interview_steps) ---------- */
body .mockupwork { display: block !important; }
body .mockupwork > strong { display: block; margin-bottom: 18px; }
.tgc-mi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.tgc-mi__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 4px; }
/* connector to the next step */
.tgc-mi__step:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 2px;
  background: repeating-linear-gradient(90deg, #C9D2E3 0 8px, transparent 8px 14px);
}
.tgc-mi__step:not(:last-child)::before {
  content: ""; position: absolute; top: 27px; right: calc(-50% + 36px); width: 0; height: 0;
  border-left: 8px solid #C9D2E3; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.tgc-mi__icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--tgc-navy) 0%, #2B4A8E 100%);
  box-shadow: 0 0 0 5px #fff, 0 8px 20px rgba(25, 47, 96, .25); margin-bottom: 12px; position: relative; z-index: 1;
}
.tgc-mi__step:last-child .tgc-mi__icon { background: linear-gradient(145deg, var(--tgc-red) 0%, #FF5A60 100%); box-shadow: 0 0 0 5px #fff, 0 8px 20px rgba(237, 28, 36, .3); }
.tgc-mi__icon svg { width: 30px; height: 30px; }
.tgc-mi__label { display: block; font: 800 12px/1 var(--tgc-head); letter-spacing: .12em; text-transform: uppercase; color: var(--tgc-red); margin-bottom: 6px; }
.tgc-mi__title { display: block; font: 700 15px/1.35 var(--tgc-head); color: var(--tgc-navy); max-width: 160px; }
@media (max-width: 767px) {
  .tgc-mi { grid-template-columns: 1fr; gap: 0; }
  .tgc-mi__step { display: grid; grid-template-columns: 50px 1fr; column-gap: 14px; align-items: center; text-align: left; padding: 9px 0; }
  .tgc-mi__step:not(:last-child)::after { top: 59px; bottom: -9px; left: 24px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, #C9D2E3 0 6px, transparent 6px 11px); }
  .tgc-mi__step:not(:last-child)::before { display: none; }
  .tgc-mi__icon { grid-row: 1 / span 2; width: 50px; height: 50px; margin: 0; box-shadow: 0 0 0 4px #fff, 0 6px 14px rgba(25, 47, 96, .22); }
  .tgc-mi__icon svg { width: 24px; height: 24px; }
  .tgc-mi__label { margin: 0 0 3px; align-self: end; }
  .tgc-mi__title { font-size: 16px; max-width: none; align-self: start; }
}
