/* =============================================
   KRISHNA KHANAL, PHD — STYLE.CSS
   Premium Dark Theme with Gold Accent
   ============================================= */

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

:root {
  --bg-primary: #0b0d13;
  --bg-secondary: #10131a;
  --bg-card: #141822;
  --bg-elevated: #1a1f2e;
  --border: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.1);
  --gold: #c9a94b;
  --gold-hover: #dfc05e;
  --gold-dim: rgba(201,169,75,0.15);
  --gold-glow: rgba(201,169,75,0.25);
  --text: #eaeaf0;
  --text-muted: #7c8198;
  --text-light: #b0b4c8;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --container: 1180px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 7rem 0;
  position: relative;
}

/* ===== TYPOGRAPHY ===== */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.section-eyebrow.light { color: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

.centered { text-align: center; }
.centered .section-desc { margin: 0 auto; }
.centered .section-eyebrow { justify-content: center; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-body);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a07830);
  color: #0b0d13;
  box-shadow: 0 4px 24px rgba(201,169,75,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,169,75,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.8rem;
}

.full-width { width: 100%; justify-content: center; }

/* ===== ANNOUNCEMENT BAR ===== */
.announce-bar {
  background: linear-gradient(90deg, var(--gold), #a07830);
  color: #0b0d13;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  position: relative;
  z-index: 1001;
}

.announce-bar a {
  color: #0b0d13;
  text-decoration: underline;
  font-weight: 700;
}

.announce-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #0b0d13;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.7;
}

.announce-close:hover { opacity: 1; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11,13,19,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.nav.scrolled {
  background: rgba(11,13,19,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.nav-logo-title {
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), #a07830) !important;
  color: #0b0d13 !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  padding: 0.5rem 1.2rem !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,169,75,0.35);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,169,75,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(30,40,80,0.3) 0%, transparent 60%),
    var(--bg-primary);
  z-index: 0;
}

.hero-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201,169,75,0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(201,169,75,0); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold);
  position: relative;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-ring {
  position: absolute;
  width: 390px;
  height: 530px;
  border-radius: 200px 200px 28px 28px;
  border: 1px solid rgba(201,169,75,0.15);
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  animation: ring-float 6s ease-in-out infinite;
}

@keyframes ring-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

.hero-image {
  width: 340px;
  height: 480px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 200px 200px 24px 24px;
  position: relative;
  z-index: 2;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  border: 4px solid rgba(200,180,100,0.15);
}

.hero-badge {
  position: absolute;
  bottom: 40px;
  left: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 3;
  backdrop-filter: blur(12px);
  animation: badge-float 5s ease-in-out infinite;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.badge-icon { font-size: 1.6rem; }

.hero-badge strong {
  display: block;
  font-size: 0.85rem;
  color: var(--white);
}

.hero-badge small {
  font-size: 0.7rem;
  color: var(--gold);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.hero-scroll-hint span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scroll-hint 2s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ===== TRUSTED BY (Logos) ===== */
.trusted {
  padding: 3.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.trusted-label {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 600;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  transition: all var(--transition);
  opacity: 0.6;
  filter: grayscale(100%) brightness(1.8);
}

.logo-item:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(1);
  transform: scale(1.08);
}

.logo-item img {
  max-height: 48px;
  max-width: 120px;
  object-fit: contain;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.about-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.about-image-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 2rem 1.2rem 1rem;
  font-size: 0.78rem;
  color: var(--text-light);
}

.about-credentials {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  transition: border-color var(--transition);
}

.cred-item:hover { border-color: var(--gold-dim); }

.cred-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

.cred-item strong {
  color: var(--white);
  font-size: 0.9rem;
}

.cred-item small {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 2rem 0;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.pillar:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
}

.pillar-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

/* ===== SERVICES ===== */
.services {
  background: var(--bg-secondary);
}

.services-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201,169,75,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(30,40,80,0.15) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

.services .container { position: relative; z-index: 1; }

.section-header {
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.service-card:hover::before { opacity: 1; }

.service-card.featured {
  border-color: rgba(201,169,75,0.25);
  background: linear-gradient(135deg, var(--bg-card), rgba(201,169,75,0.03));
}

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gold);
  color: #0b0d13;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.service-features li {
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
  padding-left: 1.2rem;
  position: relative;
}

.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
}

.services-cta {
  text-align: center;
  margin-top: 3rem;
}

.services-cta p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* ===== BOOKS ===== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.book-cover {
  height: 220px;
  position: relative;
  perspective: 800px;
}

.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  z-index: 2;
}

