/* ========== ROOT THEME & BRAND ========== */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Montserrat:wght@400;600;700&display=swap');

:root {
  /* Brand color palette (provided) */
  --color-light-blue: #99B7C6;
  --color-lavender: #978EC4;
  --color-cream: #F9F5EA;
  --color-soft-peach: #FFD8D1;
  --color-pink: #F9AFB1;
  --color-sage: #9AB59D;
  --color-charcoal: #3A3F3B;
  --color-coral-peach: #F4B092;
  --color-deep-rose: #CE325B;

  /* Semantic aliases used by the site */
  --primary: var(--color-lavender);
  --primary-dark: var(--color-deep-rose);
  --accent: var(--color-coral-peach);
  --accent-soft: var(--color-soft-peach);

  --bg-body: var(--color-cream);
  --bg-section: #ffffff;

  --text-main: var(--color-charcoal);
  --text-muted: var(--color-sage);

  --border-soft: rgba(151, 142, 196, 0.12);
  --shadow-soft: 0 14px 35px rgba(0, 0, 0, 0.07);

  --radius-lg: 22px;
  --radius-pill: 999px;
  --max-width: 1120px;

  /* Fonts */
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  --font-accent: 'TT Milk Script', cursive;
}

/* ========== GLOBAL RESET ========== */

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.6;
  background: radial-gradient(circle at top left, rgba(255, 250, 245, 1) 0, var(--bg-body) 40%, #ffffff 100%);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ========== LAYOUT HELPERS ========== */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.section {
  padding: 3rem 0;
}

.section--soft {
  background: radial-gradient(circle at top, #ffe8ff 0, #fff7fb 55%, #ffffff 100%);
}

/* ========== CAROUSEL ========== */

.carousel-section {
  width: 100%;
  background: linear-gradient(135deg, #ffe6ff 0%, #fff7fb 50%, #f0e6ff 100%);
  padding: 2rem 0;
  margin-bottom: 0.5rem;
}

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

.carousel-inner {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(151, 142, 196, 0.18);
  background: #f5f5f5;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

/* Carousel indicators / dots */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(151, 142, 196, 0.18);
  border: 2px solid rgba(151, 142, 196, 0.28);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary);
  border-color: var(--primary-dark);
  transform: scale(1.25);
}

.carousel-dot:hover {
  background: rgba(155, 63, 128, 0.4);
  border-color: var(--primary);
}

/* ========== HERO WITH CAROUSEL BACKGROUND ========== */

.hero-carousel {
  position: relative;
  padding: 3rem 0 2.5rem;
}

.hero-carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 1.5s ease-in-out;
}

.hero-carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-carousel .container {
  position: relative;
  z-index: 2;
}

.hero-carousel .hero-inner {
  position: relative;
  z-index: 2;
}

