:root {
  --bg-cream: #f5f7fb;
  --bar-cream: #ffffff;
  --text: #0f172a;
  --muted: #e5e7eb;
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --ink: #0b1324;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --max: 1200px;
  --footer-bg: #f3f5f9;
}

/* Global font */
html,
body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  font-size: 1.1rem;
  text-align: left;
  margin: 0;
  background: #ffffff;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: grayscale(10%);
}
h1,
h2{
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  text-align: left;
}
h3{
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  margin-bottom: 12px;
  text-align: left;
}
h4{
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 24px);
  margin-bottom: 12px;
  text-align: center;
  font-style: normal;
}
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600
}

/* Header (if you use it) */
.site-header {
  display: flex;
  width: 100%;
  background: var(--bar-cream);
  border-bottom: 1px solid #eef1f5;
  position: sticky;
  top: 0;
  z-index: 10;
  align-items: center;
}

.container {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 5px 20px;
  align-items: center;
}
.site-header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 50px);
  align-items: center;
  display: inline-flex;
  gap: 12px;
}
.brand-mark {
  display: inline-flex;
  color: var(--blue);
}
.brand-mark img {
  width: clamp(100px, 3vw, 48px);
  height: clamp(100px, 3vw, 48px);
  display: block;
  filter: none;

}
.brand-text {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
  justify-self: center;
}

.main-nav a {
  text-decoration: none;
  color: #0b1220;
  font-weight: 500;
}
.nav-toggle {
  display: none;
  border: 1px solid #e6e9ef;
  background: #fff;
  border-radius: 10px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  cursor: pointer;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.nav-toggle .label {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.nav-close {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #0b1220;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: none
}

.btn-dark {
  background: rgba(10, 22, 53, 0.692);
  color: #fff !important;
  box-sizing: border-box;
}
.btn-dark:hover {
  background: #0a3cbb;
}
.btn-dark:active,
.btn-dark:focus-visible {
  background: #3b5fe0;
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn-light {
  background: #ffffff;
  color: #0b1220 !important;
  border: 1px solid #e7ebf2;
}

/* Sections */
.section {
  padding: 20px 0
}

.cream {
  background: var(--bg-cream)
}

.narrow {
  max-width: 800px;
  margin: 0 auto
}

.center {
  text-align: center
}

.lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
}

/* Hero / covers */
.cover {
  min-height: 70vh;
  color: #ffffff;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--cover-img) center/cover no-repeat;
  overflow: hidden;
}

.cover-quote {
  min-height: 60vh;
}

.cover-inner {
  text-align: center;
  padding: 50px;
  font-size: clamp(18px, 2.4vw, 36px);
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 2;
}
#home .cover-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#home .cover-inner .btn {
  align-self: center;
  margin-top: 16px;
}
#home .cover-inner .btn.btn-dark {
  background: #ffffff;
  color: rgba(10, 22, 53, 0.692) !important;
  border: 1px solid rgba(10, 22, 53, 0.25);
}
#home .cover-inner .btn.btn-dark:hover {
  background: #f1f5f9;
}
#home .cover-inner .btn.btn-dark:active,
#home .cover-inner .btn.btn-dark:focus-visible {
  background: #ffffff;
}

.cover h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 0 0 12px;
  text-align: center;
}

.tagline {
  opacity: 1;
  color: #e2e8f0;
  font-size: 1.5rem;
  max-width: 720px;
  text-align: center;
  place-self: center;
}
.cover-quote {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.45)), var(--cover-img) center/cover no-repeat;
  color: #ffffff;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 1;
}
.cover-quote::before {
  display: none;
}
.small {
  font-size: 0.8rem;
  color: #64748b;
}
/* Grid helpers */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  justify-items: center;
  height:auto;
}
.grid-3 > div {
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  justify-items: center;
  text-align: center;
}
.grid-3 > div h3,
.grid-3 > div p {
  text-align: center;
}
.grid-3 > div h3 {
  min-height: 3.2em;
  display: block;
  margin-bottom: 12px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: center;
  justify-items: center;
 }
 .grid-4 div {
  text-align: center;
  position: relative;
  padding: 20px 24px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eef1f5;
  box-shadow: var(--shadow);
}
.grid-4 > div:not(:last-child)::after {
  display: none;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px
}
.text-slider-title {
  margin-bottom: 15px;
  color: var(--text);
  place-self: left;
  font-style: italic;

}

