/* ==========================================================================
   Littleheads - Firstcry Intellitots Preschool: Design System & Global Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Littleheads Brand Colors matching Logo */
  --primary-orange: #FF6633;
  --primary-orange-hover: #E55422;
  --primary-orange-soft: #FFF2ED;
  --primary-blue: #0084D6;
  --primary-blue-hover: #0070B8;
  --primary-blue-soft: #EDF7FD;
  --primary-red: #E63946;
  --primary-green: #2E8B57;
  --primary-green-soft: #EBF8F0;
  --sun-gold: #FDB813;
  --sun-gold-soft: #FEF8E8;

  /* Neutral Shades */
  --navy-dark: #0F172A;
  --navy-light: #1E293B;
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-light: #E2E8F0;
  --border-subtle: #F1F5F9;

  /* Shadow & Elevation */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 116px; /* Offset for two frozen top strips: 40px + 76px */
}

#app-content {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.view-section {
  width: 100%;
  flex: 1 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy-dark);
  font-weight: 700;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.2vw, 56px);
}

.container-fluid {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 60px);
}

/* Section Common */
.section-padding {
  padding: clamp(30px, 3.2vw, 48px) 0;
}

/* Eliminate excessive white space at top of all pages / views */
.view-section > .section-padding:first-child,
.view-section > .container.section-padding:first-child,
.view-section > div:first-child.section-padding {
  padding-top: clamp(14px, 1.8vw, 22px);
}

.section-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto clamp(22px, 2.5vw, 32px) auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2.1rem, 3.2vw, 2.85rem);
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange), #FF8533);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 102, 51, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-orange-hover), #FF6633);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 102, 51, 0.45);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--primary-blue), #33A1EB);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 132, 214, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--primary-blue-hover), var(--primary-blue));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 132, 214, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

.btn-outline:hover {
  background: var(--primary-orange);
  color: #FFFFFF;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 7px 16px;
}

.btn-white {
  background: #FFFFFF;
  color: var(--navy-dark);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: #F1F5F9;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #FFF8F5 0%, #F0F8FF 50%, #F5FFF8 100%);
  padding: clamp(18px, 2.2vw, 32px) 0 clamp(40px, 4vw, 60px) 0;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 19, 0.15) 0%, rgba(255, 184, 19, 0) 70%);
  z-index: 0;
}

.hero-top-grid,
.hero-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: clamp(28px, 3.5vw, 56px);
  align-items: flex-start;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(255, 102, 51, 0.2);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-orange);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.3rem, 3.6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--navy-dark);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-title span.highlight-orange {
  color: var(--primary-orange);
  position: relative;
}

.hero-title span.highlight-blue {
  color: var(--primary-blue);
}

.hero-desc {
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 26px;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
}

/* Bottom Grid: 4 (Stats) on Left, 3 (Campus Visit / Enquiry) Adjacent on Right */
.hero-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(20px, 2.5vw, 32px);
  align-items: stretch;
  margin-top: clamp(28px, 3vw, 40px);
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Box 4: Hero Key Metrics Card */
.hero-stats-card,
.hero-stats {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 18px 24px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: clamp(10px, 1.2vw, 18px);
  height: 100%;
  box-sizing: border-box;
  transition: all var(--transition-normal);
}

.hero-stats-card:hover,
.hero-stats:hover {
  border-color: rgba(255, 102, 51, 0.35);
  box-shadow: 0 14px 36px -5px rgba(255, 102, 51, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.hero-stats-card .stat-item,
.hero-stats .stat-item {
  text-align: center;
  flex: 1;
}

.hero-stats-card .stat-item:not(:last-child),
.hero-stats .stat-item:not(:last-child) {
  border-right: 1px solid rgba(226, 232, 240, 0.9);
  padding-right: clamp(6px, 1vw, 14px);
}

.hero-stats-card .stat-item h4,
.hero-stats .stat-item h4 {
  font-size: clamp(1.4rem, 1.75vw, 1.85rem);
  font-weight: 800;
  color: var(--primary-orange);
  margin: 0 0 2px 0;
  line-height: 1.1;
}

.hero-stats-card .stat-item p,
.hero-stats .stat-item p {
  font-size: clamp(0.74rem, 0.85vw, 0.84rem);
  color: var(--text-secondary);
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.hero-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 2.8vw, 40px);
  box-shadow: var(--shadow-xl);
  position: relative;
  max-width: 500px;
  width: 100%;
  margin-left: auto;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-card-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  background: #FFF;
  padding: 4px;
}

.hero-card-header h3 {
  font-size: 1.3rem;
  color: var(--navy-dark);
}

.hero-card-header p {
  font-size: 0.88rem;
  color: var(--primary-orange);
  font-weight: 600;
}

.quick-enquiry-form .form-group {
  margin-bottom: 14px;
}

.quick-enquiry-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-enquiry-form input,
.quick-enquiry-form select,
.quick-enquiry-form textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  font-size: 0.94rem;
  color: var(--text-primary);
  background: #FFFFFF;
  transition: border-color var(--transition-fast);
}

