/* =========================================
   joint_PHD.css  (put in css/joint_PHD.css)
   Uses your variables: --navy, --gold (fallbacks included)
   The base banner CSS (.page-banner ...) stays in your global stylesheet.
   ========================================= */

:root{
  --jp-navy: var(--navy, #0b2352);
  --jp-gold: var(--gold, #e1a80b);
  --jp-text: #4a5262;
  --jp-line: #eceef3;
}

html{ scroll-behavior: smooth; }

/* ---------- Banner extras (subtitle + button) ---------- */
.page-banner .banner-text h1{
  margin-bottom: 14px;
}

.page-banner .banner-subtitle{
  margin: 0 0 20px;
  color: #fff;
  font-size: 17px;
  line-height: 1.6;
}

.banner-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: var(--jp-gold);
  color: var(--jp-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 4px;
  transition: background .2s, color .2s;
}

.banner-btn:hover{
  background: #fff;
  color: var(--jp-navy);
}

/* ---------- Breadcrumb strip ---------- */
.jphd-breadcrumb{
  background: #fff;
  border-bottom: 1px solid var(--jp-line);
  padding: 14px 0;
  font-size: 13px;
}

.jphd-breadcrumb a{
  color: var(--jp-navy);
  text-decoration: none;
}

.jphd-breadcrumb a:hover{ color: var(--jp-gold); }

.jphd-breadcrumb .sep{
  margin: 0 10px;
  color: #888;
}

.jphd-breadcrumb .current{
  color: var(--jp-gold);
  font-weight: 600;
}

/* ---------- Shared bits ---------- */
.gold-bar{
  display: block;
  width: 48px;
  height: 3px;
  background: var(--jp-gold);
  margin: 12px 0 18px;
}

.gold-bar.small{
  width: 32px;
  height: 2px;
  margin: 12px 0 14px;
}

.section-title{
  margin: 0;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--jp-navy);
}

/* ---------- Intro ---------- */
.jphd-intro{
  background: #fff;
  padding: 50px 0;
}

.jphd-intro-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.jphd-intro-text h2{
  margin: 0;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--jp-navy);
}

.jphd-intro-text p{
  margin: 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--jp-text);
}

.jphd-highlights{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.highlight-tile{
  background: #f3f6fb;
  border-radius: 8px;
  padding: 24px 10px 18px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}

.highlight-tile:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(11,35,82,.1);
}

.highlight-tile i{
  font-size: 34px;
  color: var(--jp-navy);
  margin-bottom: 14px;
}

.highlight-tile h4{
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--jp-navy);
}

.tile-bar{
  display: block;
  width: 26px;
  height: 2px;
  background: var(--jp-gold);
  margin: 0 auto;
}

/* ---------- Benefits ---------- */
.jphd-benefits{
  background: #f7f8fb;
  padding: 50px 0 20px;
}

.benefit-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}

.benefit-list li{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--jp-line);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--jp-text);
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}

.benefit-list li i{
  flex: 0 0 auto;
  margin-top: 4px;
  font-size: 18px;
  color: var(--jp-gold);
}

/* ---------- Partnerships ---------- */
.jphd-partnerships{
  background: #f7f8fb;
  padding: 40px 0 60px;
}

.partnership-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 24px;
}

.partnership-card{
  background: #fff;
  border: 1px solid var(--jp-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
}

.partnership-image{
  height: 220px;
  background: #e9edf5;
  overflow: hidden;
}

.partnership-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder when the image is missing */
.partnership-image.img-error{
  background: linear-gradient(135deg, #0b1d45 0%, #1c2f62 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.partnership-image.img-error img{ display: none; }
.partnership-image.img-error::after{
  content: "";
  width: 56px;
  height: 56px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e1a80b'%3E%3Cpath d='M12 3 1 9l11 6 9-4.9V17h2V9L12 3zm-6 9.2v3.6c0 1.7 2.7 3.2 6 3.2s6-1.5 6-3.2v-3.6l-6 3.3-6-3.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.partnership-body{
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.partnership-body h3{
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  color: var(--jp-navy);
}

.partnership-location{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  color: var(--jp-text);
}

.partnership-location i{ color: var(--jp-gold); }

.partnership-desc{
  flex: 1;
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--jp-text);
}

.btn-programme{
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--jp-navy);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 4px;
  border-right: 5px solid var(--jp-gold);
  transition: background .2s, color .2s;
}

.btn-programme:hover{
  background: var(--jp-gold);
  color: var(--jp-navy);
  border-right-color: var(--jp-navy);
}

/* ---------- Call to action ---------- */
.jphd-cta{
  background: var(--jp-navy);
  border-bottom: 6px solid var(--jp-gold);
  padding: 44px 0;
}

.jphd-cta-inner{
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.cta-icon{
  font-size: 44px;
  color: var(--jp-gold);
}

.cta-text{
  flex: 1;
  min-width: 260px;
  border-left: 3px solid var(--jp-gold);
  padding-left: 22px;
}

.cta-text h3{
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.cta-text p{
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #dbe3f3;
}

.cta-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--jp-gold);
  color: var(--jp-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 4px;
  transition: background .2s;
}

.cta-btn:hover{ background: #fff; }

/* ================= PAGE BANNER ================= */


.page-banner {
    position: relative;
    width: 100%;
    height: 315px;
    overflow: hidden;
    background: #0b2352;
}

.banner-flex {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
}


/* =========================
   FULL HERO IMAGE
========================= */

.banner-media {
    position: absolute;
    top: 0;
    right: 0;

    width: 82%;
    height: 100%;

    overflow: hidden;
    z-index: 1;
}

.banner-photo {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}


/* =========================
   LEFT DARK / BLURRED AREA
========================= */

.banner-text {
    position: absolute;
    top: 0;
    left: 0;

    width: 45%;
    height: 100%;

    z-index: 3;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 40px 40px 40px 70px;

    background: rgba(11, 35, 82, 0.88);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}


/* Slanted transition */

.banner-text::after {
    content: "";

    position: absolute;

    top: 0;
    right: -100px;

    width: 150px;
    height: 100%;

    background: rgba(11, 35, 82, 0.88);

    clip-path: polygon(
        35% 0,
        100% 0,
        65% 100%,
        0 100%
    );

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    z-index: -1;
}


/* =========================
   TITLE
========================= */

.banner-text h1 {
    margin: 0 0 22px 0;

    color: #ffffff;

    font-size: 36px;
    line-height: 1.35;

    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================
   BREADCRUMB
========================= */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    font-size: 14px;
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #e1a80b;
}

.breadcrumb .sep {
    color: #ffffff;
}

.breadcrumb .current {
    color: #e1a80b;
    font-weight: 600;
}

.banner-subtitle {
    color: #ffffff !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px){
  .jphd-intro-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 767px){
  .jphd-highlights{ grid-template-columns: repeat(2, 1fr); }
  .benefit-list{ grid-template-columns: 1fr; }
  .partnership-grid{ grid-template-columns: 1fr; }
  .section-title{ font-size: 24px; }
  .jphd-intro-text h2{ font-size: 26px; }
  .cta-text h3{ font-size: 22px; }
}