/* Global Styles */
:root {
    /* Color Variables - based on the Figma design */
    --primary-color: #006BB6; /* Blue */
    --secondary-color: #232323; /* Dark gray/black */
    --accent-color: #005bc0; /* Darker blue */
    --text-color: #232323;
    --light-text: #4a4a4a;
    --bg-color: #ffffff;
    --light-bg: #f5f8fc;

    /* Typography Variables */
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Inter', sans-serif;

    /* Layout tokens */
    --header-height: 80px;
}

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

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 700;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 140px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: #2553aa; /* Darker shade of the primary blue */
    border-color: #2553aa;
    color: white;
}

.secondary-btn {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Header Styles */
header {
    padding: 0; /* remove vertical padding so header is exactly --header-height tall */
    position: fixed;
    height: var(--header-height, 80px);
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-color);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.12);
}

/* Header Buttons Specific Styles */
header .primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
}

/* CTA menu (optional) */
.auth-buttons .nav-cta-list { list-style:none; display:flex; gap:20px; align-items:center; margin:0; padding:0; }
.auth-buttons .nav-cta-list a { color: var(--text-color); font-weight:500; font-size:18px; padding:8px 12px; }
.auth-buttons .nav-cta-list .menu-item a:hover { color: var(--primary-color); }
/* Branded Sign up button style inside CTA menu */
/* Note: WP adds custom CSS classes to the <li> element, not the <a>.
   Target the anchor inside a menu item that has the class. */
.auth-buttons .nav-cta-list li.primary-btn > a,
.auth-buttons .nav-cta-list li.menu-item--primary > a,
.auth-buttons .nav-cta-list li.is-primary > a {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
    padding: 8px 20px; /* match header button sizing */
    border-radius: 6px;
    font-weight: 600;
}
.auth-buttons .nav-cta-list li.primary-btn > a:hover,
.auth-buttons .nav-cta-list li.menu-item--primary > a:hover,
.auth-buttons .nav-cta-list li.is-primary > a:hover {
    background-color: #2553aa;
    border-color: #2553aa;
    color: #fff;
}

header .primary-btn:hover {
    background-color: #2553aa; /* Darker shade of blue */
    border-color: #2553aa;
}

header .secondary-btn {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
}

header .secondary-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height, 80px); /* vertically center contents */
}

/* Hide duplicate first H1 in content for legal pages, since the template prints the title in the hero */
body.page-privacy-policy .entry-content h1:first-of-type,
body.page-terms-of-service .entry-content h1:first-of-type,
body.page-user-agreement .entry-content h1:first-of-type,
body.page-cookie-policy .entry-content h1:first-of-type,
body.page-copyright-policy .entry-content h1:first-of-type,
body.page-eula .entry-content h1:first-of-type { display: none; }

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 35px;
}

.logo img {
    height: 100%;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin: 0 12px; /* Increased spacing between menu items */
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 18px;
    padding: 8px 0; /* Added vertical padding */
    display: inline-block;
}

nav ul li a.active,
nav ul li a:hover {
    color: var(--primary-color);
}