.book-front {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  z-index: 1;
}

.book-cover-1 {
  background: linear-gradient(135deg, #1a3a5c, #0f2440);
}
.book-cover-1 .book-spine { background: #0c1c33; }

.book-cover-2 {
  background: linear-gradient(135deg, #2d1a3e, #1a0e28);
}
.book-cover-2 .book-spine { background: #120a1c; }

.book-cover-3 {
  background: linear-gradient(135deg, #3a2a0f, #1f1605);
}
.book-cover-3 .book-spine { background: #141004; }

.book-decoration {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.book-title-display {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.book-author-display {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 500;
}

.book-publisher-display {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.75rem;
}

.book-info {
  padding: 1.5rem;
}

.book-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.book-badge.coming {
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
}

.book-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.book-pub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.book-info > p:last-of-type {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.book-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 0.15rem 0.55rem;
  border-radius: 20px;
}

/* ===== QUOTE BANNER ===== */
.quote-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(201,169,75,0.05), rgba(30,40,80,0.1));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.quote-text em {
  color: var(--gold);
  font-style: italic;
}

.quote-author {
  font-size: 0.85rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}

/* ===== BLOG / IDEAS ===== */
.blog {
  background: var(--bg-secondary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.blog-card:hover::before { opacity: 1; }

.blog-card-category {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-card-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.blog-card-tags .tag {
  font-size: 0.65rem;
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.blog-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.blog-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ===== BLOG MODAL ===== */
.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.blog-modal.active {
  display: flex;
}

.blog-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
}

.blog-modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  z-index: 2;
}

.blog-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.blog-modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.blog-modal-body .modal-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.blog-modal-body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.blog-modal-body .modal-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-modal-body .modal-content {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.blog-modal-body .modal-content p {
  margin-bottom: 1rem;
}

.blog-modal-body .modal-content strong {
  color: var(--white);
}

.blog-modal-body .modal-content em {
  color: var(--gold);
}

.blog-modal-body .modal-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ===== ACADEMICS / TIMELINE ===== */
.academics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.global-reach {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.reach-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--text-light);
  transition: border-color var(--transition);
}

.reach-item:hover { border-color: var(--gold); }

.reach-flag { font-size: 1.1rem; }

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--border), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
  padding-left: 1rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--border-light);
  z-index: 1;
}

.timeline-dot.current {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-dim);
}

.timeline-dot.work {
  border-color: #4a90d9;
  background: rgba(74,144,217,0.1);
}

.timeline-year {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
}

.timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.timeline-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(201,169,75,0.04), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(30,40,80,0.15), transparent 50%);
  pointer-events: none;
}

.contact .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.section-title.light { color: var(--white); }

.contact-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.contact-item:hover {
  border-color: var(--gold);
  transform: translateX(4px);
}

.contact-icon { font-size: 1.3rem; flex-shrink: 0; }

.contact-item strong {
  display: block;
  font-size: 0.78rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group select option { background: var(--bg-elevated); }

.form-success {
  display: none;
  text-align: center;
  padding: 1rem;
  background: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.2);
  border-radius: var(--radius-sm);
  color: #4caf50;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  text-align: center;
}

.footer-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  display: block;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--gold); }

.footer-copy p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.footer-copy a { color: var(--gold); }

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all 0.3s;
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.5);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TRAINING SHOWCASE ===== */
.training-showcase {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.showcase-title em {
  font-style: italic;
  color: var(--gold);
}

.showcase-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: all var(--transition);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,13,19,0.95) 15%, rgba(11,13,19,0.4) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: var(--gold-dim);
  box-shadow: 0 16px 36px rgba(201,169,75,0.15);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.35rem;
  display: block;
}