@media (max-width:820px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr
  }
}
@media (max-width:980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 > div:not(:last-child)::after {
    display: none;
  }
  .cover::after {
    display: none;
  }
  .cover-inner {
    text-align: center;
  }
  #home .cover-inner {
    align-items: center;
  }
  #home .cover-inner .btn {
    align-self: center;
  }
}
@media (max-width:820px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ===================== TEAM ===================== */
.team {
  display: grid;
  gap: 60px;
  margin-top: 40px;
}

.member {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left
}

.member .top-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  margin-top: 30px;
}

.member .identity {
  flex: 1;
  text-align: right
}

/* Reverse layout for 2nd member */
.member.reverse .top-row {
  flex-direction: row-reverse
}

.member.reverse .identity {
  text-align: left
}

/* Photo */
.member .avatar {
  width: 250px;
  height: 400px;
  border-radius: 12px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.5) brightness(1);
  box-shadow: var(--shadow);
}

.member .avatar:hover {
  filter: grayscale(100%)
}

/* Name/Title */
.member .name {
  margin: 0 0 4px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text)
}

.member .title {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
  text-align: inherit;
}

/* Bullets */
.member .bio {
  margin-top: 16px;
  list-style: disc;
  padding-left: 22px;
  font-size: 1rem;
  line-height: 1.7;
  color: #0f172a
}

@media (max-width:820px) {
  .member .top-row {
    flex-direction: column;
    align-items: center;
    gap: 16px
  }

  .member .identity {
    text-align: center
  }

  .member .avatar {
    width: 200px;
    height: 250px
  }

  .member .bio {
    padding-left: 18px
  }
}

/* ===================== TEXT SLIDER ===================== */
.text-slider {
  position: relative;
  background: #f5f7fb;
;
}
.text-slides {
  position: relative;
  min-height: 360px;
  text-align: center;
  padding: 36px 0 56px;
  overflow: hidden;
}
.text-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(64%, 760px);
  min-height: 280px;
  margin-left: calc(min(64%, 760px) / -2);
  display: grid;
  place-items: center;
  padding: 28px 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(0) scale(0.88);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.text-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  z-index: 3;
  pointer-events: auto;
}
.text-slide.is-prev,
.text-slide.is-next {
  opacity: 0.55;
  visibility: visible;
  z-index: 2;
}
.text-slide.is-prev {
  transform: translateX(-62%) scale(0.86);
}
.text-slide.is-next {
  transform: translateX(62%) scale(0.86);
}
.text-slide h3 {
  font-size: clamp(20px, 3.2vw, 32px);
  margin-bottom: 10px;
}
.text-slide p {
  font-size: clamp(16px, 2.2vw, 22px);
  color: #1f2937;
  margin: 6px 0;
  font-style: italic;
}
.text-slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.text-slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.text-slider-dots .dot.active {
  background: #1d4ed8;
  transform: scale(1.1);
}
.text-slide-prev,
.text-slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.lang-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.text-slide-prev { left: 18px; }
.text-slide-next { right: 18px; }

/* ===================== SLIDER (cross-fade) ===================== */
.gallery {
  position: relative;
  overflow: hidden;
  background: none
}

.slider {
  position: relative;
  overflow: hidden;
  height: 60vh;
  max-height: 800px
}

.slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease
}

.slider img.active {
  opacity: 1
}

/* Dots overlay INSIDE the slider */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: background .3s ease, transform .3s ease
}

.slider-dots .dot.active {
  background: #000;
  transform: scale(1.2)
}

.slider-dots .dot:hover {
  background: #777
}

/* Prev/Next buttons */
.slide-prev,
.slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .8);
  border: 0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  z-index: 15
}

.slide-prev:hover,
.slide-next:hover {
  background: rgba(255, 255, 255, .95)
}

.slide-prev {
  left: 10px
}

.slide-next {
  right: 10px
}

