/**
 * FPSD Components CSS
 * Faculty of Public Policy and Sustainable Development
 * Asian Institute of Technology
 *
 * Version: 1.0.0
 * Updated: 2026-03-20
 */

/* ==========================================================================
   1. BASE / RESET
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #A1BE37;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* ==========================================================================
   2. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: clamp(24px, 4vw, 36px); }
h2 { font-size: clamp(20px, 3vw, 28px); }
h3 { font-size: clamp(17px, 2.5vw, 22px); }
h4 { font-size: 17px; }

p {
  margin-bottom: 14px;
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

.fpp-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.fpp-h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 8px;
  padding-bottom: 12px;
  border-bottom: 3px solid #A1BE37;
  display: inline-block;
}

.fpp-lead {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 32px;
}

.fpp-muted {
  margin: 0 0 16px;
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
}

.fpp-role {
  margin: 0 0 12px;
  font-size: 13px;
  color: #666666;
  font-weight: 600;
}


/* ==========================================================================
   3. DECORATIVE ELEMENTS
   ========================================================================== */

.fpp-title-bar {
  width: 48px;
  height: 3px;
  background: #A1BE37;
  margin: 0 0 28px;
}

.fpp-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0 0 48px;
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.fpp-section {
  margin-bottom: 64px;
}

.fpp-section + .fpp-section {
  border-top: 1px solid #e0e0e0;
  padding-top: 48px;
}

.fpp-section:first-child {
  border-top: none;
  padding-top: 0;
}

.fpp-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
  padding-bottom: 10px;
  border-bottom: 3px solid #A1BE37;
  display: inline-block;
  line-height: 1.3;
}

.fpp-section p {
  margin-bottom: 14px;
  line-height: 1.7;
  font-size: 15px;
}

.fpp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}

.fpp-grid--wide {
  grid-template-columns: 1.2fr 0.8fr;
}

.fpp-grid figure {
  margin: 0;
}

.fpp-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-top: 3px solid #A1BE37;
}

.fpp-glance-long {
  max-width: 780px;
  margin-top: 28px;
}

.fpp-glance-long p {
  line-height: 1.8;
  margin-bottom: 1.2em;
  color: #333333;
}


/* ==========================================================================
   5. CARDS
   ========================================================================== */

.fpp-card {
  border: 1px solid #e0e0e0;
  border-top: 3px solid #A1BE37;
  padding: 20px;
  background: #ffffff;
}

.fpp-card h2 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #333333;
  padding-bottom: 10px;
  border-bottom: 3px solid #A1BE37;
  display: inline-block;
}

.fpp-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}

.fpp-card p {
  line-height: 1.8;
  margin-bottom: 1.1em;
  color: #333333;
  font-size: 0.97rem;
}

.fpp-card p:last-of-type {
  margin-bottom: 20px;
}

.fpp-card--padded {
  padding: 28px 32px;
  line-height: 1.75;
}

/* Cards Grid */
.fpp-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.fpp-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  align-items: start;
}

.fpp-cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

/* Card with Image */
.fpp-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.fpp-card-body {
  padding: 16px 18px 18px;
}

.fpp-card-body h3 {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

/* CTA Card */
.fpp-cta-card {
  text-align: center;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #A1BE37;
  padding: 48px 40px;
}

/* Link Card */
.fpp-linkcard {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #A1BE37;
  padding: 14px 16px;
  background: #ffffff;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.15s ease;
}

.fpp-linkcard:hover {
  background: #f7f7f7;
  text-decoration: none;
}

.fpp-links-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}


/* ==========================================================================
   6. FACULTY / STAFF CARDS
   ========================================================================== */

.fpp-faculty-grid,
.fpp-staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fpp-staff-card {
  border: 1px solid #e0e0e0;
  border-top: 3px solid #A1BE37;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.fpp-staff-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.fpp-staff-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.fpp-staff-body {
  padding: 14px 16px 18px;
}

.fpp-staff-body h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}


/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

.fpp-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #A1BE37;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: none;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.fpp-btn:hover {
  background: #8DB37F;
  text-decoration: none;
}

/* Apply Button (larger variant) */
.fpp-apply-btn {
  display: inline-block;
  padding: 13px 32px;
  background: #A1BE37;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border: none;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease;
}

.fpp-apply-btn:hover {
  background: #8DB37F;
  text-decoration: none;
}

