:root {
  --theme-primary-color: #2D5A3D;
  --theme-secondary-color: #1E3D2A;
  --theme-white: #FFFFFF;
  --theme-background-color: #F5F9F5;
  --theme-background-light: #f8f9fa;
  --theme-background-medium: #E8F0E8;
  --theme-text-color: #333333;
  --theme-text-dark: #1a1a1a;
  --theme-text-medium: #666666;
  --theme-text-light: #999999;
  --theme-font-family: Poppins, sans-serif;
  --theme-heading-font-family: Nunito, sans-serif;
}

/* Component CSS: appheader */
/* App Header Component - Matches Flutter app header design exactly */

/* ============================================
   HEADER BASE STYLES
   ============================================ */

.app-header {
    background-color: var(--primary-color);
    min-height: 64px;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 32px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
}

.app-header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   LOGO AND BRAND SECTION
   ============================================ */

.app-header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.app-header-brand:hover {
    text-decoration: none;
}

.app-header-logo {
    width: auto;
    height: 48px;
    max-height: 48px;
    border-radius: 8px;
    object-fit: contain;
}

.app-header-brand-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.app-header-title {
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

.app-header-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.3;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */

.app-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Nav links: UNDERLINE style matching Flutter NavLinkWidget with NavLinkStyle.underline
   - Underline color: white (for visibility on dark primary bg)
   - Underline width: 2px
   - Active text: full color, fontWeight 600
   - Inactive text: 0.7 alpha, fontWeight 400
   - Hover: 0.1 alpha pill-shaped background
*/
.app-header-nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 8px 16px;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 100px;
}

.app-header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--white-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.app-header-nav-link:hover {
    color: var(--white-color);
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.app-header-nav-link.active {
    color: var(--white-color);
    font-weight: 600;
}

.app-header-nav-link.active::after {
    transform: scaleX(1);
}

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

.app-header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

/* Unified header button style - matches Flutter FilledButton.tonal */
.app-header-btn {
    color: var(--white-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-header-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--white-color);
    text-decoration: none;
}

.app-header-btn-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================
   HAMBURGER MENU BUTTON
   ============================================ */

.app-header-menu-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    color: var(--white-color);
}

.app-header-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.app-header-menu-btn svg {
    fill: var(--white-color);
}

/* ============================================
   MOBILE DRAWER OVERLAY
   ============================================ */

.app-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.app-drawer-open .app-drawer-overlay {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MOBILE DRAWER
   Matches Flutter WebAppDrawer exactly:
   - Width: 300px
   - Background: surface (white)
   - Rounded right corners: 16px
   ============================================ */

.app-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background-color: #ffffff;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 10px -5px rgba(0,0,0,0.2),
                0 16px 24px 2px rgba(0,0,0,0.14),
                0 6px 30px 5px rgba(0,0,0,0.12);
}

body.app-drawer-open .app-drawer {
    transform: translateX(0);
}

body.app-drawer-open {
    overflow: hidden;
}

/* ============================================
   DRAWER HEADER
   Matches Flutter WebAppDrawer._buildHeader:
   - Background: primary color
   - Bottom border: 4px secondary color
   - Padding: 20px all sides
   - SafeArea top padding for notched devices
   ============================================ */

.app-drawer-header {
    background-color: var(--primary-color);
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    border-bottom: 4px solid var(--secondary-color);
}

.app-drawer-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo wrapper: secondary bg, 3px padding, 12px border radius */
.app-drawer-logo-wrap {
    padding: 3px;
    background-color: var(--secondary-color);
    border-radius: 12px;
    flex-shrink: 0;
}

/* Logo: 42x42, 9px border radius */
.app-drawer-logo {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    object-fit: contain;
    display: block;
}

.app-drawer-header-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

/* Title: Flutter textTheme.titleMedium = 16px, bold */
.app-drawer-title {
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Subtitle: Flutter textTheme.bodySmall = 12px, 0.7 opacity */
.app-drawer-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* ============================================
   DRAWER NAVIGATION
   Matches Flutter ListView with 12px padding
   ============================================ */

.app-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* ============================================
   SECTION LABEL
   Matches Flutter _buildSectionLabel:
   - Padding: fromLTRB(16, 8, 16, 8)
   - Font: labelSmall (~11px), uppercase
   - Color: onSurfaceVariant at 0.6 alpha
   - Letter spacing: 1.2
   ============================================ */

.app-drawer-section-label {
    padding: 8px 16px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: rgba(73, 69, 79, 0.6);
    text-transform: uppercase;
}

/* ============================================
   NAV ITEMS
   Matches Flutter _buildNavItem with ListTile:
   - Container: 2px bottom margin, 12px border radius
   - ListTile content padding: 16px horizontal
   - Leading icon to title gap: 16px
   - Font: bodyMedium = 14px
   - Color: onSurfaceVariant (#49454F)
   - Selected: primary color with 0.1 alpha bg, 0.3 alpha border
   ============================================ */

.app-drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    margin-bottom: 2px;
    border-radius: 12px;
    color: #49454F;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.app-drawer-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: #1D1B20;
    text-decoration: none;
}

.app-drawer-nav-link.active {
    background-color: rgba(45, 90, 61, 0.1);
    border-color: rgba(45, 90, 61, 0.3);
    color: var(--primary-color);
    font-weight: 600;
}

.app-drawer-nav-link.active .app-drawer-nav-icon {
    fill: var(--primary-color);
}

/* Nav link text - takes available space, pushes external icon to end */
.app-drawer-nav-link span {
    flex: 1;
}

/* Nav icon: 24x24, onSurfaceVariant color */
.app-drawer-nav-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    fill: #49454F;
    transition: fill 0.2s ease;
}

/* External icon: 16px, onSurfaceVariant at 0.6 alpha, at end */
.app-drawer-external-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    fill: rgba(73, 69, 79, 0.6);
}

/* Divider: matches Flutter Divider(height: 32) - 1px line with 16px margin top/bottom */
.app-drawer-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.12);
    margin: 16px 0;
}

/* ============================================
   MOBILE HEADER BUTTONS
   ============================================ */

.app-header-mobile-buttons {
    display: none;
    align-items: center;
    gap: 8px;
}