@media (prefers-reduced-motion:reduce) {
  .slider img {
    transition: none
  }
}

/* ===================== CONTACT ===================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid #eef1f5;
  box-shadow: var(--shadow);
}

.contact-form .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: .95rem;
  color: var(--text);
  gap: 6px
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical
}

.contact-form button {
  margin-top: 10px
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: none
}

.btn-whatsapp {
  background: #22c55e;
  color: #fff !important
}

@media (max-width:700px) {
  .contact-form .grid-2 {
    grid-template-columns: 1fr
  }
}
@media (max-width:700px) {
  .site-header {
    position: static;
  }
  .site-header .container {
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .lang-switcher {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    justify-self: auto;
  }
  .lang-menu {
    left: 0;
    right: auto;
    width: 100%;
  }
  .main-nav {
    order: 3;
    position: fixed;
    inset: 0;
    z-index: 50;
    width: 100%;
    height: 100vh;
    background: var(--bg-cream);
    padding: 88px 24px 24px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 18px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .35s ease, transform .35s ease;
  }
  .main-nav a {
    font-size: 1.1rem;
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav .nav-close {
    display: block;
  }
  .nav-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .cover {
    min-height: 50vh;
    background-attachment: scroll;
  }
  .cover-inner {
    padding: 24px 16px;
  }
  .section {
    padding: 40px 0;
  }
  .member .avatar {
    width: 200px;
    height: 260px;
  }
  .slider {
    height: 42vh;
  }
  .contact-form {
    padding: 20px;
  }
  .text-slides {
    min-height: 320px;
    padding: 24px 0 40px;
  }
  .text-slide {
    width: min(78%, 520px);
    margin-left: calc(min(78%, 520px) / -2);
    min-height: 250px;
    padding: 20px 16px;
  }
  .text-slide.is-prev {
    transform: translateX(-58%) scale(0.84);
  }
  .text-slide.is-next {
    transform: translateX(58%) scale(0.84);
  }
  .text-slide-prev,
  .text-slide-next {
    width: 34px;
    height: 34px;
  }
}
@media (max-width:420px) {
  .lang-switcher button {
    font-size: 0.8rem;
  }
}
.nav-open {
  overflow: hidden;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--muted);
  background: var(--footer-bg)
}

.lang-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
  justify-self: end;
  margin-left: 24px;
}
/* Language switcher buttons */

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: #0b1220;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.lang-toggle:hover {
  border-color: #cbd5f5;
}
.lang-icon {
  display: inline-flex;
  color: #0b1220;
}
.lang-caret {
  font-size: 0.85rem;
  margin-left: 2px;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 8px;
  display: grid;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 20;
}
.lang-menu button {
  background: transparent;
  border: 0;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  color: #0b1220;
}
.lang-menu button:hover {
  background: #f3f6fb;
}
.lang-menu button[aria-selected="true"] {
  background: #eef2ff;
  color: #1d4ed8;
}
.lang-switcher.open .lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===================== MD CONVERTER ===================== */
.brand-logo {
  height: clamp(40px, 6vw, 56px);
  width: auto;
  display: block;
  filter: none;
}
.converter {
  max-width: 800px;
  margin: 0 auto;
}
.converter h1 {
  text-align: center;
}
.converter .sub {
  text-align: center;
  color: #64748b;
  margin: 0 0 28px;
}
.card {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
#drop {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 48px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
#drop.drag {
  border-color: var(--blue);
  background: var(--bg-cream);
}
#drop strong {
  color: var(--blue);
}
#fname {
  margin-top: 14px;
  color: #64748b;
  font-size: .9rem;
  word-break: break-all;
}
.row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.row .btn {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
}
.row .btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
#status {
  margin-top: 18px;
  min-height: 22px;
  font-size: .95rem;
  color: #64748b;
}
#status.err {
  color: #c0392b;
}
#out {
  margin-top: 18px;
  background: var(--footer-bg);
  border: 1px solid #e6e9ef;
  border-radius: var(--radius);
  padding: 16px;
  max-height: 380px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .85rem;
  display: none;
}
input[type=file] {
  display: none;
}
.spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
