/* =============================================
   AEROMED CONSULTANCY — BROCHURE STYLESHEET
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

/* ---- CSS Variables / Design Tokens ---- */
:root {
  --navy: #0B2A4A;
  --teal: #1DB8A0;
  --gold: #F4A261;
  --crimson: #E94560;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --light-gray: #EEF2F7;
  --mid-gray: #94A3B8;
  --dark-gray: #334155;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--off-white);
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
}
.brochures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 40px;
}

/* =============================================
   BROCHURE CARD
   ============================================= */
.brochure-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  animation: cardAppear 0.5s ease forwards;
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.brochure-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.brochure-card-header {
  padding: 16px 20px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.brochure-theme-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.brochure-pages-nav {
  display: flex;
  gap: 4px;
}

.page-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--light-gray);
  border: 1.5px solid var(--mid-gray);
  cursor: pointer;
  transition: var(--transition);
}

.page-dot.active {
  background: var(--navy);
  border-color: var(--navy);
}

/* Preview wrapper */
.brochure-preview-wrapper {
  position: relative;
  overflow: hidden;
}

.brochure-pages-container {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   A4 BROCHURE PAGES
   ============================================= */
.brochure-page {
  min-width: 100%;
  aspect-ratio: 210 / 297;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Page nav arrows */
.page-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: var(--transition);
  color: var(--navy);
}

.page-nav-btn:hover { background: white; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.page-nav-btn.prev { left: 10px; }
.page-nav-btn.next { right: 10px; }

/* =============================================
   CARD FOOTER / ACTIONS
   ============================================= */
.brochure-card-footer {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.06);
  gap: 12px;
}

.page-indicator {
  font-size: 0.8rem;
  color: var(--mid-gray);
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--navy), #1d5080);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(11,42,74,0.3);
}