.app-header-mobile-btn {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.app-header-mobile-btn .app-header-btn-icon {
    width: 18px;
    height: 18px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   Three-tier layout matching Flutter app:
   - >= 1100px: Full header (logo + title/subtitle + nav + buttons)
   - 700-1100px: Compact desktop (logo only + nav + buttons)
   - < 700px: Mobile (hamburger + centered logo + login button)
   ============================================ */

/* Desktop wide (>= 1100px): Full layout with title/subtitle */
@media (min-width: 1100px) {
    .app-header-brand-text {
        display: flex;
    }
}

/* Desktop medium (700-1100px): Hide title/subtitle, show logo only */
@media (min-width: 700px) and (max-width: 1099px) {
    .app-header-brand-text {
        display: none;
    }

    .app-header-logo {
        width: auto;
        height: 40px;
        max-height: 40px;
    }

    .app-header-brand {
        margin-right: 8px;
    }
}

/* Desktop (>= 700px): Show nav and buttons, hide mobile elements */
@media (min-width: 700px) {
    .app-header-menu-btn {
        display: none;
    }

    .app-header-mobile-buttons {
        display: none;
    }

    .app-drawer,
    .app-drawer-overlay {
        display: none !important;
    }

    .app-header-brand {
        margin-right: 16px;
    }
}

/* Mobile (< 700px): Hamburger + spacer + login button (compact style, no logo) */
@media (max-width: 699px) {
    .app-header {
        padding: 8px;
        padding-top: calc(8px + env(safe-area-inset-top, 0px));
    }

    .app-header-container {
        justify-content: space-between;
    }

    /* Hamburger menu - show on mobile */
    .app-header-menu-btn {
        display: flex;
        flex-shrink: 0;
    }

    /* Logo - hidden on mobile (compact style) */
    .app-header-brand {
        display: none;
    }

    /* Hide desktop nav and buttons on mobile */
    .app-header-nav {
        display: none;
    }

    .app-header-buttons {
        display: none;
    }

    /* Show mobile buttons */
    .app-header-mobile-buttons {
        display: flex;
    }

    /* Show drawer on mobile */
    .app-drawer,
    .app-drawer-overlay {
        display: block;
    }
}

/* Extra small mobile - hide button text, show icons only */
@media (max-width: 400px) {
    .app-header-mobile-btn span {
        display: none;
    }

    .app-header-mobile-btn {
        padding: 8px;
        gap: 0;
    }
}


/* Component CSS: hero */
/* Hero Component Styles */

/* Hero Section */
.hero-section {
  background-image: url('../../../assets/images/anna-rosar-ZxFyVBHMK-c-unsplash.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: 100px;
  padding-bottom: 100px;
  height: 100vh;
  min-height: 670px;
  margin-bottom: -90px;
}

.hero-50 {
  height: auto;
  min-height: 540px;
  margin-bottom: -100px;
}

.hero-50 .container + svg {
  transform: rotate(180deg);
}

.hero-section .ratio {
  border-radius: var(--border-radius-medium);
  overflow: hidden;
}

.hero-section svg {
  position: absolute;
  right: 0;
  left: 0;
}

.hero-section > svg {
  top: 0;
}

.hero-section .container + svg {
  top: auto;
  bottom: -1px;
}

.hero-section .row {
  position: relative;
  z-index: 22;
}

/* Animated Headline */
.cd-words-wrapper {
  display: inline-block;
  position: relative;
  text-align: left;
}

.cd-words-wrapper b {
  color: var(--link-hover-color);
  display: inline-block;
  position: absolute;
  white-space: nowrap;
  left: 0;
  top: 0;
}

.cd-words-wrapper b.is-visible {
  position: relative;
}

.no-js .cd-words-wrapper b {
  opacity: 0;
}

.no-js .cd-words-wrapper b.is-visible {
  opacity: 1;
}

.cd-headline.rotate-1 .cd-words-wrapper {
  -webkit-perspective: 300px;
  -moz-perspective: 300px;
  perspective: 300px;
}

.cd-headline.rotate-1 b {
  opacity: 0;
  -webkit-transform-origin: 50% 100%;
  -moz-transform-origin: 50% 100%;
  -ms-transform-origin: 50% 100%;
  -o-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  -webkit-transform: rotateX(180deg);
  -moz-transform: rotateX(180deg);
  -ms-transform: rotateX(180deg);
  -o-transform: rotateX(180deg);
  transform: rotateX(180deg);
}

.cd-headline.rotate-1 b.is-visible {
  opacity: 1;
  -webkit-transform: rotateX(0deg);
  -moz-transform: rotateX(0deg);
  -ms-transform: rotateX(0deg);
  -o-transform: rotateX(0deg);
  transform: rotateX(0deg);
  -webkit-animation: cd-rotate-1-in 1.2s;
  -moz-animation: cd-rotate-1-in 1.2s;
  animation: cd-rotate-1-in 1.2s;
}

.cd-headline.rotate-1 b.is-hidden {
  -webkit-transform: rotateX(180deg);
  -moz-transform: rotateX(180deg);
  -ms-transform: rotateX(180deg);
  -o-transform: rotateX(180deg);
  transform: rotateX(180deg);
  -webkit-animation: cd-rotate-1-out 1.2s;
  -moz-animation: cd-rotate-1-out 1.2s;
  animation: cd-rotate-1-out 1.2s;
}

/* Keyframes for Animated Text */
@-webkit-keyframes cd-rotate-1-in {
  0% {
    -webkit-transform: rotateX(180deg);
    opacity: 0;
  }
  35% {
    -webkit-transform: rotateX(120deg);
    opacity: 0;
  }
  65% {
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(360deg);
    opacity: 1;
  }
}

@-moz-keyframes cd-rotate-1-in {
  0% {
    -moz-transform: rotateX(180deg);
    opacity: 0;
  }
  35% {
    -moz-transform: rotateX(120deg);
    opacity: 0;
  }
  65% {
    opacity: 0;
  }
  100% {
    -moz-transform: rotateX(360deg);
    opacity: 1;
  }
}

@keyframes cd-rotate-1-in {
  0% {
    -webkit-transform: rotateX(180deg);
    -moz-transform: rotateX(180deg);
    -ms-transform: rotateX(180deg);
    -o-transform: rotateX(180deg);
    transform: rotateX(180deg);
    opacity: 0;
  }
  35% {
    -webkit-transform: rotateX(120deg);
    -moz-transform: rotateX(120deg);
    -ms-transform: rotateX(120deg);
    -o-transform: rotateX(120deg);
    transform: rotateX(120deg);
    opacity: 0;
  }
  65% {
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(360deg);
    -moz-transform: rotateX(360deg);
    -ms-transform: rotateX(360deg);
    -o-transform: rotateX(360deg);
    transform: rotateX(360deg);
    opacity: 1;
  }
}

@-webkit-keyframes cd-rotate-1-out {
  0% {
    -webkit-transform: rotateX(0deg);
    opacity: 1;
  }
  35% {
    -webkit-transform: rotateX(-40deg);
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(180deg);
    opacity: 0;
  }
}

@-moz-keyframes cd-rotate-1-out {
  0% {
    -moz-transform: rotateX(0deg);
    opacity: 1;
  }
  35% {
    -moz-transform: rotateX(-40deg);
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
  100% {
    -moz-transform: rotateX(180deg);
    opacity: 0;
  }
}

@keyframes cd-rotate-1-out {
  0% {
    -webkit-transform: rotateX(0deg);
    -moz-transform: rotateX(0deg);
    -ms-transform: rotateX(0deg);
    -o-transform: rotateX(0deg);
    transform: rotateX(0deg);
    opacity: 1;
  }
  35% {
    -webkit-transform: rotateX(-40deg);
    -moz-transform: rotateX(-40deg);
    -ms-transform: rotateX(-40deg);
    -o-transform: rotateX(-40deg);
    transform: rotateX(-40deg);
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(180deg);
    -moz-transform: rotateX(180deg);
    -ms-transform: rotateX(180deg);
    -o-transform: rotateX(180deg);
    transform: rotateX(180deg);
    opacity: 0;
  }
}

/* Custom styles for bigger hero title and button */
.hero-section h1 {
  font-size: 4rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.hero-section h2 {
  font-size: 2rem !important;
  font-weight: 500 !important;
}

.hero-section .btn.custom-btn {
  font-size: 1.5rem !important;
  padding: 1rem 2.5rem !important;
  font-weight: 600 !important;
}

@media (max-width: 991px) {
  .hero-section h1 {
    font-size: 3rem !important;
  }
  
  .hero-section h2 {
    font-size: 1.5rem !important;
  }
  
  .hero-section .btn.custom-btn {
    font-size: 1.25rem !important;
    padding: 0.875rem 2rem !important;
  }
}

@media (max-width: 767px) {
  .hero-section h1 {
    font-size: 2.5rem !important;
  }
  
  .hero-section h2 {
    font-size: 1.25rem !important;
  }
  
  .hero-section .btn.custom-btn {
    font-size: 1.125rem !important;
    padding: 0.75rem 1.5rem !important;
  }
}
.custom-btn-group .link {
    font-size: 1.2rem;
    vertical-align: middle;
}

/* Component CSS: community */
.community-section-extra-height {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-section-extra-height h1 {
    font-size: 6rem;
}

.community-section-extra-height p {
    font-size: 2rem;
}

/* Responsive Community */
@media screen and (max-width: 992px) {
    .community-section-extra-height {
        min-height: 40vh;
    }

    .community-section-extra-height h1 {
        font-size: 3.5rem;
    }

    .community-section-extra-height p {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 576px) {
    .community-section-extra-height {
        min-height: 30vh;
        padding: 40px 20px;
    }

    .community-section-extra-height h1 {
        font-size: 2rem;
    }

    .community-section-extra-height p {
        font-size: 1rem;
    }
}

/* Component CSS: membershipstats */
.membershipstats-section .member-count {
    font-size: 6rem;
    font-weight: bold;
}

.membershipstats-section .lead {
    font-size: 2rem;
}

/* Responsive MembershipStats */
@media screen and (max-width: 992px) {
    .membershipstats-section .member-count {
        font-size: 3.5rem;
    }

    .membershipstats-section .lead {
        font-size: 1.25rem;
    }
}

@media screen and (max-width: 576px) {
    .membershipstats-section .member-count {
        font-size: 2.5rem;
    }

    .membershipstats-section .lead {
        font-size: 1rem;
    }

    .membershipstats-section .col-lg-4 {
        margin-bottom: 20px;
    }
}

/* Component CSS: about */
/* About Component Styles */

.about-section {
  padding-bottom: 70px;
}

/* Member Block Styles */
.member-block-image-wrap {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
}

.member-block-image-wrap:hover .member-block-image {
  transform: scale(1.2);
}

.member-block-image-wrap:hover .social-icon {
  opacity: 1;
}

.member-block-image-wrap .social-icon {
  background-color: var(--white-color);
  border-radius: var(--border-radius-large);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.5s;
  padding: 15px 20px;
  width: auto;
}

.member-block-image {
  transition: all 0.3s;
}

.member-block-info {
  padding: 10px;
}

.member-block-info h4,
.member-block-info p {
  margin-bottom: 0;
}

/* Special styling for Lieke's photo - cropped to smaller height */
.member-block-image.lieke-photo {
  object-fit: cover;
  height: 300px;
  width: 100%;
}

.member-block-image-wrap.lieke-photo-container {
  height: 300px;
  overflow: hidden;
}

/* Responsive Team Members */
@media screen and (max-width: 576px) {
  .about-section .member-block-image-wrap {
    max-height: 180px;
    overflow: hidden;
  }

  .about-section .member-block-image {
    object-fit: cover;
    height: 180px;
    width: 100%;
  }

  .about-section .member-block-image-wrap.lieke-photo-container,
  .about-section .member-block-image.lieke-photo {
    height: 200px;
  }

  .about-section .member-block-info h4 {
    font-size: 0.95rem;
  }

  .about-section .member-block-info p {
    font-size: 0.85rem;
  }
}

/* Component CSS: newsletter */
/* Newsletter Component Styles */

/* Background Image Section for Newsletter */
.section-bg-image {
  background-image: url('../../../assets/images/frederik-rosar-NDSZcCfnsbY-unsplash.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: -70px;
}

.section-bg-image .container + svg {
  transform: rotate(180deg);
  position: relative;
  bottom: -1px;
}

.section-bg-image-block {
  backdrop-filter: blur(5px) saturate(180%);
  -webkit-backdrop-filter: blur(5px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.75);
  border-radius: var(--border-radius-medium);
  border: 1px solid rgba(209, 213, 219, 0.3);
  border-radius: var(--border-radius-medium);
  padding: 50px;
}

.section-bg-image-block .input-group {
  background-color: var(--white-color);
  border-radius: var(--border-radius-large);
  padding: 10px 15px;
}

.section-bg-image-block .input-group-text {
  background-color: transparent;
  border: 0;
}

.section-bg-image-block input[type="email"] {
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
  padding-left: 0;
}

.section-bg-image-block button[type="submit"] {
  background-color: var(--primary-color);
  border: 0;
  border-radius: var(--border-radius-large) !important;
  color: var(--white-color);
  max-width: 150px;
}

/* Header Form (if used in newsletter) */
.header-form {
  position: relative;
}

.header-form .form-control {
  padding-left: 42px;
}

.header-form-icon {
  width: 24px;
  position: absolute;
  top: 0;
  margin: 12px;
  margin-left: 15px;
}

/* Responsive Newsletter */
@media screen and (max-width: 768px) {
  .section-bg-image-block {
    padding: 30px 20px;
  }

  .section-bg-image-block h2 {
    font-size: 1.5rem;
  }

  .section-bg-image-block h4 {
    font-size: 1rem;
  }

  .section-bg-image-block .input-group {
    flex-direction: column;
    padding: 0;
    gap: 10px;
    background-color: transparent;
  }

  .section-bg-image-block .input-group .input-group-text {
    display: none;
  }

  .section-bg-image-block .input-group .form-control {
    width: 100%;
    flex: none;
  }

  .section-bg-image-block input[type="email"] {
    border-radius: var(--border-radius-large) !important;
    padding: 14px 16px;
    margin-bottom: 0;
    font-size: 16px;
    background-color: var(--white-color);
  }

  .section-bg-image-block button[type="submit"] {
    max-width: 100%;
    width: 100%;
    padding: 14px;
    border-radius: var(--border-radius-large) !important;
  }
}

/* Component CSS: membership */
/* Membership Component Styles */

.membership-section .container {
  position: relative;
  z-index: 2;
}

/* Table Styles */
.table-responsive {
  border-radius: var(--border-radius-medium);
  border: 1px solid #e0e0e0;
}

.table-responsive tbody,
.table-responsive td,
.table-responsive tfoot,
.table-responsive th,
.table-responsive thead,
.table-responsive tr {
  border: 0;
}

.table-responsive thead tr {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.table-responsive thead th {
  padding: 22px 16px !important;
}

.table-responsive tbody tr:nth-child(even) {
  background-color: var(--section-bg-color);
}

.table>:not(caption)>*>* {
  padding: 18px 16px;
}

.table tbody tr:last-child td {
  padding-bottom: 18px;
}

.table-responsive .bi-check-circle-fill {
  color: var(--primary-color);
}

.table-responsive .bi-x-circle-fill {
  color: var(--custom-btn-bg-hover-color);
}

/* Membership Form */
.membership-form {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-medium);
  padding: 35px;
}

.membership-form .form-floating>textarea {
  border-radius: var(--border-radius-medium);
  height: 100px;
}

/* Table content styling - same font and size as normal content */
.table td {
  font-size: var(--p-font-size) !important;
  font-family: var(--body-font-family) !important;
  font-weight: var(--font-weight-normal) !important;
  color: var(--p-color) !important;
  line-height: 1.5 !important;
}

/* Make rule titles (first column) same size as content but bold */
.table td:first-child {
  font-weight: var(--font-weight-bold) !important;
  color: var(--dark-color) !important;
  font-size: var(--p-font-size) !important;
  font-family: var(--body-font-family) !important;
  line-height: 1.5 !important;
}

.table th {
  font-size: var(--p-font-size) !important;
  font-family: var(--body-font-family) !important;
  font-weight: var(--font-weight-medium) !important;
}

/* Membership form submit button - use light green color */
.membership-form button[type="submit"] {
  background: var(--custom-btn-bg-color) !important;
  color: var(--white-color) !important;
  border: none !important;
  border-radius: var(--border-radius-large) !important;
  font-weight: var(--font-weight-medium) !important;
}

.membership-form button[type="submit"]:hover {
  background: var(--custom-btn-bg-hover-color) !important;
  color: var(--white-color) !important;
}

/* Mobile: Convert table to stacked cards */
@media screen and (max-width: 768px) {
  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive tr {
    display: block;
    width: 100%;
  }

  .table-responsive thead tr {
    border-radius: var(--border-radius-medium) var(--border-radius-medium) 0 0;
  }

  .table-responsive tbody tr {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
  }

  .table-responsive tbody tr:last-child {
    border-bottom: none;
  }

  .table-responsive td {
    display: block;
    width: 100%;
    padding: 0 !important;
  }

  /* Title (first column) - styled as heading */
  .table-responsive td:first-child {
    font-size: 1rem !important;
    margin-bottom: 8px;
    padding-bottom: 0 !important;
  }

  /* Explanation (second column) */
  .table-responsive td:last-child {
    font-size: 0.9rem !important;
    color: var(--p-color) !important;
  }
}

/* Component CSS: events */
/* Events Component Styles */

/* Events Section */
.events-section.section-bg .container > .row {
  margin-right: 5px;
  margin-left: 5px;
}

.events-section.section-bg .container > .row .row {
  margin: auto;
}

.events-listing-section {
  margin-bottom: 100px;
}

.events-detail-section .custom-block-info {
  padding: 40px 60px;
}

.events-detail-info {
  background-color: var(--section-bg-color);
  border-radius: var(--border-radius-medium);
  padding: 50px 25px;
}

.events-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-weight-medium);
}

/* Custom Block Styles for Events */
.custom-block {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  padding: 30px 20px;
}

.custom-block-bg {
  background: var(--white-color);
}

.custom-block-date-wrap {
  background-color: var(--primary-color);
  border-radius: var(--border-radius-medium);
  text-align: center;
  padding: 20px 30px;
}

.custom-block-date {
  font-size: var(--h1-font-size);
  color: var(--white-color) !important;
}

.custom-block-image-wrap {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
}

.custom-block-image-wrap:hover .custom-block-image {
  transform: scale(1.2);
}

.custom-block-image-wrap:hover .custom-block-icon {
  opacity: 1;
}

.custom-block-image {
  transition: all 0.3s;
}

.custom-block-image-wrap .custom-block-date-wrap,
.custom-block-image-wrap .custom-btn-wrap {
  position: absolute;
  bottom: 0;
}

.custom-block-image-wrap .custom-block-date-wrap {
  border-radius: 0;
  left: 0;
  width: 50%;
  padding: 12.30px 20px;
}

.custom-block-image-wrap .custom-btn-wrap {
  right: 0;
  width: 50%;
}

.custom-block-image-wrap .custom-btn  {
  border-radius: 0;
  display: block;
  padding: 15px 20px;
}

.custom-block-info {
  padding-top: 10px;
}

.custom-block-image-wrap + .custom-block-info {
  padding-top: 20px;
}

.custom-block-span {
  color: var(--secondary-color);
  font-weight: var(--font-weight-bold);
  min-width: 110px;
  margin-right: 10px;
}

.custom-block-icon {
  background: var(--custom-btn-bg-color);
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  font-size: var(--h3-font-size);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.5s;
}

.custom-block-icon:hover {
  background: var(--custom-btn-bg-hover-color);
  color: var(--white-color);
}

/* Component CSS: location */
/* Location Component - Vertical Split Layout */
.location-section {
    background: var(--white-color);
    position: relative;
}

/* Split Layout */
.location-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 600px;
    background: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Left Side - Contact Details */
.contact-side {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: var(--p-font-size);
    font-family: var(--body-font-family);
    font-weight: var(--font-weight-medium);
    color: var(--p-color);
    margin-bottom: 8px;
}

.contact-text p {
    font-size: var(--p-font-size);
    font-family: var(--body-font-family);
    font-weight: var(--font-weight-normal);
    color: var(--p-color);
    line-height: 1.5;
    margin: 0;
}

.contact-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--secondary-color);
}

/* Action Buttons */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.contact-button.primary {
    background: var(--primary-color);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(30, 61, 120, 0.3);
}

.contact-button.primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 61, 120, 0.4);
}

.contact-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.contact-button.secondary:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.contact-button svg {
    transition: transform 0.3s ease;
}

.contact-button:hover svg {
    transform: translateX(3px);
}

/* Right Side - Map */
.map-side {
    position: relative;
    background: #e9ecef;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.non-interactive-map {
    pointer-events: none;
}

/* Map Fallback */
.map-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.fallback-content {
    text-align: center;
    padding: 40px;
}

.fallback-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    margin: 0 auto 24px;
}

.fallback-content h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.fallback-content p {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 24px;
}

.fallback-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.fallback-link:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .location-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .contact-side {
        padding: 50px 40px;
    }

    .map-side {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .contact-side {
        padding: 40px 30px;
    }

    .contact-item {
        padding: 15px 0;
        margin-bottom: 30px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-actions {
        gap: 12px;
    }

    .map-side {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .contact-side {
        padding: 30px 20px;
    }
    
    .contact-item {
        gap: 15px;
        padding: 12px 0;
        margin-bottom: 25px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-text h3 {
        font-size: 16px;
    }
    
    .contact-text p {
        font-size: 14px;
    }
    
    .contact-button {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .map-side {
        min-height: 300px;
    }
    
    .fallback-content {
        padding: 30px 20px;
    }
    
    .fallback-icon {
        width: 60px;
        height: 60px;
    }
}

/* Component CSS: footer4 */
/* Footer 4 - Compact and well-designed footer */
/* Uses CSS variables from Theme: --primary-color, --text-dark, --text-medium, --text-light, --background-light, --white */
.footer-4 {
    background: var(--background-light);
    color: var(--text-dark);
    padding: 40px 0 20px;
    margin-top: 0;
    width: 100%;
}

.footer-4 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.02em;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-medium);
    margin: 0;
}

/* Links Section */
.footer-links-section {
    display: contents;
}

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Contact Section */
.footer-contact h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-compact {
    margin-bottom: 20px;
}

.contact-compact p {
    font-size: 14px;
    color: var(--text-medium);
    margin: 0 0 8px 0;
    line-height: 1.4;
}


/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-light);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 968px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-contact {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-4 {
        padding: 30px 0 15px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-links-section {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
    }
}

/* Component CSS: appheader */
/* App Header Component - Matches Flutter app header design exactly */

/* ============================================
   HEADER BASE STYLES
   ============================================ */

.app-header {
    background-color: var(--primary-color);
    min-height: 64px;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 32px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
}

.app-header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   LOGO AND BRAND SECTION
   ============================================ */

.app-header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.app-header-brand:hover {
    text-decoration: none;
}

.app-header-logo {
    width: auto;
    height: 48px;
    max-height: 48px;
    border-radius: 8px;
    object-fit: contain;
}

.app-header-brand-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.app-header-title {
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

.app-header-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.3;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */

.app-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Nav links: UNDERLINE style matching Flutter NavLinkWidget with NavLinkStyle.underline
   - Underline color: white (for visibility on dark primary bg)
   - Underline width: 2px
   - Active text: full color, fontWeight 600
   - Inactive text: 0.7 alpha, fontWeight 400
   - Hover: 0.1 alpha pill-shaped background
*/
.app-header-nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 8px 16px;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 100px;
}

.app-header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--white-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.app-header-nav-link:hover {
    color: var(--white-color);
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.app-header-nav-link.active {
    color: var(--white-color);
    font-weight: 600;
}

.app-header-nav-link.active::after {
    transform: scaleX(1);
}

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

.app-header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

/* Unified header button style - matches Flutter FilledButton.tonal */
.app-header-btn {
    color: var(--white-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-header-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--white-color);
    text-decoration: none;
}

.app-header-btn-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================
   HAMBURGER MENU BUTTON
   ============================================ */

.app-header-menu-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    color: var(--white-color);
}

.app-header-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.app-header-menu-btn svg {
    fill: var(--white-color);
}

/* ============================================
   MOBILE DRAWER OVERLAY
   ============================================ */

.app-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.app-drawer-open .app-drawer-overlay {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MOBILE DRAWER
   Matches Flutter WebAppDrawer exactly:
   - Width: 300px
   - Background: surface (white)
   - Rounded right corners: 16px
   ============================================ */

.app-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background-color: #ffffff;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 10px -5px rgba(0,0,0,0.2),
                0 16px 24px 2px rgba(0,0,0,0.14),
                0 6px 30px 5px rgba(0,0,0,0.12);
}

body.app-drawer-open .app-drawer {
    transform: translateX(0);
}

body.app-drawer-open {
    overflow: hidden;
}

/* ============================================
   DRAWER HEADER
   Matches Flutter WebAppDrawer._buildHeader:
   - Background: primary color
   - Bottom border: 4px secondary color
   - Padding: 20px all sides
   - SafeArea top padding for notched devices
   ============================================ */

.app-drawer-header {
    background-color: var(--primary-color);
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    border-bottom: 4px solid var(--secondary-color);
}

.app-drawer-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo wrapper: secondary bg, 3px padding, 12px border radius */
.app-drawer-logo-wrap {
    padding: 3px;
    background-color: var(--secondary-color);
    border-radius: 12px;
    flex-shrink: 0;
}

/* Logo: 42x42, 9px border radius */
.app-drawer-logo {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    object-fit: contain;
    display: block;
}

.app-drawer-header-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

/* Title: Flutter textTheme.titleMedium = 16px, bold */
.app-drawer-title {
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Subtitle: Flutter textTheme.bodySmall = 12px, 0.7 opacity */
.app-drawer-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* ============================================
   DRAWER NAVIGATION
   Matches Flutter ListView with 12px padding
   ============================================ */

.app-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* ============================================
   SECTION LABEL
   Matches Flutter _buildSectionLabel:
   - Padding: fromLTRB(16, 8, 16, 8)
   - Font: labelSmall (~11px), uppercase
   - Color: onSurfaceVariant at 0.6 alpha
   - Letter spacing: 1.2
   ============================================ */

.app-drawer-section-label {
    padding: 8px 16px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: rgba(73, 69, 79, 0.6);
    text-transform: uppercase;
}

/* ============================================
   NAV ITEMS
   Matches Flutter _buildNavItem with ListTile:
   - Container: 2px bottom margin, 12px border radius
   - ListTile content padding: 16px horizontal
   - Leading icon to title gap: 16px
   - Font: bodyMedium = 14px
   - Color: onSurfaceVariant (#49454F)
   - Selected: primary color with 0.1 alpha bg, 0.3 alpha border
   ============================================ */

.app-drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    margin-bottom: 2px;
    border-radius: 12px;
    color: #49454F;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.app-drawer-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: #1D1B20;
    text-decoration: none;
}

.app-drawer-nav-link.active {
    background-color: rgba(45, 90, 61, 0.1);
    border-color: rgba(45, 90, 61, 0.3);
    color: var(--primary-color);
    font-weight: 600;
}

.app-drawer-nav-link.active .app-drawer-nav-icon {
    fill: var(--primary-color);
}

/* Nav link text - takes available space, pushes external icon to end */
.app-drawer-nav-link span {
    flex: 1;
}

/* Nav icon: 24x24, onSurfaceVariant color */
.app-drawer-nav-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    fill: #49454F;
    transition: fill 0.2s ease;
}

/* External icon: 16px, onSurfaceVariant at 0.6 alpha, at end */
.app-drawer-external-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    fill: rgba(73, 69, 79, 0.6);
}

/* Divider: matches Flutter Divider(height: 32) - 1px line with 16px margin top/bottom */
.app-drawer-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.12);
    margin: 16px 0;
}

