/*
Theme Name: Dr Lydia PhD
Theme URI: https://drlydiaphd.com
Author: Lydia Jilantikiri
Author URI: https://drlydiaphd.com
Description: Custom personal portfolio theme for Dr Lydia Jilantikiri — Biomedical Engineer, Educator, and Founder.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drlydiaphd
*/

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #1B2A4A;
  --teal: #2A7F8E;
  --gold: #C89933;
  --light: #F4F7FA;
  --mid: #E0E7EF;
  --dark: #333333;
  --white: #FFFFFF;
  --eng: #2A7F8E;
  --research: #1B2A4A;
  --education: #C89933;
  --leadership: #6B4C8A;
  --entrepreneurship: #D4764E;
  --communication: #3A8F6B;
  --ppie: #C4573A;
  --advocacy: #8B4B8E;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ===== NAVIGATION ===== */
nav.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(27, 42, 74, 0.95);
  backdrop-filter: blur(10px);
  padding: 0 2rem;
  transition: box-shadow 0.3s;
}
nav.site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  color: var(--mid);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links .current-menu-item a { color: var(--gold); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--mid);
  margin: 5px 0;
  transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, #243B5E 50%, var(--teal) 100%);
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,153,51,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(42,127,142,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(200,153,51,0.4);
  border-radius: 2px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero h1 span { color: var(--gold); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--mid);
  max-width: 650px;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.8;
}
.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.hero-role {
  padding: 0.5rem 1.2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--mid);
  margin-top: 0.25rem;
}

/* ===== SECTIONS ===== */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: #666;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ===== ABOUT ===== */
.about { background: var(--light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  margin-bottom: 1.25rem;
  color: #555;
  font-size: 1rem;
}
.about-text p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  float: left;
  margin-right: 0.5rem;
  line-height: 1;
}
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.about-highlight {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid var(--teal);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.about-highlight h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.about-highlight p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

/* ===== SKILLS ===== */
.skills-section { background: var(--white); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.skill-card {
  background: var(--light);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  border-top: 4px solid var(--teal);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.skill-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.skill-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.skill-card ul { list-style: none; padding: 0; }
.skill-card li {
  font-size: 0.82rem;
  color: #666;
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}
.skill-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.skill-card[data-pillar="engineering"] { border-top-color: var(--eng); }
.skill-card[data-pillar="engineering"] .skill-icon { background: rgba(42,127,142,0.12); color: var(--eng); }
.skill-card[data-pillar="engineering"] li::before { background: var(--eng); }
.skill-card[data-pillar="research"] { border-top-color: var(--research); }
.skill-card[data-pillar="research"] .skill-icon { background: rgba(27,42,74,0.1); color: var(--research); }
.skill-card[data-pillar="research"] li::before { background: var(--research); }
.skill-card[data-pillar="education"] { border-top-color: var(--education); }
.skill-card[data-pillar="education"] .skill-icon { background: rgba(200,153,51,0.12); color: var(--education); }
.skill-card[data-pillar="education"] li::before { background: var(--education); }
.skill-card[data-pillar="leadership"] { border-top-color: var(--leadership); }
.skill-card[data-pillar="leadership"] .skill-icon { background: rgba(107,76,138,0.12); color: var(--leadership); }
.skill-card[data-pillar="leadership"] li::before { background: var(--leadership); }
.skill-card[data-pillar="entrepreneurship"] { border-top-color: var(--entrepreneurship); }
.skill-card[data-pillar="entrepreneurship"] .skill-icon { background: rgba(212,118,78,0.12); color: var(--entrepreneurship); }
.skill-card[data-pillar="entrepreneurship"] li::before { background: var(--entrepreneurship); }
.skill-card[data-pillar="communication"] { border-top-color: var(--communication); }
.skill-card[data-pillar="communication"] .skill-icon { background: rgba(58,143,107,0.12); color: var(--communication); }
.skill-card[data-pillar="communication"] li::before { background: var(--communication); }
.skill-card[data-pillar="ppie"] { border-top-color: var(--ppie); }
.skill-card[data-pillar="ppie"] .skill-icon { background: rgba(196,87,58,0.12); color: var(--ppie); }
.skill-card[data-pillar="ppie"] li::before { background: var(--ppie); }
.skill-card[data-pillar="advocacy"] { border-top-color: var(--advocacy); }
.skill-card[data-pillar="advocacy"] .skill-icon { background: rgba(139,75,142,0.12); color: var(--advocacy); }
.skill-card[data-pillar="advocacy"] li::before { background: var(--advocacy); }

/* ===== TIMELINE ===== */
.timeline-section { background: var(--light); }
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--mid);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 2rem);
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 2rem);
}
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
  z-index: 1;
}
.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 450px;
  width: 100%;
}
.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.timeline-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.timeline-content .timeline-org {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.timeline-content p {
  font-size: 0.85rem;
  color: #666;
}

/* ===== EXPERIENCE ===== */
.experience { background: var(--white); }
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.exp-card {
  background: var(--light);
  border-radius: 10px;
  padding: 2rem;
  border-left: 4px solid var(--navy);
  transition: transform 0.3s;
}
.exp-card:hover { transform: translateY(-2px); }
.exp-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.exp-card .exp-org {
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.exp-card .exp-date {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.75rem;
}
.exp-card p {
  font-size: 0.9rem;
  color: #555;
}
.exp-card .exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.exp-tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  background: rgba(42,127,142,0.1);
  color: var(--teal);
  border-radius: 3px;
  font-weight: 500;
}

/* ===== NUMBERS ===== */
.numbers {
  background: var(--navy);
  padding: 4rem 2rem;
}
.numbers-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  text-align: center;
}
.number-item h3 {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.number-item p {
  font-size: 0.85rem;
  color: var(--mid);
}

/* ===== VOLUNTEERING ===== */
.volunteering { background: var(--light); }
.vol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.vol-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  border-bottom: 3px solid var(--advocacy);
  transition: transform 0.3s;
}
.vol-card:hover { transform: translateY(-3px); }
.vol-card .vol-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--advocacy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.vol-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.vol-card .vol-org {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.vol-card p {
  font-size: 0.82rem;
  color: #666;
}

/* ===== QUALIFICATIONS ===== */
.qualifications { background: var(--white); }
.qual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.qual-group {
  background: var(--light);
  border-radius: 10px;
  padding: 2rem;
}
.qual-group h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
}
.qual-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.qual-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 0.5rem;
  flex-shrink: 0;
}
.qual-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}
.qual-item p {
  font-size: 0.82rem;
  color: #666;
}

