@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Georgia&display=swap');

:root{
  --green:#0a6b3f;
  --green-dark:#08110c;
  --green-deep:#102118;
  --gold:#d4af37;
  --cream:#f4f1e8;
  --white:#ffffff;
  --text:#1a1a1a;
  --muted:#5f6b64;
  --soft-bg:#f7f8f6;
  --card-shadow:0 8px 22px rgba(0,0,0,0.08);
  --card-shadow-hover:0 12px 26px rgba(0,0,0,0.12);
}

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

html{
  scroll-behavior:smooth;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  line-height:1.6;
  color:var(--cream);
  background:var(--green-dark);
  overflow-x:hidden;
}

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

.container {
  max-width: 1200px; /* wider than before */
  margin: 0 auto;
  padding: 0 16px;
}

.narrow{
  max-width:820px;
}

/* TOP RIBBON */
.site-top-ribbon{
  width:100%;
  background:#ffffff;
  padding:18px 20px;
  text-align:center;
  border-bottom:4px solid var(--green);
}

.site-top-ribbon-title{
  font-family:Georgia, serif;
  font-size:26px;
  font-weight:800;
  color:var(--green);
  letter-spacing:1px;
  text-transform:uppercase;
  line-height:1.3;
}

.region-highlight{
  color:var(--green);
  font-size:30px;
  font-weight:900;
}

/* HERO */
.hero{
  position:relative;
  min-height:78vh;
  max-height:820px;
  overflow:hidden;
  background:var(--green-dark);
}

.hero-banner{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  z-index:1;
  filter:brightness(0.65) contrast(1.05);
}

.hero-overlay{
  position:relative;
  z-index:2;
  min-height:78vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:
    linear-gradient(
      180deg,
      rgba(4,10,7,0.10) 0%,
      rgba(5,12,8,0.35) 30%,
      rgba(7,16,11,0.55) 65%,
      rgba(8,17,12,0.72) 100%
    );
}

.hero-content{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}

.hero-logo{
  width:110px;
  max-width:28vw;
  height:auto;
  margin:0 auto 18px;
  border-radius:50%;
  box-shadow:0 8px 28px rgba(0,0,0,0.35);
  background:rgba(255,255,255,0.05);
}

.hero h1{
  font-size:clamp(2.1rem, 4vw, 4rem);
  font-weight:800;
  letter-spacing:1px;
  margin-bottom:10px;
  color:#ffffff;
  text-transform:uppercase;
  line-height:1.1;
  text-shadow:0 4px 18px rgba(0,0,0,0.45);
}

.tagline{
  font-size:clamp(0.95rem, 2vw, 1.2rem);
  font-weight:700;
  color:var(--gold);
  margin-bottom:18px;
}

.intro{
  font-size:1rem;
  max-width:720px;
  margin:0 auto 24px;
  color:var(--cream);
  text-shadow:0 2px 10px rgba(0,0,0,0.35);
}

.cta-group{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}

.hero-privacy-note{
  margin-top:14px;
  font-size:14px;
  color:#d8e0db;
}

/* BUTTONS */
.btn{
  display:inline-block;
  padding:12px 22px;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  transition:all 0.25s ease;
  border:none;
  font-size:14px;
}

.btn.primary{
  background:var(--gold);
  color:#12271d;
  box-shadow:0 8px 20px rgba(0,0,0,0.25);
}

.btn.primary:hover{
  background:#e3c354;
  transform:translateY(-2px);
}

.btn.secondary{
  background:#1b3a2b;
  color:#ffffff;
}

.btn.secondary:hover{
  background:#0b1a14;
}

/* SHARED SECTION HEADING */
.section-heading{
  text-align:center;
  margin-bottom:28px;
  margin-bottom: 24px;
}

.section-heading h2{
  font-size:32px;
  margin-bottom:10px;
  color:var(--green-deep);
  text-align:center;
}

.section-heading p{
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
  color:#555;
  text-align:center;
}

/* COMMUNITY FEATURES */
.community-features{
  padding:72px 20px 64px;
  background:var(--cream);
  width:100%;
}

.community-features .container{
  margin-left:auto;
  margin-right:auto;
}

.community-features-heading h2{
  color:var(--green-deep);
}

.community-features-heading p{
  color:#4f5d54;
}

.community-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.community-mini-card {
  padding: 18px; /* reduce height */
  border-radius: 14px;
}

.community-mini-card{
  display:block;
  background:#ffffff;
  border-radius:18px;
  padding:22px;
  text-decoration:none;
  color:var(--green-deep);
  box-shadow:var(--card-shadow);
  transition:all 0.25s ease;
  text-align:center;
}

.community-mini-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--card-shadow-hover);
}

.community-mini-card h3{
  margin-bottom:8px;
  color:var(--green-deep);
  font-size:1.08rem;
}

