/*
Theme Name: Revelation Bible College & Seminary
Theme URI: https://www.revelationbiblecollege.com
Author: Rev. Dr. Naeem Nasir
Author URI: https://www.revelationbiblecollege.com
Description: Custom theme for Revelation Bible College & Seminary — Pakistan's leading free Bible college. Founded by Rev. Dr. Naeem Nasir.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rbc-theme
*/

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

:root {
  --gold: #D4AF37;
  --navy: #0A2540;
  --dark-navy: #071C30;
  --cream: #F8F5F0;
  --white: #FFFFFF;
  --green: #15803D;
  --heading-font: "Playfair Display", Georgia, serif;
  --body-font: "Montserrat", Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading-font); font-weight: 700; line-height: 1.25; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}
.btn-gold { background: var(--gold); color: var(--dark-navy); }
.btn-gold:hover { background: #c9a22e; }
.btn-outline { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--dark-navy); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: #eee; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #0d2f4f; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #117a34; }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: var(--dark-navy);
  z-index: 9999;
  padding: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px;
}
.header-brand { display: flex; align-items: center; gap: 14px; overflow: hidden; }
.header-brand img { height: 74px; width: auto; flex-shrink: 0; }
.header-brand-text { color: var(--gold); font-family: var(--heading-font); font-size: 1.05rem; line-height: 1.3; font-weight: 700; white-space: nowrap; }
.header-brand-text span { display: block; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--gold); }
.main-nav .portal-btn {
  background: var(--gold);
  color: var(--dark-navy);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
}
.main-nav .portal-btn:hover { background: #c9a22e; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--gold);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 75px; left: 0; width: 100%;
  background: var(--dark-navy);
  border-bottom: 3px solid var(--gold);
  padding: 20px 24px;
  z-index: 9998;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  color: var(--white);
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s;
}
.mobile-menu a:hover { color: var(--gold); background: rgba(212,175,55,0.08); }
.mobile-menu .portal-btn {
  background: var(--gold);
  color: var(--dark-navy);
  font-weight: 700;
  text-align: center;
  padding: 14px 20px;
  border-radius: 6px;
  margin-top: 10px;
}

/* ===== PAGE BANNERS ===== */
.page-banner {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 75px;
  overflow: hidden;
}
/* WP admin bar offset */
.admin-bar .page-banner { margin-top: 107px; }
.page-banner.hero-banner { min-height: 900px; padding-bottom: 40px; }
.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,28,48,0.55) 0%, rgba(10,37,64,0.65) 100%);
}
.page-banner-content { position: relative; z-index: 2; max-width: 820px; padding: 60px 24px; }
.banner-label {
  display: inline-block;
  background: rgba(212,175,55,0.15);
  border: 1px solid rgba(212,175,55,0.4);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.banner-label-dark {
  background: rgba(0,0,0,0.85);
  border: 1px solid var(--gold);
  color: var(--gold);
}
.page-banner-content h1 {
  font-size: 3.2rem;
  color: var(--white);
  margin-bottom: 16px;
}
.page-banner-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.banner-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.banner-stat { text-align: center; }
.banner-stat-num { font-family: var(--heading-font); font-size: 1.6rem; color: var(--gold); font-weight: 700; }
.banner-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 2px; }

