/* =========================================================
   international-projects.css
   Place at: css/international-projects.css
   Uses global variables from your main stylesheet:
   --navy, --gold, --transition  (fallbacks provided below)
   ========================================================= */

/* ---------- Page banner ---------- */
/* ================= PAGE HERO ================= */
.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%);
    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
========================= */

.banner-text .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    font-size: 14px;
}

.banner-text .breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.banner-text .breadcrumb a:hover {
    color: #e1a80b;
}

.banner-text .breadcrumb .sep {
    color: #ffffff;
}

.banner-text .breadcrumb .current {
    color: #e1a80b;
    font-weight: 600;
}

.banner-text p {
    margin: 0 0 22px 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.6;
    max-width: 90%;
}

/* ---------- Layout ---------- */
.ip-section { padding: 36px 0 60px; background: #fff; }
.ip-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;   /* content left, sidebar right */
  gap: 36px;
  align-items: start;
}
.ip-content { order: 1; }
.ip-side    { order: 2; }

/* ---------- Sidebar (matches site sidebar-menu) ---------- */
.sidebar-menu {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}
.sidebar-menu h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 20px;
  background: var(--navy, #0b2152);
}
.sidebar-menu h3.gold-edge { border-left: 4px solid var(--gold, #e1a80b); }
.sidebar-menu ul { list-style: none; margin: 0; padding: 0; }
.sidebar-menu ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--navy, #0b2152);
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  text-decoration: none;
  transition: background var(--transition, .25s ease), color var(--transition, .25s ease);
}
.sidebar-menu ul li a i:first-child {
  color: var(--navy, #0b2152);
  width: 18px;
  text-align: center;
}
.sidebar-menu ul li a:hover { background: #f5f7fb; color: var(--navy, #0b2152); }
.sidebar-menu ul li.active a {
  background: var(--navy, #0b2152);
  color: var(--gold, #e1a80b);
  font-weight: 700;
}
.sidebar-menu ul li.active a i:first-child { color: var(--gold, #e1a80b); }
.sidebar-menu ul li a .arrow {
  margin-left: auto;
  font-size: 11px;
  color: var(--navy, #0b2152);
  opacity: .6;
}
.sidebar-menu ul li.active a .arrow { color: var(--gold, #e1a80b); opacity: 1; }

/* ---------- Content header ---------- */
.ip-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy, #0b2152);
}
.ip-rule {
  width: 56px;
  height: 3px;
  margin: 14px 0 18px;
  background: var(--gold, #e1a80b);
  border-radius: 2px;
}
.ip-lead {
  margin: 0 0 26px;
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.7;
  color: #4a5468;
}

/* ---------- Toolbar ---------- */
.ip-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.ip-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.ip-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a94a8;
  font-size: 14px;
}
.ip-search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  font-size: 14px;
  color: var(--navy, #0b2152);
  background: #fff;
}
.ip-search input:focus {
  outline: none;
  border-color: var(--navy, #0b2152);
  box-shadow: 0 0 0 3px rgba(11, 33, 82, .12);
}
.ip-toolbar-right { display: flex; align-items: center; gap: 16px; }
.ip-count { font-size: 13px; color: #6b7488; }
.ip-count strong { color: var(--navy, #0b2152); }
.ip-toggle-all {
  background: none;
  border: 1px solid var(--navy, #0b2152);
  color: var(--navy, #0b2152);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.ip-toggle-all:hover { background: var(--navy, #0b2152); color: #fff; }
.ip-toggle-all:focus-visible,
.ip-card summary:focus-visible,
.ip-link:focus-visible {
  outline: 3px solid var(--gold, #e1a80b);
  outline-offset: 2px;
}

/* ---------- Project cards (accordion) ---------- */
.ip-list { display: flex; flex-direction: column; gap: 12px; }

.ip-card {
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.ip-card[hidden] { display: none; }
.ip-card:hover { border-color: #cfd6e6; }
.ip-card[open] {
  border-color: var(--navy, #0b2152);
  box-shadow: 0 8px 22px rgba(11, 33, 82, .08);
}

.ip-card summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 18px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}
.ip-card summary::-webkit-details-marker { display: none; }

.ip-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy, #0b2152);
  color: #fff;
  font-size: 16px;
}
.ip-card[open] .ip-badge { background: var(--gold, #e1a80b); color: var(--navy, #0b2152); }

.ip-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16.5px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--navy, #0b2152);
}
.ip-period {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--navy, #0b2152);
  background: #fdf3d6;
  border-radius: 999px;
  padding: 5px 12px;
}
.ip-chevron {
  font-size: 12px;
  color: var(--navy, #0b2152);
  opacity: .6;
  transition: transform .2s;
}
.ip-card[open] .ip-chevron { transform: rotate(180deg); opacity: 1; }

.ip-body {
  padding: 4px 20px 20px 80px; /* aligns with the title text */
  border-top: 1px dashed #e6e9f0;
  animation: ipOpen .2s ease;
}
@keyframes ipOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.ip-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px 28px;
  margin: 16px 0 0;
}
.ip-meta dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #6b7488;
}
.ip-meta dt i { color: var(--gold, #e1a80b); width: 16px; text-align: center; }
.ip-meta dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--navy, #0b2152);
}

.ip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--navy, #0b2152);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.ip-link:hover { background: var(--gold, #e1a80b); color: var(--navy, #0b2152); }

.ip-empty {
  margin: 24px 0 0;
  padding: 24px;
  text-align: center;
  color: #6b7488;
  background: #f5f7fb;
  border-radius: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .ip-layout { grid-template-columns: 1fr; gap: 24px; }
  .ip-side {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
  .ip-side .sidebar-menu { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .page-banner h1 { font-size: 28px; }
  .ip-head h2 { font-size: 30px; }
  .ip-card summary {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    padding: 14px 16px;
  }
  .ip-period { display: none; }   /* period is repeated inside the open card */
  .ip-badge { width: 40px; height: 40px; }
  .ip-body { padding: 4px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ip-body { animation: none; }
  .ip-chevron, .ip-card { transition: none; }
}