.community-mini-card p{
  color:#4f5b54;
  font-size:14px;
  line-height:1.6;
}

.mini-icon{
  width:56px;
  height:56px;
  margin:0 auto 12px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  color:#fff;
}

.community-mini-card.announcements .mini-icon{
  background:#f2b705;
}

.community-mini-card.freedom .mini-icon{
  background:#1e7f4f;
}

.community-mini-card.alliances .mini-icon{
  background:#3b82f6;
}

.community-member-note{
  max-width:900px;
  margin:22px auto 0;
  text-align:center;
  color:#5d655f;
  font-size:14px;
  line-height:1.7;
  font-weight:600;
}

/* HOMEPAGE CONTENT SECTIONS */
.homepage-announcements-section,
.homepage-freedom-wall-section,
.homepage-alliances-section{
  padding:48px 20px;
  width:100%;
}

.homepage-announcements-section{
  background:#f7f5ef;
}

margin-top: 20px;

.homepage-alliances-section{
  background:#f7f5ef;
}

.homepage-announcements-section .container,
.homepage-freedom-wall-section .container,
.homepage-alliances-section .container{
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
  padding-left:16px;
  padding-right:16px;
}

.homepage-section-action{
  text-align:center;
  margin-top:20px;
}

.homepage-empty-state{
  background:#ffffff;
  border-radius:16px;
  padding:22px 18px;
  text-align:center;
  color:var(--muted);
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}

@media (max-width: 768px){
  .homepage-announcements-section,
  .homepage-freedom-wall-section,
  .homepage-alliances-section{
    padding:38px 16px;
  }

  .homepage-announcements-section .container,
  .homepage-freedom-wall-section .container,
  .homepage-alliances-section .container{
    padding-left:12px;
    padding-right:12px;
  }

  .homepage-section-action{
    margin-top:18px;
  }

  .homepage-empty-state{
    padding:18px 14px;
    border-radius:14px;
  }
}

/* =========================
   HOMEPAGE ANNOUNCEMENTS
========================= */

.homepage-announcements-wrap{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  align-items:stretch;
}

.homepage-announcement-card{
  display:flex;
  flex-direction:column;
  gap:12px;
  background:#ffffff;
  border-radius:16px;
  padding:14px;
  box-shadow:var(--card-shadow);
  width:100%;
  min-height:100%;
  margin:0;
}

.homepage-announcement-card.no-image{
  display:block;
}

.homepage-announcement-image-wrap{
  height:120px;
  background:#f1f3f2;
  border-radius:12px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

.homepage-announcement-image-wrap img{
  width:100%;
  height:100%;
  object-fit:cover; /* 🔥 better than contain */
}

/* TEXT */
.homepage-announcement-category{
  font-size:12px;
  font-weight:700;
  color:var(--green);
  margin-bottom:6px;
  text-transform:uppercase;
  letter-spacing:0.4px;
}

.homepage-announcement-content h3{
  margin:0 0 8px;
  color:var(--green-deep);
}

.homepage-announcement-content p{
  margin:0 0 10px;
  color:#4f5b54;
  line-height:1.5;
  font-size:0.9rem;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.homepage-inline-link{
  font-weight:700;
  text-decoration:none;
  color:var(--green);
}


/* =========================
   HOMEPAGE FREEDOM WALL
========================= */

.homepage-freedom-wall-wrap{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  max-width:900px;
  margin:0 auto;
}
.homepage-freedom-card{
  background:#ffffff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--card-shadow);
}

.homepage-freedom-image-wrap{
  height:170px;
  background:#eef2ef;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.homepage-freedom-image-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.homepage-freedom-content{
  padding:12px;
}

.homepage-freedom-name{
  font-weight:700;
  margin-bottom:6px;
  color:var(--green-deep);
}

.homepage-freedom-content p{
  margin:0;
  color:#4f5b54;
  line-height:1.5;
  font-size:0.9rem;
}


/* =========================
   HOMEPAGE ALLIANCES
========================= */

.homepage-alliances-board{
  width:100%;
  max-width:1100px;
  background:#ffffff;
  border:2px solid #102118;
  border-radius:16px;
  padding:16px;
  box-shadow:0 6px 18px rgba(16,33,24,0.08);
  margin:0 auto;
}

.homepage-alliances-board-inner{
  border:1px solid #102118;
  border-radius:12px;
  padding:14px;
  background:#fbfbf8;
}

/* 🔥 FLEXIBLE GRID (better than fixed 7) */
.homepage-alliances-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(120px, 1fr));
  gap:12px;
  align-items:center;
  justify-items:center;
}

.homepage-alliance-card{
  padding:6px;
  text-align:center;
  width:100%;
}

.homepage-alliance-image-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
}

.homepage-alliance-image-wrap img{
  max-width:100px;
  max-height:60px;
  object-fit:contain;
}