/* ============================================
   MOBILE HEADER BUTTONS
   ============================================ */

.app-header-mobile-buttons {
    display: none;
    align-items: center;
    gap: 8px;
}

.app-header-mobile-btn {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.app-header-mobile-btn .app-header-btn-icon {
    width: 18px;
    height: 18px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   Three-tier layout matching Flutter app:
   - >= 1100px: Full header (logo + title/subtitle + nav + buttons)
   - 700-1100px: Compact desktop (logo only + nav + buttons)
   - < 700px: Mobile (hamburger + centered logo + login button)
   ============================================ */

/* Desktop wide (>= 1100px): Full layout with title/subtitle */
@media (min-width: 1100px) {
    .app-header-brand-text {
        display: flex;
    }
}

/* Desktop medium (700-1100px): Hide title/subtitle, show logo only */
@media (min-width: 700px) and (max-width: 1099px) {
    .app-header-brand-text {
        display: none;
    }

    .app-header-logo {
        width: auto;
        height: 40px;
        max-height: 40px;
    }

    .app-header-brand {
        margin-right: 8px;
    }
}

/* Desktop (>= 700px): Show nav and buttons, hide mobile elements */
@media (min-width: 700px) {
    .app-header-menu-btn {
        display: none;
    }

    .app-header-mobile-buttons {
        display: none;
    }

    .app-drawer,
    .app-drawer-overlay {
        display: none !important;
    }

    .app-header-brand {
        margin-right: 16px;
    }
}

/* Mobile (< 700px): Hamburger + spacer + login button (compact style, no logo) */
@media (max-width: 699px) {
    .app-header {
        padding: 8px;
        padding-top: calc(8px + env(safe-area-inset-top, 0px));
    }

    .app-header-container {
        justify-content: space-between;
    }

    /* Hamburger menu - show on mobile */
    .app-header-menu-btn {
        display: flex;
        flex-shrink: 0;
    }

    /* Logo - hidden on mobile (compact style) */
    .app-header-brand {
        display: none;
    }

    /* Hide desktop nav and buttons on mobile */
    .app-header-nav {
        display: none;
    }

    .app-header-buttons {
        display: none;
    }

    /* Show mobile buttons */
    .app-header-mobile-buttons {
        display: flex;
    }

    /* Show drawer on mobile */
    .app-drawer,
    .app-drawer-overlay {
        display: block;
    }
}

/* Extra small mobile - hide button text, show icons only */
@media (max-width: 400px) {
    .app-header-mobile-btn span {
        display: none;
    }

    .app-header-mobile-btn {
        padding: 8px;
        gap: 0;
    }
}


/* Component CSS: legalpage */
.legalpage {
    padding: 3rem 0 5rem;
    min-height: 100vh;
    background-color: var(--background-color);
}

.legalpage .container {
    max-width: 800px;
}

.legalpage-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--background-medium);
}

