/* Add this import at the very top of your CSS file or in the HTML <head> */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&display=swap');

:root {
  --navy: #002C54;
  --gold: #C5A100;
  --ivory: #F7F7F7;
  --ink: #0E141B;
  --muted: #6B7280;
  --gradA: #00C2FF;
  --gradB: #7F00FF;
  --maxw: 1250px;
}

	/* Smooth scroll and anchor offset */
html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 80px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; 
  /*font-family: Merriweather, serif;*/
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

a {
  color: var(--navy);
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--gradA), var(--gradB));
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #fff;
}

.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

.menu {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.menu a {
  font-weight: 600;
  color: rgba(255, 255, 255, .95);
  transition: all 0.3s ease;
  position: relative;
}

.menu a:hover {
  color: #FFD700;
}

.menu a.active {
  color: #FFD700;
  font-weight: 700;
}

.menu a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: #FFD700;
  border-radius: 2px;
}

.menu a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 3px;
  background: #FFD700;
  border-radius: 2px;
}

.lang {
  display: flex;
  gap: 8px;
}

.lang button {
  border: 1px solid rgba(255, 255, 255, .6);
  background: transparent;
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .9rem;
  cursor: pointer;
}

.lang button.active {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 40vh;
  display: grid;
}

.hero video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
  filter: contrast(1.05) saturate(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /*background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .35) 40%, rgba(0, 0, 0, .55));*/
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 20px;
  /*height: 70%;*/
}

.hero-inner {
  max-width: 980px;
  color: black;
  text-align: center;
}

.kicker {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #9f3806;
}

.title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 0.1;
  margin: .1em 0 .3em;  
  font-weight: 800;
}

.subtitle {
  font-family: Merriweather, serif;
  font-weight: 300;
  font-size: clamp(16px, 1.6vw, 22px);
  opacity: .95;
  color: #048f0a;
  margin-top: 30px;
}

.cta {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.btn.primary {
  background: #1e9495;
  color: white;
}

.btn.ghost {
  border: 1.5px solid rgba(255, 255, 255, .85);
  color: #fff;
  background-color: orange;
}

/* Make Read Full Biography button stand out */
.btn[data-i18n="bio_cta"] {
  background: #ff6b35 !important;
  color: white !important;
  font-weight: 600 !important;
}

/* Signature message */
.signature {
  padding: 10px 0;
  background: #fff;
}

.signature .box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  max-width: 1140px;  /* Constrain total width */
  margin: 0 auto;  /* Center the box */
}

.sig-photo {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  max-width: 300px;
  margin-top: -10px;
  margin-left: -12px;
}

.sig-copy h2 {
  font-size: clamp(22px, 2.4vw, 34px);
  margin: 0 0 10px;
  color: var(--navy);
}

.sig-quote {
  font-family: Merriweather, serif;
  font-size: clamp(16px, 1.4vw, 18px);
  color: #243444;
  margin-top: -5px;
  margin-left: -15px;
}

.sig-meta {
  margin-top: 12px;
  color: green;
  font-size: 13pt;
  margin-left: -15px;
}

/* Cards */
.cards {
  padding: 30px 0;
  background: var(--ivory);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
  display: flex;
  flex-direction: column;
}

.card figcaption {
  padding: 16px 18px;
}

.card h3 {
  font-family: Merriweather, serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 6px;
}

.card p {
  margin: 0;
  font-family: Merriweather, serif;
  color: #000408;
}

.card a {
  margin: 14px 18px 18px;
  align-self: flex-start;
}

/* Carousel */
.media {
  padding: 20px 0;
  background: #fff;
}

/* Section headers - consistent styling */
.section-header {
  font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: .18em;
  line-height: 1.2;
}

/* Section headers - base styling */
.section-header,
.section-head h2 {	
  font-family: Merriweather, Serif;
  font-size: clamp(22px, 2.4vw, 30px);
  color: #9f3806;
  font-weight: 800;
  margin: 0;
}

.position {
	color: purple;
	font-family: Merriweather, Serif;
	font-size: 14pt;
	margin-top: -10px;
}

/* Section head container - base */
.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 25px;
  justify-content: center;  /* Default: center */
  position: relative;
}

/* All h2 in section-head */
.section-head h2 {
  text-align: center;  /* Default: centered text */
  width: 100%;
  margin: 0;
}

/* Position controls/buttons absolutely to the right */
.section-head .ctrl,
.section-head .btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.smci-text-container {
  text-align: left;            /* overrides forced centering from parent */
}

.smci-text-container p {
  margin: 0 0 1rem;            /* spacing between paragraphs */
  white-space: normal;         /* ensures normal wrapping */
  word-break: normal;          /* prevents weird mid-line breaks */
  overflow-wrap: break-word;   /* forces wrapping instead of breaking layout */
}