.homepage-alliance-name{
  font-size:0.7rem;
  font-weight:600;
  color:#102118;
  margin-top:4px;
}

.homepage-alliance-location{
  font-size:10px;
  color:#667066;
}


/* =========================
   MOBILE OPTIMIZATION
========================= */

@media (max-width:768px){

  .homepage-announcement-card{
    grid-template-columns:1fr; /* 🔥 STACK */
  }

  .homepage-announcement-image-wrap{
    min-height:180px;
  }

  .homepage-freedom-wall-wrap{
    grid-template-columns:1fr;
  }

  .homepage-alliances-grid{
    grid-template-columns:repeat(3, 1fr);
  }

}

@media (max-width:480px){

  .homepage-alliances-grid{
    grid-template-columns:repeat(2, 1fr);
  }

}

/* SECTORAL */
.sectoral-section{
  padding:80px 20px;
  background:var(--green-dark);
  width:100%;
}

.sectoral-section .container{
  margin-left:auto;
  margin-right:auto;
}

.sectoral-section .section-heading h2{
  color:var(--gold);
}

.sectoral-section .section-heading p{
  color:#c9d4ce;
}

.sector-grid,
.premium-sector-grid{
  max-width:1100px;
  margin:0 auto;
}

.privacy-note{
  margin-top:18px;
  font-size:14px;
  color:#cfd6d1;
  text-align:center;
  line-height:1.7;
}

/* PURPOSE + STORY (LIGHT BALANCED SECTION) */
.purpose-story-section{
  background:#f7f5ef; /* cream / light */
  color:#1a1a1a;
  padding:70px 20px;
  border-top:18px solid #061c13; /* dark separator above */
  border-bottom:18px solid #061c13; /* dark separator below */
}

.purpose-story-grid{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:0.95fr 1.05fr;
  gap:24px;
  align-items:start;
}

.purpose-story-left{
  display:grid;
  gap:22px;
}

/* CARDS */
.purpose-story-card{
  background:#ffffff;
  border-radius:18px;
  padding:24px;
  box-shadow:0 8px 22px rgba(0,0,0,0.08);
}

/* HEADINGS */
.purpose-story-card h2{
  margin:0 0 14px;
  font-size:1.6rem;
  color:#0f2e22; /* deep green */
}

/* TEXT */
.purpose-story-card p{
  margin:0 0 12px;
  line-height:1.7;
  font-size:0.96rem;
  color:#333;
}