/* Pill Links */
.fpp-pill {
  display: inline-block;
  text-decoration: none;
  color: #333333;
  border: 1px solid #A1BE37;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: #f7f7f7;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fpp-pill:hover {
  background: #A1BE37;
  color: #ffffff;
  text-decoration: none;
}

.fpp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* ==========================================================================
   8. LISTS
   ========================================================================== */

.fpp-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fpp-list li {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 14px;
  line-height: 1.5;
}

.fpp-list li:last-child {
  border-bottom: none;
}

.fpp-list li strong {
  color: #666666;
  font-weight: 600;
  min-width: 110px;
  flex-shrink: 0;
}

.fpp-list li a {
  color: #A1BE37;
  text-decoration: none;
}

.fpp-list li a:hover {
  text-decoration: underline;
}

/* Numbered List */
.fpp-list--numbered {
  counter-reset: item;
}

.fpp-list--numbered li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 15px;
}

.fpp-list--numbered li::before {
  content: counter(item);
  counter-increment: item;
  font-size: 12px;
  font-weight: 700;
  color: #A1BE37;
  font-family: monospace;
  min-width: 20px;
}

/* Two Column List */
.fpp-list-cols {
  columns: 2;
  column-gap: 32px;
}

/* Ordered List (for admission steps, etc.) */
.fpp-ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: steps;
}

.fpp-ol li {
  counter-increment: steps;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 15px;
}

.fpp-ol li:last-child {
  border-bottom: none;
}

.fpp-ol li::before {
  content: counter(steps, decimal-leading-zero);
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: #A1BE37;
  min-width: 26px;
}

/* Column List */
.fpp-columns {
  columns: 2;
  column-gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: fpp-counter;
}

.fpp-columns li {
  break-inside: avoid;
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  color: #333333;
}

.fpp-columns li::before {
  content: counter(fpp-counter, decimal-leading-zero);
  counter-increment: fpp-counter;
  position: absolute;
  left: 0;
  font-family: monospace;
  font-size: 12px;
  color: #A1BE37;
  font-weight: 700;
  top: 2px;
}


/* ==========================================================================
   9. PROGRAM COMPONENTS
   ========================================================================== */

/* Programs Grid */
.fpp-programs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fpp-program {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #A1BE37;
  border-radius: 4px;
  padding: 18px 16px 16px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  background: #ffffff;
}

.fpp-program:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  text-decoration: none;
}

.fpp-program__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  border: 1px solid #A1BE37;
  color: #333333;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.fpp-program__name {
  font-size: 15px;
  line-height: 1.4;
}

/* Specialisation Rows */
.fpp-specialisation__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 28px;
  padding-bottom: 10px;
  border-bottom: 3px solid #A1BE37;
  display: inline-block;
}

.fpp-specialisation__row {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 16px 0;
}

.fpp-specialisation__left {
  flex: 1;
  font-weight: 600;
  font-size: 1rem;
  border-left: 4px solid #A1BE37;
  padding-left: 16px;
}

.fpp-specialisation__right {
  width: 220px;
  font-size: 0.875rem;
  color: #666666;
  padding-left: 24px;
  display: flex;
  align-items: center;
}

.fpp-specialisation__divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0;
}

/* Spec Item (accent left border box) */
.fpp-spec-item {
  border-left: 4px solid #A1BE37;
  padding: 14px 18px;
  margin-bottom: 16px;
  background: #f7f7f7;
}

.fpp-spec-item:last-child {
  margin-bottom: 0;
}

.fpp-spec-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #333333;
}

/* Focus Area Grid */
.fpp-focus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.fpp-focus__item {
  display: flex;
  flex-direction: column;
}

.fpp-focus__item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-top: 3px solid #A1BE37;
  transition: transform 0.3s ease;
}

.fpp-focus__item:hover img {
  transform: scale(1.04);
}

.fpp-focus__item h4 {
  margin: 12px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Course Structure */
.fpp-course__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 28px;
  padding-bottom: 10px;
  border-bottom: 3px solid #A1BE37;
  display: inline-block;
}

.fpp-course__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}

.fpp-course__photo {
  margin: 0;
  width: 200px;
}

.fpp-course__photo img {
  width: 100%;
  display: block;
}

.fpp-course__h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #A1BE37;
  margin: 0 0 16px;
}

.fpp-course__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: course-counter;
}