/* Right Column: Combined Logo (2) Moved Up */
.hero-logo-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  cursor: default;
  transition: transform var(--transition-normal);
}

.hero-stretched-logo {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 32px rgba(15, 23, 42, 0.09));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.hero-logo-card:hover .hero-stretched-logo {
  transform: scale(1.02) translateY(-3px);
  filter: drop-shadow(0 20px 42px rgba(255, 102, 51, 0.22));
}

/* Bottom Grid: Box 3 - Campus Visit & Admissions Enquiry Bar (Adjacent to 4) */
.hero-horizontal-enquiry-bar {
  margin-top: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 243, 0.95) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 102, 51, 0.25);
  border-radius: 20px;
  padding: 18px 24px;
  box-shadow: 0 10px 30px -5px rgba(255, 102, 51, 0.12), 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
  box-sizing: border-box;
  transition: all var(--transition-normal);
}

.hero-horizontal-enquiry-bar:hover {
  border-color: rgba(255, 102, 51, 0.45);
  box-shadow: 0 14px 38px -5px rgba(255, 102, 51, 0.2), 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.hero-bar-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.hero-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-orange);
  background: var(--primary-orange-soft);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.hero-bar-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.hero-bar-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

.hero-bar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.hero-bar-cta-btn {
  padding: 12px 24px;
  font-size: 0.96rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255, 102, 51, 0.35);
}

.hero-bar-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-bar-phone .call-link {
  color: var(--primary-blue);
  font-weight: 700;
  transition: color var(--transition-fast);
}

.hero-bar-phone .call-link:hover {
  color: var(--primary-blue-hover);
  text-decoration: underline;
}

/* Feature Cards Grid (What We Offer) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(24px, 2.5vw, 36px);
}

.feature-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-orange), var(--sun-gold));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.feature-card.orange .feature-icon-wrapper {
  background: var(--primary-orange-soft);
  color: var(--primary-orange);
}

.feature-card.blue .feature-icon-wrapper {
  background: var(--primary-blue-soft);
  color: var(--primary-blue);
}

.feature-card.green .feature-icon-wrapper {
  background: var(--primary-green-soft);
  color: var(--primary-green);
}

.feature-card.gold .feature-icon-wrapper {
  background: var(--sun-gold-soft);
  color: #B28000;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 500;
}

.feature-list li svg {
  width: 16px;
  height: 16px;
  color: var(--primary-green);
  flex-shrink: 0;
}

/* Reviews & Map Section */
.reviews-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(28px, 3.2vw, 48px);
}

.reviews-cards-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Google Reviews Overview Card */
.google-review-overview-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 22px 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.google-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.google-badge-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.google-rating-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border-radius: 12px;
  padding: 14px 18px;
  border: 1px solid #E2E8F0;
  flex-wrap: wrap;
  gap: 14px;
}

.metric-score-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric-big-score {
  font-size: 2.4rem;
  font-weight: 900;
  color: #1E293B;
  line-height: 1;
  font-feature-settings: "tnum";
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: #CBD5E1;
}

.metric-stat-group {
  text-align: center;
}

.metric-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.1;
}

.metric-stat-lbl {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 3px;
}

/* Reviews Static List */
.reviews-static-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  background: #FFFFFF;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.review-author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-blue));
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.author-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 2px;
}