.btn-download:hover {
  background: linear-gradient(135deg, #0d3a5e, #225a80);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11,42,74,0.4);
}

.btn-download.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* =============================================
   THEME 1: CLASSIC NAVY
   ============================================= */
.theme-navy .brochure-page-1 {
  background: linear-gradient(165deg, #0B2A4A 0%, #0f3460 55%, #1a4a72 100%);
}

.theme-navy .brochure-page-2,
.theme-navy .brochure-page-3 {
  background: #FFFFFF;
}

.theme-navy .brochure-page-4 {
  background: linear-gradient(165deg, #0B2A4A, #0d3a5e);
}

/* THEME 2: MODERN TEAL */
.theme-teal .brochure-page-1 {
  background: linear-gradient(150deg, #0D7377 0%, #14a085 50%, #1DB8A0 100%);
}

.theme-teal .brochure-page-2,
.theme-teal .brochure-page-3 {
  background: #FFFFFF;
}

.theme-teal .brochure-page-4 {
  background: linear-gradient(150deg, #0D7377, #14a085);
}

/* THEME 3: WARM GOLD */
.theme-gold .brochure-page-1 {
  background: linear-gradient(150deg, #5c2d0e 0%, #7B3F00 55%, #9a5200 100%);
}

.theme-gold .brochure-page-2,
.theme-gold .brochure-page-3 {
  background: #FFFDF8;
}

.theme-gold .brochure-page-4 {
  background: linear-gradient(150deg, #5c2d0e, #7B3F00);
}

/* THEME 4: DARK PRESTIGE */
.theme-dark .brochure-page-1 {
  background: linear-gradient(150deg, #0f0f1a 0%, #1A1A2E 60%, #16213e 100%);
}

.theme-dark .brochure-page-2,
.theme-dark .brochure-page-3 {
  background: #12121e;
}

.theme-dark .brochure-page-4 {
  background: linear-gradient(150deg, #0f0f1a, #1A1A2E);
}

/* =============================================
   BROCHURE PAGE INTERNALS — SHARED
   ============================================= */

/* -- Page 1: Cover -- */
.cover-page {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cover-top-bar {
  padding: 5% 6% 3%;
  display: flex;
  align-items: center;
  gap: 3%;
}

.cover-logo {
  width: 13%;
  height: auto;
  border-radius: 50%;
  background: white;
  padding: 2%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.cover-firm-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: white;
  font-size: 4.2cqw;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.cover-tagline-top {
  font-size: 2.2cqw;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  margin-top: 0.5%;
}

.cover-divider {
  width: 88%;
  margin: 0 6%;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

.cover-hero-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 4% 6% 0;
  flex: 1;
}

.cover-hero-text {
  flex: 1;
  padding-bottom: 8%;
}

.cover-hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  padding: 1% 3%;
  border-radius: 50px;
  font-size: 2cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3%;
}

.cover-main-headline {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 6.2cqw;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 4%;
}

.cover-main-headline em {
  color: var(--teal);
  font-style: normal;
}

.theme-teal .cover-main-headline em { color: var(--gold); }
.theme-gold .cover-main-headline em { color: var(--gold); }
.theme-dark .cover-main-headline em { color: var(--crimson); }

.cover-tagline-main {
  color: rgba(255,255,255,0.92);
  font-size: 2.4cqw;
  line-height: 1.7;
  max-width: 85%;
  letter-spacing: 0.015em;
}

.cover-doctor-img {
  width: 38%;
  max-height: 58cqh;
  object-fit: contain;
  object-position: bottom center;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}

.cover-bottom-strip {
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  padding: 2.5% 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1%;
}

.cover-bottom-strip .info-item {
  display: flex;
  align-items: center;
  gap: 1.5%;
  color: rgba(255,255,255,0.92);
  font-size: 1.75cqw;
  font-weight: 500;
}

.cover-bottom-strip .info-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.theme-teal .cover-bottom-strip .info-dot { background: var(--gold); }
.theme-gold .cover-bottom-strip .info-dot { background: var(--gold); }
.theme-dark .cover-bottom-strip .info-dot { background: var(--crimson); }

.cover-page-num {
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 5cqw;
  height: 5cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8cqw;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  flex-shrink: 0;
}

/* -- Page 2 & 3: Content -- */
.content-page {
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.content-page-header {
  padding: 4% 6% 3%;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-page-logo {
  display: flex;
  align-items: center;
  gap: 2%;
}

.content-logo-img {
  width: 8%;
  min-width: 28px;
  height: auto;
  border-radius: 50%;
}

.content-firm-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.8cqw;
  font-weight: 700;
  line-height: 1.2;
}

.theme-navy .content-firm-name { color: var(--navy); }
.theme-teal .content-firm-name { color: #0D7377; }
.theme-gold .content-firm-name { color: #7B3F00; }
.theme-dark .content-firm-name { color: #e0e0f0; }

.content-page-num {
  font-size: 1.6cqw;
  color: var(--mid-gray);
  font-weight: 600;
}

.theme-dark .content-page-num { color: #666; }

.content-body {
  padding: 3% 6%;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 3%;
}

/* Section label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 2%;
  font-size: 1.5cqw;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1% 2.5%;
  border-radius: 4px;
  margin-bottom: 1.5%;
}

.theme-navy .section-label { background: #e8f4ff; color: var(--navy); }
.theme-teal .section-label { background: #e0f7f5; color: #0D7377; }
.theme-gold .section-label { background: #fff3e0; color: #7B3F00; }
.theme-dark .section-label { background: rgba(255,255,255,0.08); color: #bdbdbd; }

.content-block { }

.content-block h3 {
  font-family: 'Playfair Display', serif;
  font-size: 3.6cqw;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2%;
}

.theme-navy .content-block h3 { color: var(--navy); }
.theme-teal .content-block h3 { color: #0D7377; }
.theme-gold .content-block h3 { color: #7B3F00; }
.theme-dark .content-block h3 { color: #e0e0f0; }

.content-block p {
  font-size: 2.2cqw;
  line-height: 1.7;
  color: #4a5568;
}

.theme-dark .content-block p { color: #9090a0; }

/* Accent bar */
.accent-bar {
  width: 8%;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 2%;
}

.theme-navy .accent-bar { background: var(--teal); }
.theme-teal .accent-bar { background: var(--gold); }
.theme-gold .accent-bar { background: var(--gold); }
.theme-dark .accent-bar { background: var(--crimson); }

/* Location grids */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5%;
}

.location-box {
  border-radius: 6px;
  padding: 3% 4%;
}

.theme-navy .location-box { background: linear-gradient(135deg, #e8f4ff, #f0f9ff); border-left: 3px solid var(--teal); }
.theme-teal .location-box { background: linear-gradient(135deg, #e0f7f5, #f0fffe); border-left: 3px solid var(--gold); }
.theme-gold .location-box { background: linear-gradient(135deg, #fff3e0, #fffaf5); border-left: 3px solid var(--gold); }
.theme-dark .location-box { background: rgba(255,255,255,0.05); border-left: 3px solid var(--crimson); }

.location-box .loc-title {
  font-size: 1.8cqw;
  font-weight: 700;
  margin-bottom: 1.5%;
}

.location-box .loc-title.loc-title-big {
  font-size: 2.4cqw;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.theme-navy .location-box .loc-title { color: var(--navy); }
.theme-teal .location-box .loc-title { color: #0D7377; }
.theme-gold .location-box .loc-title { color: #7B3F00; }
.theme-dark .location-box .loc-title { color: #c8c8e0; }

.location-box .loc-items {
  font-size: 1.55cqw;
  color: #5a6a7a;
  line-height: 1.7;
}

.theme-dark .location-box .loc-items { color: #888; }

/* Courses row */
.courses-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
}

.course-chip {
  padding: 2% 4%;
  border-radius: 50px;
  font-size: 1.85cqw;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1.5px solid rgba(255,255,255,0.35);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  text-transform: uppercase;
}

.theme-navy .course-chip { background: var(--navy); color: white; }
.theme-teal .course-chip { background: #0D7377; color: white; }
.theme-gold .course-chip { background: #7B3F00; color: white; }
.theme-dark .course-chip { background: var(--crimson); color: white; }

/* Approval badge */
.approval-strip {
  border-radius: 6px;
  padding: 2.5% 4%;
  display: flex;
  align-items: center;
  gap: 2%;
}

.theme-navy .approval-strip { background: linear-gradient(90deg, #0B2A4A, #1a4a72); }
.theme-teal .approval-strip { background: linear-gradient(90deg, #0D7377, #14a085); }
.theme-gold .approval-strip { background: linear-gradient(90deg, #7B3F00, #9a5200); }
.theme-dark .approval-strip { background: linear-gradient(90deg, #1A1A2E, #16213e); }

.approval-strip .appr-icon {
  font-size: 3.5cqw;
  flex-shrink: 0;
}

.approval-strip .appr-text {
  font-size: 1.7cqw;
  color: rgba(255,255,255,0.95);
  line-height: 1.5;
}

.approval-strip .appr-text strong {
  display: block;
  font-size: 1.9cqw;
}

/* Doctor on side for page 2 */
.page2-layout {
  display: flex;
  gap: 0;
  flex: 1;
  overflow: hidden;
}

.page2-content {
  flex: 1;
  padding: 3% 5% 3% 6%;
  display: flex;
  flex-direction: column;
  gap: 3%;
  overflow: hidden;
}

.page2-doctor-col {
  width: 28%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2% 0 0;
  position: relative;
}

.page2-doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.theme-navy .page2-doctor-col { background: linear-gradient(180deg, #e8f4ff 0%, #d0eaf8 100%); }
.theme-teal .page2-doctor-col { background: linear-gradient(180deg, #e0f7f5 0%, #c5f0ec 100%); }
.theme-gold .page2-doctor-col { background: linear-gradient(180deg, #fff3e0 0%, #ffe8c0 100%); }
.theme-dark .page2-doctor-col { background: linear-gradient(180deg, #1e1e30 0%, #14141f 100%); }

/* College Lists — Page 3 */
.college-section {
  margin-bottom: 1.5%;
}

/* Card-style boundary for college sections */
.college-card {
  border-radius: 6px;
  padding: 2.5% 3%;
  margin-bottom: 1.5%;
}

.theme-navy .college-card { border: 1.5px solid #c8ddf0; background: linear-gradient(135deg, #f5f9ff, #eef4fb); }
.theme-teal .college-card { border: 1.5px solid #b8e8e0; background: linear-gradient(135deg, #f0faf8, #e8f7f4); }
.theme-gold .college-card { border: 1.5px solid #e8d5b8; background: linear-gradient(135deg, #fffaf2, #fef5e8); }
.theme-dark .college-card { border: 1.5px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03); }

.college-section-title {
  display: flex;
  align-items: center;
  gap: 2%;
  font-size: 2.1cqw;
  font-weight: 700;
  margin-bottom: 1.5%;
}

.theme-navy .college-section-title { color: var(--navy); }
.theme-teal .college-section-title { color: #0D7377; }
.theme-gold .college-section-title { color: #7B3F00; }
.theme-dark .college-section-title { color: #e0e0f0; }

.college-section-title .ctitle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.theme-navy .ctitle-dot { background: var(--teal); }
.theme-teal .ctitle-dot { background: var(--gold); }
.theme-gold .ctitle-dot { background: var(--gold); }
.theme-dark .ctitle-dot { background: var(--crimson); }

.college-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8% 3%;
}

.college-list li {
  font-size: 1.55cqw;
  line-height: 1.5;
  padding-left: 2.5%;
  position: relative;
  color: #4a5568;
  padding-top: 0.3%;
  padding-bottom: 0.3%;
}

.college-list li strong {
  font-weight: 700;
  color: #2d3748;
}

.college-list li .college-loc {
  font-weight: 400;
  color: #718096;
  font-style: italic;
}

.theme-dark .college-list li { color: #9090a0; }
.theme-dark .college-list li strong { color: #d0d0e0; }
.theme-dark .college-list li .college-loc { color: #7878a0; }

.college-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 38%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.theme-navy .college-list li::before { background: var(--teal); }
.theme-teal .college-list li::before { background: var(--gold); }
.theme-gold .college-list li::before { background: #7B3F00; }
.theme-dark .college-list li::before { background: var(--crimson); }

.college-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 2% 0;
}

.theme-dark .college-divider { background: rgba(255,255,255,0.06); }

/* -- Page 4: Contact / Back Cover -- */
.back-page {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.back-top {
  padding: 8% 8% 6%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.back-logo {
  width: 16%;
  height: auto;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  padding: 2%;
  margin-bottom: 4%;
}

.back-firm-name {
  font-family: 'Playfair Display', serif;
  font-size: 5.5cqw;
  font-weight: 700;
  color: white;
  margin-bottom: 2%;
}

.back-tagline {
  font-size: 2.2cqw;
  color: rgba(255,255,255,0.72);
  font-style: italic;
  margin-bottom: 6%;
}

.back-cta {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: white;
  padding: 2.5% 7%;
  border-radius: 50px;
  font-size: 2.2cqw;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 6%;
}

.back-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3% 5%;
  width: 100%;
  max-width: 85%;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-item .ci-label {
  font-size: 1.5cqw;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8%;
}

.contact-item .ci-value {
  font-size: 2cqw;
  color: white;
  font-weight: 500;
}

.back-bottom-strip {
  background: rgba(0,0,0,0.3);
  padding: 3% 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-bottom-strip .website {
  font-size: 1.9cqw;
  color: rgba(255,255,255,0.75);
}

.back-bottom-strip .approval-tags {
  display: flex;
  gap: 2%;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.approval-tag {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
  border-radius: 4px;
  padding: 0.8% 2%;
  font-size: 1.5cqw;
  font-weight: 600;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================
   CARD FOOTER — REDESIGNED WITH 2 BUTTONS
   ============================================= */
.brochure-card-footer {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.06);
  gap: 10px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-indicator {
  font-size: 0.78rem;
  color: var(--mid-gray);
  white-space: nowrap;
}

.footer-buttons {
  display: flex;
  gap: 8px;
}

.btn-preview {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--light-gray);
  color: var(--dark-gray);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50px;
  padding: 9px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.btn-preview:hover {
  background: #dfe5ed;
  transform: translateY(-1px);
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--navy), #1d5080);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 9px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(11,42,74,0.3);
}

.btn-download:hover {
  background: linear-gradient(135deg, #0d3a5e, #225a80);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11,42,74,0.4);
}

/* =============================================
   FULLSCREEN VIEWER MODAL
   ============================================= */
.viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.viewer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Toolbar */
.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.viewer-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.viewer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  object-fit: cover;
}

.viewer-theme-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.viewer-subtitle {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}

.viewer-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.viewer-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.viewer-download-btn {
  background: var(--teal);
  color: white;
  box-shadow: 0 4px 16px rgba(29,184,160,0.4);
}

.viewer-download-btn:hover {
  background: #17a08c;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29,184,160,0.5);
}

.viewer-close-btn {
  background: rgba(255,255,255,0.1);
  color: white;
  padding: 10px 12px;
}

.viewer-close-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* Body */
.viewer-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 16px;
  min-height: 0;
}

.viewer-arrow {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.viewer-arrow:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.08);
}

.viewer-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  transform: none;
}

/* Page frame — the container for the brochure page */
.viewer-page-frame {
  height: calc(100vh - 180px);
  max-height: 85vh;
  aspect-ratio: 210 / 297;
  max-width: 90vw;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
  background: white;
  container-type: inline-size;
  position: relative;
  transition: transform 0.3s ease;
}

.viewer-page-inner {
  width: 100%;
  height: 100%;
}

.viewer-page-inner .brochure-page {
  width: 100%;
  height: 100%;
  min-width: unset;
  aspect-ratio: unset;
}

/* Bottom bar */
.viewer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.viewer-dots {
  display: flex;
  gap: 8px;
}

.viewer-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.viewer-dot.active {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 8px rgba(29,184,160,0.5);
}

.viewer-dot:hover:not(.active) {
  background: rgba(255,255,255,0.4);
}

.viewer-page-num {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .header-inner { padding: 12px 20px; }
  .gallery-section { padding: 40px 20px; }
  .brochures-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .viewer-arrow { width: 36px; height: 36px; }
  .viewer-body { padding: 12px; gap: 8px; }
}

@media (max-width: 600px) {
  .page-hero { padding: 50px 20px 60px; }
  .brochure-card-footer { flex-direction: column; }
  .footer-buttons { width: 100%; }
  .footer-buttons .btn-preview,
  .footer-buttons .btn-download { flex: 1; justify-content: center; }
  .viewer-toolbar { padding: 10px 16px; }
  .viewer-toolbar-left .viewer-subtitle { display: none; }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
  body { background: white; }
  .site-header, .site-footer, .brochure-card-header,
  .brochure-card-footer, .page-nav-btn, .gallery-section > .section-header,
  .viewer-overlay { display: none !important; }
  .brochure-card { box-shadow: none; border-radius: 0; }
  .brochure-page { page-break-after: always; height: 297mm; width: 210mm; }
}

/* Container query support */
.brochure-preview-wrapper {
  container-type: inline-size;
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   COVER COURSE PILLS (Page 1 bottom strip)
   ============================================= */
.cover-courses-strip {
  display: flex;
  gap: 1.2%;
  flex-wrap: wrap;
  align-items: center;
}
.cover-course-pill {
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.5);
  color: white;
  padding: 0.8% 2.5%;
  border-radius: 50px;
  font-size: 1.65cqw;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.theme-teal .cover-course-pill { border-color: rgba(244,162,97,0.6); }
.theme-gold .cover-course-pill { border-color: rgba(244,162,97,0.6); }
.theme-dark .cover-course-pill { border-color: rgba(233,69,96,0.5); background: rgba(233,69,96,0.15); }

/* =============================================
   BOLD COLLEGE NAMES (Page 3)
   ============================================= */
.college-name-bold {
  font-weight: 800;
  font-size: 1.75cqw;
  color: #1a202c;
  letter-spacing: 0.01em;
}
.theme-dark .college-name-bold { color: #e2e8f0; }
