/* ===== Self-hosted fonts: Merriweather (variable, latin + subsets) ===== */
/* latin */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/merriweather-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/merriweather-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* vietnamese */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/merriweather-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* cyrillic */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/merriweather-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/merriweather-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* latin */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/merriweather-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/merriweather-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* vietnamese */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/merriweather-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* cyrillic */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/merriweather-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/merriweather-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* ===== Custom Properties ===== */
:root {
  --primary-color: #00539f;
  --primary-dark: #003d7a;
  --text-color: #222;
  --text-muted: #555;
  --text-light: #666;
  --bg-color: #f9f9f9;
  --bg-card: #ffffff;
  --border-color: #e0e0e0;
  --border-light: #fafafa;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-focus: 0 0 0 3px rgba(0, 83, 159, 0.4);
  --transition: all 0.3s ease;
  --max-width: 1000px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Merriweather', Georgia, Cambria, 'Times New Roman', serif;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  font-size: 1.1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Links ===== */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: var(--primary-dark);
}

a:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== Header ===== */
header {
  background-color: var(--border-light);
  border-bottom: 1px solid var(--border-color);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem;
  border-radius: 0 0 8px 8px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.profile-left img {
  width: 140px;
  height: 140px;
  max-width: 100%;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  display: block;
}

.profile-right {
  text-align: right;
  flex: 1;
}

.profile-right h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.profile-right h2 {
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ===== Navigation ===== */
nav {
  margin-top: 2.5rem;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
}

nav a:hover {
  background-color: var(--border-color);
  text-decoration: none;
}

/* ===== Main Content ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

section {
  margin-bottom: 4rem;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 0.2rem;
}

#about p {
  margin-bottom: 1.5rem;
}

/* ===== Timeline ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  padding: 1.8rem;
  border-left: 5px solid var(--primary-color);
  background-color: var(--bg-card);
  box-shadow: var(--shadow);
  border-radius: 0 12px 12px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.timeline-item h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.timeline-item .date {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 1rem;
  display: block;
  font-style: italic;
}

/* ===== Lists ===== */
ul.indent {
  padding-left: 1.8rem;
  list-style-position: outside;
}

ul.indent li {
  margin-bottom: 0.6rem;
}

/* ===== Collapsible Sections ===== */
details {
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 2rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  box-shadow: var(--shadow);
}

details[open] {
  box-shadow: var(--shadow-md);
}

details > summary {
  padding: 1.4rem 1.8rem;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::marker {
  content: '';
}

details > summary::after {
  content: '→';
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

details[open] > summary::after {
  transform: rotate(90deg);
}

details > summary:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: -3px;
  border-radius: 8px;
}

details > *:not(summary) {
  padding: 0 1.8rem 1.8rem 1.8rem;
}

/* ===== Business Details ===== */
.business-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.business-item {
  display: flex;
  flex-direction: column;
}

.business-item .label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.business-item .value {
  color: var(--text-color);
  font-weight: 400;
}

.training-heading {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.services-intro {
  margin-bottom: 1.2rem;
}

/* ===== Testimonials ===== */
.testimonial {
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  border-left: 5px solid var(--primary-color);
  background-color: var(--bg-card);
  box-shadow: var(--shadow);
  border-radius: 0 12px 12px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.testimonial blockquote p:last-child {
  margin-bottom: 1.2rem;
}

.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-color);
}

/* ===== Contact ===== */
#contact p {
  margin-bottom: 0.5rem;
}

/* ===== Error page (404) ===== */
.error-page {
  text-align: center;
  padding: 4rem 2rem;
}

.error-page .error-code {
  font-size: 5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.error-page p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

/* ===== Footer ===== */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  background-color: var(--border-light);
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.95rem;
}

.footer-left {
  text-align: left;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: right;
}

.footer-right svg {
  width: 40px;
  height: auto;
  display: block;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
  header {
    padding: 2rem 1.5rem;
  }

  .header-top {
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-left img {
    width: 120px;
    height: 120px;
  }

  .profile-right {
    text-align: center;
    margin-top: 0;
  }

  .profile-right h1 {
    font-size: 2rem;
  }

  .profile-right h2 {
    font-size: 1.1rem;
  }

  nav ul {
    gap: 0.5rem;
  }

  nav a {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  main {
    padding: 2rem 1.2rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .timeline-item {
    padding: 1.2rem;
  }

  details > summary {
    font-size: 1.3rem;
    padding: 1rem 1.2rem;
  }

  details > *:not(summary) {
    padding: 0 1.2rem 1.2rem 1.2rem;
  }

  .business-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonial {
    padding: 1.2rem;
  }
}

@media (max-width: 600px) {
  footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-left,
  .footer-right {
    text-align: center;
  }

  .error-page {
    padding: 3rem 1.2rem;
  }

  .error-page .error-code {
    font-size: 3.5rem;
  }
}

@media (max-width: 400px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    width: 80%;
    text-align: center;
  }
}