.author-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EBF8F0;
  color: var(--primary-green);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.review-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.map-column {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.map-embed-wrapper {
  width: 100%;
  height: 440px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.map-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.location-details {
  padding-top: 12px;
}

.location-details h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.location-details p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Photo Gallery */
.gallery-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.gallery-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.gallery-tab.active,
.gallery-tab:hover {
  background: var(--primary-orange);
  color: #FFFFFF;
  border-color: var(--primary-orange);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(24px, 2.5vw, 36px);
}

/* Luxury Museum-Grade Photo Frame */
.gallery-photo-frame,
.gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 12px 12px 18px 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.gallery-photo-frame:hover,
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.16), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
  border-color: rgba(255, 122, 0, 0.35);
}

/* Frame Matte Aperture */
.frame-matte {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #F8FAFC;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* Inner Media Window */
.frame-media-window {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  border-radius: 12px;
  background: #F1F5F9;
}

.frame-photo-img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-photo-frame:hover .frame-photo-img,
.gallery-item:hover img {
  transform: scale(1.06);
}

/* Fallback display if no image */
.frame-placeholder-display {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

/* Floating Zoom / Expand badge */
.frame-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  opacity: 0.88;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
  pointer-events: none;
}

.gallery-photo-frame:hover .frame-zoom-badge,
.gallery-item:hover .frame-zoom-badge {
  opacity: 1;
  transform: scale(1.05);
  background: rgba(255, 122, 0, 0.92);
}

/* Gallery Plaque below photo */
.frame-caption-plaque {
  padding: 14px 8px 4px 8px;
  display: flex;
  flex-direction: column;
}

.frame-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.frame-category-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary-orange);
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  padding: 3px 10px;
  border-radius: 20px;
}

.frame-emoji-icon {
  font-size: 1.1rem;
}

.frame-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.35;
  margin: 0 0 6px 0;
  transition: color 0.2s ease;
}

.gallery-photo-frame:hover .frame-title,
.gallery-item:hover .frame-title {
  color: var(--primary-orange);
}

.frame-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* Lightbox Modal */
.photo-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lightboxFadeIn 0.25s ease;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.photo-lightbox-content {
  position: relative;
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  animation: lightboxScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.photo-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #FFFFFF;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}

.photo-lightbox-close:hover {
  background: var(--primary-orange);
  transform: scale(1.1);
}

.photo-lightbox-media-box {
  position: relative;
  width: 100%;
  max-height: 65vh;
  background: #0B1120;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-lightbox-media-box img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.lightbox-fallback-box {
  width: 100%;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox-details {
  padding: 24px 28px;
  background: #FFFFFF;
}

.lightbox-category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--primary-orange);
  background: #FFF7ED;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.photo-lightbox-details h3 {
  font-size: 1.35rem;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.photo-lightbox-details p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Toast Notifications */
.toast-container {
  position: fixed !important;
  top: 24px !important;
  right: 24px !important;
  z-index: 9999999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  pointer-events: none;
}

.toast,
.toast-message {
  pointer-events: auto;
  min-width: 320px;
  max-width: 480px;
  padding: 14px 20px;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--navy-dark);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.94rem;
  font-weight: 600;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 6px solid var(--primary-orange);
  z-index: 9999999 !important;
}

.toast .toast-icon,
.toast-message .toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast .toast-text,
.toast-message .toast-text {
  flex: 1;
  line-height: 1.45;
}

.toast.success,
.toast-message.toast-success {
  border-left-color: #10B981;
  background: #F0FDF4;
  color: #065F46;
}

.toast.error,
.toast-message.toast-error {
  border-left-color: #EF4444;
  background: #FEF2F2;
  color: #991B1B;
}

.toast.info,
.toast-message.toast-info {
  border-left-color: #3B82F6;
  background: #EFF6FF;
  color: #1E40AF;
}

.toast.warning,
.toast-message.toast-warning {
  border-left-color: #F59E0B;
  background: #FFFBEB;
  color: #92400E;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Student Login Fullpage Layout */
#view-student-login {
  min-height: calc(100vh - 116px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2F6 100%);
  padding: 40px 20px;
}