.legalpage-back,
.legalpage-back-bottom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.legalpage-back:hover,
.legalpage-back-bottom:hover {
    color: var(--secondary-color);
}

.legalpage-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: var(--heading-font-family);
}

.legalpage-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.legalpage-updated {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.legalpage-content {
    line-height: 1.8;
}

.legalpage-section {
    margin-bottom: 2.5rem;
}

.legalpage-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: var(--heading-font-family);
}

.legalpage-section p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legalpage-section p:last-child {
    margin-bottom: 0;
}

.legalpage-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legalpage-section a:hover {
    color: var(--secondary-color);
}

.legalpage-section ul,
.legalpage-section ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legalpage-section li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.legalpage-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--background-medium);
}

@media (max-width: 768px) {
    .legalpage {
        padding: 2rem 0 3rem;
    }

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

    .legalpage-section h2 {
        font-size: 1.25rem;
    }
}


/* Component CSS: footer4 */
/* Footer 4 - Compact and well-designed footer */
/* Uses CSS variables from Theme: --primary-color, --text-dark, --text-medium, --text-light, --background-light, --white */
.footer-4 {
    background: var(--background-light);
    color: var(--text-dark);
    padding: 40px 0 20px;
    margin-top: 0;
    width: 100%;
}

.footer-4 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.02em;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-medium);
    margin: 0;
}