/* ===== SERVICES ===== */
/* ===== PROFESSIONAL DEVELOPMENT (ACCORDION) ===== */
.profdev { background: var(--white); }
.accordion { max-width: 1000px; }
.accordion-item {
  border: 1px solid var(--mid);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--light);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
}
.accordion-header:hover { background: var(--mid); }
.accordion-header h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}
.accordion-header .acc-count {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
  background: rgba(42,127,142,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}
.accordion-header .acc-arrow {
  font-size: 1.2rem;
  color: var(--teal);
  transition: transform 0.3s;
  margin-left: 1rem;
}
.accordion-item.open .acc-arrow { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-item.open .accordion-body { max-height: 2000px; }
.accordion-list {
  padding: 1rem 1.5rem 1.5rem;
  list-style: none;
}
.accordion-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.accordion-list li:last-child { border-bottom: none; }
.acc-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  min-width: 90px;
  flex-shrink: 0;
  padding-top: 0.15rem;
}
.acc-detail h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.15rem;
}
.acc-detail p {
  font-size: 0.82rem;
  color: #666;
}

/* ===== CONTACT FORM (WPForms on dark bg) ===== */
.contact-form-wrap {
  max-width: 550px;
  margin: 0 auto;
}
.contact-section .wpforms-container {
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1.5rem 2rem 2rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.contact-section .wpforms-field-label {
  color: var(--mid) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
}
.contact-section .wpforms-field input,
.contact-section .wpforms-field textarea {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  font-family: 'Inter', sans-serif !important;
  padding: 0.7rem 1rem !important;
}
.contact-section .wpforms-field input:focus,
.contact-section .wpforms-field textarea:focus {
  border-color: var(--gold) !important;
  outline: none !important;
}
.contact-section .wpforms-field input::placeholder,
.contact-section .wpforms-field textarea::placeholder {
  color: rgba(224,231,239,0.4) !important;
}
.contact-section .wpforms-submit-container button {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.75rem 2rem !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: background 0.3s !important;
}
.contact-section .wpforms-submit-container button:hover {
  background: #B8882A !important;
}

.services-section { background: var(--light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(42,127,142,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
}
.service-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.88rem;
  color: #666;
}

/* ===== CONTACT ===== */
.contact-section {
  background: var(--navy);
  text-align: center;
  padding: 5rem 2rem;
}
.contact-section h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact-section p {
  color: var(--mid);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s, border-color 0.3s;
}
.contact-link:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #141E33;
  padding: 2rem;
  text-align: center;
}
.site-footer p {
  font-size: 0.8rem;
  color: #667;
}

/* ===== BLOG STYLES ===== */
.blog-header {
  background: linear-gradient(135deg, var(--navy) 0%, #243B5E 100%);
  padding: 8rem 2rem 4rem;
  text-align: center;
}
.blog-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.blog-header p {
  color: var(--mid);
  font-size: 1.1rem;
}

.blog-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.post-card {
  background: var(--light);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.post-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.post-card-body {
  padding: 1.75rem;
}
.post-card-meta {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.post-card h2 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.post-card h2 a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.3s;
}
.post-card h2 a:hover { color: var(--teal); }
.post-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}
.read-more {
  display: inline-block;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.read-more:hover { color: var(--navy); }

/* Single Post */
.single-post-header {
  background: linear-gradient(135deg, var(--navy) 0%, #243B5E 100%);
  padding: 8rem 2rem 3rem;
  text-align: center;
}
.single-post-header h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.3;
}
.single-post-meta {
  color: var(--mid);
  font-size: 0.9rem;
}
.single-post-content {
  max-width: 750px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.single-post-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: #444;
  line-height: 1.85;
}
.single-post-content h2 {
  font-size: 1.6rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
}
.single-post-content h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.single-post-content img {
  border-radius: 8px;
  margin: 2rem 0;
}
.single-post-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
}

/* Gallery Page */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item .gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(27,42,74,0.85));
  color: var(--white);
  padding: 2rem 1rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}
.pagination a {
  background: var(--light);
  color: var(--dark);
}
.pagination a:hover {
  background: var(--teal);
  color: var(--white);
}
.pagination .current {
  background: var(--navy);
  color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 2rem 2rem;
    gap: 1rem;
  }
  .nav-toggle { display: block; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-highlights { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 1rem; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 3rem;
    padding-right: 0;
    justify-content: flex-start;
  }
  .timeline-dot { left: 1rem; }
  .exp-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .vol-grid { grid-template-columns: 1fr; }
  .qual-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}