/* SPECIAL: EASTERN VISAYAS CARD */
.unity-card{
  background:linear-gradient(180deg, #183325 0%, #102118 100%);
  color:#edf2ee;
}

.unity-card h2{
  color:#d4af37;
}

.unity-card p{
  color:#d7ddd8;
}

/* MOBILE */
@media (max-width:900px){
  .purpose-story-grid{
    grid-template-columns:1fr;
  }
}

/* FOOTER */
.site-footer{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:30px 14px;
  border-top:1px solid rgba(255,255,255,0.15);
  box-sizing:border-box;
  text-align:center;
}

.site-footer-inner{
  width:100%;
  max-width:900px;
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}

.footer-copyright{
  display:block;
  width:100%;
  text-align:center;
  margin:0 0 10px 0;
  font-size:14px;
  color:#e6e6e6;
}

.buildframe-credit{
  display:block;
  width:100%;
  text-align:center;
  font-size:13px;
  font-family:"Segoe UI", "Trebuchet MS", sans-serif;
  color:#bfe7ff;
  letter-spacing:0.5px;
  text-shadow:0 0 6px rgba(120,210,255,0.6);
  opacity:0.95;
}

.buildframe-credit strong{
  color:#e6f7ff;
  font-weight:600;
}

/* PAGE HEADER / ADMIN */
.page-header{
  text-align:center;
  padding:70px 20px 40px 20px;
  background:var(--green-dark);
  color:white;
  position:relative;
}

.admin-access-wrap{
  position:absolute;
  top:20px;
  right:20px;
}

.admin-access-btn{
  display:inline-block;
  padding:10px 16px;
  background:var(--green);
  color:#fff;
  text-decoration:none;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  box-shadow:0 4px 10px rgba(0,0,0,0.18);
  transition:0.2s ease;
}

.admin-access-btn:hover{
  background:#084f2e;
}

/* FREEDOM WALL HERO */
.fw-hero{
  position:relative;
  min-height:280px;
  background:
    linear-gradient(rgba(8,35,27,0.70), rgba(8,35,27,0.78)),
    url('assets/images/banner-main.jpg') center center / cover no-repeat;
  color:var(--white);
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:4px solid var(--gold);
}

.fw-hero-overlay{
  width:100%;
  padding:38px 16px 34px;
}

.fw-hero-inner{
  width:min(100%, 1100px);
  margin:0 auto;
  text-align:center;
}

.fw-hero-badge{
  width:72px;
  height:72px;
  border-radius:50%;
  margin:0 auto 14px;
  background:rgba(255,255,255,0.90);
  color:var(--green);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:28px;
  box-shadow:0 8px 24px rgba(0,0,0,0.20);
}

.fw-hero h1{
  font-size:46px;
  line-height:1.05;
  font-weight:800;
  margin-bottom:12px;
  color:#ffffff;
  text-shadow:0 2px 8px rgba(0,0,0,0.25);
}

.fw-hero p{
  max-width:760px;
  margin:0 auto;
  font-size:16px;
  line-height:1.7;
  color:#f3efe7;
}

.fw-hero-actions{
  margin-top:20px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

/* RESPONSIVE */
@media (max-width:900px){
  .why-grid{
    grid-template-columns:1fr;
  }

  .hero{
    min-height:72vh;
  }

  .hero-overlay{
    min-height:72vh;
  }
}

@media (max-width:768px){
  .site-top-ribbon-title{
    font-size:20px;
  }

  .region-highlight{
    font-size:24px;
  }

  .hero{
    min-height:68vh;
  }

  .hero-overlay{
    min-height:68vh;
    padding:34px 18px;
  }

  .hero-logo{
    width:90px;
  }

  .intro{
    font-size:0.96rem;
  }

  .btn{
    width:100%;
    max-width:330px;
  }

  .community-mini-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

 .community-mini-card{
  padding:22px 18px;
  .community-mini-card h3{
    font-size:1rem;
  }

  .community-mini-card p{
    font-size:13px;
    line-height:1.5;
  }

  .mini-icon{
    width:46px;
    height:46px;
    font-size:18px;
    margin:0 auto 10px;
  }

  .homepage-announcement-card{
    grid-template-columns:1fr;
  }

  .homepage-announcement-image-wrap{
    min-height:180px;
  }

  .homepage-alliances-grid{
    grid-template-columns:1fr;
  }

  .homepage-alliance-image-wrap{
    height:200px;
  }

  .about,
  .history,
  .principles,
  .why-join,
  .community-features,
  .homepage-announcements-section,
  .homepage-freedom-wall-section,
  .homepage-alliances-section,
  .sectoral-section{
    padding-left:16px;
    padding-right:16px;
  }

  .fw-hero h1{
    font-size:34px;
  }
}

@media (max-width:640px){
  .unity-ribbon{
    padding:26px 20px;
  }

  .why-card{
    padding:24px 18px;
  }

  .fw-hero{
    min-height:240px;
  }

  .fw-hero-badge{
    width:64px;
    height:64px;
    font-size:24px;
  }

  .fw-hero p{
    font-size:15px;
  }
}

/* =========================================
   HOMEPAGE FREEDOM WALL POLISH
========================================= */

.homepage-freedom-wall-wrap{
  margin-top:10px;
}

/* Better card spacing */
.homepage-freedom-card{
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect (desktop only feel) */
.homepage-freedom-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 24px rgba(0,0,0,0.08);
}

/* Cleaner image area */
.homepage-freedom-image-wrap{
  background:#f3f5f4;
}

/* Improve text readability */
.homepage-freedom-content p{
  font-size:0.92rem;
}

/* Fix long text overflow */
.homepage-freedom-content{
  word-break:break-word;
}

/* =========================
   WHY JOIN - CORE PRINCIPLES GRID
========================= */

.why-principles-wrap{
  margin-top:30px;
}

.why-principles-title{
  color:var(--gold);
  margin-bottom:16px;
  font-size:1.3rem;
}

.why-principles-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  max-width:980px;
  margin:0 auto;
}


/* CORE PRINCIPLES - STRONG STYLE */
.why-principles-grid .why-card{
  background:#ffffff;
  color:#0f2e22;
  border-radius:999px;
  padding:16px 22px;
  font-weight:700;
  font-size:0.95rem;
  border:2px solid #0f2e22;
  box-shadow:0 6px 14px rgba(0,0,0,0.12);
  transition:all 0.25s ease;
}

.why-principles-grid .why-card:hover{
  background:#0f2e22;
  color:#ffffff;
  transform:translateY(-3px);
}

  .homepage-alliances-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
  }

  .homepage-alliance-image-wrap{
    height:auto;
    min-height:70px;
  }
}

@media (max-width:480px){
  .why-principles-grid{
    grid-template-columns:1fr;
  }
}

/* PURPOSE + STORY + EASTERN VISAYAS UNITED */
.purpose-story-section {
  background: #061c13; /* same as your dark green */
  color: #ffffff;
}

.purpose-story-grid{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:0.95fr 1.05fr;
  gap:22px;
  align-items:start;
}

.purpose-story-left{
  display:grid;
  gap:22px;
}

.purpose-story-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,175,55,0.15);
  color: #ffffff;
}