/* Links Section */
.footer-links-section {
    display: contents;
}

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Contact Section */
.footer-contact h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-compact {
    margin-bottom: 20px;
}

.contact-compact p {
    font-size: 14px;
    color: var(--text-medium);
    margin: 0 0 8px 0;
    line-height: 1.4;
}


/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-light);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 968px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-contact {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-4 {
        padding: 30px 0 15px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-links-section {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
    }
}

/* Component CSS: appheader */
/* App Header Component - Matches Flutter app header design exactly */

/* ============================================
   HEADER BASE STYLES
   ============================================ */

.app-header {
    background-color: var(--primary-color);
    min-height: 64px;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 32px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
}

.app-header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   LOGO AND BRAND SECTION
   ============================================ */

.app-header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.app-header-brand:hover {
    text-decoration: none;
}

.app-header-logo {
    width: auto;
    height: 48px;
    max-height: 48px;
    border-radius: 8px;
    object-fit: contain;
}

.app-header-brand-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.app-header-title {
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

.app-header-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.3;
}

/* ============================================
   DESKTOP NAVIGATION
   ============================================ */

.app-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Nav links: UNDERLINE style matching Flutter NavLinkWidget with NavLinkStyle.underline
   - Underline color: white (for visibility on dark primary bg)
   - Underline width: 2px
   - Active text: full color, fontWeight 600
   - Inactive text: 0.7 alpha, fontWeight 400
   - Hover: 0.1 alpha pill-shaped background
*/
.app-header-nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    padding: 8px 16px;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 100px;
}

