/* ============================================================
   SHARED INNER PAGES STYLESHEET
   All sub-pages inherit this + style.css
   ============================================================ */

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--black);
  overflow: hidden;
  text-align: center;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17,17,17,0.6) 0%, rgba(17,17,17,0.95) 100%);
}
.page-hero-deco {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,107,0,0.15);
  pointer-events: none;
}
.page-hero-deco-1 { width:500px; height:500px; top:-200px; right:-100px; }
.page-hero-deco-2 { width:300px; height:300px; bottom:-100px; left:-50px; }
.page-hero-content {
  position: relative;
  z-index: 2;
}
.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.page-breadcrumb a { color: var(--orange); transition: var(--transition); }
.page-breadcrumb a:hover { opacity: 0.8; }
.page-breadcrumb i { font-size: 10px; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.page-hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ---- SHARED INNER CARD GRID ---- */
.inner-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.inner-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.inner-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* ---- CHAPTER CARD ---- */
.chapter-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.chapter-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.chapter-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.chapter-card:hover::before { transform: scaleX(1); }
.chapter-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,107,0,0.1);
  color: var(--orange);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.chapter-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.2;
}
.chapter-card .chapter-city {
  font-size: 14px;
  color: var(--gray-mid);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chapter-card .chapter-city i { color: var(--orange); }
.chapter-contact {
  border-top: 1px solid var(--gray-light);
  padding-top: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chapter-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  transition: var(--transition);
}
.chapter-contact a i { color: var(--orange); width: 14px; }
.chapter-contact a:hover { color: var(--orange); }

/* View Chapter Page — primary CTA link inside chapter cards */
.chapter-page-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.chapter-page-link i { color: #fff !important; }
.chapter-page-link:hover {
  background: var(--orange-dark, #e05a00);
  color: #fff !important;
  transform: translateX(2px);
}

/* Establishment date line */
.chapter-est {
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chapter-est i { color: var(--orange); }

/* Founding Chapter special treatment */
.chapter-card--founding {
  border-color: var(--orange);
  background: linear-gradient(160deg, #fff 80%, rgba(255,107,0,0.04) 100%);
}
.chapter-card--founding::before { transform: scaleX(1); }
.chapter-founding-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  margin-left: 8px;
}
/* New / custom chapter badge (admin-added) */
.chapter-new-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16a34a;
  color: #fff;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  margin-left: 8px;
}
.chapter-card--new {
  border-color: #16a34a;
  background: linear-gradient(160deg, #fff 80%, rgba(22,163,74,0.04) 100%);
}
.chapter-card--new::before { transform: scaleX(1); background: #16a34a; }

/* ---- PARTNER LOGO GRID (legacy) ---- */
.partners-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: center;
}
.partner-logo-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  aspect-ratio: 4/3;
}
.partner-logo-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.partner-logo-card img {
  max-height: 110px;
  max-width: 85%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: var(--transition);
}
.partner-logo-card:hover img { filter: grayscale(0%); }

/* ---- PARTNER NAMED GRID (chapters.html — bigger logos + name labels) ---- */
.partners-named-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}
.partner-named-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  text-align: center;
}
.partner-named-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--orange);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}
.partner-named-img-wrap {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.partner-named-img-wrap img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
  filter: brightness(1.08) drop-shadow(0 2px 8px rgba(0,0,0,0.25));
  transition: all 0.3s ease;
}
.partner-named-card:hover .partner-named-img-wrap img {
  filter: brightness(1.15) drop-shadow(0 4px 16px rgba(255,107,0,0.25));
  transform: scale(1.05);
}
.partner-named-label {
  font-family: 'Barlow', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  width: 100%;
  text-transform: uppercase;
}

/* Responsive — partners named grid */
@media (max-width: 900px) {
  .partners-named-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .partners-named-grid { grid-template-columns: 1fr; }
  .partner-named-img-wrap { height: 110px; }
}