.purpose-card{
  background:#ffffff;
  color:var(--text);
}

.unity-card{
  background:linear-gradient(180deg, #183325 0%, #102118 100%);
  color:#edf2ee;
}

.story-card{
  background:#ffffff;
  color:var(--text);
  height:100%;
}

.purpose-story-card h2{
  margin:0 0 14px;
  font-size:1.7rem;
}

.purpose-card h2,
.story-card h2{
  color:var(--green-deep);
}

.unity-card h2{
  color:var(--gold);
}

.purpose-story-card p{
  margin:0 0 12px;
  line-height:1.7;
  font-size:0.96rem;
}

.unity-card p{
  color:#d8ddd7;
}

@media (max-width: 900px){
  .purpose-story-grid{
    grid-template-columns:1fr;
  }
}

/* HOMEPAGE GALLERY */
.homepage-gallery-section{
  background:#061c13;
  padding:60px 20px 70px;
  color:#ffffff;
}

.homepage-gallery-section .container{
  max-width:1100px;
  margin:0 auto;
}

.homepage-gallery-heading h2{
  color:var(--gold);
}

.homepage-gallery-heading p{
  color:#d7ddd8;
}

.homepage-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:22px;
  max-width:1100px;
  margin:0 auto;
}

.homepage-gallery-card{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(212,175,55,0.15);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(0,0,0,0.18);
}

.homepage-gallery-image{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}

.homepage-gallery-content{
  padding:16px;
}

.homepage-gallery-content h3{
  margin:0 0 8px;
  color:#ffffff;
}

.homepage-gallery-content p{
  margin:0;
  color:#d7ddd8;
}

.homepage-gallery-action{
  text-align:center;
  margin-top:24px;
}

.homepage-gallery-btn{
  display:inline-block;
  background:var(--gold);
  color:#111111;
  text-decoration:none;
  padding:12px 22px;
  border-radius:999px;
  font-weight:700;
}

.homepage-gallery-loading{
  color:#d7ddd8;
  text-align:center;
  grid-column:1 / -1;
}

/* =========================================
   FIX OVERRIDES: GALLERY + PURPOSE + WHY JOIN
========================================= */

/* GALLERY */
.homepage-gallery-section{
  background:#061c13;
  padding:48px 20px 58px;
  color:#ffffff;
}

.homepage-gallery-section .container{
  max-width:1100px;
  margin:0 auto;
}

.homepage-gallery-heading h2{
  color:var(--gold);
  margin-bottom:10px;
}

.homepage-gallery-heading p{
  color:#d7ddd8;
  margin-bottom:24px;
}

.homepage-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:20px;
  max-width:1100px;
  margin:0 auto;
}

.homepage-gallery-card{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(212,175,55,0.15);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(0,0,0,0.18);
  max-width:360px;
  margin:0 auto;
}

.homepage-gallery-image{
  width:100%;
  height:220px;
  object-fit:contain;
  background:#f1f1f1;
  display:block;
}

.homepage-gallery-content{
  padding:14px 16px;
}

.homepage-gallery-content h3{
  margin:0 0 8px;
  color:#ffffff;
  font-size:1rem;
}

.homepage-gallery-content p{
  margin:0;
  color:#d7ddd8;
  font-size:0.92rem;
  line-height:1.5;
}

.homepage-gallery-action{
  text-align:center;
  margin-top:22px;
}

.homepage-gallery-btn{
  display:inline-block;
  background:var(--gold);
  color:#111111;
  text-decoration:none;
  padding:10px 20px;
  border-radius:999px;
  font-weight:700;
}

.homepage-gallery-loading{
  color:#d7ddd8;
  text-align:center;
  grid-column:1 / -1;
}

/* PURPOSE + STORY */
.purpose-story-section{
  background:#061c13;
  color:#ffffff;
  padding:56px 20px;
  border-top:14px solid #f7f5ef;
}

.purpose-story-grid{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:0.95fr 1.05fr;
  gap:22px;
  align-items:start;
}

.purpose-story-left{
  display:grid;
  gap:22px;
}

.purpose-story-card,
.purpose-card,
.unity-card,
.story-card{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(212,175,55,0.15);
  border-radius:18px;
  padding:22px;
  box-shadow:0 8px 22px rgba(0,0,0,0.18);
  color:#ffffff;
}

.purpose-story-card h2,
.purpose-card h2,
.unity-card h2,
.story-card h2{
  margin:0 0 14px;
  font-size:1.6rem;
  color:var(--gold);
}

.purpose-story-card p,
.purpose-card p,
.unity-card p,
.story-card p{
  margin:0 0 12px;
  line-height:1.7;
  font-size:0.95rem;
  color:#d7ddd8;
}