.app-header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--white-color);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.app-header-nav-link:hover {
    color: var(--white-color);
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.app-header-nav-link.active {
    color: var(--white-color);
    font-weight: 600;
}

.app-header-nav-link.active::after {
    transform: scaleX(1);
}

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

.app-header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

/* Unified header button style - matches Flutter FilledButton.tonal */
.app-header-btn {
    color: var(--white-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-header-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--white-color);
    text-decoration: none;
}

.app-header-btn-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================
   HAMBURGER MENU BUTTON
   ============================================ */

.app-header-menu-btn {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    color: var(--white-color);
}

.app-header-menu-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.app-header-menu-btn svg {
    fill: var(--white-color);
}

/* ============================================
   MOBILE DRAWER OVERLAY
   ============================================ */

.app-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.app-drawer-open .app-drawer-overlay {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   MOBILE DRAWER
   Matches Flutter WebAppDrawer exactly:
   - Width: 300px
   - Background: surface (white)
   - Rounded right corners: 16px
   ============================================ */

.app-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background-color: #ffffff;
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 10px -5px rgba(0,0,0,0.2),
                0 16px 24px 2px rgba(0,0,0,0.14),
                0 6px 30px 5px rgba(0,0,0,0.12);
}

body.app-drawer-open .app-drawer {
    transform: translateX(0);
}

body.app-drawer-open {
    overflow: hidden;
}

/* ============================================
   DRAWER HEADER
   Matches Flutter WebAppDrawer._buildHeader:
   - Background: primary color
   - Bottom border: 4px secondary color
   - Padding: 20px all sides
   - SafeArea top padding for notched devices
   ============================================ */

.app-drawer-header {
    background-color: var(--primary-color);
    padding: 20px;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    border-bottom: 4px solid var(--secondary-color);
}

.app-drawer-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo wrapper: secondary bg, 3px padding, 12px border radius */
.app-drawer-logo-wrap {
    padding: 3px;
    background-color: var(--secondary-color);
    border-radius: 12px;
    flex-shrink: 0;
}

/* Logo: 42x42, 9px border radius */
.app-drawer-logo {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    object-fit: contain;
    display: block;
}

.app-drawer-header-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

/* Title: Flutter textTheme.titleMedium = 16px, bold */
.app-drawer-title {
    color: var(--white-color);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Subtitle: Flutter textTheme.bodySmall = 12px, 0.7 opacity */
.app-drawer-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* ============================================
   DRAWER NAVIGATION
   Matches Flutter ListView with 12px padding
   ============================================ */

.app-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* ============================================
   SECTION LABEL
   Matches Flutter _buildSectionLabel:
   - Padding: fromLTRB(16, 8, 16, 8)
   - Font: labelSmall (~11px), uppercase
   - Color: onSurfaceVariant at 0.6 alpha
   - Letter spacing: 1.2
   ============================================ */

.app-drawer-section-label {
    padding: 8px 16px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: rgba(73, 69, 79, 0.6);
    text-transform: uppercase;
}

/* ============================================
   NAV ITEMS
   Matches Flutter _buildNavItem with ListTile:
   - Container: 2px bottom margin, 12px border radius
   - ListTile content padding: 16px horizontal
   - Leading icon to title gap: 16px
   - Font: bodyMedium = 14px
   - Color: onSurfaceVariant (#49454F)
   - Selected: primary color with 0.1 alpha bg, 0.3 alpha border
   ============================================ */

.app-drawer-nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    margin-bottom: 2px;
    border-radius: 12px;
    color: #49454F;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.app-drawer-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: #1D1B20;
    text-decoration: none;
}

.app-drawer-nav-link.active {
    background-color: rgba(45, 90, 61, 0.1);
    border-color: rgba(45, 90, 61, 0.3);
    color: var(--primary-color);
    font-weight: 600;
}

.app-drawer-nav-link.active .app-drawer-nav-icon {
    fill: var(--primary-color);
}

/* Nav link text - takes available space, pushes external icon to end */
.app-drawer-nav-link span {
    flex: 1;
}

/* Nav icon: 24x24, onSurfaceVariant color */
.app-drawer-nav-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    fill: #49454F;
    transition: fill 0.2s ease;
}

/* External icon: 16px, onSurfaceVariant at 0.6 alpha, at end */
.app-drawer-external-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    fill: rgba(73, 69, 79, 0.6);
}

/* Divider: matches Flutter Divider(height: 32) - 1px line with 16px margin top/bottom */
.app-drawer-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.12);
    margin: 16px 0;
}

/* ============================================
   MOBILE HEADER BUTTONS
   ============================================ */

.app-header-mobile-buttons {
    display: none;
    align-items: center;
    gap: 8px;
}

