/* ═══════════════════════════════════════════════════════
   ANNOUNCEMENTS — announcement.css
   Updated header/hero to match advertisements.css style
   Laguna BelAir 4 HOA
═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --green-900: #062e22;
  --green-800: #0a4d3c;
  --green-700: #0e6650;
  --green-600: #138a6a;
  --green-400: #3dbe92;
  --green-200: #a8e6ce;
  --green-100: #d4f3e7;
  --green-50:  #edfaf4;

  --warm-50:   #faf9f6;
  --warm-100:  #f2f0eb;
  --warm-200:  #e4e0d8;

  --neutral-900: #1a1a1a;
  --neutral-700: #3d3d3d;
  --neutral-500: #6b7280;
  --neutral-400: #9ca3af;
  --neutral-300: #d1d5db;
  --neutral-200: #e9eaec;
  --neutral-100: #f3f4f6;
  --neutral-50:  #f9fafb;

  --red-600:   #c0392b;
  --red-50:    #fef2f2;
  --amber-600: #d97706;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.09);
  --shadow-md: 0 4px 20px rgba(0,0,0,.11);
  --shadow-lg: 0 12px 40px rgba(10,77,60,.14);

  --radius:    14px;
  --radius-sm: 8px;

  --transition: .2s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--warm-50);
  color: var(--neutral-900);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════
   HEADER / NAV (updated to match advertisements.css)
═══════════════════════════════════════════════════════ */
.top-header-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 18px 0;
  width: auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition);
}
.logo-link:hover { opacity: .8; }
.logo-image {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.35));
}

.header-center-wrapper {
  background: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
}

.navbar-two-rows {
  display: flex;
  flex-direction: column;
  min-width: 680px;
}

.navbar-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--neutral-200);
}

.navbar-top-row a {
  color: var(--green-800);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background var(--transition);
}

.navbar-top-row a:hover { background: var(--green-50); }

.nav-sep {
  color: var(--neutral-300);
  font-size: 11px;
}

.navbar-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

.nav-link,
.dropdown-toggle {
  color: var(--green-800);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  transition: background var(--transition);
}

.nav-link:hover,
.dropdown:hover > .dropdown-toggle {
  background: var(--green-50);
}

.nav-link.active,
a.active {
  background: var(--green-50);
  color: var(--green-700);
  font-weight: 600;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle i.fa-chevron-down {
  font-size: 8px;
  transition: transform .25s;
}

.dropdown:hover .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 210px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--green-800);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all .22s ease;
  z-index: 200;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile dropdown toggle via JS */
.dropdown.dropdown-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown.dropdown-open .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--neutral-700);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .18s;
}

.dropdown-menu a:hover {
  background: var(--neutral-50);
  border-left-color: var(--green-800);
  padding-left: 21px;
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION (matching advertisements.css)
═══════════════════════════════════════════════════════ */
.hero-section {
  background-image: url('BG.png');
  background-size: cover;
  background-position: center;
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6,46,34,.82) 0%, rgba(10,77,60,.75) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}

.hero-sub {
  color: rgba(255,255,255,.82);
  font-size: clamp(14px, 2vw, 17px);
  font-weight: 300;
  max-width: 620px;
  letter-spacing: .2px;
}

/* ═══════════════════════════════════════════════════════
   ANNOUNCEMENTS GRID
═══════════════════════════════════════════════════════ */
.announcements {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 40px 20px 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.announcement-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  border: 1px solid var(--neutral-200);
}

.announcement-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-800);
}

.announcement-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 20px;
}

.announcement-card h2 {
  font-size: 26px;
  color: var(--green-800);
  margin-bottom: 18px;
  font-weight: 700;
  font-family: var(--font-body);
}

.announcement-card p {
  font-size: 15px;
  color: var(--neutral-700);
  margin-bottom: 12px;
  line-height: 1.6;
}

.announcement-card .announcement-body {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}

.announcement-card .announcement-body.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.announcement-card .read-more-toggle {
  display: inline-block;
  background: none;
  border: none;
  color: var(--green-800);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0 0 18px;
  text-decoration: underline;
}

.announcement-card .read-more-toggle:hover {
  color: var(--green-700);
}

.announcement-card .read-more {
  display: inline-block;
  background: var(--green-800);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: bold;
  font-size: 14px;
  transition: background 0.3s, transform 0.2s;
}

.announcement-card .read-more:hover {
  background: var(--green-700);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: var(--green-800);
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.25);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
  font-size: .88rem;
  line-height: 1.6;
}

.footer-links li i {
  margin-right: 7px;
  color: rgba(255,255,255,.7);
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
  display: inline-block;
}

.footer-links a:hover {
  color: #b8e6d5;
  padding-left: 4px;
}

.footer-logo-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.footer-logo-link {
  display: block;
  transition: opacity .25s;
}

.footer-logo-link:hover {
  opacity: .8;
}

.footer-logo {
  width: 100px;
  height: auto;
}

.footer-bottom {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: .87rem;
  color: rgba(255,255,255,.7);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1060px) {
  .top-header-container {
    flex-direction: column;
    padding: 14px 16px;
  }
  .header-center-wrapper {
    width: 100%;
  }
  .navbar-two-rows {
    min-width: auto;
    width: 100%;
  }
  .navbar-top-row {
    justify-content: center;
  }
  .navbar-bottom-row {
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .footer-logo-section {
    grid-column: 1/-1;
    justify-content: center;
  }
  .announcements {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 280px;
  }
  .hero-title {
    font-size: 34px;
  }
  .hero-sub {
    font-size: 14px;
    max-width: 90%;
  }
  .announcements {
    padding: 28px 16px 50px;
    gap: 25px;
  }
  .nav-sep {
    display: none;
  }
  .navbar-top-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .navbar-bottom-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-section h3 {
    text-align: center;
  }
  .footer-links {
    text-align: center;
  }
  .footer-logo-section {
    justify-content: center;
  }
  .announcements {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo-image {
    width: 100px;
  }
  .navbar-top-row a {
    padding: 3px 6px;
    font-size: 11px;
  }
  .navbar-bottom-row .nav-link,
  .navbar-bottom-row .dropdown-toggle {
    font-size: 11px;
    padding: 5px 7px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-sub {
    font-size: 12px;
  }
  .announcement-card h2 {
    font-size: 22px;
  }
  .announcement-card {
    padding: 20px;
  }
}