/* =========================================================
   The Peoples Party — Custom Styles
   ========================================================= */

:root {
  --primary-color: #1B3A6D;      /* navy blue */
  --primary-color-dark: #122A50;
  --secondary-color: #E63B34;    /* red accent */
  --secondary-color-dark: #C72E28;
  --accent-color: #E8A33D;       /* gold/orange accent */
  --bg-color: #FDF8F0;           /* warm cream background */
  --bg-color-alt: #FBF1E3;
  --text-color: #22223B;
  --text-muted: #5A5A72;
  --white: #FFFFFF;

  --font-heading: 'Archivo', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 50px;

  --transition-base: all 0.3s ease;
}

/* =========================================================
   Base
   ========================================================= */
body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
}

a {
  text-decoration: none;
}

/* =========================================================
   Registration Banner
   ========================================================= */
.registration-banner {
  background: var(--primary-color);
  color: var(--white);
}

.banner-link {
  color: var(--accent-color);
  font-weight: 600;
}

.banner-link:hover {
  color: var(--white);
}

.banner-close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.registration-banner.hide {
  display: none;
}

/* =========================================================
   Navbar
   ========================================================= */
.navbar {
  background: var(--bg-color);
  padding: 0.6rem 0;
  min-height: 76px;
  overflow: visible;
  z-index: 1030;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 0.4rem 0;
}

.navbar .container {
  overflow: visible;
}

/* Logo bulges out of the compact navbar and curves down into the hero image */
.logo-wrap {
  position: relative;
  display: block;
  width: 150px;
  height: 56px;
  flex-shrink: 0;
  z-index: 5;
}

.logo-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-color);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: var(--transition-base);
}

.navbar.scrolled .logo-img {
  background: var(--white);
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--secondary-color);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pill-nav {
  flex-wrap: wrap;
}

.pill-link {
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.15rem !important;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary-color) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
}

.pill-link:hover,
.pill-link:focus {
  background: var(--primary-color);
  color: var(--white) !important;
  transform: translateY(-2px);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn-accent {
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  transition: var(--transition-base);
  box-shadow: 0 4px 14px rgba(230, 59, 52, 0.35);
}

.btn-accent:hover,
.btn-accent:focus {
  background: var(--secondary-color-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(230, 59, 52, 0.45);
}

.btn-accent:active {
  transform: translateY(-1px) scale(0.98);
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero-section {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 4.5rem;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(27, 58, 109, 0.92) 0%,
    rgba(232, 163, 61, 0.75) 38%,
    rgba(232, 163, 61, 0.15) 65%,
    rgba(232, 163, 61, 0) 100%);
}

.hero-content {
  position: relative;
  padding: 2rem 0;
  color: var(--white);
}

.hero-title {
  color: var(--white);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  color: var(--white);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 1.75rem;
}

/* Values strip (overlapping card) */
.values-strip-wrap {
  position: relative;
  z-index: 2;
  margin-top: -6.5rem;
  margin-bottom: 3rem;
}

.values-strip {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  padding: 2.25rem 2rem;
}

.value-item {
  padding-right: 1rem;
}

.value-icon {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 0.6rem;
  display: block;
}

.value-icon.accent {
  color: var(--secondary-color);
}

.value-title {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--primary-color);
}

.value-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* =========================================================
   Section Shared Styles
   ========================================================= */
.section-eyebrow {
  color: var(--secondary-color);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.1rem;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

/* =========================================================
   Agenda Section
   ========================================================= */
.agenda-section {
  padding: 3rem 0 5rem;
  background: var(--bg-color);
}

.agenda-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition-base);
  text-align: center;
}

.agenda-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.agenda-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.5rem;
  color: var(--white);
}

.bg-primary-navy {
  background: var(--primary-color);
}

.bg-accent-red {
  background: var(--secondary-color);
}

.agenda-card-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

.learn-more {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-base);
}

.learn-more:hover {
  color: var(--secondary-color-dark);
  letter-spacing: 0.02em;
}

/* =========================================================
   Testimonials Section
   ========================================================= */
.testimonials-section {
  padding: 5rem 0 6rem;
  background: var(--bg-color-alt);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.quote-icon {
  color: var(--secondary-color);
  font-size: 1.8rem;
  opacity: 0.6;
}

.testimonial-text {
  color: var(--text-color);
  font-size: 0.95rem;
  min-height: 66px;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.9rem;
  display: block;
}

.author-loc {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--secondary-color);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 0.4;
}