.app-header-mobile-btn {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.app-header-mobile-btn .app-header-btn-icon {
    width: 18px;
    height: 18px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   Three-tier layout matching Flutter app:
   - >= 1100px: Full header (logo + title/subtitle + nav + buttons)
   - 700-1100px: Compact desktop (logo only + nav + buttons)
   - < 700px: Mobile (hamburger + centered logo + login button)
   ============================================ */

/* Desktop wide (>= 1100px): Full layout with title/subtitle */
@media (min-width: 1100px) {
    .app-header-brand-text {
        display: flex;
    }
}

/* Desktop medium (700-1100px): Hide title/subtitle, show logo only */
@media (min-width: 700px) and (max-width: 1099px) {
    .app-header-brand-text {
        display: none;
    }

    .app-header-logo {
        width: auto;
        height: 40px;
        max-height: 40px;
    }

    .app-header-brand {
        margin-right: 8px;
    }
}

/* Desktop (>= 700px): Show nav and buttons, hide mobile elements */
@media (min-width: 700px) {
    .app-header-menu-btn {
        display: none;
    }

    .app-header-mobile-buttons {
        display: none;
    }

    .app-drawer,
    .app-drawer-overlay {
        display: none !important;
    }

    .app-header-brand {
        margin-right: 16px;
    }
}

/* Mobile (< 700px): Hamburger + spacer + login button (compact style, no logo) */
@media (max-width: 699px) {
    .app-header {
        padding: 8px;
        padding-top: calc(8px + env(safe-area-inset-top, 0px));
    }

    .app-header-container {
        justify-content: space-between;
    }

    /* Hamburger menu - show on mobile */
    .app-header-menu-btn {
        display: flex;
        flex-shrink: 0;
    }

    /* Logo - hidden on mobile (compact style) */
    .app-header-brand {
        display: none;
    }

    /* Hide desktop nav and buttons on mobile */
    .app-header-nav {
        display: none;
    }

    .app-header-buttons {
        display: none;
    }

    /* Show mobile buttons */
    .app-header-mobile-buttons {
        display: flex;
    }

    /* Show drawer on mobile */
    .app-drawer,
    .app-drawer-overlay {
        display: block;
    }
}

/* Extra small mobile - hide button text, show icons only */
@media (max-width: 400px) {
    .app-header-mobile-btn span {
        display: none;
    }

    .app-header-mobile-btn {
        padding: 8px;
        gap: 0;
    }
}


/* Component CSS: legalpage */
.legalpage {
    padding: 3rem 0 5rem;
    min-height: 100vh;
    background-color: var(--background-color);
}

.legalpage .container {
    max-width: 800px;
}

.legalpage-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--background-medium);
}

.legalpage-back,
.legalpage-back-bottom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.legalpage-back:hover,
.legalpage-back-bottom:hover {
    color: var(--secondary-color);
}

.legalpage-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: var(--heading-font-family);
}

.legalpage-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.legalpage-updated {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.legalpage-content {
    line-height: 1.8;
}

.legalpage-section {
    margin-bottom: 2.5rem;
}

.legalpage-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: var(--heading-font-family);
}

.legalpage-section p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legalpage-section p:last-child {
    margin-bottom: 0;
}

.legalpage-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legalpage-section a:hover {
    color: var(--secondary-color);
}

.legalpage-section ul,
.legalpage-section ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legalpage-section li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.legalpage-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--background-medium);
}

@media (max-width: 768px) {
    .legalpage {
        padding: 2rem 0 3rem;
    }

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

    .legalpage-section h2 {
        font-size: 1.25rem;
    }
}


/* Component CSS: footer4 */
/* Footer 4 - Compact and well-designed footer */
/* Uses CSS variables from Theme: --primary-color, --text-dark, --text-medium, --text-light, --background-light, --white */
.footer-4 {
    background: var(--background-light);
    color: var(--text-dark);
    padding: 40px 0 20px;
    margin-top: 0;
    width: 100%;
}

.footer-4 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 30px;
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.02em;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-medium);
    margin: 0;
}

/* Links Section */
.footer-links-section {
    display: contents;
}

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

/* Contact Section */
.footer-contact h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-compact {
    margin-bottom: 20px;
}

.contact-compact p {
    font-size: 14px;
    color: var(--text-medium);
    margin: 0 0 8px 0;
    line-height: 1.4;
}