/* WHY JOIN */
.why-join{
  background:linear-gradient(180deg, #12271d 0%, #0a140f 100%);
  color:#ffffff;
  text-align:center;
  padding:56px 20px;
}

.why-join .container{
  max-width:1100px;
  margin:0 auto;
  text-align:center;
}

.why-join h2{
  font-size:2rem;
  margin-bottom:18px;
  color:var(--gold);
}

.why-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  max-width:980px;
  margin:24px auto 0;
}

.why-card{
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(212,175,55,0.18);
  border-radius:16px;
  padding:18px 16px;
  box-shadow:0 10px 28px rgba(0,0,0,0.18);
}

.why-card h3{
  color:var(--gold);
  margin-bottom:10px;
  font-size:1rem;
}

.why-card p{
  color:#d7ddd8;
  font-size:0.92rem;
  line-height:1.5;
}

.why-principles-wrap{
  margin-top:26px;
}

.why-principles-title{
  color:var(--gold);
  margin-bottom:14px;
  font-size:1.2rem;
}

.why-principles-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  max-width:980px;
  margin:0 auto;
}

.why-principles-grid .why-card{
  padding:14px 12px;
  text-align:center;
}

.why-principles-grid .why-card h3{
  font-size:0.92rem;
  margin:0;
}

/* MOBILE */
@media (max-width:900px){
  .purpose-story-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width:768px){
  .why-grid{
    grid-template-columns:1fr;
  }

  .why-principles-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .homepage-gallery-image{
    height:200px;
  }
}

@media (max-width:480px){
  .why-principles-grid{
    grid-template-columns:1fr;
  }

  .homepage-gallery-card{
    max-width:100%;
  }
}

/* ===============================
   SECTION NOTE (IMPORTANT TEXT)
================================= */
.section-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f4f8f6;
  border: 1px solid #d7e6df;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 10px auto 20px;
  max-width: 700px;
  font-size: 0.92rem;
  color: #1f3d2b;
}

.section-note i {
  color: #0b5d3b;
  font-size: 1rem;
  margin-top: 2px;
}

.section-note p {
  margin: 0;
  line-height: 1.5;
}

/* MOBILE */
@media (max-width: 768px) {
  .section-note {
    flex-direction: row;
    font-size: 0.9rem;
    padding: 12px 14px;
  }
}

/* ===============================
   FIXED BUTTON STYLE (FORCE APPLY)
================================= */
.section-entry-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 18px 0 20px;
  flex-wrap: wrap;
}

.section-entry-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 18px;
  border-radius: 999px;

  background-color: #0b5d3b !important;
  color: #ffffff !important;

  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 600;

  border: none;
  cursor: pointer;

  transition: all 0.25s ease;
}

.section-entry-btn:hover {
  background-color: #084d31 !important;
  transform: translateY(-1px);
}

.section-entry-btn.secondary {
  background-color: #f3f3f3 !important;
  color: #0b5d3b !important;
  border: 1px solid #ccc;
}

.section-entry-btn.secondary:hover {
  background-color: #e7e7e7 !important;
}

.section-entry-buttons {
  margin-top: 10px;
}

.section-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f4f8f6;
  border: 1px solid #d7e6df;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 10px auto 20px;
  max-width: 700px;
  font-size: 0.92rem;
  color: #1f3d2b;
}

.section-note i {
  color: #0b5d3b;
  font-size: 1rem;
  margin-top: 2px;
}

.section-note p {
  margin: 0;
  line-height: 1.5;
}

.admin-note {
  background: #fff4f4;
  border: 1px solid #f1caca;
  color: #5a1f1f;
}

.admin-note i {
  color: #c0392b;
}

@media (max-width: 768px) {
  .section-note {
    font-size: 0.9rem;
    padding: 12px 14px;
  }
}

/* ========================================
   WHY WE STAND / CORE PRINCIPLES
======================================== */
.core-principles-section {
  padding: 70px 20px;
  background: #f8faf8;
}

.core-principles-heading {
  text-align: center;
  margin-bottom: 28px;
}

.core-principles-heading h2 {
  color: #0b3d2c;
}

.core-principles-heading p {
  color: #1f1f1f;
}

.accordion-instruction {
  margin-top: 10px;
  font-size: 0.96rem;
  color: #1a1a1a;
  font-weight: 600;
}

.core-principles-accordion {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #dfe7e2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.core-principles-accordion .accordion-item + .accordion-item {
  border-top: 1px solid #e5ebe7;
}

.accordion-toggle {
  width: 100%;
  border: none;
  background: #ffffff;
  color: #0b2e22;
  padding: 20px 22px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.03rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease;
}

.accordion-toggle:hover {
  background: #f2f7f3;
}

.accordion-item.active .accordion-toggle {
  background: #eef6f0;
}

.accordion-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: #0b5d3b;
  line-height: 1;
}

.accordion-panel {
  display: none;
  padding: 0 22px 22px;
  background: #ffffff;
}

