/* ============================================================
   RISE EDUCATION MANAGEMENT — Professional Stylesheet
   Dr. Alan Go | Fractional Education Leader | Singapore
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --red:          #8B0000;
  --red-mid:      #A52A2A;
  --red-light:    #C0392B;
  --green:        #1A3A2A;
  --green-mid:    #1E5631;
  --green-light:  #2E7D32;
  --brown:        #4E2C0F;
  --brown-mid:    #6D3B1A;
  --brown-light:  #8B5E3C;
  --gold:         #C9A84C;
  --dark:         #0D0D0D;
  --text:         #1A1A1A;
  --text-light:   #555555;
  --border:       #E0E0E0;
  --bg-light:     #F8F6F3;
  --white:        #FFFFFF;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow:       0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 48px rgba(0,0,0,0.14);
  --radius:       4px;
  --radius-lg:    8px;
  --transition:   all 0.3s ease;
  --max-width:    1200px;
  --nav-height:   130px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); }
h4 { font-size: 1.1rem; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--dark); }
p { margin-bottom: 1rem; color: var(--text-light); line-height: 1.8; }
p:last-child { margin-bottom: 0; }

/* ---- Layout Utilities ---- */
.container   { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }
.section     { padding: 100px 0; }
.section-sm  { padding: 60px 0; }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 10px;
}
.section-title  { margin-bottom: 16px; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 48px;
}
.section-subtitle.center { margin-left: auto; margin-right: auto; }

.divider {
  width: 56px; height: 3px;
  background: var(--red);
  margin-bottom: 40px;
  border-radius: 2px;
}
.divider.center { margin-left: auto; margin-right: auto; }
.divider.gold   { background: var(--gold); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.btn-primary {
  background: var(--red); color: var(--white); border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-mid); border-color: var(--red-mid);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,0,0,0.28);
}
.btn-outline {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.65);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-outline-dark {
  background: transparent; color: var(--red); border-color: var(--red);
}
.btn-outline-dark:hover {
  background: var(--red); color: var(--white); transform: translateY(-2px);
}

/* ---- Tags ---- */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-red   { background: rgba(139,0,0,0.08);   color: var(--red); }
.tag-green { background: rgba(30,86,49,0.08);   color: var(--green-mid); }
.tag-brown { background: rgba(109,59,26,0.08);  color: var(--brown-mid); }
.tag-gold  { background: rgba(201,168,76,0.12); color: #8A6800; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height); z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.navbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 113px; width: auto; display: block; object-fit: contain; }
/* legacy text-logo fallback (hidden when image used) */
.nav-logo .logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem; font-weight: 700;
  color: var(--dark); line-height: 1.2;
}
.nav-logo .logo-name span { color: var(--red); }
.nav-logo .logo-tagline {
  font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-light); font-weight: 500;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 13px; font-size: 0.86rem;
  font-weight: 500; color: var(--text-light);
  border-radius: var(--radius); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a.active::after {
  content: ''; position: absolute;
  bottom: 3px; left: 13px; right: 13px;
  height: 2px; background: var(--red); border-radius: 1px;
}
.nav-cta {
  background: var(--red) !important; color: var(--white) !important;
  margin-left: 8px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--red-mid) !important; color: var(--white) !important; transform: translateY(-1px); }
.nav-cta.active::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 20px 24px 28px; gap: 4px;
    box-shadow: var(--shadow); align-items: flex-start;
    transform: translateY(-8px); opacity: 0;
    pointer-events: none; transition: var(--transition);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { width: 100%; padding: 11px 14px; }
  .nav-cta { margin-left: 0 !important; margin-top: 8px; text-align: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0D2B1A 0%, var(--green) 40%, #1A2A10 80%, var(--brown) 100%);
  z-index: 0;
}
.hero-pattern {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    radial-gradient(circle at 15% 55%, rgba(139,0,0,0.18) 0%, transparent 45%),
    radial-gradient(circle at 75% 15%, rgba(201,168,76,0.12) 0%, transparent 40%),
    radial-gradient(circle at 55% 85%, rgba(139,0,0,0.1) 0%, transparent 40%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-inner { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.28);
  padding: 7px 18px; border-radius: 100px; margin-bottom: 28px;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }
.hero-badge span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

.hero-content h1 { color: var(--white); margin-bottom: 22px; }
.hero-content h1 em { font-style: normal; color: var(--gold); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.78); margin-bottom: 40px; max-width: 560px; line-height: 1.85; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 36px; margin-top: 56px;
  padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.hero-stat .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
  color: var(--gold); line-height: 1; margin-bottom: 4px;
}
.hero-stat .stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.55); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