/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--primary-color) 30%, transparent);
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid color-mix(in srgb, var(--primary-color) 10%, transparent);
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-light);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 968px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-contact {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-4 {
        padding: 30px 0 15px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-links-section {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
    }
}

/* Site Custom CSS */
/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700;800&family=Nunito:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties (Variables) - Integrated with Theme Config */
:root {
  /* Theme Colors - These will be overridden by Theme config */
  --white-color: #ffffff;
  --primary-color: var(--theme-primary-color, #1e3d78);
  --secondary-color: var(--theme-secondary-color, #3D405B);
  --background-color: var(--theme-background-color, #F4F1DE);
  --section-bg-color: var(--theme-background-color, #F4F1DE);
  --custom-btn-bg-color: #F2CC8F;
  --custom-btn-bg-hover-color: #E07A5F;
  --dark-color: #000000;
  --p-color: #717275;
  --link-hover-color: #F2CC8F;

  /* Typography */
  --body-font-family: 'DM Sans', sans-serif;
  --font-family: var(--body-font-family);
  --heading-font-family: var(--body-font-family);

  /* Font Sizes */
  --h1-font-size: 42px;
  --h2-font-size: 36px;
  --h3-font-size: 28px;
  --h4-font-size: 24px;
  --h5-font-size: 22px;
  --h6-font-size: 20px;
  --p-font-size: 20px;
  --menu-font-size: 16px;
  --btn-font-size: 14px;
  --copyright-font-size: 12px;

  /* Border Radius */
  --border-radius-large: 100px;
  --border-radius-medium: 20px;
  --border-radius-small: 10px;

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Text Color */
  --text-color: var(--dark-color);
}

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

html {
  font-family: var(--font-family, sans-serif);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--white-color, #ffffff);
  color: var(--text-color, #333);
  font-family: var(--body-font-family);
}

/* Typography */
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font-family, var(--font-family, sans-serif));
  font-weight: var(--font-weight-medium);
  letter-spacing: -1px;
  line-height: 1.2;
}

h1 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
}

h2 {
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
  overflow-wrap: break-word;
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

a, 
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover-color);
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

/* Global Section Styles */
.section-bg {
  background-color: var(--section-bg-color);
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}


.section-overlay {
  content: "";
  background: rgba(0, 0, 0, 0) linear-gradient(rgba(39, 48, 83, 0.01) 0%, rgb(39, 48, 83) 100%) repeat scroll 0% 0%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

::selection {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Animated Headline Styles */
.cd-words-wrapper {
  display: inline-block;
  position: relative;
  text-align: left;
}

.cd-words-wrapper b {
  color: var(--link-hover-color);
  display: inline-block;
  position: absolute;
  white-space: nowrap;
  left: 0;
  top: 0;
}

.cd-words-wrapper b.is-visible {
  position: relative;
}

.no-js .cd-words-wrapper b {
  opacity: 0;
}

.no-js .cd-words-wrapper b.is-visible {
  opacity: 1;
}

.cd-headline.rotate-1 .cd-words-wrapper {
  -webkit-perspective: 300px;
  -moz-perspective: 300px;
  perspective: 300px;
}

.cd-headline.rotate-1 b {
  opacity: 0;
  -webkit-transform-origin: 50% 100%;
  -moz-transform-origin: 50% 100%;
  -ms-transform-origin: 50% 100%;
  -o-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  -webkit-transform: rotateX(180deg);
  -moz-transform: rotateX(180deg);
  -ms-transform: rotateX(180deg);
  -o-transform: rotateX(180deg);
  transform: rotateX(180deg);
}

.cd-headline.rotate-1 b.is-visible {
  opacity: 1;
  -webkit-transform: rotateX(0deg);
  -moz-transform: rotateX(0deg);
  -ms-transform: rotateX(0deg);
  -o-transform: rotateX(0deg);
  transform: rotateX(0deg);
  -webkit-animation: cd-rotate-1-in 1.2s;
  -moz-animation: cd-rotate-1-in 1.2s;
  animation: cd-rotate-1-in 1.2s;
}

.cd-headline.rotate-1 b.is-hidden {
  -webkit-transform: rotateX(180deg);
  -moz-transform: rotateX(180deg);
  -ms-transform: rotateX(180deg);
  -o-transform: rotateX(180deg);
  transform: rotateX(180deg);
  -webkit-animation: cd-rotate-1-out 1.2s;
  -moz-animation: cd-rotate-1-out 1.2s;
  animation: cd-rotate-1-out 1.2s;
}

@-webkit-keyframes cd-rotate-1-in {
  0% {
    -webkit-transform: rotateX(180deg);
    opacity: 0;
  }
  35% {
    -webkit-transform: rotateX(120deg);
    opacity: 0;
  }
  65% {
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(360deg);
    opacity: 1;
  }
}

@-moz-keyframes cd-rotate-1-in {
  0% {
    -moz-transform: rotateX(180deg);
    opacity: 0;
  }
  35% {
    -moz-transform: rotateX(120deg);
    opacity: 0;
  }
  65% {
    opacity: 0;
  }
  100% {
    -moz-transform: rotateX(360deg);
    opacity: 1;
  }
}

@keyframes cd-rotate-1-in {
  0% {
    -webkit-transform: rotateX(180deg);
    -moz-transform: rotateX(180deg);
    -ms-transform: rotateX(180deg);
    -o-transform: rotateX(180deg);
    transform: rotateX(180deg);
    opacity: 0;
  }
  35% {
    -webkit-transform: rotateX(120deg);
    -moz-transform: rotateX(120deg);
    -ms-transform: rotateX(120deg);
    -o-transform: rotateX(120deg);
    transform: rotateX(120deg);
    opacity: 0;
  }
  65% {
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(360deg);
    -moz-transform: rotateX(360deg);
    -ms-transform: rotateX(360deg);
    -o-transform: rotateX(360deg);
    transform: rotateX(360deg);
    opacity: 1;
  }
}

@-webkit-keyframes cd-rotate-1-out {
  0% {
    -webkit-transform: rotateX(0deg);
    opacity: 1;
  }
  35% {
    -webkit-transform: rotateX(-40deg);
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(180deg);
    opacity: 0;
  }
}

@-moz-keyframes cd-rotate-1-out {
  0% {
    -moz-transform: rotateX(0deg);
    opacity: 1;
  }
  35% {
    -moz-transform: rotateX(-40deg);
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
  100% {
    -moz-transform: rotateX(180deg);
    opacity: 0;
  }
}

@keyframes cd-rotate-1-out {
  0% {
    -webkit-transform: rotateX(0deg);
    -moz-transform: rotateX(0deg);
    -ms-transform: rotateX(0deg);
    -o-transform: rotateX(0deg);
    transform: rotateX(0deg);
    opacity: 1;
  }
  35% {
    -webkit-transform: rotateX(-40deg);
    -moz-transform: rotateX(-40deg);
    -ms-transform: rotateX(-40deg);
    -o-transform: rotateX(-40deg);
    transform: rotateX(-40deg);
    opacity: 1;
  }
  65% {
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(180deg);
    -moz-transform: rotateX(180deg);
    -ms-transform: rotateX(180deg);
    -o-transform: rotateX(180deg);
    transform: rotateX(180deg);
    opacity: 0;
  }
}

/* Global Button Styles */
.custom-btn {
  background: var(--custom-btn-bg-color);
  border: 2px solid transparent;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-bold);
  line-height: normal;
  transition: all 0.3s;
  padding: 10px 20px;
}

.custom-btn:hover {
  background: var(--custom-btn-bg-hover-color);
  color: var(--white-color);
}

.custom-border-btn {
  background: transparent;
  border: 2px solid var(--custom-btn-bg-color);
  color: var(--custom-btn-bg-color);
}

.custom-border-btn:hover {
  background: var(--custom-btn-bg-color);
  border-color: transparent;
  color: var(--white-color);
}

.custom-btn-bg-white {
  border-color: var(--white-color);
  color: var(--white-color);
}

.custom-btn-group .link {
  color: var(--white-color);
  font-weight: var(--font-weight-medium);
}

.custom-btn-group .link:hover {
  color: var(--link-hover-color);
}

/* Global Form Styles */
.custom-form .form-control {
  border-radius: var(--border-radius-large);
  border-width: 2px;
  box-shadow: none;
  color: var(--p-color);
  margin-bottom: 20px;
  padding: 10px;
  padding-left: 20px;
  outline: none;
}

.custom-form .form-control:focus,
.custom-form .form-control:hover {
  border-color: var(--dark-color);
}

.form-floating>label {
  padding-left: 20px;
}

.custom-form button[type="submit"] {
  background: var(--custom-btn-bg-color);
  border: none;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-medium);
  transition: all 0.3s;
  margin-bottom: 0;
  padding-left: 10px;
}

.custom-form button[type="submit"]:hover,
.custom-form button[type="submit"]:focus {
  background: var(--custom-btn-bg-hover-color);
  border-color: transparent;
}

/* Social Icon Styles */
.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon-item {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  background: var(--secondary-color);
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  display: block;
  margin-right: 5px;
  text-align: center;
  width: 35px;
  height: 35px;
  line-height: 36px;
  transition: background 0.2s, color 0.2s;
}

.social-icon-link:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

/* Responsive Typography */
@media screen and (max-width: 991px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  h4 {
    font-size: 20px;
  }

  h5 {
    font-size: 18px;
  }

  h6 {
    font-size: 16px;
  }

  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hero-section {
    position: relative;
    top: 82px;
    margin-bottom: 82px;
  }

  .events-listing-section {
    margin-bottom: 50px;
  }

  .events-detail-section .custom-block-info {
    padding: 40px;
  }

  .events-detail-info {
    padding: 35px 25px;
  }

  .contact-info-item {
    width: 60%;
  }

  .events-detail-section .contact-info-item {
    width: 70%;
  }

  .section-bg-image {
    margin-bottom: 0;
  }

  .section-bg-image-block {
    padding: 30px;
  }

  .site-footer {
    padding-top: 20px;
    padding-bottom: 100px;
  }
}

@media screen and (max-width: 480px) {
  .navbar-brand {
    font-size: var(--p-font-size);
  }

  .navbar-brand-icon {
    width: 30px;
    height: 30px;
  }

  .navbar-brand-icon::after {
    top: 5px;
  }

  .section-bg-image-block {
    padding: 30px;
  }

  .contact-info-item {
    width: 72%;
  }
}

@media screen and (max-width: 360px) {
  .custom-btn {
    font-size: 12px;
    padding: 4px 12px;
  }
}

/* Global Title Styling - Consistent across all components */
.component-title,
.location-title,
.regels-title {
  font-size: var(--h4-font-size) !important;
  font-family: var(--heading-font-family) !important;
  font-weight: var(--font-weight-medium) !important;
  color: var(--dark-color) !important;
  letter-spacing: -1px !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

/* Primary button styling - dark blue color */
.primary-button,
.contact-button.primary,
.custom-form button[type="submit"] {
  background: var(--primary-color) !important;
  color: var(--white-color) !important;
  font-family: var(--body-font-family) !important;
  font-weight: var(--font-weight-medium) !important;
}

.primary-button:hover,
.contact-button.primary:hover,
.custom-form button[type="submit"]:hover {
  background: var(--secondary-color) !important;
  color: var(--white-color) !important;
}