/* Native WP menu + overflow */
.site-nav { display:flex; align-items:center; gap:16px; min-width:0; }
.site-nav .nav-list { display:flex; align-items:center; flex-wrap:nowrap; gap:20px; white-space:nowrap; }
.site-nav .menu-item-has-children { position:relative; }
.site-nav .menu-item-has-children > a::after { content:"▾"; margin-left:6px; font-size:12px; }
.site-nav .sub-menu { position:absolute; left:0; top:100%; background:#fff; border:1px solid rgba(0,0,0,.1); border-radius:6px; padding:8px 0; min-width:200px; box-shadow:0 8px 24px rgba(0,0,0,.08); display:none; z-index:1001; }
.site-nav .sub-menu li { margin:0; }
.site-nav .sub-menu a { padding:8px 14px; display:block; font-size:15px; }
.site-nav .menu-item-has-children:focus-within > .sub-menu,
.site-nav .menu-item-has-children:hover > .sub-menu { display:block; }

/* More overflow */
.nav-more { position:relative; }
.nav-more__toggle { background:transparent; border:1px solid rgba(0,0,0,.15); padding:6px 10px; border-radius:6px; cursor:pointer; }
.nav-more__menu { position:absolute; right:0; top:100%; background:#fff; border:1px solid rgba(0,0,0,.1); border-radius:6px; padding:8px 0; min-width:200px; box-shadow:0 8px 24px rgba(0,0,0,.08); }
.nav-more__menu li { margin:0; }
.nav-more__menu a { padding:8px 14px; display:block; }

/* === Desktop Mega Menu (opt-in via menu item class "mega") === */
@media (min-width: 992px) {
  header .site-nav .menu-item.mega { position: relative; }

  header .site-nav .menu-item.mega > .sub-menu {
    /* Make the mega panel span the full menubar width and sit directly under the fixed header */
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height, 80px); /* start exactly where the menubar ends */
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-top: 0; /* avoid double line with menubar bottom border */
    border-radius: 0; /* flush with menubar edges */
    box-shadow: 0 24px 48px rgba(0,0,0,.12);
    padding: 24px;
    z-index: 1001;
    display: none; /* open on hover/focus */
    grid-template-columns: 2fr 1fr; /* left: featured tiles; right: link list */
    gap: 24px 32px;
    grid-auto-flow: row dense; /* allow backfilling so Featured can appear at the top even if added later */
    align-items: start; /* top-align both columns */
  }

  /* Add invisible hover bridge to prevent menu closing when moving mouse to submenu */
  header .site-nav .menu-item.mega > .sub-menu::before {
    content: '';
    position: absolute;
    /* Hover bridge: small overlap to avoid flicker without covering header buttons */
    top: -6px;
    left: 0;
    right: 0;
    height: 6px;
    background: transparent;
  }

  /* Open interactions */
  header .site-nav .menu-item.mega:hover > .sub-menu,
  header .site-nav .menu-item.mega:focus-within > .sub-menu { display: grid; }

  /* Increase hit area: make top-level nav links fill the header height */
  header .site-nav .nav-list > li > a {
    display: flex;
    align-items: center;
    height: var(--header-height, 80px);
    padding: 0 10px;
  }

  /* Allow ESC-to-close (toggled by JS) */
  header .site-nav .menu-item.mega.esc-closed > .sub-menu { display: none !important; }

  /* Column groups */
  header .site-nav .menu-item.mega > .sub-menu > li { position: static; margin: 0; padding: 0; }

  /* Section heading (use a child item as label, optionally with href="#") */
  header .site-nav .menu-item.mega > .sub-menu > li > a {
    display: block;
    padding: 8px 10px;
    font-weight: 600;
    color: var(--text-color);
    border-radius: 6px;
  }
  /* Right column list items appearance (non-featured second level) */
  header .site-nav .menu-item.mega > .sub-menu > li:not(.featured-col) > a {
    padding: 10px 0;
    border-radius: 4px;
  }
  header .site-nav .menu-item.mega > .sub-menu > li:not(.featured-col) > a:hover {
    background: rgba(0,0,0,.04);
    color: var(--primary-color);
  }
  header .site-nav .menu-item.mega > .sub-menu > li > a[href="#"] { pointer-events: none; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--primary-color); padding: 8px 0; }
  header .site-nav .menu-item.mega > .sub-menu > li > a:hover { background: rgba(0,0,0,.04); color: var(--primary-color); }

  /* Links inside each column */
  header .site-nav .menu-item.mega > .sub-menu > li > .sub-menu {
    list-style: none; margin: 8px 0 0; padding: 0;
    /* Override default dropdown positioning for nested lists inside mega */
    position: static; top: auto; left: auto; min-width: 0; background: transparent; border: 0; box-shadow: none;
    display: block;
  }
  header .site-nav .menu-item.mega > .sub-menu > li > .sub-menu > li > a { display:block; padding:8px 0; color: var(--text-color); }
  header .site-nav .menu-item.mega > .sub-menu > li > .sub-menu > li > a:hover { color: var(--primary-color); }
  /* Remove caret arrow from headings inside the mega panel */
  header .site-nav .menu-item.mega > .sub-menu > li > a::after { content: none; }

  /* Featured column and tiles (rightmost column) */
  /* Place Featured area in the left column, list items in the right */
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col { grid-column: 1; grid-row: 1; }
  header .site-nav .menu-item.mega > .sub-menu > li:not(.featured-col) { grid-column: 2; }
  /* Visual vertical divider for the right list column */
  header .site-nav .menu-item.mega > .sub-menu > li.links-col {
    align-self: stretch;
    border-left: 1px solid rgba(0,0,0,.10);
    padding-left: 24px;
    margin-left: 4px; /* tiny offset so the border doesn’t hug tiles */
  }
  /* Style the Links column heading like an H3-sized label, without affecting other headings */
  header .site-nav .menu-item.mega > .sub-menu > li.links-col > a[href="#"] {
    display: block;
    padding: 0 0 8px;
    font-weight: 700;
    font-size: 20px; /* approx H3 size in this theme */
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-color);
  }
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > a[href="#"] { margin-bottom: 6px; }
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > a[href="#"] { display: none; margin: 0; }
  /* Two tiles side-by-side */
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > .sub-menu > li > a {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 220px; /* increased from 160px */
    padding: 14px 14px;
    border-radius: 14px;
    color: #fff;
    background-image: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.15)), url('../images/hero-image1.jpg'); /* placeholder background */
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: transform .15s ease, box-shadow .15s ease;
  }
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > .sub-menu > li > a:hover { box-shadow: 0 6px 18px rgba(0,0,0,.14); transform: translateY(-1px); }
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > .sub-menu > li > a:focus { outline: 2px solid var(--primary-color); outline-offset: 2px; }

  /* Optional per-tile background mapping (add these classes on tile menu items) */
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > .sub-menu > li.tile-about > a {
    background-image: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.15)), url('../images/titles/tile-about.jpg');
  }
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > .sub-menu > li.tile-newsroom > a {
    background-image: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.15)), url('../images/titles/tile-newsroom.jpg');
  }
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > .sub-menu > li.tile-camera-owners > a {
    background-image: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.15)), url('../images/titles/tile-camera-owners.jpg');
  }
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > .sub-menu > li.tile-law-enforcement > a {
    background-image: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.15)), url('../images/titles/tile-law-enforcement.jpg');
  }

  /* Optional variants using -opt images: add class .opt2 or .opt3 on the tile <li> to switch */
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > .sub-menu > li.tile-about.opt2 > a {
    background-image: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.15)), url('../images/titles/tile-about-opt2.jpg');
  }
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > .sub-menu > li.tile-newsroom.opt2 > a {
    background-image: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.15)), url('../images/titles/tile-newsroom-opt2.jpg');
  }
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > .sub-menu > li.tile-camera-owners.opt2 > a {
    background-image: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.15)), url('../images/titles/tile-camera-owners-opt2.jpg');
  }
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > .sub-menu > li.tile-law-enforcement.opt2 > a {
    background-image: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.15)), url('../images/titles/tile-law-enforcement-opt2.jpg');
  }
  header .site-nav .menu-item.mega > .sub-menu > li.featured-col > .sub-menu > li.tile-law-enforcement.opt3 > a {
    background-image: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.15)), url('../images/titles/tile-law-enforcement-opt3.jpg');
  }
}