.accordion-item.active .accordion-panel {
  display: block;
}

.accordion-panel p {
  margin: 0 0 14px;
  color: #000000;
  line-height: 1.8;
  font-size: 0.98rem;
}

.accordion-panel p:last-child {
  margin-bottom: 0;
}

/* ========================================
   MINI CAPSULE DARKER TEXT
======================================== */
.community-mini-card h3,
.community-mini-card h4 {
  color: #0b2e22;
}

.community-mini-card p {
  color: #000000;
}

/* MOBILE */
@media (max-width: 768px) {
  .core-principles-section {
    padding: 56px 16px;
  }

  .accordion-toggle {
    padding: 18px 16px;
    font-size: 0.98rem;
  }

  .accordion-panel {
    padding: 0 16px 18px;
  }

  .accordion-panel p {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .accordion-instruction {
    font-size: 0.92rem;
  }
}

/* ===== WHY WE STAND CAPSULE EXPAND ===== */

.capsule {
  background: #ffffff;
  border-radius: 40px;
  padding: 18px 25px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.08);
}

.capsule:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.capsule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #0b3d2e; /* darker green */
}

.capsule-header span {
  font-size: 20px;
}

.capsule-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: #000000; /* BLACK TEXT (as you requested) */
  margin-top: 10px;
  line-height: 1.6;
}

/* ACTIVE STATE (when clicked) */
.capsule.active .capsule-content {
  max-height: 500px;
}

/* ========================================
   FIXED CORE PRINCIPLES CAPSULE REVEAL
   (OVERRIDES OLD why-card STYLES)
======================================== */
.why-principles-wrap{
  margin-top: 26px;
}

.why-principles-instruction{
  margin: 0 0 16px;
  color: #d7ddd8;
  font-size: 0.92rem;
  text-align: center;
}

.why-principles-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

