/* ============================================================
   NCA GUIDE — PAGES.CSS
   Page-specific styles (about, gallery, blogs, contact, etc.)
   ============================================================ */

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.gallery-filter-btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  background: transparent;
  color: var(--clr-muted);
  border: 1px solid var(--clr-border-2);
  transition: all 0.25s;
  cursor: pointer;
}
.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--clr-blue);
  color: #ffffff;
  border-color: var(--clr-blue);
}

.gallery-grid {
  columns: 3 280px;
  gap: 1rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--clr-surface);
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-caption {
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
}
.gallery-hidden { display: none; }

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#lightbox.active {
  opacity: 1;
  pointer-events: all;
}
#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lb-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: none; border-radius: 50%;
  color: white; font-size: 1.25rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s;
}
.lb-close:hover { background: var(--clr-blue); color: #fff; }
.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: none; border-radius: 50%;
  color: white; font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s;
}
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-prev:hover, .lb-next:hover { background: var(--clr-blue); color: #fff; }

@media (max-width: 768px) {
  .gallery-grid { columns: 2 200px; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}
@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
}

/* ============================================================
   BLOGS PAGE
   ============================================================ */
.blog-featured {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 4rem;
}
.blog-featured-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.blog-featured:hover .blog-featured-img { transform: scale(1.04); }
.blog-featured-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-green);
  margin-bottom: 1rem;
}
.blog-featured-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 800;
  color: var(--clr-white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.blog-featured-excerpt {
  font-size: 0.92rem;
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.blog-date { font-size: 0.78rem; color: var(--clr-muted-2); }
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-green);
  transition: gap 0.25s;
}
.blog-read-more:hover { gap: 0.9rem; }

.blog-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15,23,42,0.04);
  transition: all 0.35s var(--ease-out);
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 15px 35px rgba(15,23,42,0.08);
}
.blog-card-img-wrap { overflow: hidden; height: 220px; position: relative; }
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.blog-card:hover .blog-card-img { transform: scale(1.05); }
.blog-card-body { padding: 1.75rem; background: #ffffff; }
.blog-card-tag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0067ff;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: color 0.25s;
}
.blog-card:hover .blog-card-title { color: #0067ff; }
.blog-card-excerpt {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 220px; }
  .blog-featured-body { padding: 2rem; }
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 3rem;
}
.article-header {
  margin-bottom: 2.5rem;
}
.article-header .tag { margin-bottom: 1rem; }
.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--clr-light-text);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--clr-light-muted);
}
.article-meta-item { display: flex; align-items: center; gap: 0.4rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-split.reversed { direction: rtl; }
.about-split.reversed > * { direction: ltr; }
.about-img {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}
.about-img-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--clr-blue);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(37,99,235,0.4);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.value-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 3px solid #0067ff;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 20px rgba(15,23,42,0.04);
  transition: all 0.35s var(--ease-out);
}
.value-item:hover {
  transform: translateY(-5px);
  border-color: #cbd5e1;
  border-top-color: #0046b3;
  box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}
.value-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.value-item h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.value-item p { font-size: 0.88rem; color: #475569; line-height: 1.7; }

@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-split.reversed { direction: ltr; }
  .values-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { padding-top: 0.5rem; }
.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.contact-info p {
  font-size: 0.92rem;
  color: var(--clr-muted);
  line-height: 1.75;
  margin-bottom: 2rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 42px; height: 42px;
  background: rgba(59,130,246,0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--clr-blue-bright);
  flex-shrink: 0;
}
.contact-detail-text h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted-2);
  margin-bottom: 0.25rem;
}
.contact-detail-text p {
  font-size: 0.9rem;
  color: var(--clr-off-white);
  margin-bottom: 0;
}
.contact-detail-text a { color: var(--clr-green); }
.contact-form-wrap {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 2.5rem;
}

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ============================================================
   OUR CENTER PAGE
   ============================================================ */
.center-search-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.center-search-input {
  flex: 1;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  color: #0f172a;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.center-search-input:focus {
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 3px rgba(0,103,255,0.15);
}
.center-search-input::placeholder { color: #94a3b8; }
.center-filter-select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  color: #0f172a;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.center-filter-select:focus {
  border-color: var(--clr-blue);
  box-shadow: 0 0 0 3px rgba(0,103,255,0.15);
}
.center-filter-select option { background: #ffffff; color: #0f172a; }

.centers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) {
  .centers-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .centers-grid { grid-template-columns: 1fr; }
  .center-search-bar { flex-direction: column; }
}

/* ============================================================
   PRIVACY POLICY
   ============================================================ */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}
.policy-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--clr-white);
  margin: 2.5rem 0 1rem;
}
.policy-content p, .policy-content li {
  font-size: 0.95rem;
  color: var(--clr-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.policy-content ul { padding-left: 1.5rem; }
.policy-content ul li { list-style: disc; }