/* Hero photo card */
.hero-photo-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
}
.hero-photo-main {
  height: 380px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero-photo-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-placeholder { text-align: center; color: rgba(255,255,255,0.25); }
.hero-photo-placeholder i { font-size: 5rem; display: block; margin-bottom: 12px; }
.hero-photo-placeholder p { font-size: 0.8rem; color: rgba(255,255,255,0.3); margin: 0; }
.hero-card-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-card-footer .name { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--white); margin-bottom: 2px; }
.hero-card-footer .title { font-size: 0.78rem; color: var(--gold); font-weight: 600; letter-spacing: 0.05em; }
.hero-cred-badges { display: flex; flex-direction: column; gap: 8px; padding: 0 24px 20px; }
.cred-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.08);
}
.cred-badge i { color: var(--gold); font-size: 0.85rem; }
.cred-badge span { font-size: 0.76rem; color: rgba(255,255,255,0.75); font-weight: 500; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo-card { max-width: 360px; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: var(--red); padding: 44px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; text-align: center;
}
.stat-item { padding: 16px 24px; border-right: 1px solid rgba(255,255,255,0.18); }
.stat-item:last-child { border-right: none; }
.stat-item .number {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem; font-weight: 700;
  color: var(--white); line-height: 1; margin-bottom: 8px;
}
.stat-item .label { font-size: 0.78rem; color: rgba(255,255,255,0.72); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.18); }
}

/* ============================================================
   ABOUT SNAPSHOT (Home)
   ============================================================ */
.about-snapshot { background: var(--white); }
.about-snap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.about-img-frame { position: relative; }
.about-img-border {
  position: absolute; top: -16px; left: -16px;
  width: 65%; height: 65%;
  border: 3px solid var(--green-mid);
  border-radius: var(--radius-lg); z-index: 0;
}
.about-img-main {
  width: 100%; aspect-ratio: 4/5;
  background: var(--bg-light);
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { text-align: center; color: var(--text-light); font-size: 0.85rem; }
.img-placeholder i { font-size: 4rem; display: block; margin-bottom: 12px; color: var(--border); }
.about-award-box {
  position: absolute; bottom: -20px; right: -20px; z-index: 2;
  background: var(--red); color: var(--white);
  padding: 20px 22px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-width: 220px;
}
.about-award-box .award-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.75; margin-bottom: 6px; }
.about-award-box .award-text { font-size: 0.85rem; font-weight: 600; line-height: 1.4; }

.about-content .credentials { display: flex; flex-direction: column; gap: 10px; margin: 28px 0 32px; }
.cred-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px; background: var(--bg-light);
  border-radius: var(--radius); border-left: 3px solid var(--brown-mid);
}
.cred-row i { color: var(--brown-mid); margin-top: 2px; font-size: 0.85rem; }
.cred-row strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.cred-row span { font-size: 0.78rem; color: var(--text-light); }
.about-btns { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .about-snap-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-img-frame { max-width: 380px; margin: 0 auto; }
}

/* ============================================================
   EXPERTISE GRID (Home)
   ============================================================ */
.expertise { background: var(--bg-light); }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.exp-card {
  background: var(--white); padding: 32px 26px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  border-top: 4px solid transparent; transition: var(--transition);
}
.exp-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.exp-card.c-red   { border-top-color: var(--red); }
.exp-card.c-green { border-top-color: var(--green-mid); }
.exp-card.c-brown { border-top-color: var(--brown-mid); }
.exp-card .card-icon {
  width: 50px; height: 50px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.25rem;
}
.exp-card.c-red   .card-icon { background: rgba(139,0,0,0.08);   color: var(--red); }
.exp-card.c-green .card-icon { background: rgba(30,86,49,0.08);   color: var(--green-mid); }
.exp-card.c-brown .card-icon { background: rgba(109,59,26,0.08);  color: var(--brown-mid); }
.exp-card h4 { margin-bottom: 10px; }
.exp-card p  { font-size: 0.875rem; margin-bottom: 0; }