.hero-carousel .hero-title,
.hero-carousel .hero-subtitle,
.hero-carousel .hero-tag,
.hero-carousel .hero-actions,
.hero-carousel .hero-meta {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-carousel .hero-tag {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-carousel .btn-ghost {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.hero-carousel .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-carousel .hero-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* ========== HERO ========== */

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  max-width: 30rem;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ========== BUTTONS ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(151, 142, 196, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-soft);
  color: var(--primary-dark);
}

.btn-ghost:hover {
  background: #ffffff;
}

.btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

/* ========== ALERTS ========== */
.alert-error {
  background: var(--color-pink);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  color: var(--color-deep-rose);
  margin-bottom: 0.9rem;
  border: 1px solid rgba(206, 50, 91, 0.12);
}

.alert-success {
  background: rgba(154, 181, 157, 0.12);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  color: var(--color-sage);
  margin-bottom: 0.9rem;
  border: 1px solid rgba(154, 181, 157, 0.2);
}

/* ========== TAGS / PILLS / BADGES ========== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-soft {
  background: rgba(151, 142, 196, 0.06);
  color: var(--primary-dark);
  border: 1px solid rgba(151, 142, 196, 0.1);
}

.badge-accent {
  background: rgba(244, 176, 146, 0.14);
  color: var(--primary-dark);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

/* ========== NAVBAR ========== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 251, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.nav-inner {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.nav-title-main {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-title-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-link {
  position: relative;
  padding-bottom: 0.2rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--active {
  color: var(--primary-dark);
  font-weight: 700;
}

.nav-link--active::after {
  width: 60%;
}

.nav-menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(151, 142, 196, 0.12);
  background: rgba(255, 255, 255, 0.96);
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ========== HERO ========== */

.hero {
  padding: 3rem 0 2.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 3rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-soft);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3vw + 1.3rem, 3.1rem);
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.hero-highlight {
  background: linear-gradient(
    120deg,
    #d6c6ff,
    #ffb9a0
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

/* Right side hero card / illustration */
.hero-card {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(151, 142, 196, 0.12);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0, rgba(247, 178, 103, 0.26), transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(151, 142, 196, 0.22), transparent 60%);
  opacity: 1;
  pointer-events: none;
}

.hero-card-content {
  position: relative;
  z-index: 1;
}

.hero-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.hero-card-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.hero-chip {
  font-size: 0.75rem;
  border-radius: var(--radius-pill);
  padding: 0.18rem 0.7rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-butterfly {
  position: absolute;
  right: 0.6rem;
  bottom: 0.4rem;
  font-size: 2.4rem;
  transform: rotate(-8deg);
}

.hero-card-logo {
  position: absolute;
  right: 0.8rem;
  bottom: 1rem;
  width: 75px;
  height: 75px;
  object-fit: contain;
  opacity: 0.8;
}

/* ========== CARDS & GRIDS ========== */

.card {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  padding: 1.4rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}

/* ========== FOOTER ========== */

.footer {
  margin-top: auto;
  border-top: 1px solid rgba(235, 216, 255, 0.9);
  background: #ffffff;
  padding: 1.6rem 0 1.2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.7rem;
}

.footer-social a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(151, 142, 196, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.footer-logo-link {
  width: 32px !important;
  height: 32px !important;
  padding: 4px;
}

.footer-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ========== FEATURE IMAGES (non-carousel) ========== */
.feature-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
}
.feature-gallery img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(58,63,59,0.08);
  border: 1px solid rgba(58,63,59,0.06);
  width: 100%;
  height: auto;
  object-fit: contain;
}
.feature-gallery img:first-child {
  max-height: 450px;
  grid-row: 1 / 4;
}
.feature-accent {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-right: 0.6rem;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    margin-top: 1rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-menu-open .nav-links {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(255, 247, 251, 0.98);
    padding: 0.75rem 1.5rem 1rem;
    flex-direction: column;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(235, 214, 255, 0.8);
  }

  .hero {
    padding-top: 2.4rem;
  }
}

@media (max-width: 540px) {
  .section {
    padding: 2.3rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ========== CUSTOM STYLES FOR ELLA RISES PAGES ========== */
.hero-card-logo {
  right: -0.2rem;
  bottom: -0.3rem;
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.8;
}

.home-events-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: stretch;
}

.home-events-image-card {
  padding: 0;
  overflow: hidden;
}

.home-events-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}

@media (max-width: 900px) {
  .home-events-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-events-image-card {
    margin-top: 1rem;
  }
}

.feature-banner {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(58, 63, 59, 0.06);
  margin-bottom: 1.4rem;
}

.section-title a {
  transition: color 0.18s, text-shadow 0.18s;
  color: inherit;
}

.section-title a:hover,
.section-title a:focus {
  color: var(--primary-dark);
  text-shadow: 0 0 6px rgba(151,142,196,0.21);
  text-decoration: underline;
}

.ella-input,
.ella-select {
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 0.52rem 1.1rem;
  font-size: 0.92rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.18s, transform 0.18s;
}

.ella-input::placeholder {
  color: #fff;
  opacity: 0.85;
}

.ella-input:focus,
.ella-select:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(151, 142, 196, 0.32);
  outline: none;
}

.ella-select option {
  color: var(--primary-dark);
  background: #fff;
}

@media (max-width: 600px) {
  .container, .section, .card {
    padding: 0.8rem !important;
    margin: 0 !important;
  }

  h1, h2, h3 { 
    font-size: 1.18rem !important; 
  }

  .grid-3, .grid-2, .home-events-layout {
    display: block !important;
  }

  .hero-inner, .feature-gallery {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    gap: 0.7rem !important;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  .btn, .btn-primary, .btn-ghost {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
    padding: 0.8rem 1rem;
    margin: 0.3rem 0;
  }
}
/* ====== SMALL ADDITIONS: GENERIC FORM + TABLE STYLES ====== */

/* Generic form controls (for pages still using plain inputs) */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
textarea,
select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(151, 142, 196, 0.45);
  outline-offset: 1px;
}

/* Default table look that matches all your admin pages */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  font-size: 0.86rem;
  padding: 0.45rem 0.5rem;
}

thead tr {
  border-bottom: 1px solid rgba(235, 216, 255, 0.9);
}

tbody tr + tr {
  border-top: 1px solid rgba(245, 235, 255, 0.9);
}