/* ---- STATE FILTER TABS ---- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-tab {
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  color: #555;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.filter-tab:hover,
.filter-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ---- SEARCH BAR ---- */
.page-search {
  display: flex;
  align-items: center;
  max-width: 480px;
  margin: 0 auto 40px;
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: 100px;
  padding: 6px 6px 6px 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.page-search:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.page-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  background: transparent;
}
.page-search input::placeholder { color: #aaa; }
.page-search button {
  background: var(--orange);
  border: none;
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.page-search button:hover { background: var(--orange-dark); }

/* ---- NEWS CARD IMAGE WRAP + SOURCE BADGE ---- */
.news-card-img-wrap {
  position: relative;
  overflow: hidden;
  display: block;
}
.news-card-img-wrap .news-card-img {
  transition: transform 0.4s ease;
}
.news-card:hover .news-card-img-wrap .news-card-img {
  transform: scale(1.04);
}
.news-card-source-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* ---- NEWS CARD ---- */
.news-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.news-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.news-card-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(255,107,0,0.3);
}
.news-card-body { padding: 24px; }
.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.news-tag {
  background: rgba(255,107,0,0.1);
  color: var(--orange);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.news-date {
  font-size: 13px;
  color: var(--gray-mid);
  display: flex;
  align-items: center;
  gap: 5px;
}
.news-date i { color: var(--orange); font-size: 11px; }
.news-card-body h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.3;
}
.news-card-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}
.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}
.news-read-more:hover { gap: 10px; }

/* ---- EVENT CARD ---- */
.event-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}
.event-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.event-date-box {
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  text-align: center;
  flex-shrink: 0;
  min-width: 64px;
}
.event-date-box .month {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}
.event-date-box .day {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}
.event-info h4 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 10px;
}
.event-meta span { display: flex; align-items: center; gap: 5px; }
.event-meta i { color: var(--orange); }
.event-info p { font-size: 14px; color: #666; line-height: 1.6; }

/* ---- SHOP PRODUCT CARD ---- */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--orange);
}
.product-img-wrap {
  position: relative;
  background: var(--warm-gray);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-img-wrap i {
  font-size: 80px;
  color: rgba(255,107,0,0.2);
  transition: var(--transition);
}
.product-card:hover .product-img-wrap i { color: rgba(255,107,0,0.4); transform: scale(1.1); }
.product-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.product-body { padding: 20px; }
.product-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}
.product-desc {
  font-size: 13px;
  color: #777;
  margin-bottom: 14px;
  line-height: 1.5;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 900;
  color: var(--orange);
}
.product-add {
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}
.product-add:hover { background: var(--orange); }

/* ---- CONTACT PAGE ---- */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
}
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- JOIN PAGE ---- */
.join-option-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.join-option-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transition: var(--transition);
}
.join-option-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.join-option-card:hover::after { transform: scaleX(1); }
.join-option-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-orange);
  font-size: 30px;
  color: var(--white);
}
.join-option-card h3 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 14px;
}
.join-option-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 28px;
}
.join-steps {
  text-align: left;
  margin-bottom: 32px;
}
.join-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-light);
}
.join-step:last-child { border-bottom: none; }
.step-num {
  width: 28px; height: 28px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.join-step p {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
  padding-top: 3px;
}

/* ---- TIMELINE ---- */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), rgba(255,107,0,0.1));
}
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  margin-bottom: 40px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -46px;
  top: 6px;
  width: 12px; height: 12px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,107,0,0.2);
}
.timeline-year {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 900;
  color: var(--orange);
  padding-top: 2px;
  text-align: right;
}
.timeline-body {
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 28px;
  padding-bottom: 24px;
}
.timeline-body h4 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.timeline-body p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}
.timeline-item-last .timeline-body {
  border-color: rgba(255,107,0,0.3);
  background: rgba(255,107,0,0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 20px 20px 28px;
}

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: var(--transition);
}
.faq-q:hover { color: var(--orange); }
.faq-q i { flex-shrink: 0; transition: transform 0.3s ease; color: var(--orange); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-a p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}
.faq-a a { color: var(--orange); }

/* ---- RESPONSIVE inner pages ---- */
@media (max-width: 1024px) {
  .inner-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .partners-logo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .inner-grid-3 { grid-template-columns: 1fr; }
  .inner-grid-2 { grid-template-columns: 1fr; }
  .inner-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .partners-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-page-grid { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; gap: 16px; }
}
@media (max-width: 480px) {
  .inner-grid-4 { grid-template-columns: 1fr; }
  .partners-logo-grid { grid-template-columns: repeat(2, 1fr); }
}