@media (max-width: 880px) { .expertise-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .expertise-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SERVICES OVERVIEW (Home – dark green band)
   ============================================================ */
.services-band {
  background: var(--green); position: relative; overflow: hidden;
}
.services-band::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--green) 0%, #0D2418 100%);
}
.services-band .container { position: relative; z-index: 1; }
.services-band .section-label { color: var(--gold); }
.services-band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.srv-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 32px 26px;
  transition: var(--transition);
}
.srv-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); border-color: rgba(201,168,76,0.3); }
.srv-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gold); opacity: 0.7; margin-bottom: 14px; }
.srv-card h4 { color: var(--white); font-family: 'Inter', sans-serif; margin-bottom: 10px; font-size: 1rem; }
.srv-card p  { font-size: 0.85rem; color: rgba(255,255,255,0.62); margin-bottom: 18px; }
.srv-link { font-size: 0.75rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 6px; }
.srv-link:hover { gap: 10px; }

@media (max-width: 880px) { .services-band-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-band-grid { grid-template-columns: 1fr; } }

/* ============================================================
   RECOGNITION (Home)
   ============================================================ */
.recognition { background: var(--white); }
.recog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; }
.recog-item {
  text-align: center; padding: 32px 22px;
  border-radius: var(--radius-lg); background: var(--bg-light);
  border-bottom: 3px solid transparent; transition: var(--transition);
}
.recog-item:hover { border-bottom-color: var(--red); transform: translateY(-4px); box-shadow: var(--shadow); }
.recog-item i { font-size: 1.8rem; color: var(--gold); margin-bottom: 14px; }
.recog-item h4 { margin-bottom: 8px; font-size: 0.95rem; }
.recog-item p  { font-size: 0.84rem; margin-bottom: 0; }

.conf-list-title { margin-bottom: 24px; font-size: 1.3rem; }
.conf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.conf-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; background: var(--bg-light); border-radius: var(--radius);
}
.conf-item i { color: var(--red); font-size: 0.85rem; margin-top: 3px; flex-shrink: 0; }
.conf-item strong { display: block; font-size: 0.84rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; line-height: 1.4; }
.conf-item span { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; }

@media (max-width: 880px) { .recog-grid { grid-template-columns: repeat(2, 1fr); } .conf-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .recog-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BLOG PREVIEW (Home)
   ============================================================ */
.blog-preview { background: var(--bg-light); }
.blog-preview-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 48px;
  flex-wrap: wrap; gap: 20px;
}
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.blog-card-img {
  height: 196px; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; position: relative; overflow: hidden;
}
.blog-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-card-img i { color: rgba(255,255,255,0.25); position: relative; z-index: 1; }
.bg-green { background: linear-gradient(135deg, var(--green), #0D2418); }
.bg-red   { background: linear-gradient(135deg, var(--red), #500000); }
.bg-brown { background: linear-gradient(135deg, var(--brown-mid), #3A1A08); }
.blog-card-body { padding: 22px; }
.blog-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.blog-date { font-size: 0.76rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.blog-card-body h4 { font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 8px; line-height: 1.45; color: var(--dark); font-weight: 700; }
.blog-card-body p { font-size: 0.84rem; margin-bottom: 14px; }
.read-more { font-size: 0.76rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 6px; }
.read-more:hover { gap: 10px; }

@media (max-width: 880px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--brown); position: relative;
  overflow: hidden; text-align: center;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--brown) 0%, var(--brown-mid) 50%, var(--red) 100%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p  { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 560px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #080808; padding: 80px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-logo-img { height: 52px; width: auto; display: block; object-fit: contain; margin-bottom: 18px; }
.footer-brand .logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 2px;
}
.footer-brand .logo-name span { color: var(--red-light); }
.footer-brand .logo-tagline { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 18px; }
.footer-brand p { font-size: 0.84rem; color: rgba(255,255,255,0.45); line-height: 1.85; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.06); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); font-size: 0.84rem;
}
.footer-social a:hover { background: var(--red); color: var(--white); }
.footer-col h5 {
  font-family: 'Inter', sans-serif; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 0.84rem; color: rgba(255,255,255,0.55); }
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-contact-row { display: flex; gap: 11px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact-row i { color: var(--red-light); font-size: 0.82rem; margin-top: 3px; }
.footer-contact-row span { font-size: 0.84rem; color: rgba(255,255,255,0.55); line-height: 1.5; }
.footer-contact-row a { color: rgba(255,255,255,0.55); }
.footer-contact-row a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px; display: flex;
  justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.28); margin: 0; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.78rem; color: rgba(255,255,255,0.28); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.55); }

@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  background: var(--green); padding: 190px 0 72px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--green) 0%, #0D2418 60%, rgba(139,0,0,0.35) 100%);
}
.page-header-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
}
.page-header .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: rgba(255,255,255,0.25); }
.page-header h1 { color: var(--white); margin-bottom: 14px; font-size: clamp(1.8rem,4vw,3rem); }
.page-header .page-sub { font-size: 1.05rem; color: rgba(255,255,255,0.68); max-width: 580px; margin: 0; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }

.about-sidebar {
  background: var(--bg-light); border-radius: var(--radius-lg);
  overflow: hidden; position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.sidebar-photo {
  height: 480px; background: linear-gradient(160deg, var(--green), #0D2418);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.sidebar-photo img { width: 100%; height: 100%; object-fit: contain; object-position: top center; position: absolute; inset: 0; }
.sidebar-photo i { font-size: 5rem; color: rgba(255,255,255,0.2); position: relative; z-index: 1; }
.sidebar-info { padding: 22px; }
.sidebar-info h3 { font-family: 'Inter', sans-serif; font-size: 1.1rem; margin-bottom: 2px; }
.sidebar-title { font-size: 0.8rem; color: var(--red); font-weight: 700; margin-bottom: 18px; letter-spacing: 0.03em; }
.sidebar-detail { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; }
.sidebar-detail i { color: var(--text-light); font-size: 0.78rem; margin-top: 3px; }
.sidebar-detail span { font-size: 0.8rem; color: var(--text-light); }
.sidebar-social { display: flex; gap: 8px; margin-top: 18px; }
.sidebar-social a {
  width: 30px; height: 30px; background: var(--white);
  border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center;
  color: var(--text-light); font-size: 0.78rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-social a:hover { background: var(--red); color: var(--white); }

.about-body { }
.about-body > p { font-size: 1rem; line-height: 1.9; }
.about-body > p + p { margin-top: 0; }

.section-divider { border: none; border-top: 1px solid var(--border); margin: 52px 0; }

/* Timeline */
.timeline-title { margin-bottom: 36px; }
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ''; position: absolute; left: 9px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.tl-item {
  position: relative; margin-bottom: 44px;
  padding-bottom: 44px; border-bottom: 1px solid var(--border);
}
.tl-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute;
  left: -31px; top: 6px;
  width: 12px; height: 12px;
  background: var(--red); border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px var(--red);
}
.tl-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tl-role { font-weight: 700; font-size: 1rem; color: var(--dark); }
.tl-company { font-size: 0.875rem; color: var(--red); font-weight: 600; margin-bottom: 2px; }
.tl-period {
  font-size: 0.74rem; background: var(--bg-light);
  padding: 4px 12px; border-radius: 100px;
  color: var(--text-light); font-weight: 600; white-space: nowrap;
}
.tl-body ul { margin-top: 10px; padding-left: 18px; }
.tl-body ul li { font-size: 0.87rem; color: var(--text-light); margin-bottom: 7px; list-style: disc; line-height: 1.65; }
.tl-highlight {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(139,0,0,0.07); border-radius: var(--radius);
  padding: 5px 11px; font-size: 0.78rem; color: var(--red);
  font-weight: 600; margin-top: 8px; margin-right: 6px;
}
.tl-highlight i { font-size: 0.72rem; }

/* Education cards */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.edu-card {
  background: var(--bg-light); border-radius: var(--radius);
  padding: 20px; border-left: 3px solid var(--green-mid);
}
.edu-card .degree { font-weight: 700; font-size: 0.9rem; color: var(--dark); margin-bottom: 4px; }
.edu-card .institution { font-size: 0.82rem; color: var(--text-light); margin-bottom: 2px; }
.edu-card .year { font-size: 0.76rem; color: var(--green-mid); font-weight: 700; }

/* Skills tags */
.skills-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  padding: 6px 14px; border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500; color: var(--text-light);
  background: var(--bg-light);
}

@media (max-width: 880px) {
  .about-page-grid { grid-template-columns: 1fr; }
  .about-sidebar { position: static; max-width: 320px; }
  .edu-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-intro-text { max-width: 700px; margin-bottom: 64px; font-size: 1.05rem; line-height: 1.9; }
.services-main-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 80px; }
.service-full-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 38px 34px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-full-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
}
.service-full-card.c-red::before   { background: var(--red); }
.service-full-card.c-green::before { background: var(--green-mid); }
.service-full-card.c-brown::before { background: var(--brown-mid); }
.service-full-card.c-gold::before  { background: var(--gold); }
.service-full-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.svc-icon {
  width: 54px; height: 54px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 22px;
}
.service-full-card.c-red   .svc-icon { background: rgba(139,0,0,0.08);   color: var(--red); }
.service-full-card.c-green .svc-icon { background: rgba(30,86,49,0.08);   color: var(--green-mid); }
.service-full-card.c-brown .svc-icon { background: rgba(109,59,26,0.08);  color: var(--brown-mid); }
.service-full-card.c-gold  .svc-icon { background: rgba(201,168,76,0.1);  color: #8A6800; }
.service-full-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-full-card > p { font-size: 0.89rem; margin-bottom: 18px; }
.svc-features { display: flex; flex-direction: column; gap: 7px; margin-bottom: 22px; }
.svc-features li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.85rem; color: var(--text-light); }
.svc-features li i { color: var(--green-mid); font-size: 0.72rem; margin-top: 5px; flex-shrink: 0; }
.svc-audience { display: flex; gap: 7px; flex-wrap: wrap; }

.why-box {
  background: var(--bg-light); border-radius: var(--radius-lg);
  padding: 56px 52px;
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 40px; }
.why-item { text-align: center; }
.why-num {
  font-family: 'Playfair Display', serif; font-size: 3rem;
  font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 8px;
}
.why-item h4 { margin-bottom: 8px; font-size: 0.95rem; }
.why-item p { font-size: 0.84rem; }

@media (max-width: 880px) { .services-main-grid { grid-template-columns: 1fr; } .why-grid { grid-template-columns: repeat(2, 1fr); } .why-box { padding: 36px 24px; } }

/* ============================================================
   BLOG PAGE
   ============================================================ */
.blog-hero-row { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; margin-bottom: 24px; }
.blog-featured {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.blog-feat-img {
  height: 300px; background: linear-gradient(135deg, var(--green), #0D2418);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,0.2); overflow: hidden; position: relative;
}
.blog-feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-feat-body { padding: 32px; }
.blog-feat-body h2 { font-size: 1.5rem; margin-bottom: 10px; }
.blog-feat-body p { font-size: 0.92rem; }
.blog-side-stack { display: flex; flex-direction: column; gap: 24px; }
.blog-side-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.bsc-img {
  height: 130px; display: flex; align-items: center;
  justify-content: center; font-size: 2.5rem; color: rgba(255,255,255,0.2);
}
.bsc-body { padding: 18px; }
.bsc-body h4 { font-size: 0.93rem; font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.bsc-body p { font-size: 0.82rem; margin-bottom: 10px; }

.blog-all-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }

@media (max-width: 880px) { .blog-hero-row { grid-template-columns: 1fr; } .blog-all-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-all-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BLOG POST PAGE
   ============================================================ */
.post-wrap { max-width: 780px; margin: 0 auto; }
.post-meta-row {
  display: flex; gap: 20px; align-items: center;
  flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.post-author-chip { display: flex; align-items: center; gap: 10px; }
.author-av {
  width: 38px; height: 38px; background: var(--red);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: var(--white);
  font-weight: 800; font-size: 0.8rem;
}
.author-name  { font-size: 0.85rem; font-weight: 700; color: var(--dark); }
.author-title { font-size: 0.74rem; color: var(--text-light); }
.post-meta-chip { display: flex; gap: 5px; align-items: center; font-size: 0.78rem; color: var(--text-light); }

.post-hero-img {
  width: 100%; height: 400px;
  border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--green), #0D2418);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: rgba(255,255,255,0.18);
  margin-bottom: 44px; position: relative;
}
.post-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.post-body h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.post-body h3 { font-size: 1.2rem; font-family: 'Inter', sans-serif; font-weight: 700; color: var(--dark); margin: 32px 0 12px; }
.post-body p  { font-size: 0.97rem; line-height: 1.9; margin-bottom: 20px; }
.post-body ul, .post-body ol { padding-left: 22px; margin-bottom: 20px; }
.post-body li { font-size: 0.95rem; color: var(--text-light); margin-bottom: 8px; line-height: 1.75; list-style: disc; }
.post-body blockquote {
  border-left: 4px solid var(--red); padding: 18px 22px;
  background: var(--bg-light); border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0; font-size: 1.02rem; color: var(--dark); font-style: italic; line-height: 1.75;
}
.post-footer { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--border); }
.post-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 28px; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  padding: 7px 14px; border-radius: var(--radius);
  border: 2px solid var(--border); background: var(--white);
  color: var(--text-light); font-size: 0.78rem; font-weight: 600;
  display: flex; align-items: center; gap: 7px; cursor: pointer; transition: var(--transition);
}
.share-btn:hover { border-color: var(--red); color: var(--red); }

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 7px 18px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  border: 2px solid var(--border); background: var(--white);
  color: var(--text-light); transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover { border-color: var(--red); background: var(--red); color: var(--white); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px; gap: 14px;
}
.gal-item {
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; position: relative;
  background: var(--bg-light);
}
.gal-item.wide { grid-column: span 2; }
.gal-item.tall { grid-row: span 2; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gal-item:hover img { transform: scale(1.05); }
.gal-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
}
.gal-placeholder i { font-size: 1.8rem; color: var(--border); }
.gal-placeholder span { font-size: 0.75rem; color: var(--text-light); text-align: center; padding: 0 12px; line-height: 1.4; }
.gal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.gal-item:hover .gal-overlay { opacity: 1; }
.gal-overlay i { color: var(--white); font-size: 1.4rem; }

.gallery-note {
  margin-top: 36px; background: var(--bg-light);
  border-radius: var(--radius-lg); padding: 40px;
  text-align: center; border: 2px dashed var(--border);
}
.gallery-note i { font-size: 2.2rem; color: var(--text-light); margin-bottom: 14px; display: block; }
.gallery-note h4 { margin-bottom: 8px; }
.gallery-note p { max-width: 460px; margin: 0 auto; font-size: 0.875rem; }

@media (max-width: 880px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gal-item.wide { grid-column: span 1; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.contact-info-card {
  background: var(--green); border-radius: var(--radius-lg);
  padding: 44px 36px; position: relative; overflow: hidden;
}
.contact-info-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--green) 0%, #0D2418 100%);
}
.contact-info-card > * { position: relative; z-index: 1; }
.contact-info-card h2, .contact-info-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.contact-info-card > p, .contact-info-card p { color: rgba(255,255,255,0.85); font-size: 0.875rem; margin-bottom: 32px; line-height: 1.7; }
/* legacy classes */
.contact-detail {
  display: flex; gap: 14px; align-items: flex-start;
  padding-bottom: 22px; margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-detail:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-detail-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.1); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 0.95rem; flex-shrink: 0;
}
.contact-detail .detail-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.contact-detail .detail-value { font-size: 0.875rem; color: rgba(255,255,255,0.82); line-height: 1.5; }
.contact-detail .detail-value a { color: inherit; }
.contact-detail .detail-value a:hover { color: var(--gold); }
/* current classes used in contact page HTML */
.contact-detail-row { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-detail-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-detail-row .cd-icon { width: 38px; height: 38px; background: rgba(255,255,255,0.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 0.9rem; flex-shrink: 0; }
.contact-detail-row strong { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.contact-detail-row span { font-size: 0.875rem; color: rgba(255,255,255,0.9); }
.contact-detail-row span a { color: rgba(255,255,255,0.9); }
.contact-detail-row span a:hover { color: var(--gold); }
.contact-response-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: rgba(255,255,255,0.75); font-size: 0.82rem; }
.contact-response-note i { color: var(--gold); }

.contact-form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 44px 40px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-form-card h2 { margin-bottom: 8px; font-size: 1.5rem; }
.contact-form-card > p { margin-bottom: 28px; font-size: 0.875rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.74rem; font-weight: 700;
  color: var(--dark); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 7px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 15px;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 0.88rem;
  color: var(--dark); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(139,0,0,0.07);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { width: 100%; justify-content: center; padding: 15px; font-size: 0.95rem; }

.contact-bottom {
  background: var(--bg-light); border-radius: var(--radius-lg);
  padding: 36px; margin-top: 48px; text-align: center;
}
.contact-bottom h3 { font-size: 1.2rem; margin-bottom: 8px; }
.contact-bottom p { max-width: 500px; margin: 0 auto 20px; font-size: 0.875rem; }
.contact-bottom-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 880px) { .contact-page-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .contact-form-card { padding: 32px 22px; } }

/* ============================================================
   BACK TO TOP & MISC
   ============================================================ */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  background: var(--red); color: var(--white);
  border-radius: var(--radius); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: var(--transition); z-index: 900; font-size: 0.95rem;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--red-mid); transform: translateY(-4px); }

/* Fade-in animation */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