#view-student-login .container {
  max-width: 540px;
  margin: 0 auto;
  padding: 0;
}

/* Responsive */
@media (max-width: 992px) {
  body { padding-top: 110px; }
  .hero-grid, .hero-top-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-bottom-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-logo-card { margin: 0 auto; justify-content: center; max-width: 460px; }
  .hero-card { margin: 0 auto; }
  .hero-title { font-size: 2.6rem; }
  .reviews-grid { grid-template-columns: 1fr; }
  .map-embed-wrapper { height: 350px; }
}

@media (max-width: 640px) {
  body { padding-top: 105px; }
  .hero-title { font-size: 2.1rem; }
  .section-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-stats-card, .hero-stats { flex-wrap: wrap; gap: 14px; }
  .hero-stats-card .stat-item:not(:last-child), .hero-stats .stat-item:not(:last-child) { border-right: none; }
  .hero-horizontal-enquiry-bar { flex-direction: column; text-align: center; gap: 16px; }
  .hero-bar-left { align-items: center; }
  .hero-bar-right { align-items: center; width: 100%; }
  .hero-bar-cta-btn { width: 100%; text-align: center; }
}

/* ==========================================================================
   Modern Modal & In-Page Editor Form Design System
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 25px 60px -15px rgba(11, 19, 41, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  border: 1px solid rgba(226, 232, 240, 0.9);
  position: relative;
  box-sizing: border-box;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 20px 26px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px 18px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E2E8F0;
  border: none;
  border-radius: 10px;
  font-size: 1.35rem;
  line-height: 1;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
  transform: rotate(90deg) scale(1.05);
}

.modal-body {
  padding: 26px;
  box-sizing: border-box;
}

.form-group {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 18px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.form-group label,
.modal-dialog label {
  display: block !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  margin-bottom: 6px !important;
  letter-spacing: -0.01em;
}

.form-control,
.modal-dialog input[type="text"],
.modal-dialog input[type="email"],
.modal-dialog input[type="tel"],
.modal-dialog input[type="password"],
.modal-dialog input[type="number"],
.modal-dialog textarea,
.modal-dialog select {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 16px !important;
  font-size: 0.94rem !important;
  font-family: inherit !important;
  color: #0F172A !important;
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 10px !important;
  outline: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.form-control:focus,
.modal-dialog input:focus,
.modal-dialog textarea:focus,
.modal-dialog select:focus {
  border-color: #0284C7 !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15) !important;
}

.form-control::placeholder,
.modal-dialog input::placeholder,
.modal-dialog textarea::placeholder {
  color: #94A3B8 !important;
  opacity: 1 !important;
}

textarea.form-control,
.modal-dialog textarea {
  resize: vertical !important;
  min-height: 85px !important;
  line-height: 1.6 !important;
}

.inpage-field-hint {
  font-size: 0.78rem !important;
  color: #64748B !important;
  margin-top: 5px !important;
  line-height: 1.4 !important;
  display: block !important;
}

.inpage-modal-group-title {
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #0369A1 !important;
  background: #F0F9FF !important;
  border-left: 3.5px solid #0284C7 !important;
  padding: 8px 14px !important;
  border-radius: 0 8px 8px 0 !important;
  margin: 22px 0 14px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.inpage-modal-group-title:first-of-type {
  margin-top: 0 !important;
}

/* Modal Actions Buttons */
.modal-dialog .btn-secondary,
.modal-backdrop .btn-secondary {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border: 1.5px solid #CBD5E1 !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: 9999px !important;
  transition: all 0.2s ease !important;
}

.modal-dialog .btn-secondary:hover,
.modal-backdrop .btn-secondary:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
  border-color: #94A3B8 !important;
  transform: translateY(-1px) !important;
}

.modal-dialog .btn-primary,
.modal-backdrop .btn-primary {
  background: linear-gradient(135deg, #FF5500 0%, #FF7700 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 9999px !important;
  font-weight: 800 !important;
  padding: 10px 24px !important;
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal-dialog .btn-primary:hover,
.modal-backdrop .btn-primary:hover {
  background: linear-gradient(135deg, #E64400 0%, #FF6600 100%) !important;
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.5) !important;
  transform: translateY(-2px) !important;
}