/* ===== HERO ===== */
.hero-subtitle { font-style: italic; font-size: 1.2rem; color: var(--gold); margin-bottom: 12px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Hero Slider */
.hero-slide {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slide-active {
  opacity: 1;
}

/* ===== STATS BAR (legacy — kept for other pages) ===== */
.stats-bar { padding: 50px 0; background: var(--white); text-align: center; }
.stats-bar-line { width: 70%; height: 2px; background: var(--gold); margin: 0 auto 40px; border-radius: 2px; }
.stats-bar-grid { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-family: var(--heading-font); font-size: 2rem; color: var(--navy); font-weight: 700; }
.stat-label { font-size: 0.85rem; color: #666; margin-top: 4px; }

/* ===== HERO STATS (inside banner — single row, full width) ===== */
.hero-stats-bar { margin-top: 60px; width: 100%; }
.hero-stats-line { width: 70%; height: 2px; background: var(--gold); margin: 0 auto 40px; border-radius: 2px; opacity: 0.7; }
.hero-stats-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  flex-wrap: nowrap;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 10px;
}
.hero-stat-item {
  text-align: center;
  flex: 1 1 0;
  padding: 0 22px;
  border-right: 1px solid rgba(212,175,55,0.3);
}
.hero-stat-item:last-child { border-right: none; }
.hero-stat-num { font-family: var(--heading-font); font-size: 2.6rem; color: var(--gold); font-weight: 700; line-height: 1.2; }
.hero-stat-label { font-size: 0.92rem; color: rgba(255,255,255,0.8); margin-top: 6px; line-height: 1.35; font-weight: 500; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
.section-dark { background: var(--dark-navy); color: var(--white); }
.section-title {
  font-size: 2.4rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-navy .section-title,
.section-dark .section-title { color: var(--white); }
.section-subtitle {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-text { max-width: 700px; line-height: 1.8; color: #555; margin-bottom: 20px; }

/* ===== FOUNDER (Home) ===== */
.founder-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.founder-img-wrap {
  position: relative;
  padding-left: 14px;
}
.founder-img-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 5px;
  background: var(--gold);
  border-radius: 3px;
}
.founder-img { border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.12); width: 100%; }
.founder-buttons { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }

/* Founder page photo with L-shaped gold border (top + left) */
.founder-photo-wrap {
  position: relative;
  padding: 14px 0 0 14px;
}
.founder-photo-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 5px;
  background: var(--gold);
  border-radius: 3px 3px 0 0;
}
.founder-photo-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 60%;
  background: var(--gold);
  border-radius: 3px 0 0 3px;
}
.founder-photo-main {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* ===== TESTIMONY CARDS ===== */
.testimony-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; max-width: 100%; overflow: hidden; }
.testimony-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px 22px 22px;
  text-align: center;
  border-left: 4px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.testimony-card:hover { transform: translateY(-4px); }
.testimony-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  margin: 0 auto 16px;
}
.testimony-name { font-family: var(--heading-font); font-size: 1.15rem; color: var(--navy); margin-bottom: 2px; }
.testimony-flag { font-size: 0.85rem; color: #888; }
.testimony-role { color: var(--gold); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 8px 0 14px; }
.testimony-quote { font-style: italic; font-size: 0.88rem; color: #555; line-height: 1.7; margin-bottom: 18px; flex-grow: 1; }
.testimony-badges { display: flex; justify-content: space-between; align-items: center; margin-top: auto; width: 100%; }
.badge-graduate {
  background: rgba(21,128,61,0.1);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}
.badge-degree {
  background: rgba(212,175,55,0.12);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

/* ===== STORY PHOTOS (About Us) ===== */
.story-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 44px 0;
}
.story-photo-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.10);
}
.story-photo-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.story-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, transparent 100%);
  letter-spacing: 0.2px;
}

/* ===== GALLERY STRIP ===== */
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.gallery-strip img { border-radius: 10px; width: 100%; height: 240px; object-fit: cover; transition: transform 0.3s; }
.gallery-strip img:hover { transform: scale(1.03); }

/* ===== BLOG GRID ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card-date { font-size: 0.8rem; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.blog-card-title { font-family: var(--heading-font); font-size: 1.15rem; color: var(--navy); margin-bottom: 10px; line-height: 1.4; }
.blog-card-excerpt { font-size: 0.9rem; color: #666; line-height: 1.7; margin-bottom: 16px; }

/* ===== MOTTO BANNER ===== */
.motto-banner { padding: 60px 0; text-align: center; }
.motto-banner blockquote { font-family: var(--heading-font); font-size: 1.8rem; color: var(--gold); font-style: italic; margin-bottom: 10px; }
.motto-banner cite { font-size: 0.95rem; color: rgba(255,255,255,0.7); font-style: normal; }

/* ===== CTA SECTION ===== */
.cta-section { padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: 2.2rem; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.8); max-width: 550px; margin: 0 auto 30px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== TWO COLUMN LAYOUTS ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.two-col-center { align-items: center; }

/* ===== VALUE / BELIEF CARDS ===== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.value-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-top: 3px solid var(--gold);
  transition: transform 0.3s;
}
.value-card:hover { transform: translateY(-4px); }
.value-card-num { font-family: var(--heading-font); font-size: 2rem; color: var(--gold); margin-bottom: 10px; }
.value-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 10px; }
.value-card p { font-size: 0.92rem; color: #555; line-height: 1.7; }
.value-card .scripture { font-size: 0.82rem; color: var(--gold); font-weight: 600; margin-top: 12px; }

/* ===== PROGRAM CARDS ===== */
.programs-section { background: var(--cream); }
.program-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px 28px 28px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  border-left: 5px solid var(--gold);
  border-top: none;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.program-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,0.15); }

