/* ================================================================
   JBIT – Page Builder Section Styles
   Builder se bane har page par ye file load hoti hai.
   Design tokens site ke baaki hisse se match karte hain.
   ================================================================ */

.jps-page {
    --jps-navy: #002147;
    --jps-navy-dark: #001428;
    --jps-red: #ed2f36;
    --jps-red-dark: #c91a20;
    /* Site alternates white and this soft rose (#fff5f5) between sections — the
       builder sections now use the same rose so they blend into the page. */
    --jps-light: #fff5f5;
    --jps-grey: #f0f2f5;
    --jps-text: #4a5568;
    --jps-border: #e2e8f0;
    --jps-radius: 16px;
    font-family: 'Outfit', 'Segoe UI', sans-serif;
}

.jps { position: relative; }
.jps-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Backgrounds ── */
.jps-bg-white    { background: #fff; }
.jps-bg-light    { background: var(--jps-light); }
.jps-bg-navy     { background: var(--jps-navy); color: #fff; }
.jps-bg-red      { background: var(--jps-red); color: #fff; }
.jps-bg-gradient { background: linear-gradient(135deg, #001428 0%, #002b5c 60%, #003d7a 100%); color: #fff; }

.jps-bg-navy .jps-title, .jps-bg-red .jps-title, .jps-bg-gradient .jps-title,
.jps-bg-navy h3, .jps-bg-red h3, .jps-bg-gradient h3,
.jps-bg-navy h4, .jps-bg-red h4, .jps-bg-gradient h4 { color: #fff; }
.jps-bg-navy .jps-sub, .jps-bg-red .jps-sub, .jps-bg-gradient .jps-sub,
.jps-bg-navy .jps-body, .jps-bg-red .jps-body, .jps-bg-gradient .jps-body { color: rgba(255, 255, 255, .8); }

/* ── Spacing ── */
.jps-pad-none { padding: 0; }
.jps-pad-sm   { padding: 30px 0; }
.jps-pad-md   { padding: 55px 0; }
.jps-pad-lg   { padding: 85px 0; }

/* ── Headings ── */
.jps-head { margin-bottom: 42px; }
.jps-align-left   { text-align: left; }
.jps-align-center { text-align: center; }
.jps-align-right  { text-align: right; }
.jps-tag {
    color: var(--jps-red); font-weight: 700; font-size: 13px;
    letter-spacing: 2px; text-transform: uppercase; margin: 0 0 8px;
}
.jps-title {
    font-size: clamp(26px, 3.2vw, 42px); font-weight: 800;
    color: var(--jps-navy); margin: 0 0 12px; line-height: 1.2;
}
.jps-sub { font-size: 16px; color: var(--jps-text); margin: 0; line-height: 1.6; }
.jps-body { font-size: 15.5px; line-height: 1.8; color: var(--jps-text); }
.jps-body p { margin: 0 0 14px; }
.jps-body a { color: var(--jps-red); }

/* ── Buttons ── */
.jps-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 10px; font-weight: 700; font-size: 15px;
    text-decoration: none; border: none; cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}
.jps-btn:hover { transform: translateY(-2px); }
.jps-btn-red   { background: linear-gradient(135deg, var(--jps-red), var(--jps-red-dark)); color: #fff; box-shadow: 0 6px 20px rgba(237, 47, 54, .32); }
.jps-btn-red:hover { color: #fff; box-shadow: 0 10px 28px rgba(237, 47, 54, .42); }
.jps-btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.jps-btn-ghost:hover { background: #fff; color: var(--jps-navy); }
.jps-btn-white { background: #fff; color: var(--jps-navy); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.jps-btn-white:hover { color: var(--jps-red); }
.jps-btn-sm    { padding: 10px 20px; font-size: 14px; }
.jps-btn-block { width: 100%; justify-content: center; }

/* ══════════ HERO ══════════ */
.jps-hero {
    display: flex; align-items: center; color: #fff;
    background-size: cover; background-position: center; padding: 0;
}
.jps-hero-inner { padding-top: 40px; padding-bottom: 40px; }
.jps-hero.jps-align-center .jps-hero-inner { text-align: center; }
.jps-hero.jps-align-center .jps-hero-desc  { margin-left: auto; margin-right: auto; }
.jps-hero.jps-align-right  .jps-hero-inner { text-align: right; }
.jps-hero-title {
    font-size: clamp(32px, 5vw, 62px); font-weight: 800; line-height: 1.12;
    margin: 0 0 20px; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}
.jps-hero-desc { font-size: clamp(15px, 1.5vw, 19px); line-height: 1.6; max-width: 600px; color: rgba(255, 255, 255, .92); margin: 0 0 28px; }
.jps-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.jps-hero.jps-align-center .jps-hero-btns { justify-content: center; }

/* ══════════ PAGE HEADER ══════════ */
.jps-pagehead {
    display: flex; align-items: center; color: #fff; padding: 0;
    background-size: cover; background-position: center;
}
.jps-crumb { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 10px; flex-wrap: wrap; }
.jps-crumb a { color: #fff; text-decoration: none; transition: .3s; }
.jps-crumb a:hover { color: var(--jps-red); }
.jps-crumb i { font-size: 10px; }
.jps-crumb-cur { opacity: .75; }
.jps-pagehead-title {
    font-size: clamp(30px, 4.5vw, 62px); font-weight: 700; color: #fff;
    margin: 10px 0 25px; padding-bottom: 15px; line-height: 1.2;
    position: relative; display: inline-block;
}
.jps-pagehead-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: rgba(255, 255, 255, .4); }
.jps-pagehead-title::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 180px; height: 4px; background: var(--jps-red); z-index: 1; }
.jps-pagehead-desc { font-size: 18px; line-height: 1.5; max-width: 560px; color: rgba(255, 255, 255, .9); margin: 0; }

/* ══════════ GRID ══════════ */
.jps-grid { display: grid; gap: 26px; }
.jps-cols-2 { grid-template-columns: repeat(2, 1fr); }
.jps-cols-3 { grid-template-columns: repeat(3, 1fr); }
.jps-cols-4 { grid-template-columns: repeat(4, 1fr); }
.jps-cols-5 { grid-template-columns: repeat(5, 1fr); }
.jps-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* ══════════ TEXT + IMAGE ══════════ */
.jps-ti { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.jps-ti-left .jps-ti-text { order: 2; }
.jps-ti-left .jps-ti-img  { order: 1; }
.jps-ti-img img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: var(--jps-radius); box-shadow: 0 20px 50px rgba(0, 33, 71, .16); }
.jps-bullets { list-style: none; padding: 0; margin: 18px 0 24px; }
.jps-bullets li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 11px; font-size: 15px; color: var(--jps-text); }
.jps-bullets i { color: var(--jps-red); margin-top: 4px; flex-shrink: 0; }

/* ══════════ TWO COLUMN ══════════ */
.jps-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.jps-2col-item { background: linear-gradient(135deg, #fff, #f8f9fa); border: 1px solid var(--jps-border); border-radius: 18px; padding: 34px; position: relative; overflow: hidden; }
.jps-2col-item::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(to right, var(--jps-red), var(--jps-navy)); }
.jps-bg-light .jps-2col-item { box-shadow: 0 5px 25px rgba(0, 33, 71, .08); border-color: transparent; }
/* Soft pastel icon tile — matches the site's .overview-point-icon */
.jps-2col-icon {
    width: 58px; height: 58px; border-radius: 16px; margin-bottom: 18px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    display: flex; align-items: center; justify-content: center; color: var(--jps-red); font-size: 24px;
}
.jps-2col-item h3 { font-size: 22px; font-weight: 700; color: var(--jps-navy); margin: 0 0 12px; }

/* ══════════ HIGHLIGHT ══════════ */
.jps-hl { display: flex; gap: 20px; align-items: flex-start; padding: 30px 34px; border-radius: var(--jps-radius); border-left: 5px solid; }
.jps-hl h3 { font-size: 21px; font-weight: 700; margin: 0 0 8px; }
.jps-hl-icon { font-size: 26px; flex-shrink: 0; margin-top: 3px; }
.jps-hl-navy  { background: #eef4ff; border-color: var(--jps-navy); color: var(--jps-navy); }
.jps-hl-red   { background: #fff0f1; border-color: var(--jps-red);  color: #8d1319; }
.jps-hl-green { background: #eefaf2; border-color: #1a9d54;         color: #0f6135; }
.jps-hl-amber { background: #fff8e8; border-color: #e0910d;         color: #7d4f04; }
.jps-hl .jps-body { color: inherit; opacity: .88; }

/* ══════════ QUOTE ══════════ */
.jps-quote { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: center; }
.jps-quote-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; box-shadow: 0 18px 45px rgba(0, 33, 71, .2); }
.jps-quote-mark { font-size: 34px; color: var(--jps-red); opacity: .3; }
.jps-quote-text { font-size: 17px; line-height: 1.85; color: var(--jps-text); font-style: italic; margin: 12px 0 18px; }
.jps-quote-by strong { display: block; font-size: 17px; color: var(--jps-navy); }
.jps-quote-by span   { font-size: 14px; color: var(--jps-red); font-weight: 600; }

/* ══════════ ACCORDION ══════════ */
.jps-acc { max-width: 880px; margin: 0 auto; }
.jps-acc-item { border: 1px solid var(--jps-border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.jps-acc-q {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 22px; background: none; border: none; cursor: pointer; text-align: left;
    font-size: 16px; font-weight: 600; color: var(--jps-navy); font-family: inherit;
}
.jps-acc-q i { color: var(--jps-red); transition: transform .25s; flex-shrink: 0; }
.jps-acc-item.open .jps-acc-q i { transform: rotate(45deg); }
.jps-acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.jps-acc-item.open .jps-acc-a { max-height: 900px; }
.jps-acc-a .jps-body { padding: 0 22px 20px; }

/* ══════════ TABS ══════════ */
.jps-tabs-nav { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 2px solid var(--jps-border); margin-bottom: 26px; }
.jps-tab-btn {
    padding: 12px 22px; background: none; border: none; border-bottom: 3px solid transparent;
    font-size: 15px; font-weight: 600; color: var(--jps-text); cursor: pointer;
    font-family: inherit; margin-bottom: -2px; transition: .2s;
}
.jps-tab-btn:hover  { color: var(--jps-navy); }
.jps-tab-btn.active { color: var(--jps-red); border-bottom-color: var(--jps-red); }
.jps-tab-panel { display: none; }
.jps-tab-panel.active { display: block; animation: jpsFade .3s ease; }
.jps-tab-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; }
@keyframes jpsFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ══════════ TIMELINE ══════════ */
.jps-tl { position: relative; padding-left: 34px; max-width: 900px; margin: 0 auto; }
.jps-tl::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--jps-red), rgba(237, 47, 54, .15)); }
.jps-tl-item { position: relative; margin-bottom: 26px; }
.jps-tl-dot { position: absolute; left: -32px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--jps-red); }
.jps-tl-card { background: #fff; border: 1px solid var(--jps-border); border-radius: 14px; padding: 20px 24px; }
.jps-tl-year { display: inline-block; background: var(--jps-red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px; margin-bottom: 8px; }
.jps-tl-card h4 { font-size: 19px; font-weight: 700; color: var(--jps-navy); margin: 0 0 6px; }
.jps-tl-card p  { font-size: 14.5px; color: var(--jps-text); margin: 0; line-height: 1.7; }

/* ══════════ STEPS ══════════ */
.jps-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.jps-step { text-align: center; position: relative; padding: 0 12px; }
.jps-step-num {
    width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
    background: linear-gradient(135deg, var(--jps-navy), #003d7a); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 800; box-shadow: 0 10px 26px rgba(0, 33, 71, .25);
}
.jps-step h4 { font-size: 17px; font-weight: 700; color: var(--jps-navy); margin: 0 0 8px; }
.jps-step p  { font-size: 14px; color: var(--jps-text); margin: 0; line-height: 1.7; }

/* ══════════ CARDS ══════════
   Matches the site's .overview-point cards: subtle gradient fill, a red→navy
   gradient bar across the top, soft shadow and an 8px lift on hover. */
.jps-card {
    background: linear-gradient(135deg, #fff, #f8f9fa); border-radius: 18px; overflow: hidden;
    text-decoration: none; display: flex; flex-direction: column; position: relative;
    transition: transform .3s, box-shadow .3s;
}
.jps-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(to right, var(--jps-red), var(--jps-navy)); z-index: 1; }
.jps-card-shadow { box-shadow: 0 5px 25px rgba(0, 33, 71, .08); }
.jps-card-border { border: 1px solid var(--jps-border); }
.jps-card-flat   { background: var(--jps-grey); }
.jps-card:hover  { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0, 33, 71, .13); }
.jps-card-img { position: relative; }
.jps-card-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
/* Soft pastel icon tile — matches the site's .overview-point-icon */
.jps-card-icon {
    width: 58px; height: 58px; margin: 30px 30px 0; border-radius: 16px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    display: flex; align-items: center; justify-content: center; color: var(--jps-red); font-size: 24px;
}
.jps-card-body { padding: 24px 26px 28px; flex: 1; }
.jps-card-body h4 { font-size: 19px; font-weight: 700; color: var(--jps-navy); margin: 0 0 10px; }
.jps-card-body p  { font-size: 14.5px; color: var(--jps-text); line-height: 1.75; margin: 0; }
.jps-card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--jps-red); font-weight: 700; font-size: 14px; }

/* ══════════ ICON GRID ══════════ */
.jps-ig-item {
    background: #fff; border: 1px solid var(--jps-border); border-radius: 14px;
    padding: 26px 16px; text-align: center; transition: .25s;
}
.jps-ig-item:hover { border-color: var(--jps-red); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 33, 71, .1); }
.jps-ig-item i { font-size: 27px; color: var(--jps-red); display: block; margin-bottom: 12px; }
.jps-ig-item span { font-size: 14px; font-weight: 600; color: var(--jps-navy); }

/* ══════════ COURSE CARDS ══════════ */
.jps-course { background: #fff; border-radius: var(--jps-radius); overflow: hidden; box-shadow: 0 6px 28px rgba(0, 33, 71, .09); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.jps-course:hover { transform: translateY(-6px); box-shadow: 0 16px 42px rgba(0, 33, 71, .16); }
.jps-course-img img { width: 100%; height: 190px; object-fit: cover; display: block; }
.jps-course-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.jps-course-body h4 { font-size: 21px; font-weight: 700; color: var(--jps-navy); margin: 0 0 10px; }
.jps-course-body > p { font-size: 14.5px; color: var(--jps-text); line-height: 1.7; margin: 0 0 16px; }
.jps-course-meta { list-style: none; padding: 0; margin: 0 0 20px; }
.jps-course-meta li { font-size: 14px; color: var(--jps-text); padding: 7px 0; border-bottom: 1px dashed var(--jps-border); }
.jps-course-meta li:last-child { border-bottom: none; }
.jps-course-meta i { color: var(--jps-red); width: 18px; }
.jps-course-meta span { font-weight: 600; color: var(--jps-navy); }
.jps-course .jps-btn { margin-top: auto; align-self: flex-start; }

/* ══════════ TEAM ══════════ */
.jps-team { background: #fff; border-radius: var(--jps-radius); overflow: hidden; box-shadow: 0 6px 24px rgba(0, 33, 71, .08); text-decoration: none; display: block; transition: transform .25s, box-shadow .25s; }
.jps-team:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0, 33, 71, .15); }
.jps-team-photo { aspect-ratio: 1; background: var(--jps-grey); display: flex; align-items: center; justify-content: center; }
.jps-team-photo img { width: 100%; height: 100%; object-fit: cover; }
.jps-team-photo i { font-size: 48px; color: #c3cbd8; }
.jps-team-body { padding: 18px 20px 22px; text-align: center; }
.jps-team-body h4 { font-size: 17px; font-weight: 700; color: var(--jps-navy); margin: 0 0 5px; }
.jps-team-role { display: block; font-size: 13.5px; color: var(--jps-red); font-weight: 600; }
.jps-team-qual { display: block; font-size: 12.5px; color: #8895a7; margin-top: 3px; }

/* ══════════ LOGO STRIP ══════════ */
.jps-logos { overflow: hidden; padding: 10px 0; }
.jps-logos-track { display: flex; align-items: center; gap: 46px; padding: 0 20px; }
.jps-logos-scroll .jps-logos-track { width: max-content; animation: jpsScroll 38s linear infinite; }
.jps-logos-scroll:hover .jps-logos-track { animation-play-state: paused; }
@keyframes jpsScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.jps-logo { flex-shrink: 0; display: flex; align-items: center; justify-content: center; height: 62px; }
.jps-logo img { max-height: 58px; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: .3s; }
.jps-logo:hover img { filter: none; opacity: 1; }

/* ══════════ STATS ══════════ */
.jps-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; }
.jps-stat { text-align: center; padding: 28px 16px; border-radius: var(--jps-radius); background: rgba(255, 255, 255, .06); }
.jps-bg-white .jps-stat, .jps-bg-light .jps-stat { background: #fff; box-shadow: 0 6px 26px rgba(0, 33, 71, .08); }
.jps-stat-icon { font-size: 25px; color: var(--jps-red); margin-bottom: 10px; }
.jps-stat-num { font-size: clamp(30px, 4vw, 46px); font-weight: 800; color: var(--jps-navy); line-height: 1; display: inline-block; }
.jps-stat-suffix { font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: var(--jps-red); }
.jps-stat-lbl { font-size: 14px; color: var(--jps-text); margin-top: 9px; font-weight: 600; }
.jps-bg-navy .jps-stat-num, .jps-bg-gradient .jps-stat-num, .jps-bg-red .jps-stat-num { color: #fff; }
.jps-bg-navy .jps-stat-lbl, .jps-bg-gradient .jps-stat-lbl, .jps-bg-red .jps-stat-lbl { color: rgba(255, 255, 255, .78); }

/* ══════════ TABLE ══════════ */
.jps-table-wrap { overflow-x: auto; border-radius: var(--jps-radius); box-shadow: 0 6px 26px rgba(0, 33, 71, .08); background: #fff; }
.jps-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.jps-table th { background: var(--jps-navy); color: #fff; font-size: 14px; font-weight: 700; padding: 14px 18px; text-align: left; white-space: nowrap; }
.jps-table td { padding: 13px 18px; font-size: 14.5px; color: var(--jps-text); border-bottom: 1px solid var(--jps-border); }
.jps-table tbody tr:last-child td { border-bottom: none; }
.jps-striped tbody tr:nth-child(even) { background: #f7f9fc; }
.jps-table tbody tr:hover { background: #eef4ff; }

/* ══════════ PRICING ══════════ */
.jps-price { background: #fff; border: 1.5px solid var(--jps-border); border-radius: var(--jps-radius); padding: 32px 28px; position: relative; display: flex; flex-direction: column; transition: .25s; }
.jps-price:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0, 33, 71, .13); }
.jps-price-feat { border-color: var(--jps-red); box-shadow: 0 14px 40px rgba(237, 47, 54, .15); }
.jps-price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--jps-red); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 16px; border-radius: 20px; letter-spacing: 1px; text-transform: uppercase; }
.jps-price h4 { font-size: 19px; font-weight: 700; color: var(--jps-navy); margin: 0 0 12px; }
.jps-price-amt { font-size: 34px; font-weight: 800; color: var(--jps-red); margin-bottom: 18px; }
.jps-price-amt small { display: block; font-size: 13px; font-weight: 600; color: #8895a7; margin-top: 2px; }
.jps-price-list { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.jps-price-list li { font-size: 14.5px; color: var(--jps-text); padding: 8px 0; display: flex; gap: 10px; align-items: flex-start; }
.jps-price-list i { color: #1a9d54; margin-top: 4px; }

/* ══════════ DOWNLOADS ══════════ */
.jps-dl { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.jps-dl-item { display: flex; align-items: center; gap: 16px; padding: 15px 20px; background: #fff; border: 1px solid var(--jps-border); border-radius: 12px; text-decoration: none; transition: .22s; }
.jps-dl-item:hover { border-color: var(--jps-red); transform: translateX(5px); box-shadow: 0 8px 24px rgba(0, 33, 71, .1); }
.jps-dl-ext { flex-shrink: 0; width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(135deg, var(--jps-red), var(--jps-red-dark)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.jps-dl-name { flex: 1; font-size: 15px; font-weight: 600; color: var(--jps-navy); }
.jps-dl-name small { display: block; font-size: 12.5px; font-weight: 500; color: #8895a7; margin-top: 2px; }
.jps-dl-item > i { color: var(--jps-red); font-size: 16px; }

/* ══════════ GALLERY ══════════ */
.jps-gal-item { margin: 0; border-radius: 12px; overflow: hidden; cursor: pointer; position: relative; background: var(--jps-grey); }
.jps-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s; }
.jps-gal-item:hover img { transform: scale(1.07); }
.jps-ratio-square    .jps-gal-item { aspect-ratio: 1; }
.jps-ratio-landscape .jps-gal-item { aspect-ratio: 4/3; }
.jps-ratio-portrait  .jps-gal-item { aspect-ratio: 3/4; }
.jps-gal-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 22px 14px 12px; color: #fff; font-size: 13px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .8)); opacity: 0; transition: opacity .3s;
}
.jps-gal-item:hover figcaption { opacity: 1; }
.jps-lb { position: fixed; inset: 0; background: rgba(0, 8, 20, .93); z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; cursor: zoom-out; }
.jps-lb img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.jps-lb p { color: #fff; font-size: 15px; margin: 0; }
.jps-lb-x { position: absolute; top: 18px; right: 24px; background: none; border: none; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }

/* ══════════ VIDEO ══════════ */
.jps-video { position: relative; aspect-ratio: 16/9; border-radius: var(--jps-radius); overflow: hidden; cursor: pointer; background: #000; max-width: 940px; margin: 0 auto; box-shadow: 0 20px 55px rgba(0, 33, 71, .22); }
.jps-video img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: .35s; }
.jps-video:hover img { opacity: 1; transform: scale(1.03); }
.jps-video iframe { width: 100%; height: 100%; border: 0; }
.jps-video-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 78px; height: 78px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--jps-red); color: #fff; font-size: 26px; padding-left: 5px;
    box-shadow: 0 10px 34px rgba(237, 47, 54, .5); transition: .28s;
}
.jps-video:hover .jps-video-play { transform: translate(-50%, -50%) scale(1.12); }
.jps-video.playing .jps-video-play { display: none; }

/* ══════════ CTA BANNER ══════════ */
.jps-cta-gradient { background: linear-gradient(120deg, #001428 0%, #002b5c 55%, #ed2f36 160%); }
.jps-cta-navy { background: var(--jps-navy); }
.jps-cta-red  { background: linear-gradient(135deg, var(--jps-red), var(--jps-red-dark)); }
.jps-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.jps-cta h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: #fff; margin: 0 0 8px; }
.jps-cta p  { font-size: 16px; color: rgba(255, 255, 255, .85); margin: 0; line-height: 1.6; }

/* ══════════ CONTACT FORM ══════════ */
.jps-form-intro { text-align: center; color: var(--jps-text); max-width: 700px; margin: -22px auto 34px; line-height: 1.7; }
.jps-form-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: start; }
.jps-form-card { background: #fff; border-radius: var(--jps-radius); padding: 34px; box-shadow: 0 8px 34px rgba(0, 33, 71, .1); }
.jps-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.jps-form-grid textarea { grid-column: 1 / -1; resize: vertical; }
.jps-form-card input, .jps-form-card textarea {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--jps-border); border-radius: 10px;
    font-size: 15px; font-family: inherit; background: #f8fafc; transition: .2s;
}
.jps-form-card input:focus, .jps-form-card textarea:focus { outline: none; border-color: var(--jps-red); background: #fff; box-shadow: 0 0 0 3px rgba(237, 47, 54, .1); }
.jps-captcha { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.jps-captcha img { border: 1.5px solid var(--jps-border); border-radius: 10px; background: #f0f4ff; flex-shrink: 0; }
.jps-captcha input { max-width: 190px; }
.jps-captcha-text { background: #f0f4ff; border: 1.5px solid var(--jps-border); border-radius: 10px; padding: 12px 18px; font-family: monospace; font-size: 18px; font-weight: 700; letter-spacing: 4px; color: var(--jps-navy); user-select: none; }
.jps-captcha-refresh { background: none; border: 1.5px solid var(--jps-border); border-radius: 9px; width: 42px; height: 42px; cursor: pointer; color: var(--jps-text); flex-shrink: 0; }
.jps-captcha-refresh:hover { border-color: var(--jps-red); color: var(--jps-red); }
.jps-alert { display: flex; gap: 12px; align-items: center; padding: 15px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14.5px; }
.jps-alert-ok { background: #e8f8ee; color: #0f6135; border: 1px solid #b6e6c8; }
.jps-form-info { background: var(--jps-navy); border-radius: var(--jps-radius); padding: 34px; color: #fff; }
.jps-info-row { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 24px; }
.jps-info-row:last-child { margin-bottom: 0; }
.jps-info-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--jps-red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jps-info-row small { display: block; font-size: 11px; opacity: .55; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.jps-info-row a, .jps-info-row span { color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.5; }
.jps-info-row a:hover { color: var(--jps-red); }

/* ══════════ MAP / SPACER ══════════ */
.jps-map { border-radius: var(--jps-radius); overflow: hidden; box-shadow: 0 8px 30px rgba(0, 33, 71, .1); }
.jps-spacer { display: flex; align-items: center; }
.jps-spacer-line { width: 100%; max-width: 1160px; margin: 0 auto; border: none; border-top: 1px solid var(--jps-border); }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 991px) {
    .jps-cols-4, .jps-cols-5, .jps-cols-6 { grid-template-columns: repeat(2, 1fr); }
    .jps-cols-3 { grid-template-columns: repeat(2, 1fr); }
    .jps-ti, .jps-2col, .jps-quote, .jps-form-wrap { grid-template-columns: 1fr; gap: 30px; }
    .jps-ti-left .jps-ti-text, .jps-ti-left .jps-ti-img { order: initial; }
    .jps-quote-photo { max-width: 220px; margin: 0 auto; }
    .jps-pad-lg { padding: 58px 0; }
}
@media (max-width: 640px) {
    .jps-cols-2, .jps-cols-3, .jps-cols-4, .jps-cols-5, .jps-cols-6 { grid-template-columns: 1fr; }
    .jps-gallery.jps-cols-3, .jps-gallery.jps-cols-4, .jps-gallery.jps-cols-5 { grid-template-columns: repeat(2, 1fr); }
    .jps-form-grid { grid-template-columns: 1fr; }
    .jps-head { margin-bottom: 30px; }
    .jps-pad-lg { padding: 46px 0; }
    .jps-pad-md { padding: 36px 0; }
    .jps-form-card, .jps-form-info, .jps-2col-item { padding: 24px 20px; }
    .jps-cta-inner { flex-direction: column; text-align: center; }
    .jps-hl { flex-direction: column; gap: 12px; padding: 24px; }
    .jps-tl { padding-left: 28px; }
    .jps-captcha input { max-width: 100%; }
}

/* ── Lists & headings inside rich text ──
   Sections now also appear on the core pages (B.Pharm, D.Pharm, Placements …),
   whose own CSS resets every margin/padding to 0. These rules keep bullet lists
   readable there, and match what the builder pages already showed. */
.jps-body ul, .jps-body ol { margin: 0 0 14px; padding-left: 1.35em; }
.jps-body ul { list-style: disc; }
.jps-body ol { list-style: decimal; }
.jps-body li { margin: 0 0 7px; padding-left: 2px; }
.jps-body li::marker { color: var(--jps-red); }
.jps-body h3, .jps-body h4 { color: var(--jps-navy); font-weight: 700; margin: 18px 0 8px; }
.jps-body strong { color: var(--jps-navy); }
.jps-bg-navy .jps-body strong, .jps-bg-red .jps-body strong, .jps-bg-gradient .jps-body strong { color: #fff; }
.jps-table td:first-child { font-weight: 600; color: var(--jps-navy); }

/* ── Site-style section headings ──
   Same as the hand-built pages' .section-header: big navy title with the last
   part in the red gradient (write it as *word* in the CMS title), and an 18px
   grey sub-line. No uppercase eyebrow labels. */
.jps-accent {
    background: linear-gradient(135deg, var(--jps-red), #ff6b6b);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.jps-head { margin-bottom: 50px; }
.jps-sub { font-size: 18px; color: #555; max-width: 700px; }
.jps-align-center .jps-sub { margin-left: auto; margin-right: auto; }
.jps-price { border-radius: 18px; }
.jps-table-wrap { border-radius: 15px; }