.carousel-indicators .active {
  opacity: 1;
}

/* =========================================================
   CTA Section
   ========================================================= */
.cta-section {
  padding: 0 0 5rem;
}

.cta-box {
  background: var(--primary-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem;
  color: var(--white);
}

.cta-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  flex-shrink: 0;
}

.cta-title {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

/* =========================================================
   Newsletter Section
   ========================================================= */
.newsletter-section {
  padding: 5rem 0;
  background: var(--bg-color);
}

.newsletter-form {
  max-width: 480px;
}

.newsletter-form .form-control {
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  padding: 0.75rem 1.25rem;
  border: 1px solid #ddd;
}

.newsletter-form .btn-accent {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

.newsletter-form .form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.form-feedback {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-feedback.success {
  color: #1a7f37;
}

.form-feedback.error {
  color: var(--secondary-color);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--primary-color-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 1.5rem;
}

.footer-brand {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
}

.footer-text {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-right: 0.5rem;
  transition: var(--transition-base);
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-heading {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 3px;
}

.footer-contact i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
  width: 18px;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.15);
  margin: 2rem 0 1.25rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   Scroll Animations
   ========================================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* =========================================================
   Responsive Adjustments
   ========================================================= */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 560px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .pill-nav {
    margin-top: 1rem;
    gap: 0.5rem !important;
  }

  .pill-link {
    display: block;
    text-align: center;
  }

  .values-strip-wrap {
    margin-top: -4rem;
  }

  .value-item {
    padding-right: 0;
  }

  .cta-box {
    text-align: center;
  }

  .cta-box .d-flex.align-items-center {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    min-height: 480px;
  }

  .values-strip-wrap {
    margin-top: -2.5rem;
    margin-bottom: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

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

  .values-strip {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .brand-title {
    font-size: 0.92rem;
  }

  .brand-tagline {
    font-size: 0.6rem;
  }

  .hero-content {
    padding: 2rem 0 1rem;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    min-height: 64px;
  }

  .logo-wrap {
    width: 110px;
    height: 48px;
  }

  .logo-img {
    width: 110px;
    height: 110px;
    top: 0;
  }

  .navbar-collapse {
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .navbar {
    min-height: 56px;
  }

  .logo-wrap {
    width: 88px;
    height: 40px;
  }

  .logo-img {
    width: 88px;
    height: 88px;
    top: 0;
  }
}

/* =========================================================
   Dropdown, Page Hero & Shared Component Styles
   ========================================================= */
.dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
  min-width: 220px;
  margin-top: 0.5rem;
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-weight: 500;
  color: var(--primary-color);
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active {
  background: var(--primary-color);
  color: var(--white);
}

/* Page hero (subpage banners) */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(27, 58, 109, 0.88) 0%,
    rgba(27, 58, 109, 0.55) 45%,
    rgba(0, 0, 0, 0.35) 100%);
}

.page-hero-eyebrow {
  color: var(--accent-color);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.page-hero-title {
  color: var(--white);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.page-hero-desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  max-width: 540px;
}

.hover-lift {
  transition: var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.contact-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(27, 58, 109, 0.08);
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

/* Light sections use the alternate background */
.bg-light {
  background-color: var(--bg-color-alt) !important;
}

/* Responsive page hero */
@media (max-width: 767.98px) {
  .page-hero {
    min-height: 320px;
  }

  .page-hero-title {
    font-size: 2rem;
  }

  .page-hero-desc {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .page-hero-title {
    font-size: 1.75rem;
  }
}

/* =========================================================
   Image Gallery & Lightbox
   ========================================================= */
.gallery-section {
  padding: 5rem 0;
  background: var(--bg-color-alt);
}

.gallery-thumb-wrapper {
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-base);
}

.gallery-thumb-wrapper:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-lightbox .modal-content {
  background: rgba(0, 0, 0, 0.92);
  border: none;
}

.modal-lightbox .modal-header,
.modal-lightbox .btn-close {
  border: none;
  color: var(--white);
}

.modal-lightbox img {
  max-height: 85vh;
  object-fit: contain;
}