.gallery-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.gallery-info p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ===== ACADEMIC RESEARCH ===== */
.research {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Ambient glow orbs */
.research::before {
  content: '';
  position: absolute;
  top: 10%; left: -10%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,75,0.07) 0%, transparent 70%);
  pointer-events: none;
  animation: research-orb1 10s ease-in-out infinite alternate;
}
.research::after {
  content: '';
  position: absolute;
  bottom: 5%; right: -8%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,144,217,0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: research-orb2 12s ease-in-out infinite alternate;
}
@keyframes research-orb1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes research-orb2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-50px,-30px) scale(1.1); }
}
.research .container { position: relative; z-index: 1; }

/* ── Carousel wrapper ── */
.research-carousel-wrap {
  position: relative;
  padding: 1.5rem 0 2rem;
  /* fade edges */
  mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 60px, black calc(100% - 60px), transparent);
}

.research-carousel {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1rem 3rem 1rem;
  scroll-behavior: smooth;
}
.research-carousel::-webkit-scrollbar { display: none; }

/* ── Flip card ── */
.rp-card {
  flex: 0 0 300px;
  height: 340px;
  scroll-snap-align: start;
  perspective: 1000px;
  cursor: pointer;
}

.rp-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}

/* Flip on hover */
.rp-card:hover .rp-card-inner {
  transform: rotateY(180deg);
}

.rp-card-front,
.rp-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Front face – glass */
.rp-card-front {
  background: rgba(255,255,255,0.038);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.35),
    0 1px 0 rgba(255,255,255,0.07) inset;
}

/* Shimmer line on front top */
.rp-card-front::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,75,0.45), transparent);
}

/* Gold left stripe on front */
.rp-card-front::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(201,169,75,0.05));
  border-radius: 3px 0 0 3px;
  opacity: 0.45;
}

/* Back face – richer gold tint */
.rp-card-back {
  background: linear-gradient(145deg, rgba(30,25,15,0.92) 0%, rgba(20,18,12,0.95) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(201,169,75,0.3);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.5),
    0 0 0 1px rgba(201,169,75,0.1) inset;
  transform: rotateY(180deg);
  justify-content: space-between;
}

/* Glow on back */
.rp-card-back::before {
  content: '';
  position: absolute;
  top: -30%; left: -20%;
  width: 180%; height: 180%;
  background: radial-gradient(ellipse at 40% 40%, rgba(201,169,75,0.06), transparent 60%);
  pointer-events: none;
}

/* Badges */
.rp-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  align-self: flex-start;
  margin-bottom: 0.75rem;
  backdrop-filter: blur(6px);
}
.rp-badge.chapter {
  background: rgba(201,169,75,0.12);
  color: var(--gold);
  border: 1px solid rgba(201,169,75,0.32);
  box-shadow: 0 0 10px rgba(201,169,75,0.1);
}
.rp-badge.article {
  background: rgba(74,144,217,0.1);
  color: #7ab8f5;
  border: 1px solid rgba(74,144,217,0.3);
  box-shadow: 0 0 10px rgba(74,144,217,0.08);
}

/* Front text */
.rp-year {
  font-size: 2.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(201,169,75,0.22);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.rp-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  flex: 1;
  margin-bottom: 0.75rem;
}