.fpp-course__list li {
  counter-increment: course-counter;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.fpp-course__list li::before {
  content: counter(course-counter, decimal-leading-zero);
  font-family: monospace;
  color: #A1BE37;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  padding-top: 2px;
}

/* Career Grid */
.fpp-career-note {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: #666666;
}


/* ==========================================================================
   10. FIGURES & IMAGES
   ========================================================================== */

.fpp-figure {
  margin: 0 0 32px;
}

.fpp-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.fpp-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #666666;
  font-style: italic;
}

.fpp-figure--full img {
  width: 100%;
  display: block;
}

.fpp-figure--bordered {
  border: 1px solid #e0e0e0;
}


/* ==========================================================================
   11. HERO
   ========================================================================== */

.fpp-hero {
  margin: 0 0 48px;
}

.fpp-hero__banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.fpp-hero__title {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
}

.fpp-hero__logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fpp-hero h1 {
  margin: 0;
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.15;
}

.fpp-hero p {
  margin: 6px 0 0;
  color: #666666;
}


/* ==========================================================================
   12. BRAND
   ========================================================================== */

.fpp-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.fpp-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.fpp-brand__title {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  color: #1a1a1a;
}

.fpp-brand__sub {
  font-size: 14px;
  color: #666666;
  margin-top: 3px;
}


/* ==========================================================================
   13. DEAN SECTION (About pages)
   ========================================================================== */

.fpp-dean {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 32px;
  align-items: start;
  margin-top: 20px;
}

.fpp-dean__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border-top: 3px solid #A1BE37;
}

.fpp-dean__text p {
  margin: 0 0 14px;
  line-height: 1.7;
}

.fpp-dean__text p:last-child {
  margin-bottom: 0;
}

.fpp-dean__name {
  font-weight: 700;
  font-size: 15px;
  margin-top: 20px !important;
}


/* ==========================================================================
   14. UTILITIES
   ========================================================================== */

.fpp-mb-0 { margin-bottom: 0 !important; }
.fpp-mt-0 { margin-top: 0 !important; }
.fpp-pt-0 { padding-top: 0 !important; }
.fpp-border-top-0 { border-top: none !important; }

.fpp-text-center { text-align: center; }
.fpp-text-muted { color: #666666; }
.fpp-text-small { font-size: 14px; }

.fpp-bg-alt { background-color: #f7f7f7; }


/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .fpp-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fpp-grid--wide {
    grid-template-columns: 1fr;
  }

  .fpp-cards {
    grid-template-columns: 1fr;
  }

  .fpp-cards3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fpp-cards-grid {
    grid-template-columns: 1fr;
  }

  .fpp-links-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fpp-faculty-grid,
  .fpp-staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fpp-programs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fpp-focus {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .fpp-course__grid {
    grid-template-columns: 1fr;
  }

  .fpp-course__photo {
    width: 100%;
  }

  .fpp-dean {
    grid-template-columns: 1fr;
  }

  .fpp-dean__image {
    order: -1;
  }

  .fpp-specialisation__right {
    width: 160px;
  }

  .fpp-list-cols,
  .fpp-columns {
    columns: 1;
  }

  .fpp-h2 {
    font-size: 1.3rem;
  }

  .fpp-card--padded {
    padding: 20px;
  }

  .fpp-hero__title {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .fpp-section {
    margin-bottom: 40px;
  }

  .fpp-section + .fpp-section {
    padding-top: 32px;
  }

  .fpp-section h2 {
    font-size: 19px;
  }

  .fpp-cards3 {
    grid-template-columns: 1fr;
  }

  .fpp-links-row {
    grid-template-columns: 1fr;
  }

  .fpp-faculty-grid,
  .fpp-staff-grid {
    grid-template-columns: 1fr;
  }

  .fpp-programs {
    grid-template-columns: 1fr;
  }

  .fpp-focus {
    grid-template-columns: 1fr;
  }

  .fpp-card {
    padding: 16px;
  }

  .fpp-card--padded {
    padding: 16px;
  }

  .fpp-cta-card {
    padding: 32px 20px;
  }

  .fpp-lead {
    font-size: 16px;
  }

  .fpp-apply-btn {
    display: block;
    text-align: center;
  }

  .fpp-btn {
    display: block;
    text-align: center;
  }

  .fpp-h2 {
    font-size: 1.15rem;
  }

  .fpp-hero h1 {
    font-size: 20px;
  }

  .fpp-specialisation__row {
    flex-direction: column;
    gap: 4px;
  }

  .fpp-specialisation__right {
    width: auto;
    padding-left: 20px;
  }
}