.auth-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(0, 107, 182, 0.1);
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 2001; /* Higher than the mobile menu */
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-menu-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--secondary-color);
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-button span:nth-child(1) {
    top: 10px;
}

.mobile-menu-button span:nth-child(2) {
    top: 15px;
}

.mobile-menu-button span:nth-child(3) {
    top: 20px;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 15px;
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 15px;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    height: -webkit-fill-available; /* For iOS */
    height: calc(var(--vh, 1vh) * 100); /* Custom height property for mobile browsers */
    background-color: white;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transform: translateY(-100%); /* Change from left to top slide */
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.mobile-logo {
    height: 24px;
    width: auto;
    max-width: 110px;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
}

.mobile-menu-links a {
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-links a:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-category {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    padding: 10px 0;
    border-bottom: 2px solid var(--primary-color);
}

.mobile-menu-cta {
    margin: 20px 0;
}

.learn-more-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    width: 100%;
}

.mobile-menu-auth {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.sign-in-btn {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
}

.register-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    width: 100%;
    margin-top: 15px;
}

.mobile-menu-spacer {
    flex-grow: 1; /* This will push everything up to the top */
}

/* Hero Section */
.hero {
    padding: 0;
    position: relative;
    height: 800px;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-image: url('../images/hero-image1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

/* Call to Action Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--bg-color);
}

.cta-section h2 {
    margin-bottom: 25px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.cta-section p {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
}

.cta-button {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cta-section .secondary-btn,
.cta-section .primary-btn {
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px;
}

.cta-section .secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-section .primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.cta-section .secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.cta-section .primary-btn:hover {
    background-color: #2553aa; /* Darker shade of primary blue */
    border-color: #2553aa;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-content {
    max-width: 650px;
}

.hero-content h1 {
    margin-bottom: 10px;
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 700;
}

.hero-content h1 span {
    color: #FFC107;
    display: block;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: white;
    max-width: 600px;
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 30px;
}

.hero-buttons .primary-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #FFC107;
    border-color: #FFC107;
    color: #232323;
}

.hero-buttons .primary-btn:hover {
    background-color: #E5AC00; /* Darker shade of the yellow */
    border-color: #E5AC00;
}

.hero-caption {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 100%;
    text-align: right;
    z-index: 2;
    padding: 0 20px;
    font-size: 1.5em;
}

.hero-caption p {
    color: white;
    background-color: rgba(0, 0, 0, 0.25);
    display: inline-block;
    padding: 15px 45px;
    border-radius: 4px;
    margin: 0;
    max-width: 800px;
    line-height: 1.5;
    text-align: center;
}

/* Neighborhood Section */
.neighborhood-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.neighborhood-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.neighborhood-content {
    flex: 1;
}

.neighborhood-content h2 {
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.neighborhood-content .highlight {
    color: var(--primary-color);
    font-size: 1.2em;
}

.neighborhood-content p {
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.neighborhood-image {
    flex: 1;
    max-width: 550px;
}

.neighborhood-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Actions Section */
.actions-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.actions-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.actions-content {
    flex: 1;
}

.actions-content h2 {
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.actions-content .highlight {
    color: var(--primary-color);
    font-size: 1.2em;
}

.actions-content p {
    margin-bottom: 30px;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.actions-image {
    flex: 1;
    max-width: 550px;
}

.actions-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Steps Section */
.steps-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.steps-section h2 {
    margin-bottom: 50px;
}

.steps-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    padding: 30px;
    border-radius: 10px;
    background-color: var(--bg-color);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    margin: 0 auto 20px;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon img {
    width: 100%;
    height: auto;
}

/* Safety Section */
.safety-section {
    padding: 80px 0;
    background-color: var(--bg-color);
    text-align: center;
}

.safety-section h2 {
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.safety-section p {
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}

.video-container {
    /*max-width: 800px;*/
    margin: 0 auto;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.video-container img,
.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent white;
    margin-left: 4px;
}

/* Community Section */
.community-section {
    padding: 60px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.community-section h2 {
    margin-bottom: 20px;
}

.community-section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    align-items: start;
}

.faq-header {
    text-align: left;
}

.faq-header h2 {
    text-align: left;
    margin-bottom: 0;
    line-height: 1.2;
    font-weight: 700;
}

.faq-container {
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background-color: var(--secondary-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-toggle::before {
    width: 2px;
    height: 12px;
}

.faq-toggle::after {
    width: 12px;
    height: 2px;
}

.faq-item.active .faq-toggle::before {
    display: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 15px;
}

/* Testimonial Section */
.testimonial-section {
    padding: 60px 0;
    background-color: var(--light-bg);
    color: var(--text-color);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-slider-container {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 500%; /* For 5 testimonials */
}

.testimonial-slide {
    width: 20%; /* 1/5 of the slider width */
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.4s ease;
    padding: 0 20px;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-quote blockquote {
    font-size: 1.3rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
}

.testimonial-author {
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-color);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.contact-section .container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.contact-content {
    flex: 1;
}

.contact-content h2 {
    margin-bottom: 30px;
}

.contact-form {
    max-width: 800px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 18px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-disclaimer {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-top: 20px;
}

.contact-image {
    flex: 1;
    max-width: 450px;
    margin-top: 50px;
}

.contact-image img {
    width: 100%;
    height: auto;
}

/* Footer Styles */
footer {
    background-color: #222a3f;
    color: white;
    padding: 60px 0 20px;
}

/* By default show desktop footer; mobile variant is toggled via media queries */
.footer-desktop {
    display: block;
}

.footer-mobile {
    display: none;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

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

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.footer-column ul li a:hover {
    color: white;
}

.newsletter-form {
    display: flex;
    margin-bottom: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-family: var(--body-font);
    font-size: 0.9rem;
}

.newsletter-form button {
    border-radius: 0 4px 4px 0;
    padding: 10px 15px;
}

.newsletter-form .primary-btn:hover {
    background-color: #2553aa; /* Darker shade of the primary blue */
    border-color: #2553aa;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #2553aa; /* Darker shade of the primary blue */
}

.social-links a img {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Shared Marketing Page Styles (About, Investors, etc.) */

/* Hero banner (gradient + centered content) */
.page-hero { background: linear-gradient(90deg, #0f172a, #1f2937); color: #fff; padding: 128px 0 72px; }
.page-hero .page-hero-content { max-width: 860px; margin: 0 auto; text-align: center; }
.page-hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 12px 0; letter-spacing: -0.02em; }
.page-hero .hero-subtitle { color: #e5e7eb; max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.6; }

/* Legacy about-hero support (kept for backward compatibility) */
.about-hero { background-color: var(--light-bg); padding: 120px 0 80px; text-align: center; }
.about-hero-content { max-width: 800px; margin: 0 auto; }
.about-hero h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.5rem; color: var(--light-text); max-width: 700px; margin: 0 auto; line-height: 1.6; }

.mission-section,
.technology-section {
  padding: 100px 0;
}

.mission-section .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.mission-content {
  flex: 1;
}

.mission-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.mission-image img {
  width: 100%;
  height: auto;
  display: block;
}

.features-section {
  background-color: var(--light-bg);
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  margin-bottom: 20px;
  height: 60px;
  display: flex;
  align-items: center;
}

.feature-icon img {
  height: 60px;
  width: auto;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.technology-section {
  background-color: var(--bg-color);
  position: relative;
}

.technology-grid {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
}

.technology-content {
  flex: 1.2;
  text-align: left;
}

.technology-content h2 {
  margin-bottom: 25px;
}

.technology-image {
  flex: 0.8;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  background-color: var(--light-bg);
}

.technology-image:hover {
  transform: translateY(-5px);
}

.technology-image img {
  width: 100%;
  height: auto;
  display: block;
}

.technology-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.technology-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

.tech-image {
  filter: none;
}

.values-section {
  padding: 100px 0;
  background-color: var(--light-bg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.value-card {
  padding: 30px;
  background-color: var(--bg-color);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.about-cta-section { background: #111827; color: #fff; padding: 48px 0; text-align: center; position: relative; z-index: 1; }
.about-cta-section h2 { color: #fff; margin-bottom: 20px; }
.about-cta-section p { max-width: 700px; margin: 0 auto 30px; font-size: 1.2rem; color: #fff; opacity: 0.95; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta-buttons .primary-btn { background-color: var(--primary-color); color: #fff; }
.cta-buttons .primary-btn:hover { background-color: #2553aa; }
.cta-buttons .secondary-btn { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: #fff; }
.cta-buttons .secondary-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.65); color: #fff; }

/* About Page Responsive Styles */
@media (max-width: 992px) {
  .mission-section .container,
  .technology-grid {
    flex-direction: column;
  }
  
  .technology-image {
    order: -1;
    margin-bottom: 30px;
  }
  
  .about-hero {
    padding: 100px 0 60px;
  }
  
  .about-hero h1 {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .mission-section,
  .technology-section,
  .features-section,
  .values-section {
    padding: 70px 0;
  }
  
  .feature-card,
  .value-card {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .about-hero {
    padding: 80px 0 50px;
  }
  
  .about-hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content, 
.neighborhood-content, 
.actions-content,
.step-card,
.testimonial-quote,
.contact-content,
.support-form-container,
.support-card,
.resource-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.neighborhood-image, 
.actions-image {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-image {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.actions-image {
    transform: translateX(-30px);
}

.hero-content.animate, 
.neighborhood-content.animate, 
.actions-content.animate,
.step-card.animate,
.testimonial-quote.animate,
.contact-content.animate,
.support-form-container.animate,
.support-card.animate,
.resource-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.neighborhood-image.animate, 
.actions-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.contact-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.step-card:nth-child(1) {
    transition-delay: 0.1s;
}

.step-card:nth-child(2) {
    transition-delay: 0.2s;
}

.step-card:nth-child(3) {
    transition-delay: 0.3s;
}

.support-card:nth-child(1) {
    transition-delay: 0.1s;
}

.support-card:nth-child(2) {
    transition-delay: 0.2s;
}

.support-card:nth-child(3) {
    transition-delay: 0.3s;
}

.resource-card:nth-child(1) {
    transition-delay: 0.1s;
}

.resource-card:nth-child(2) {
    transition-delay: 0.2s;
}


/* Form Error Styles */
.error {
    border-color: #ff3860 !important;
}

.error-message {
    color: #ff3860;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Contact Support Page Styles */
.support-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.support-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: start;
}

.support-form-container {
    padding: 40px;
    background-color: white;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.support-form-container h2 {
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.support-form input,
.support-form select,
.support-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 18px;
    background-color: white;
    transition: border-color 0.3s ease;
}

.support-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232323' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

 .support-form .btn {
    align-self: flex-start;
    padding: 12px 30px;
    font-size: 1rem;
 }

 /* Ensure CF7 submit button uses theme primary styles by default */
 .support-form .wpcf7-submit.btn.primary-btn,
 .wpcf7 form .wpcf7-submit.btn.primary-btn,
 .wpcf7 .wpcf7-submit.btn.primary-btn,
 input.wpcf7-submit.btn.primary-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
 }
 .support-form .wpcf7-submit.btn.primary-btn:hover,
 .wpcf7 form .wpcf7-submit.btn.primary-btn:hover,
 .wpcf7 .wpcf7-submit.btn.primary-btn:hover,
 input.wpcf7-submit.btn.primary-btn:hover {
    background-color: #2553aa;
    border-color: #2553aa;
    color: #fff;
 }

.support-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.support-card {
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
}

.support-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.support-card p {
    margin-bottom: 20px;
    color: var(--light-text);
}

.support-contact {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 10px;
    text-decoration: none;
}

.support-contact:hover {
    color: var(--primary-color);
}

.email-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background-color: var(--light-bg);
    padding: 10px 15px;
    border-radius: 4px;
}

.support-email {
    flex: 1;
    font-size: 18px;
    color: var(--secondary-color);
}

.copy-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.support-hours {
    font-size: 0.85rem;
    color: var(--light-text);
    font-style: italic;
    margin-top: 10px;
}

.support-card .btn {
    margin-top: 15px;
}

.kb-link {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    margin-top: 10px;
}

.kb-link svg {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.kb-link:hover {
    color: var(--accent-color);
}

.kb-link:hover svg {
    transform: translateX(5px);
}

/* Resources Section */
.resources-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.resources-section h2 {
    margin-bottom: 50px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.resource-card {
    padding: 40px 30px;
    background-color: white;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.resource-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.resource-card p {
    margin-bottom: 20px;
    color: var(--light-text);
}

.resource-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.resource-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.resource-link:hover {
    color: var(--accent-color);
}

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

/* Events page layout */
.events-layout { display:grid; grid-template-columns: 2.2fr 1fr; gap: 30px; padding: 48px 0; }
.events-main { min-width: 0; }
.events-sidebar .widget { background:#fff; border:1px solid rgba(0,0,0,0.08); border-radius:8px; padding:16px; margin-bottom:16px; }
.events-sidebar .widget-title { font-size:16px; font-weight:600; margin:0 0 10px; }
/* Ensure TEC widget titles are visible */
.events-sidebar .tribe-events-widget-events-list__event-title,
.events-sidebar .tribe-events-widget-events-list__event-title a { display:block; color: var(--text-color); font-weight:600; font-size: 15px; }

/* Single event: remove unwanted top padding/margin carried over from blog styles */
body.single-event .site-main .container > article { padding-top: 0; }
body.single-event .entry-content > *:first-child { margin-top: 0; }

/* Harmonize TEC with theme colors */
.tribe-common a { color: var(--primary-color); }
.tribe-common a:hover { color: var(--accent-color); }
.tribe-events .tribe-events-c-cta__button,
.tribe-events .tribe-common-c-btn { background: var(--primary-color); border-color: var(--primary-color); color:#fff; }
.tribe-events .tribe-common-c-btn:hover { background:#2553aa; border-color:#2553aa; }
.tribe-events .tribe-events-calendar-month__day-date { font-weight:600; }

@media (max-width: 992px) { .events-layout { grid-template-columns: 1fr; } }

/* Support Page Responsive Styles */
@media (max-width: 991px) {
    .support-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .support-form-container {
        padding: 30px;
    }
    
    .support-info {
        order: -1;
    }
}

/* === Blog Sidebar (News/Press) === */
.sidebar .widget { background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:10px; padding:16px; margin-bottom:20px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
/* Normalize inner spacing so a Heading + list read as one card */
.sidebar .widget > *:first-child { margin-top: 0; }
.sidebar .widget > *:last-child { margin-bottom: 0; }
.sidebar .widget-title { font-size:18px; font-weight:700; margin:0 0 12px; position:relative; }
.sidebar .widget-title::after { content:""; display:block; width:48px; height:3px; background: var(--primary-color); margin-top:8px; border-radius:2px; }

/* === Blog Listing Grid & Cards (News/Press) === */
.post-list .blog-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:24px; }
.post-card { background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:10px; overflow:hidden; box-shadow: 0 1px 2px rgba(0,0,0,.03); display:flex; flex-direction:column; }
.post-card .post-thumb { display:block; }
.post-card .post-thumb img { width:100%; height:auto; display:block; object-fit:cover; aspect-ratio: 16/9; }
.post-card .post-content { padding:16px; }
.post-card .post-title { margin:0 0 6px; font-size:22px; line-height:1.3; }
.post-card .post-title a { color: var(--text-color); text-decoration:none; }
.post-card .post-title a:hover { color: var(--primary-color); }
.post-card .post-meta { margin:0 0 10px; color: var(--muted-color, #6b7280); font-size:14px; }
.post-card .post-excerpt { color: var(--light-text); }
.post-card .post-read-more-wrap { margin-top: 10px; }
.post-card .post-read-more { color: var(--primary-color); text-decoration: none; font-weight:600; }
.post-card .post-read-more:hover { color: var(--accent-color); }

/* First card spans both columns on larger screens */
.featured-card { grid-column: span 2; }

/* Align sidebar with post list: add same top padding as section when sidebar follows post-list */
.post-list ~ .sidebar { padding-top: 80px; margin-top: 0; }

/* Archive/category pages: same sidebar offset */
.archive .site-main .container .sidebar { padding-top: 80px; }

/* Archive list styling */
.archive-list .post-item { padding: 20px 0; border-bottom: 1px solid rgba(0,0,0,.12); }
.archive-list .post-item:first-child { padding-top: 0; }
.archive-list .post-item:last-child { border-bottom: 0; }
.archive-list .post-title { margin: 0 0 6px; }
.archive-list .post-meta { color: var(--muted-color, #6b7280); font-size: 14px; margin: 0 0 10px; }

/* Single post: align sidebar with article content */
@media (min-width: 769px) {
  body.single .site-main .container > article { padding-top: 80px; }
  body.single .site-main .container article + .sidebar { padding-top: 80px; }
}


/* Single post: featured image containment */
body.single .post-featured-image { overflow: hidden; border-radius: 10px; }
body.single .post-featured-image img { width: auto; max-width: 100%; height: auto; max-height: 560px; display: block; object-fit: contain; margin-left: auto; margin-right: auto; }
body.single .entry-content img { max-width: 100%; height: auto; }

/* Responsive adjustments */
@media (max-width: 992px) { .post-list .blog-grid { grid-template-columns: 1fr; } .featured-card { grid-column: span 1; } }

/* Ensure single Event pages do not inherit blog top spacing */
body.single.single-event .site-main .container > article { padding-top: 24px !important; }
/* Normalize vertical rhythm inside the event content */
body.single-event .entry-content { padding-top: 0 !important; }
body.single-event .entry-content > * { margin-top: 16px; }
body.single-event .entry-content > *:first-child { margin-top: 0 !important; }
body.single-event .entry-content h2,
body.single-event .entry-content h3 { margin-top: 16px; }
/* Guard against stray large placeholders above content (e.g., empty map rows) */
body.single-event .entry-content .em-location-map:empty,
body.single-event .entry-content .em-map-container:empty { display: none; }

/* Event detail pages: do not apply the global section padding inside rich content */
body.single-event .entry-content section { padding: 0 !important; margin-top: 16px; margin-bottom: 16px; }

/* Categories (Gutenberg block) */
.sidebar .wp-block-categories-list { list-style:none; margin:0; padding:0; }
.sidebar .wp-block-categories-list li { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid rgba(0,0,0,.06); }
.sidebar .wp-block-categories-list li:last-child { border-bottom:0; }
.sidebar .wp-block-categories-list a { color: var(--text-color); text-decoration:none; }
.sidebar .wp-block-categories-list a:hover { color: var(--primary-color); text-decoration: none; }
.sidebar .wp-block-categories__post-count { color: var(--muted-color, #6b7280); font-size:12px; }

/* Categories (classic widget fallback) */
.sidebar .widget_categories ul { list-style:none; margin:0; padding:0; }
.sidebar .widget_categories li { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid rgba(0,0,0,.06); }
.sidebar .widget_categories li:last-child { border-bottom:0; }
.sidebar .widget_categories a { color: var(--text-color); text-decoration:none; }
.sidebar .widget_categories a:hover { color: var(--primary-color); }

/* Latest posts (Gutenberg block) */
.sidebar .wp-block-latest-posts__list { list-style:none; margin:0; padding:0; }
.sidebar .wp-block-latest-posts__list li { display:flex; gap:12px; padding:12px 0; border-bottom:1px solid rgba(0,0,0,.06); }
.sidebar .wp-block-latest-posts__list li:last-child { border-bottom:0; }
.sidebar .wp-block-latest-posts__featured-image img { width:64px; height:64px; object-fit:cover; border-radius:8px; display:block; }
.sidebar .wp-block-latest-posts__post-title { color: var(--text-color); font-weight:600; text-decoration:none; }
.sidebar .wp-block-latest-posts__post-title:hover { color: var(--primary-color); }
.sidebar .wp-block-latest-posts__post-date { color: var(--muted-color, #6b7280); font-size:12px; }

/* Recent posts (classic widget fallback) */
.sidebar .widget_recent_entries ul { list-style:none; margin:0; padding:0; }
.sidebar .widget_recent_entries li { padding:10px 0; border-bottom:1px solid rgba(0,0,0,.06); }
.sidebar .widget_recent_entries li:last-child { border-bottom:0; }
.sidebar .widget_recent_entries a { color: var(--text-color); text-decoration:none; }
.sidebar .widget_recent_entries a:hover { color: var(--primary-color); }

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    
    /* Mobile Layout for Neighborhood Section */
    .neighborhood-section {
        padding: 40px 0;
    }
    
    .neighborhood-section .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .neighborhood-image {
        order: -1; /* Move image to top */
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .neighborhood-content {
        order: 1;
        text-align: center;
        max-width: 100%;
    }
    
    .neighborhood-content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .neighborhood-content .highlight {
        font-size: 1.1em;
        display: block;
    }
    
    .neighborhood-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    /* Mobile Layout for Actions Section */
    .actions-section {
        padding: 40px 0;
    }
    
    .actions-section .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .actions-image {
        order: -1; /* Move image to top */
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .actions-content {
        order: 1;
        text-align: center;
        max-width: 100%;
    }
    
    .actions-content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .actions-content .highlight {
        font-size: 1.1em;
        display: block;
    }
    
    .actions-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    /* Mobile Layout for Contact Section */
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-section .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-image {
        order: -1; /* Move image to top */
        max-width: 100%;
        margin-top: 0;
        margin-bottom: 30px;
    }
    
    .contact-content {
        order: 1;
        max-width: 100%;
    }
    
    .contact-content h2 {
        text-align: center;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .contact-form {
        max-width: 100%;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero .container,
    .neighborhood-section .container,
    .actions-section .container,
    .contact-section .container {
        gap: 30px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .auth-buttons {
        display: flex;
    }
    
    .auth-buttons .btn {
        display: none;
    }
    
    .auth-buttons .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .hero {
        height: 700px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
        max-width: 90%;
    }
    
    .faq-grid {
        grid-template-columns: 1fr 2fr;
        gap: 30px;
    }
    
    .faq-header h2 {
        font-size: 1.7rem;
        word-spacing: 0.1em;
    }
    
    .faq-header h2 br {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-caption {
        bottom: 60px;
        padding: 0 15px;
        font-size: 1.3em;
    }
    
    .hero-caption p {
        padding: 12px 20px;
        max-width: 500px;
    }
    
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
  /* Enhanced Mobile Header Design - App Consistency */
  header {
      height: 54px;
  }
  
  header .container {
      flex-wrap: nowrap;
      justify-content: space-between;
      align-items: center;
      padding: 16px;
      height: 54px;
  }
    
    /* Mobile Header Layout - Similar to App Header */
    .logo {
        order: 2;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        height: 24px;
    }
    
    .logo img {
        height: 100%;
        width: auto;
        max-width: 110px;
    }
    
    .mobile-menu-button {
        display: flex;
        order: 1;
    }
    
    /* Auth buttons styling - App consistency */
    .auth-buttons {
        display: flex;
        order: 3;
        gap: 0;
        margin: 0;
    }
    
    .auth-buttons .nav-link {
        color: var(--text-color);
        font-weight: 500;
        font-size: 18px;
        padding: 0 10px; /* remove vertical padding to avoid baseline drift */
        border-radius: 6px;
        transition: background-color 0.2s ease;
        cursor: pointer;
        min-width: 50px;
        height: 44px; /* fixed height to match hamburger tap target */
        line-height: 44px; /* fallback for non-flex centering */
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        align-self: center;
        margin: 0;
    }
    
    .auth-buttons .nav-link:hover {
        background-color: rgba(0, 107, 182, 0.1);
    }
    
    .auth-buttons .btn {
        display: none; /* Hide signup button on mobile for cleaner look */
    }
    
    /* Hide desktop navigation (header only) */
    header .site-nav {
        display: none;
        width: 100%;
        margin: 15px 0;
    }
    
    header .site-nav.active {
        display: block;
    }
    
    header .site-nav ul {
        flex-direction: column;
    }
    
    header .site-nav ul li {
        margin: 10px 0;
    }
    
    /* Rest of mobile styles */
    .cta-button {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-section .secondary-btn,
    .cta-section .primary-btn {
        width: 100%;
        max-width: 250px;
    }

    .cta-section {
        padding: 70px 0;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-header h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        word-break: normal;
        white-space: normal;
    }
    
    .faq-header h2 br {
        display: none;
    }
    
    .faq-header h2::after {
        content: " ";
    }
    
    .hero {
        height: 600px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-caption {
        font-size: 1.2em;
        bottom: 40px;
    }
    
    .hero-caption p {
        max-width: 400px;
    }
    
    .steps-cards {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .testimonial-quote blockquote {
        font-size: 1.1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Extra small screen optimizations for Neighborhood Section */
    .neighborhood-section {
        padding: 30px 0;
    }
    
    .neighborhood-section .container {
        padding: 0 15px;
    }
    
    .neighborhood-content h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .neighborhood-content .highlight {
        font-size: 1em;
    }
    
    .neighborhood-content p {
        font-size: 0.95rem;
    }
    
    .neighborhood-content .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    /* Extra small screen optimizations for Actions Section */
    .actions-section {
        padding: 30px 0;
    }
    
    .actions-section .container {
        padding: 0 15px;
    }
    
    .actions-content h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .actions-content .highlight {
        font-size: 1em;
    }
    
    .actions-content p {
        font-size: 0.95rem;
    }
    
    .actions-content .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    /* Extra small screen optimizations for Contact Section */
    .contact-section {
        padding: 30px 0;
    }
    
    .contact-section .container {
        padding: 0 15px;
    }
    
    .contact-image {
        max-width: 80%;
        margin: 0 auto 20px;
    }
    
    .contact-content h2 {
        font-size: 1.3rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .contact-form .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    .form-disclaimer {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        }
    
    .hero-caption {
        font-size: 1em;
        bottom: 20px;
        }
    
    .hero-caption p {
        max-width: 300px;
        padding: 10px 15px;
        }
    
    .hero-buttons .primary-btn {
        padding: 12px 24px;
        font-size: 1rem;
        }
    
    .hero-image,
        .neighborhood-image,
        .actions-image,
        .contact-image {
        max-width: 100%;
        }
    
    .footer-columns {
        grid-template-columns: 1fr;
        }
    
    .newsletter-form {
        flex-direction: column;
        }
    
    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px;
        }
    
    .newsletter-form button {
        border-radius: 4px;
        width: 100%;
        }

    /* Compact mobile footer layout */
    .footer-desktop {
        display: none;
    }

    .footer-mobile {
        display: block;
        padding-top: 10px;
    }

    /* Center the newsletter block but keep heading left-aligned */
    .footer-mobile-newsletter {
        max-width: 360px;
        margin: 0 auto 16px;
    }

    .footer-mobile-newsletter h3 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 8px;
        text-align: left;
    }

    /* In the compact footer keep email + button on a single line */
    .footer-mobile .newsletter-form {
        /* container stays block; inner CF7 form handles flex layout */
    }

    /* Make the CF7 form itself use a single flex row for the main controls */
    .footer-mobile .newsletter-form .wpcf7-form {
        margin: 0;
    }

    /* CF7 by default wraps controls in <p>; turn that into the flex row */
    .footer-mobile .newsletter-form .wpcf7-form > p {
        display: flex;
        align-items: stretch; /* make children equal height */
        gap: 8px;
        flex-wrap: nowrap;
        margin: 0;
    }

    /* Let the email field wrapper grow and shrink */
    .footer-mobile .newsletter-form .wpcf7-form-control-wrap {
        flex: 1 1 auto;
    }

.footer-mobile .newsletter-form input[type="email"] {
        margin-bottom: 0;
        width: 100%;
        height: 44px;
        padding: 10px 14px;
        font-size: 0.9rem;
        box-sizing: border-box;
    }

    .footer-mobile .newsletter-form .wpcf7-submit,
    .footer-mobile .newsletter-form button,
    .footer-mobile .newsletter-form input[type="submit"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: auto;
        white-space: nowrap;
        padding: 10px 16px;
        height: 44px;
        flex: 0 0 auto;
    }

    .footer-mobile-social {
        margin: 20px 0 10px;
        display: flex;
        justify-content: center;
    }

    .footer-mobile-legal {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin-bottom: 10px;
        font-size: 0.85rem;
    }

    .footer-mobile-legal a {
        color: rgba(255, 255, 255, 0.7);
    }

    .footer-mobile-legal a:hover {
        color: #ffffff;
    }

    .footer-mobile-separator {
        color: rgba(255, 255, 255, 0.4);
    }

    .footer-mobile-copy {
        text-align: center;
    }

    .footer-mobile-copy p {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.8rem;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .support-card {
        margin-bottom: 20px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
   Mobile-friendly pass (2025-10-13)
   Scope: Blog/Press + common components
   Notes:
   - Keep overrides minimal and localized
   - Respect existing tokens and breakpoints
   =============================== */
@media (max-width: 768px) {
  /* Containers: prevent horizontal scroll caused by width:90% + padding */
  .container { width: 100%; padding-left: 16px; padding-right: 16px; }

  /* Section rhythm: slightly tighter spacing on small screens */
  section { padding: 56px 0; }

  /* Header: tap targets (>=44px) */
  .mobile-menu-button { width: 44px; }
  .auth-buttons .nav-link { min-height: 44px; padding: 8px 12px; }

  /* Hero: scale and avoid overlap with fixed header */
  .page-hero { padding: 96px 0 48px; }
  /* Smooth hero typography between small phones and tablets */
  .page-hero h1 { font-size: clamp(28px, 7vw, 36px); }
  .page-hero .hero-subtitle { font-size: clamp(14px, 4vw, 18px); }

  /* Blog/Press containers: stack content and sidebar */
  .site-main .container { flex-direction: column; gap: 24px; }
  .site-main .container .sidebar { flex: 1 1 auto; width: 100%; padding-top: 40px; }

  /* Blog listing grid: ensure single column and non-spanning featured card */
  .post-list .blog-grid { grid-template-columns: 1fr; }
  .featured-card { grid-column: auto; }

  /* Single post: gently reduce tall image cap on mobile */
  body.single .post-featured-image img { max-height: 420px; }
  /* Single post: add spacing between hero and article on mobile */
  body.single .site-main .container > article { padding-top: 24px; }

  /* Forms (CF7 Support): make controls comfortable */
  .support-form input,
  .support-form select,
  .support-form textarea { min-height: 44px; }

  /* Mobile Menu polish per reference screenshots */
  /* Mobile menu list reset and spacing to match mockup */
  .mobile-menu-links ul { list-style: none; margin: 0; padding: 0 20px; }
  .mobile-menu-links li { margin: 0; }
  .mobile-menu-links li + li { border-top: 1px solid rgba(0,0,0,0.08); }
  .mobile-menu-links a { display: block; min-height: 44px; padding: 14px 0; font-size: 16px; color: var(--secondary-color); }

  /* Section headings (use placeholder items with href="#" as labels) */
  .mobile-menu-links a[href="#"] { pointer-events: none; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; color: var(--primary-color); padding: 16px 0 8px; }
  .mobile-menu-links a[href="#"] + ul,
  .mobile-menu-links a[href="#"] + li { border-top: none; }
  .mobile-menu-links a[href="#"]::after { content: ""; display: block; height: 2px; background: var(--primary-color); margin-top: 8px; width: 100%; }

  /* Auth button block at bottom */
  .mobile-auth-buttons { padding: 16px 20px 24px; border-top: 1px solid rgba(0,0,0,0.1); }
  .mobile-auth-buttons .btn { display: block; width: 100%; padding: 12px; margin-top: 12px; }
  .mobile-auth-buttons .secondary-btn { background: transparent; color: var(--primary-color); border-color: var(--primary-color); }
  /* Mobile auth buttons: stack cleanly */
  .mobile-auth-buttons .btn { display: block; width: 100%; }
  .mobile-auth-buttons .btn + .btn { margin-top: 12px; }
  /* Show Sign up inside the hamburger menu; header CTA remains hidden separately */
  .mobile-auth-buttons .primary-btn { display: block; background-color: var(--primary-color); color: #fff; border: 1px solid var(--primary-color); }

  /* Hide header CTA menu “Sign up” on mobile (keep Sign in visible) */
  .auth-buttons .nav-cta-list li.primary-btn,
  .auth-buttons .nav-cta-list li.menu-item--primary,
  .auth-buttons .nav-cta-list li.is-primary { display: none; }
}