/* OVERRIDE the old pill-card behavior */
.why-principles-grid .why-card.principle-capsule{
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/* The actual clickable capsule */
.principle-toggle{
  width: 100%;
  border: none;
  background: #ffffff;
  color: var(--gold);
  border-radius: 999px;
  padding: 16px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.principle-toggle:hover{
  transform: translateY(-2px);
  background: #f8f8f8;
}

/* Active capsule */
.why-card.principle-capsule.active .principle-toggle{
  background: var(--gold);
  color: #102118;
}

/* Hidden content below the capsule */
.principle-content{
  display: none;
  margin-top: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.16);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* Show only when active */
.why-card.principle-capsule.active .principle-content{
  display: block;
}

.principle-content p{
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0 0 10px;
  text-align: left;
}

.principle-content p:last-child{
  margin-bottom: 0;
}

/* MOBILE */
@media (max-width: 768px){
  .why-principles-grid{
    grid-template-columns: 1fr;
  }

  .principle-toggle{
    font-size: 0.92rem;
    padding: 14px 16px;
  }

  .principle-content{
    padding: 14px 14px 16px;
  }

  .principle-content p{
    font-size: 0.9rem;
  }
}

/* ========================================
   FINAL ALWAYS-VISIBLE CORE PRINCIPLES
   PASTE THIS AT THE VERY BOTTOM
======================================== */

.why-principles-wrap{
  margin-top: 28px;
}

.why-principles-title{
  color: var(--gold);
  margin-bottom: 10px;
  font-size: 1.25rem;
  text-align: center;
}

.why-principles-instruction{
  margin: 0 0 20px;
  color: #d7ddd8;
  font-size: 0.93rem;
  text-align: center;
  line-height: 1.6;
}

.why-principles-grid.always-visible-principles{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px 26px !important;
  max-width: 1020px;
  margin: 0 auto;
  align-items: start;
}

.principle-static-card{
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.principle-static-pill{
  background: #ffffff;
  color: var(--gold);
  border-radius: 999px;
  padding: 15px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  margin-bottom: 12px;
}

.principle-static-body{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  min-height: 100%;
}

.principle-static-body p{
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 0.94rem;
  line-height: 1.75;
  text-align: center;
}

.principle-static-body p:last-child{
  margin-bottom: 0;
}

/* kill old interactive principle styles */
.why-principles-grid .why-card.principle-capsule,
.principle-toggle,
.principle-content,
.core-principles-section,
.core-principles-accordion,
.accordion-toggle,
.accordion-panel,
.capsule,
.capsule-header,
.capsule-content {
  all: unset;
}

/* restore proper display for old elements if present elsewhere */
.principle-toggle,
.principle-content,
.accordion-toggle,
.accordion-panel,
.capsule,
.capsule-header,
.capsule-content {
  display: none !important;
}

@media (max-width: 900px){
  .why-principles-grid.always-visible-principles{
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px){
  .principle-static-pill{
    font-size: 0.94rem;
    padding: 14px 16px;
  }

  .principle-static-body{
    padding: 16px 16px 18px;
  }

  .principle-static-body p{
    font-size: 0.91rem;
    line-height: 1.7;
  }
}

/* ========================================
   FINAL CORE PRINCIPLES - SINGLE STACK
======================================== */

.why-principles-wrap{
  margin-top: 28px;
}

.why-principles-title{
  color: var(--gold);
  margin-bottom: 10px;
  font-size: 1.25rem;
  text-align: center;
}

.why-principles-instruction{
  margin: 0 0 22px;
  color: #d7ddd8;
  font-size: 0.93rem;
  text-align: center;
  line-height: 1.6;
}

.why-principles-grid.always-visible-principles{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  max-width: 920px;
  margin: 0 auto;
  align-items: start;
}

.principle-static-card{
  display: block;
}

.principle-static-pill{
  background: #ffffff;
  color: var(--gold);
  border-radius: 999px;
  padding: 15px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
  margin-bottom: 10px;
}

.principle-static-body{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.principle-static-body p{
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 0.94rem;
  line-height: 1.75;
  text-align: left;
}

.principle-static-body p:last-child{
  margin-bottom: 0;
}

@media (max-width: 768px){
  .principle-static-pill{
    font-size: 0.94rem;
    padding: 14px 16px;
  }

  .principle-static-body{
    padding: 16px 16px 18px;
  }

  .principle-static-body p{
    font-size: 0.91rem;
    line-height: 1.7;
  }
}

/* ================= BUTTON STYLES ================= */

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
  font-size: 14px;
}

/* PRIMARY BUTTON */
.primary-btn {
  background-color: #0b3d2e;
  color: #ffffff;
}

.primary-btn:hover {
  background-color: #145c43;
}

/* SECONDARY BUTTON */
.secondary-btn {
  background-color: transparent;
  color: #0b3d2e;
  border: 2px solid #0b3d2e;
}

.secondary-btn:hover {
  background-color: #0b3d2e;
  color: #ffffff;
}

/* =========================================================
   HOMEPAGE SECTION BUTTON LAYOUT FIX
   Minimal safe layout repair
========================================================= */

.homepage-section-action,
.section-action,
.community-section-action {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
  margin-bottom: 0;
  text-align: center;
}
.homepage-section-action .btn,
.section-action .btn,
.community-section-action .btn,
.homepage-section-action a,
.section-action a,
.community-section-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

/* Keeps section bottoms balanced */
.homepage-announcements-section,
.homepage-freedom-wall-section,
.homepage-alliances-section {
  padding-bottom: 50px;
}

/* Makes inner content stack cleanly */
.homepage-announcements-board-wrap,
.homepage-freedom-wall-board-wrap,
.homepage-alliances-board-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Prevents buttons from sticking too close to cards/grids */
.homepage-announcements-board,
.homepage-freedom-wall-board,
.homepage-alliances-board {
  margin-bottom: 0;
}

/* Optional safe spacing for empty/loading states */
.homepage-empty-state {
  text-align: center;
  padding: 20px;
}

/* Mobile balance */
@media (max-width: 768px) {
  .homepage-section-action,
  .section-action,
  .community-section-action {
    margin-top: 18px;
    gap: 10px;
  }

  .homepage-section-action .btn,
  .section-action .btn,
  .community-section-action .btn,
  .homepage-section-action a,
  .section-action a,
  .community-section-action a {
    width: auto;
    min-width: 170px;
    max-width: 100%;
  }

  .homepage-announcements-section,
  .homepage-freedom-wall-section,
  .homepage-alliances-section {
    padding-bottom: 42px;
  }
}

/* Align One Leyte in Action buttons */
.homepage-gallery-section .homepage-section-action{
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.homepage-freedom-wall-section{
  padding: 60px 20px;
  background: #f7f7f7;
  margin-top: 20px;
}

@media (max-width: 900px){
  .homepage-announcements-wrap{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .homepage-announcements-wrap{
    grid-template-columns:1fr;
  }

  .homepage-announcement-image-wrap{
    height:110px;
  }
}

.guidelines-section {
  background: #f5f7fb;
  padding: 50px 20px;
}

.guidelines-section .container {
  max-width: 900px;
  margin: auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.guidelines-section h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #0b3d2e; /* deep green */
}

.guidelines-section p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #0b3d2e; /* deep green */
}

/* ========================================
   GUIDELINES SECTION
======================================== */
.guidelines-section {
  background: #f7f5ef;
  padding: 60px 20px;
}

.guidelines-box {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 30px 28px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  border-left: 6px solid #0a6b3f;
}

.guidelines-box h2 {
  color: #0a6b3f;
  margin-bottom: 18px;
  text-align: center;
}

.guidelines-box p {
  color: #1a1a1a;
  margin-bottom: 14px;
  line-height: 1.7;
}