/* Disabled state for carousel controls */
.ctrl button:disabled,
.ctrl button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(40%);
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #ececec;
  max-height: 494px;
}

.track {
  display: flex;
  transition: transform .5s ease;
}

.slide {
  min-width: 80%;
  display: flex;
  flex-direction: column;
  background: #fff;
  max-height: 600px;
  align-items: center;
}

.slide-copy {
  padding: 16px 20px;
  color: #9d6103;
  font-family: Merriweather, serif;
  order: 1;
  flex-shrink: 0;
  max-width: 600px;
  margin: 0 auto;
}

.slide > div:first-child {
  order: 2;
  flex: 1;
  overflow: hidden;
  max-height: 500px;
  max-width: 600px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img,
.slide video {
  height: 340px;
  max-height: 350px;
  max-width: 600px;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.slide > div {
  width: 100%;
}

.slide > div a {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.slide-media img,
.slide-media video {
  width: 100%;
  height: auto;
  max-height: 500px;
  max-width: 600px;
  object-fit: contain;
  margin: 0 auto;
}

.slide-media {
  position: relative;
}

.play::after {
  content: "▶";
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 14px;
}

.slide-copy h4 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  text-align: center;
}

.slide-copy p {
  margin: 0;
  font-size: 0.95rem;
}

.ctrl {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.ctrl button {
  border: 1px solid #d7dee6;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

/* Parallax vision */
.vision {
  position: relative;
  padding: 40px 0;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: brown;
  text-align: center;
  background-color: white;
}

.vision::after {
  content: "";
  position: absolute;
  inset: 0;
  /*background: rgba(255, 255, 200, .3);*/
}

.vision .wrap {
  position: relative;
  z-index: 1;
}

.vision h2 {
  margin: 0 0 10px;
}

.vision p {
  max-width: 925px;
  margin: 0 auto 18px;
  font-family: Merriweather, serif;
  font-size: 18px;
  color: #000408;
  font-weight: 500;
}

.vision .section-head {
  margin-bottom: 16px;  /* Reduced from 24px (24 - 8 = 16) */
}

.pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
  color: brown;
  font-weight: 600;
  margin-bottom: -30px;
}

.pill {
  border: 1.5px solid rgba(255, 255, 255, .85);
  padding: 8px 12px;
  border-radius: 999px;
}

/* News */
.news {
  padding: 40px 0;
  background: #fff;
}

.news-carousel-container {
  position: relative;
  overflow: hidden;
}

.news-carousel-track {
  transition: transform 0.5s ease;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.news-grid:last-child {
  margin-bottom: 0;
}

.news-card {
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  color: #000408;
  font-family: Merriweather, serif;
  font-weight: 500;
}

.news-card img {
  width: 100%;
  height: 192px;
  object-fit: cover;
}

.news-card .meta {
  padding: 12px 14px;
}

.news-card h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--navy);
}

.news-card p {
  margin: 0;
  color: #000408;  
  font-family: Merriweather, serif;
  font-size: .95rem;
}

/* Bio */
.bio {
  padding: 30px 0;
  background: var(--ivory);
  text-align: center;
}

.bio h2 {
  text-align: center;
}

.bio > .wrap > p:first-of-type {
  text-align: left;
}

.bio p {
  max-width: 1090px;
  margin: 0 auto 12px;
  font-weight: 400;
  color: #000408;
  text-align: left;
}

#fullBio {
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

#fullBio p {
  text-align: left;
  line-height: 1.8;
  margin-bottom: 16px;
}

.bio .btn {
  margin-top: 12px;
}

/* Contact */
.contact {
  padding: 40px 0;
  background: #fff;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

form textarea {
  grid-column: span 2;
  min-height: 140px;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8dee6;
  border-radius: 10px;
  font: inherit;
}

form .actions {
  grid-column: span 2;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Footer */
footer {
  background: var(--navy);
  color: #d9e1ea;
  padding: 260px 0 40px 0;
  margin-top: 20px;
}

footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer .footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}

footer a {
  color: #e9c300;
}

footer .developer-credit {
  text-align: center;
  font-size: 0.85rem;
  color: #a8b4c4;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .developer-credit a {
  color: #b8c5d6;
  text-decoration: none;
  transition: color 0.2s;
}

footer .developer-credit a:hover {
  color: #e9c300;
}

/* Responsive */
@media (max-width: 1000px) {
  /* ... keep existing responsive rules ... */
}

@media (max-width: 600px) {
  /* ... keep existing responsive rules ... */
  
  footer .footer-main {
    flex-direction: column;
    text-align: center;
  }
}

/* Responsive */
@media (max-width: 1000px) {
  .signature .box {
    grid-template-columns: 1fr;
  }

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

  .slide {
    min-width: 100%;
    flex-direction: column;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  form {
    grid-template-columns: 1fr;
  }

  form textarea,
  form .actions {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .menu {
    display: none;
  }
}