.rp-authors {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.rp-hover-hint {
  font-size: 0.68rem;
  color: rgba(201,169,75,0.5);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  animation: hint-pulse 2.5s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* Back text */
.rp-title-back {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.rp-source-back {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.rp-source-back em { color: var(--gold-hover); }

.rp-authors-back {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: auto;
}

/* CTA button on back */
.btn-research-flip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.6rem 1.3rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(201,169,75,0.2), rgba(201,169,75,0.08));
  border: 1px solid rgba(201,169,75,0.45);
  color: var(--gold);
  transition: all 0.25s ease;
  text-decoration: none;
  align-self: flex-start;
}
.btn-research-flip:hover {
  background: linear-gradient(135deg, rgba(201,169,75,0.35), rgba(201,169,75,0.15));
  box-shadow: 0 4px 18px rgba(201,169,75,0.3);
  transform: translateY(-1px);
}

/* ── Arrow buttons ── */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow:hover {
  background: rgba(201,169,75,0.15);
  border-color: rgba(201,169,75,0.45);
  color: var(--gold);
  box-shadow: 0 4px 16px rgba(201,169,75,0.2);
}
.carousel-arrow-left  { left: 0; }
.carousel-arrow-right { right: 0; }

/* ── Dot indicators ── */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(201,169,75,0.5);
  transform: scale(1.25);
}

/* ===== SOCIAL MEDIA (Footer) ===== */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* LinkedIn specific */
.social-link[aria-label="LinkedIn"]:hover {
  background: rgba(10, 102, 194, 0.15);
  border-color: rgba(10, 102, 194, 0.5);
  color: #5aacf5;
  box-shadow: 0 6px 20px rgba(10,102,194,0.25);
}

/* Instagram specific */
.social-link[aria-label="Instagram"]:hover {
  background: rgba(225, 48, 108, 0.12);
  border-color: rgba(225, 48, 108, 0.4);
  color: #f77fb1;
  box-shadow: 0 6px 20px rgba(225,48,108,0.2);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .rp-card { flex: 0 0 260px; height: 310px; }
  .rp-year { font-size: 1.8rem; }
  .rp-title { font-size: 0.85rem; }
  .footer-social { flex-direction: column; align-items: center; gap: 0.75rem; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-text { order: 2; }
  .hero-image-wrapper { order: 1; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-eyebrow { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .academics-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .research-item-card { padding: 1.5rem; gap: 1.5rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(11,13,19,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-link {
    padding: 0.8rem 1rem;
    width: 100%;
    text-align: center;
  }

  .nav-cta { margin-left: 0 !important; margin-top: 0.5rem; }

  .hero-image { width: 260px; height: 360px; }
  .hero-image-ring { width: 290px; height: 400px; }
  .hero-badge { left: 50%; transform: translateX(-50%); bottom: -20px; }

  .hero-headline { font-size: 2.2rem; }
  .hero-stats { gap: 1rem; }
  .stat-num { font-size: 1.4rem; }

  .section { padding: 4.5rem 0; }

  .about-credentials { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .research-item-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .research-type-badge { width: auto; align-self: flex-start; }
  .btn-research { width: 100%; text-align: center; }

  .trusted-logos { gap: 1.5rem; }
  .logo-item img { max-height: 36px; max-width: 90px; }

  .blog-modal-content { padding: 2rem 1.5rem; }
  .blog-modal-body h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .hero-image { width: 220px; height: 310px; }
  .hero-image-ring { width: 250px; height: 350px; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 40px; height: 1px; }
  .hero-badge { font-size: 0.8rem; padding: 0.5rem 0.8rem; }
}

/* ===== CONTACT COMPOSE BOX ===== */
.contact-form-wrap {
  display: flex;
  align-items: stretch;
}

.contact-compose-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,169,75,0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(201,169,75,0.05) inset;
  color: var(--text);
}

.contact-compose-box .form-group {
  margin-bottom: 1.2rem;
}

.contact-compose-box label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.contact-compose-box input,
.contact-compose-box textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}

.contact-compose-box input:focus,
.contact-compose-box textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,75,0.12);
}

.contact-compose-box input::placeholder,
.contact-compose-box textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.contact-compose-box .btn.full-width {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.contact-email a {
  color: var(--gold);
  font-weight: 600;
  transition: opacity 0.2s;
}
.contact-email a:hover { opacity: 0.8; }