/* Color-coded left borders per degree level */
.program-card.card-certificate { border-left-color: #15803D; }
.program-card.card-associate { border-left-color: #2563EB; }
.program-card.card-bachelor { border-left-color: #7C3AED; }
.program-card.card-master { border-left-color: #D4AF37; }
.program-card.card-doctorate { border-left-color: #DC2626; }

.program-level {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.level-certificate { background: #15803D; color: #fff; }
.level-associate { background: #2563EB; color: #fff; }
.level-bachelor { background: #7C3AED; color: #fff; }
.level-master { background: #D4AF37; color: var(--dark-navy); }
.level-doctorate { background: #DC2626; color: #fff; }
.program-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 4px; }
.program-abbrev { font-size: 0.85rem; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.program-card p { font-size: 0.88rem; color: #555; line-height: 1.7; margin-bottom: 14px; }
.program-meta { display: flex; gap: 20px; font-size: 0.8rem; color: #888; margin-bottom: 12px; }
.program-free { display: inline-block; background: rgba(21,128,61,0.1); color: var(--green); font-size: 0.78rem; font-weight: 700; padding: 4px 14px; border-radius: 50px; }

/* ===== FACULTY CARDS ===== */
.faculty-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: stretch; margin-bottom: 60px; }
.faculty-featured .founder-photo-wrap { display: flex; flex-direction: column; }
.faculty-featured .founder-photo-wrap img { border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.12); width: 100%; height: 100%; object-fit: cover; }
.faculty-featured > div:last-child { display: flex; flex-direction: column; justify-content: center; }
.faculty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 30px; }
.faculty-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-top: 3px solid var(--gold);
  transition: transform 0.3s;
}
.faculty-card:hover { transform: translateY(-4px); }
.faculty-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); margin: 0 auto 16px; }
.faculty-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 4px; }
.faculty-card .role { color: var(--gold); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.faculty-card p { font-size: 0.88rem; color: #555; line-height: 1.7; }

/* ===== GALLERY PAGE ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.gallery-item { position: relative; border-radius: 12px; overflow: hidden; }
.gallery-item img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  background: linear-gradient(transparent, rgba(7,28,48,0.85));
  color: var(--white);
  padding: 40px 16px 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== GIVE PAGE ===== */
.impact-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 40px 0; }
.tier-box {
  background: var(--white);
  padding: 28px 22px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-top: 3px solid var(--gold);
  transition: transform 0.3s;
}
.tier-box:hover { transform: translateY(-4px); }
.tier-amount { font-family: var(--heading-font); font-size: 1.8rem; color: var(--gold); margin-bottom: 10px; }
.tier-box p { font-size: 0.88rem; color: #555; line-height: 1.6; }
.partner-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 30px; }

/* ===== FORMS ===== */
.form-section { background: var(--white); border-radius: 12px; padding: 40px; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.form-section h3 { font-family: var(--heading-font); font-size: 1.4rem; color: var(--navy); margin-bottom: 6px; }
.form-section .form-sub { font-size: 0.88rem; color: #888; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--body-font);
  font-size: 0.92rem;
  transition: border-color 0.3s;
  background: #fafafa;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  outline: none;
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.8rem; color: #888; margin-top: 10px; }

/* ===== CONTACT INFO WITH ICONS ===== */
.contact-info-list { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; font-size: 0.95rem; line-height: 1.7; }
.contact-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--white); display: flex; align-items: center; justify-content: center; }
.contact-icon svg { width: 22px; height: 22px; }
.form-success {
  background: rgba(21,128,61,0.08);
  border: 2px solid var(--green);
  color: var(--green);
  padding: 20px 24px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.form-error {
  background: rgba(220,38,38,0.08);
  border: 2px solid #DC2626;
  color: #DC2626;
  padding: 20px 24px;
  border-radius: 10px;
  font-weight: 600;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ===== QUOTE BOX ===== */
.quote-box {
  background: var(--navy);
  color: var(--white);
  padding: 28px 32px;
  border-radius: 12px;
  border-left: 4px solid var(--gold);
  margin: 30px 0;
}
.quote-box blockquote { font-family: var(--heading-font); font-style: italic; font-size: 1.1rem; color: var(--gold); margin-bottom: 8px; }
.quote-box cite { font-size: 0.85rem; color: rgba(255,255,255,0.7); font-style: normal; }

/* ===== FOUNDER HERO (Our Founder page) ===== */
.founder-hero-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
  margin-bottom: 0;
}
.founder-hero-row .founder-photo-wrap {
  display: flex;
  flex-direction: column;
}
.founder-hero-row .founder-photo-wrap img {
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.founder-full-block {
  margin-top: 40px;
  max-width: 100%;
}
.founder-quote-banner {
  margin-top: 36px;
  background: var(--navy);
  color: var(--white);
  padding: 40px 48px;
  border-radius: 14px;
  border-left: 5px solid var(--gold);
  text-align: center;
}
.founder-quote-banner blockquote {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1.5;
}
.founder-quote-banner cite {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  font-style: normal;
}

/* ===== INFO BOX ===== */
.info-box {
  background: var(--cream);
  border: 2px solid rgba(212,175,55,0.3);
  padding: 24px;
  border-radius: 10px;
  margin: 20px 0;
}
.info-box h4 { font-family: var(--heading-font); color: var(--navy); margin-bottom: 8px; }
.info-box p { font-size: 0.9rem; color: #555; }

.contact-box {
  background: var(--navy);
  color: var(--white);
  padding: 24px 28px;
  border-radius: 10px;
  margin-top: 20px;
}
.contact-box a { color: var(--gold); font-weight: 600; }
.contact-box p { margin-bottom: 8px; font-size: 0.92rem; }

/* ===== STEPS ===== */
.step-item { display: flex; gap: 20px; margin-bottom: 28px; }
.step-num {
  width: 44px; height: 44px; min-width: 44px;
  background: var(--gold);
  color: var(--dark-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-size: 1.1rem;
  font-weight: 700;
}
.step-item h4 { font-family: var(--heading-font); color: var(--navy); margin-bottom: 4px; }
.step-item p { font-size: 0.9rem; color: #555; }

/* ===== SINGLE POST ===== */
/* ===== BLOG SINGLE POST LAYOUT ===== */
.page-banner-mini { min-height: 360px; }
.page-banner-tall { min-height: 600px; }
.single-banner-meta { font-size: 0.95rem; color: rgba(255,255,255,0.7); }

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 50px;
  align-items: start;
}
.blog-main { min-width: 0; }
.blog-featured-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Post content styling */
.blog-main .entry-content {
  font-size: 1.05rem;
  line-height: 2;
  color: #444;
}
.blog-main .entry-content p {
  margin-bottom: 22px;
}
.blog-main .entry-content h2 {
  font-size: 1.7rem;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}
.blog-main .entry-content h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin: 32px 0 12px;
}
.blog-main .entry-content h4 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 24px 0 10px;
}
.blog-main .entry-content a {
  color: var(--gold);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.blog-main .entry-content a:hover { border-bottom-color: var(--gold); }
.blog-main .entry-content img {
  border-radius: 10px;
  margin: 20px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.blog-main .entry-content blockquote {
  border-left: 4px solid var(--gold);
  margin: 30px 0;
  padding: 20px 24px;
  background: var(--cream);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.8;
}
.blog-main .entry-content ul,
.blog-main .entry-content ol {
  margin: 18px 0 18px 28px;
  line-height: 2;
}
.blog-main .entry-content li { margin-bottom: 6px; }

/* Post tags */
.post-tags {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #666;
}
.post-tags a { color: var(--gold); font-weight: 600; }
.tag-label { font-weight: 700; color: var(--navy); }

/* Post navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.post-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.3s;
}
.post-nav a:hover { color: var(--gold); }

/* ===== SIDEBAR ===== */
.blog-sidebar { position: sticky; top: 100px; }

.sidebar-widget {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
}
.sidebar-widget-title {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

/* Author widget */
.sidebar-author { text-align: center; }
.sidebar-author-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  border: 4px solid var(--gold);
  margin: 0 auto 16px;
  display: block;
}
.sidebar-author-name {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.sidebar-author-role {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.sidebar-author-bio {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 14px;
}
.sidebar-author-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
}

/* Quick links */
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.3s;
}
.sidebar-links a:hover { color: var(--gold); }

/* Recent posts */
.sidebar-recent-post {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.3s;
}
.sidebar-recent-post:last-child { border-bottom: none; }
.sidebar-recent-post:hover { padding-left: 6px; }
.sidebar-recent-date {
  display: block;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 2px;
}
.sidebar-recent-title {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.4;
}
.sidebar-recent-post:hover .sidebar-recent-title { color: var(--gold); }

/* CTA widget */
.sidebar-cta {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.sidebar-cta h4 {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.sidebar-cta p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 18px;
  line-height: 1.6;
}

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}
.pagination a { background: var(--white); color: var(--navy); border: 2px solid #e0e0e0; }
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--gold); color: var(--dark-navy); border: 2px solid var(--gold); }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark-navy); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-brand { overflow: hidden; }
.footer-brand img { height: 50px; margin-bottom: 14px; }
.footer-brand-name { font-family: var(--heading-font); color: var(--gold); font-size: 1.15rem; margin-bottom: 2px; }
.footer-brand-byline { font-family: var(--body-font); color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-bottom: 14px; font-style: italic; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; }
.footer-col h4 { font-family: var(--heading-font); color: var(--gold); font-size: 1rem; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 0.88rem; padding: 4px 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
/* Full-bleed copyright bar — truly spans edge to edge */
.footer-bottom {
  background: var(--cream);
  color: #000;
  padding: 22px 20px;
  margin-top: 60px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  border-top: 3px solid var(--gold);
  box-sizing: border-box;
}
.footer-bottom a { color: var(--navy); margin: 0 10px; font-weight: 600; }
.footer-bottom a:hover { color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .hamburger { display: block; }
  .header-brand img { height: 66px; }
  .founder-section { grid-template-columns: 1fr; gap: 40px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .founder-hero-row { grid-template-columns: 1fr; gap: 30px; }
  .founder-hero-row .founder-photo-wrap img { height: auto; }
  .founder-quote-banner { padding: 30px 24px; }
  .founder-quote-banner blockquote { font-size: 1.2rem; }
  .faculty-featured { grid-template-columns: 1fr; gap: 30px; }
  .faculty-featured .founder-photo-wrap img { max-width: 100%; height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .impact-tiers { grid-template-columns: repeat(2, 1fr); }
  .blog-layout { grid-template-columns: 1fr; gap: 40px; }
  .blog-sidebar { position: static; }
}

@media (max-width: 768px) {
  /* Header — logo centered and bigger */
  .header-inner { flex-direction: row; justify-content: center; position: relative; padding: 10px 16px; }
  .header-brand { justify-content: center; }
  .header-brand img { height: 72px; }
  .hamburger { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }

  /* Hero banner — responsive */
  .page-banner { min-height: 460px; margin-top: 92px; }
  .page-banner.hero-banner { min-height: auto; padding: 60px 0 40px; }
  .page-banner-content { padding: 40px 18px; }
  .page-banner-content h1 { font-size: 2rem; }
  .page-banner-content p { font-size: 1rem; }
  .hero-subtitle { font-size: 1rem; }
  .banner-label { font-size: 0.75rem; padding: 6px 16px; }
  .page-banner-bg { background-position: top center; background-size: cover; }

  /* Hero stats — responsive */
  .hero-stats-bar { margin-top: 30px; }
  .hero-stats-line { width: 90%; margin-bottom: 20px; }
  .hero-stats-grid { flex-wrap: wrap; max-width: 100%; gap: 0; }
  .hero-stat-item { flex: 0 0 33.33%; padding: 10px 8px; border-right: none; }
  .hero-stat-num { font-size: 1.4rem; }
  .hero-stat-label { font-size: 0.7rem; }

  /* Hero buttons */
  .hero-buttons { flex-direction: column; align-items: center; gap: 10px; }
  .hero-buttons .btn { width: 85%; text-align: center; padding: 12px 20px; font-size: 0.9rem; }

  /* General sections */
  .section { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }
  .story-photo-row { grid-template-columns: 1fr; gap: 18px; }
  .testimony-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .faculty-grid { grid-template-columns: 1fr; }
  .partner-cards { grid-template-columns: 1fr; }
  .impact-tiers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .banner-stats { gap: 20px; }
  .stats-bar-grid { gap: 30px; }
  .motto-banner blockquote { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .header-brand img { height: 64px; }
  .page-banner { margin-top: 84px; }
  .page-banner-content h1 { font-size: 1.65rem; }
  .page-banner-content p { font-size: 0.92rem; line-height: 1.6; }
  .hero-subtitle { font-size: 0.92rem; }
  .page-banner.hero-banner { min-height: auto; padding: 50px 0 30px; }
  .hero-buttons .btn { width: 92%; font-size: 0.85rem; padding: 11px 16px; }
  .hero-stat-item { flex: 0 0 33.33%; padding: 6px 4px; }
  .hero-stat-num { font-size: 1.2rem; }
  .hero-stat-label { font-size: 0.65rem; }
  .gallery-strip { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 220px; }
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,28,48,0.95);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox-overlay.active { display: flex; }
.lightbox-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
  position: relative;
}
.lightbox-content img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-caption {
  margin-top: 20px;
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1.5;
  padding: 16px 30px;
  background: rgba(212,175,55,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  display: inline-block;
  max-width: 700px;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  cursor: pointer;
  z-index: 100000;
  opacity: 0.7;
  transition: opacity 0.3s;
  line-height: 1;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(212,175,55,0.15);
  border: 2px solid rgba(212,175,55,0.4);
  color: var(--gold);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100000;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--gold);
  color: var(--dark-navy);
}
.gallery-item { cursor: pointer; }

@media (max-width: 768px) {
  .lightbox-caption { font-size: 0.95rem; padding: 12px 20px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* Utility */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* ==========================================================================
   FAQ PAGE
   ========================================================================== */
.faq-list { margin-top: 40px; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(10,37,64,0.08);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(10,37,64,0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.faq-item[open] {
  box-shadow: 0 6px 24px rgba(10,37,64,0.10);
  border-left-color: var(--navy);
}
.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-family: 'Georgia', serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--dark-navy);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}
.faq-q-text { flex: 1; padding-top: 6px; }
.faq-icon {
  flex-shrink: 0;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.3s ease;
  padding-top: 4px;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--navy); }
.faq-answer {
  padding: 0 24px 24px 76px;
  color: #3a3a3a;
  line-height: 1.8;
  font-size: 1rem;
}
.faq-answer p { margin: 0; }
.faq-answer a { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--gold); }
.faq-answer a:hover { background: rgba(212,175,55,0.1); }

@media (max-width: 768px) {
  .faq-question { padding: 18px 16px; font-size: 1rem; gap: 12px; }
  .faq-answer { padding: 0 16px 20px 56px; font-size: 0.95rem; }
  .faq-num { min-width: 30px; height: 30px; font-size: 0.75rem; }
}

/* ==========================================================================
   BLOG PAGE — Wider layout with bold feature images
   ========================================================================== */
.blog-section {
  background: #EDF0F3;
  padding: 80px 0 100px;
}
/* Wider container — uses more of the viewport, with comfortable side breathing room */
.blog-container {
  max-width: 1400px;
  padding: 0 70px;
}
.blog-section .blog-grid {
  gap: 40px;
  margin-top: 0;
}
.blog-section .blog-card {
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.07),
              0 1px 4px rgba(10, 37, 64, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.blog-section .blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(10, 37, 64, 0.16),
              0 6px 14px rgba(10, 37, 64, 0.08);
}
/* Larger, more prominent feature image */
.blog-section .blog-card-img-wrap {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
}
.blog-section .blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-section .blog-card:hover .blog-card-img {
  transform: scale(1.05);
}
.blog-section .blog-card-body {
  padding: 30px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-section .blog-card-category {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.blog-section .blog-card-title {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 12px;
  min-height: 2.6em;
}
.blog-section .blog-card-date {
  font-size: 0.82rem;
  color: #8b95a1;
  font-weight: 500;
  margin-bottom: 14px;
}
.blog-section .blog-card-excerpt {
  font-size: 0.94rem;
  color: #4a5568;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 22px;
}
.blog-section .blog-card-body .btn {
  align-self: flex-start;
  margin-top: auto;
}
.blog-section .pagination {
  margin-top: 60px;
}

/* Tablet — 2 columns */
@media (max-width: 1100px) {
  .blog-section .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Mobile — single column */
@media (max-width: 700px) {
  .blog-container { padding: 0 20px; }
  .blog-section { padding: 50px 0 70px; }
  .blog-section .blog-grid { grid-template-columns: 1fr; gap: 28px; }
  .blog-section .blog-card-img-wrap { height: 240px; }
  .blog-section .blog-card-title { font-size: 1.2rem; min-height: 0; }
  .blog-section .blog-card-body { padding: 24px 22px 26px; }
}

/* ==========================================================================
   HOMEPAGE — Founder section subtle tonal background for visibility
   ========================================================================== */
.founder-section-wrap {
  background: linear-gradient(180deg, #FAFBFC 0%, #F5F6F8 100%);
  border-top: 1px solid rgba(10, 37, 64, 0.04);
  border-bottom: 1px solid rgba(10, 37, 64, 0.04);
}
.founder-section-wrap .founder-img-wrap {
  position: relative;
  padding: 14px 0 0 14px;
}
/* Horizontal gold line — TOP (matches Our Founder page style) */
.founder-section-wrap .founder-img-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 5px;
  background: var(--gold);
  border-radius: 3px 3px 0 0;
  z-index: 0;
}
/* Vertical gold line — LEFT (matches Our Founder page style) */
.founder-section-wrap .founder-img-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 60%;
  background: var(--gold);
  border-radius: 3px 0 0 3px;
  z-index: 0;
}
.founder-section-wrap .founder-img {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(10, 37, 64, 0.18);
}

/* ==========================================================================
   WHATSAPP FLOATING CHAT WIDGET — in-page chat popup
   ========================================================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  font-family: var(--body-font);
}

/* Small launcher button (circle only) */
.wa-launcher {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45),
              0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.wa-launcher:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}
.wa-launcher-icon {
  width: 28px;
  height: 28px;
}
.whatsapp-widget.open .wa-launcher {
  animation: none;
  background: #128C7E;
}
.whatsapp-widget.open .wa-launcher-icon { display: none; }
.whatsapp-widget.open .wa-launcher::before {
  content: "×";
  font-size: 2rem;
  color: #fff;
  line-height: 1;
  font-weight: 300;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0, 0, 0, 0.15), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* Chat panel */
.wa-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 340px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22),
              0 6px 14px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom right;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2),
              opacity 0.2s ease;
}
.whatsapp-widget.open .wa-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.wa-panel-header {
  background: #075E54;
  padding: 16px 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.wa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-avatar svg { width: 28px; height: 28px; }
.wa-info { flex: 1; min-width: 0; }
.wa-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 3px;
}
.wa-status {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
.wa-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
}
.wa-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.wa-close:hover { opacity: 1; }

/* Body — WhatsApp-style background */
.wa-panel-body {
  background: #E5DDD5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' fill-rule='evenodd' opacity='0.06'><circle cx='10' cy='10' r='1.5' fill='%23000'/><circle cx='30' cy='30' r='1.5' fill='%23000'/><circle cx='50' cy='50' r='1.5' fill='%23000'/></g></svg>");
  padding: 18px 16px;
  min-height: 140px;
  max-height: 260px;
  overflow-y: auto;
}
.wa-bubble {
  background: #fff;
  border-radius: 0 10px 10px 10px;
  padding: 12px 14px 10px;
  max-width: 88%;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
  position: relative;
}
.wa-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent #fff transparent transparent;
}
.wa-bubble p {
  font-size: 0.92rem;
  color: #303030;
  line-height: 1.5;
  margin: 0 0 6px 0;
}
.wa-bubble p:last-of-type { margin-bottom: 2px; }
.wa-bubble-time {
  display: block;
  font-size: 0.68rem;
  color: #8a9297;
  margin-top: 4px;
  text-align: right;
  font-weight: 600;
}

/* Footer input */
.wa-panel-footer {
  background: #F0F2F5;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-input {
  flex: 1;
  border: none;
  background: #fff;
  border-radius: 22px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #303030;
  outline: none;
}
.wa-input:focus { box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25); }
.wa-send {
  width: 40px;
  height: 40px;
  background: #25D366;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.wa-send:hover { background: #1ebe5a; }

/* Mobile */
@media (max-width: 500px) {
  .whatsapp-widget { bottom: 16px; right: 16px; }
  .wa-launcher { width: 52px; height: 52px; }
  .wa-launcher-icon { width: 26px; height: 26px; }
  .wa-panel { width: calc(100vw - 32px); bottom: 68px; }
}
