@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

/* =============================================
   Social Circle Hub
   Concept: Friendly Community / Warm Grid
   Palette:
     --blue:   #2A5B75  deep steel blue (header)
     --coral:  #D2805A  muted coral (accents, buttons)
     --sky:    #6BA4B8  light blue (soft accents)
     --bg:     #F9FAFA  near-white body
     --text:   #1F2933  dark charcoal
   Key differentiators vs other domains:
     - Solid blue header (≠ cream / transparent)
     - Nunito + Source Serif 4 (≠ DM / Playfair / Jost)
     - 16px rounded cards with shadow (≠ flat/sharp)
     - Split two-column hero with image
     - Icon feature grid (adding-blocks)
     - Light cream footer (≠ terracotta / dark charcoal)
============================================= */

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

:root {
  --blue:      #2A5B75;
  --blue-dk:   #1e4258;
  --blue-lt:   #d6eaf3;
  --coral:     #D2805A;
  --coral-dk:  #b86a43;
  --coral-lt:  #faeee7;
  --sky:       #6BA4B8;
  --bg:        #F9FAFA;
  --bg-white:  #ffffff;
  --text:      #1F2933;
  --text-soft: #5a6a76;
  --border:    #dde8ed;
  --max-w:     1100px;
  --header-h:  70px;
  --radius:    16px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --shadow:    0 2px 20px rgba(42,91,117,0.09);
  --shadow-lg: 0 8px 36px rgba(42,91,117,0.15);
  --transition: .22s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dk); }

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  line-height: 1.25;
}

p { margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

/* ─────────── WRAPPER ─────────── */
.wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ─────────── HEADER ─────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  height: var(--header-h);
  background: var(--blue);
  box-shadow: 0 2px 16px rgba(30,66,88,0.22);
}

.site-header .wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo img {
  height: 36px;
  width: auto;
  padding: 4px 8px;
  background: #fff;
  border-radius: 8px;
  transition: opacity var(--transition);
}
.header-logo:hover img { opacity: 0.88; }

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.site-nav a {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 7px 16px;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}

.site-nav a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.site-nav a.active {
  background: var(--coral);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--blue-dk);
  padding: 8px 0 20px;
  z-index: 190;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  padding: 13px 28px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition), color var(--transition);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.mobile-menu a.active { color: var(--coral); }

/* ─────────── HERO — INDEX ONLY (SPLIT) ─────────── */
.site-hero {
  background: var(--bg-white);
  padding: 0;
  overflow: hidden;
}

.site-hero .wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  align-items: stretch;
}

.hero-content {
  padding: 64px 48px 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

.site-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--text);
  margin-bottom: 18px;
  font-weight: 600;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 13px 28px;
  background: var(--coral);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.87rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(210,128,90,0.3);
}

.btn-primary:hover {
  background: var(--coral-dk);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(210,128,90,0.4);
}

.hero-image {
  overflow: hidden;
  background: var(--blue-lt);
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─────────── PAGE BANNER (articles, about) ─────────── */
.page-banner {
  background: var(--blue);
  padding: 52px 0 40px;
}

.page-banner .banner-tag {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.page-banner .banner-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--coral);
  border-radius: 2px;
}

.page-banner h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: #fff;
  font-weight: 600;
}

/* ─────────── CONTENT SECTIONS ─────────── */
.content-section { padding: 64px 0; }
.content-section.bg-white { background: var(--bg-white); }
.content-section.bg-light { background: #eef5f8; }

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--blue);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-heading::before {
  content: '';
  display: block;
  width: 5px;
  height: 1.3em;
  background: var(--coral);
  border-radius: 3px;
  flex-shrink: 0;
}

/* Index body */
.index-body { font-size: 1.05rem; }
.index-body h2 { font-size: 1.45rem; color: var(--blue); margin: 2em 0 0.5em; }
.index-body img { width: 100%; border-radius: var(--radius); margin: 2em 0; box-shadow: var(--shadow); }

/* ─────────── ADDING-BLOCKS (Feature Cards) ─────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px 20px 24px;
  text-align: center;
  border-top: 3px solid var(--sky);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--coral);
}

.feature-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blue-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.feature-card-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.feature-card h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
}

/* ─────────── ARTICLE CARDS GRID ─────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.article-card-img {
  width: 100%;
  height: 210px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blue-lt);
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.article-card:hover .article-card-img img { transform: scale(1.06); }

.article-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}

.article-card-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  text-align: center;
  flex: 1;
}

.article-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  background: var(--coral);
  color: #fff;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition);
  margin-top: auto;
}

.article-card:hover .article-card-btn { background: var(--coral-dk); }

/* ─────────── SINGLE ARTICLE ─────────── */
.article-page { padding: 56px 0 72px; }

.article-layout {
  max-width: 780px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 40px;
  padding: 8px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.article-back:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-lt);
}

.article-layout h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
  font-weight: 600;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--border);
}

.article-content h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--blue);
  margin: 2.4em 0 0.65em;
  padding-left: 16px;
  border-left: 3px solid var(--coral);
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.88;
  color: var(--text);
  margin-bottom: 1.2em;
}

.article-content img.article-image {
  width: 100%;
  border-radius: var(--radius);
  margin: 2em 0;
  box-shadow: var(--shadow);
}

/* ─────────── ABOUT PAGE ─────────── */
.about-content {
  max-width: 780px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.88;
  margin-bottom: 1.3em;
}

.about-highlight {
  margin: 2.5em 0;
  padding: 24px 32px;
  background: var(--blue-lt);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 1.18rem;
  color: var(--blue);
  line-height: 1.65;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 2.5em 0;
}

.about-value {
  background: var(--bg-white);
  padding: 24px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--coral);
  text-align: center;
}

.about-value h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 10px;
}

.about-value p {
  font-size: 0.93rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
}

/* ─────────── FOOTER ─────────── */
.site-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-top { padding: 52px 0 40px; }

.footer-top .wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 48px;
}

.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 14px;
  padding: 4px 8px;
  background: var(--blue-lt);
  border-radius: 8px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 340px;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-nav a {
  font-family: 'Nunito', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--coral); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  background: var(--bg);
}

.footer-bottom .wrapper { display: flex; justify-content: center; }

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-soft);
  opacity: 0.7;
}

/* ─────────── RESPONSIVE ─────────── */
@media (max-width: 1024px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about-values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 62px; }
  .wrapper { padding: 0 20px; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .content-section { padding: 44px 0; }
  .page-banner { padding: 40px 0 32px; }

  .site-hero .wrapper {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content { padding: 44px 0 32px; }
  .hero-image { height: 260px; }

  .footer-top .wrapper { grid-template-columns: 1fr; gap: 28px; }
  .footer-nav { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 540px) {
  .articles-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .about-values { grid-template-columns: 1fr; }
  .article-card-img { height: 190px; }
  .btn-primary { align-self: stretch; justify-content: center; }
}
