* { box-sizing: border-box; }
:root {
  --ink: #182746;
  --ink-light: #2d3d5e;
  --paper: #fbf8f0;
  --coral: #1a8fe3;
  --coral-dark: #1578c4;
  --coral-light: rgba(26, 143, 227, 0.12);
  --olive: #5a8d4e;
  --olive-light: rgba(90, 141, 78, 0.12);
  --line: rgba(24,39,70,.14);
  --line-strong: rgba(24,39,70,.22);
  --muted: #80899a;
  --cream: #fdf6e8;
  --shadow-sm: 0 2px 8px rgba(24,39,70,.06);
  --shadow-md: 0 8px 24px rgba(24,39,70,.08);
  --shadow-lg: 0 16px 40px rgba(24,39,70,.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --transition: 200ms ease;
  /* Single font: Zain for entire site */
  --font-main: "Zain", "Cairo", "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Heading system - single font Zain with weight variations */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 20px 0 12px;
  line-height: 1.1;
}

h2 {
  font-size: clamp(22px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
  line-height: 1.2;
}

h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 14px 0 10px;
  line-height: 1.3;
}

h4 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  margin: 12px 0 8px;
}

h1 em, h2 em, h3 em, h4 em {
  font-family: var(--font-main);
  font-weight: 700;
  font-style: normal;
  color: var(--coral);
  background: linear-gradient(135deg, var(--coral) 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Eyebrow/kicker text */
.eyebrow, .hero-kicker {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hero-kicker {
  color: rgba(255,255,255,.7);
}

.kicker-line {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), #0ea5e9);
  border: none;
  border-radius: 2px;
}

/* Section headings */
.feed-heading-row h2,
.teacher-feature h2,
.stories-copy h2,
.advice-grid-head h2,
.posts-grid-head h2,
.faq-head h2 {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  margin: 8px 0 24px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Card titles */
.post-card-title,
.advice-card-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--ink);
  margin: 4px 0 8px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.advice-card-quote {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 15px;
  color: #4e586b;
  line-height: 1.85;
  margin: 0;
}

.teacher-quote {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(251,248,240,.96); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner, .hero-inner, .content-layout, .teacher-feature-inner, .stories-inner { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 34px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 23px; }
.brand-mark {/* width: 42px; height: 42px;*/ object-fit: contain;height:67px }
.main-nav { display: flex; gap: 27px; margin-left: auto; }
.nav-link { padding: 25px 0; font-size: 14px; color: #5d6474; border-bottom: 2px solid transparent; }

.nav-link:hover, .admin-nav-link { color: var(--coral); border-color: var(--coral); }
.mobile-menu-button { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); align-items: center; justify-content: center; }
.mobile-menu-button svg { width: 24px; height: 24px; }
.mobile-menu-button .close-icon { display: none; }
.mobile-menu-button.is-active .hamburger-icon { display: none; }
.mobile-menu-button.is-active .close-icon { display: block; }

.header-actions { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.small-link { color: var(--coral); font-weight: 700; }
.hero-section { background: var(--ink); color: #fff; overflow: hidden; }
.hero-section h1{color: var(--paper)}
.hero-inner { min-height: 580px; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 50px; }
.hero-copy { padding: 74px 0; }
.hero-kicker, .eyebrow { font-size: 20px; font-weight: 700; }
.hero-kicker { display: flex; align-items: center; gap: 10px; color: #rgba(26, 143, 227,0.5); }
.kicker-line { width: 42px; border-top: 1px solid #rgba(26, 143, 227,0.5); }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.14; letter-spacing: -.06em; margin: 18px 0; }
h1 em, h2 em { color: var(--coral); font-style: normal; }
.hero-copy > p { max-width: 470px; color: rgba(255,255,255,.72); line-height: 2; }
.hero-actions { display: flex; gap: 25px; align-items: center; margin: 30px 0; }
.primary-button, .secondary-button, .send-button { border: 0; border-radius: 5px; padding: 13px 22px; font: inherit; font-weight: 700; cursor: pointer; }
.primary-button, 
.send-button {color: var(--ink); box-shadow: 0 5px 0 rgba(191,87,72,.38); }
.send-button{ background: var(--paper)}
.primary-button{background: var(--paper)}
.primary-button:hover,.send-button:hover{background: var(--cream)}
.secondary-button { background: var(--ink); color: #fff; }
.text-link { color: #fff; font-size: 14px; }
.hero-proof { display: flex; gap: 18px; align-items: center; color: rgba(255,255,255,.6); font-size: 12px; }
.proof-line { display: flex; align-items: center; gap: 7px; }
.proof-check { color: #c4d39b; }
.proof-separator { height: 18px; border-left: 1px solid rgba(255,255,255,.24); }
.hero-art-wrap { position: relative; height: 500px; }
.hero-art-frame { position: absolute; inset: 16px 0 0 0; overflow: hidden; border-radius: 190px 8px 8px 8px; border: 10px solid rgba(255,255,255,.1); }
.hero-art { width: 100%; height: 100%; object-fit: cover; }
.hero-note { position: absolute; display: flex; flex-direction: column; background: #fffdf6; color: var(--ink); padding: 16px 24px; box-shadow: 8px 8px 0 rgba(219,108,91,.6); transform: rotate(-5deg); }
.note-top { top: 70px; right: -35px; } .note-top strong { font-size: 24px; } .note-bottom { bottom: 20px; left: -28px; transform: rotate(2deg); border-radius: 4px; color: var(--coral); }
.content-section, .stories-section { padding: 85px 0; }
.content-layout { display: grid; grid-template-columns: 300px 1fr; gap: 52px; direction: ltr; }
.community-sidebar, .feed-column { direction: rtl; }
.post-card, .comment-composer { background: #fffdf7; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 10px 30px rgba(24,39,70,.05); padding: 23px; margin-bottom: 18px; }
.teacher-card .teacher-item{background: #fffdf7; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 10px 30px rgba(24,39,70,.05); padding: 23px; margin-bottom: 18px;}
.sidebar-card-head, .post-topline, .feed-heading-row, .composer-heading, .composer-footer, .post-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.sidebar-card-head{margin-bottom: 10px;}
.pulse-number { font-family: Georgia, serif; font-size: 58px; line-height: 1; margin: 14px 0 5px; }
.sidebar-card p, .guidelines-card li { color: #697182; font-size: 13px; line-height: 1.9; }
.teacher-profile, .profile-line { display: flex; align-items: center; gap: 11px; }
.teacher-profile strong, .teacher-profile span { display: block; } .teacher-profile span { font-size: 12px;color: #fff;
  text-align: center;
  align-content: center; }
.avatar { display: inline-grid; place-items: center; width: 45px; height: 45px; border:1px solid var(--coral);
  border-radius: 50%; color: var(--coral); font-size: 13px; font-weight: 700; flex: 0 0 auto; }
/*.avatar-coral { background: var(--coral); } 
.avatar-teal { background: #518b88; } 
.avatar-indigo { background: #6676a2; }*/
.teacher-quote { color: var(--ink) !important; font-size: 17px !important; font-weight: 600; }
.feed-heading-row h2, .teacher-feature h2, .stories-copy h2 {  margin: 8px 0 24px; }
.sort-button { color: #798091; font-size: 13px; }
.share-banner { display: flex; gap: 15px; align-items: center; padding: 16px 18px; background: #f5eadc; border-right: 3px solid var(--coral); margin-bottom: 18px; }
.share-banner p { margin: 4px 0 0; color: #767b84; font-size: 12px; }
.share-banner-icon { color: var(--coral); font-size: 25px; }
.post-composer { border-style: dashed; }
.composer-heading h3 { margin: 5px 0 0; } .moderation-badge { color: var(--olive); background: #edf0e6; padding: 6px 10px; border-radius: 99px; font-size: 11px; }
.composer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 17px 0; } .composer-fields textarea { grid-column: 1 / -1; }
input, textarea { border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink); font: inherit; padding: 11px 13px; width: 100%; outline-color: var(--coral); }
.attach-button { border: 1px solid var(--line); border-radius: 5px; padding: 8px 12px; font-size: 12px; cursor: pointer; } .attach-button input[type=file] { display: none; }
.post-card { padding: 25px; } .post-card h3 { margin:0; font-size: 20px; } .post-card p { color: #626b7c; line-height: 1.9; font-size: 14px; }
.post-tag { color: var(--coral); font-size: 12px; } .person-meta { color: #89909e; font-size: 12px; }
.post-category { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; margin-right: 8px; }
.post-category-teacher_advice { background: #e8f4fd; color: #1a73b8; border: 1px solid #bdddf5; }
.post-category-student_testimonial { background: #fef3e2; color: #b8742d; border: 1px solid #f5d9b5;height:27px;
position: absolute;
  top: 4px;
  left: 4px;
 }
.post-category-faq { background: #f0e8ff; color: #7c3aed; border: 1px solid #d8c6fa; }
.post-image { width: 100%; max-height: 360px; object-fit: cover; border-radius: 6px; margin-top: 12px; } .native-audio { width: 100%; margin: 14px 0; }
.post-actions { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 18px; justify-content: flex-start; } .inline-reaction { margin: 0; }
.approved-comment { display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:11px 0 0; margin-top:12px; border-top:1px dotted var(--line); font-size:12px; } .approved-comment strong { color:var(--ink); } .approved-comment span { color:#6c7585; } .approved-comment-image { width:56px; height:42px; object-fit:cover; border-radius:4px; border:1px solid var(--line); }
.helpful-button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--coral); color: var(--paper); border-radius: 99px; padding: 8px 13px; cursor: pointer; font: inherit; font-size: 12px; }
.helpful-button:hover { background: var(--paper); color: var(--coral); border-color: var(--coral); }
.text-action { color: #798091; font-size: 13px; }
.comment-form { display: grid; grid-template-columns: .7fr .7fr 1fr auto; gap: 8px; align-items: center; margin-top: 17px; padding-top: 15px; border-top: 1px dashed var(--line); } .comment-form textarea { grid-column: 1 / 3; }
.teacher-feature { background: #ede4d6; padding: 80px 0; } .teacher-feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: center; } .teacher-feature-copy p, .stories-copy p { color: #667080; line-height: 1.9; max-width: 500px; }
.teacher-feature-art img { width: 100%; height: 350px; object-fit: cover; border-radius: 150px 7px 7px 7px; }
.stories-section { background: #f5eee3; } .stories-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; } .stories-card { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; } .stories-card img { width: 100%; height: 300px; object-fit: cover; border-radius: 110px 5px 5px 5px; } .stories-empty-copy { color: #687182; line-height: 1.9; }
.site-footer { background: var(--ink); color: #fff; padding: 26px 0; } .footer-inner { display: flex; align-items: center; gap: 35px; } .footer-inner > span { color: rgba(255,255,255,.6); font-size: 13px; margin-right: auto; } .footer-links { display: flex; gap: 18px; font-size: 12px; color: rgba(255,255,255,.65); }
.flash { width: min(700px, calc(100% - 32px)); margin: 14px auto -45px; position: relative; z-index: 5; padding: 12px 18px; border-radius: 5px; text-align: center; font-size: 13px; } .flash-success { background: #e6efda; color: #4f6b37; } .flash-error { background: #f8e0d9; color: #994d42; }
.auth-page { min-height: 65vh; display: grid; place-items: center; padding: 60px 20px; } .auth-card { width: min(440px, 100%); background: #fffdf7; border: 1px solid var(--line); padding: 35px; border-radius: 8px; box-shadow: 0 20px 60px rgba(24,39,70,.1); } .auth-card h1 { color: var(--ink); font-size: 36px; letter-spacing: normal; } .auth-card label { display: block; margin: 15px 0 7px; font-size: 13px; font-weight: 700; } .auth-card .send-button { width: 100%; margin-top: 20px; }
/* ---------- Responsive: clean, intentional breakpoints ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Tablets (landscape) & small laptops */
@media (max-width: 1024px) {
  .header-inner, .footer-inner, .hero-inner, .content-layout, .teacher-feature-inner, .stories-inner { width: calc(100% - 40px); }
  .header-inner { gap: 24px; }
  .content-layout { grid-template-columns: 280px 1fr; gap: 40px; }
  .hero-inner { min-height: 460px; gap: 36px; }
  .hero-copy { padding: 48px 0; }
  .hero-art-wrap { height: 440px; }
  .teacher-feature-inner, .stories-inner { gap: 40px; }
  .posts-grid { grid-template-columns: minmax(0, 1fr); }
}

/* iPads portrait & below: single-column layout (feed first, sidebar after) */
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; gap: 28px; }
  .feed-column { order: 1; }
  .community-sidebar { order: 2; }
  .hero-inner, .teacher-feature-inner, .stories-inner { grid-template-columns: 1fr; }
  .hero-inner { min-height: 0; gap: 12px; }
  .hero-copy { padding: 40px 0 8px; }
  .hero-art-wrap { height: 360px; }
  .note-top { right: 4px; }
  .note-bottom { left: 4px; }
  .hero-copy > p { max-width: none; }
  .teacher-feature, .content-section, .stories-section, .faq-section { padding: 60px 0; }
  .teacher-feature-inner, .stories-inner { gap: 30px; }
  .stories-card { gap: 14px; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner > span { width: 100%; order: 3; margin-right: 0; }
  .posts-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* Phones & small tablets: hamburger nav, tighter spacing */
@media (max-width: 768px) {
  .header-inner { min-height: 64px; gap: 14px; }
  .brand-lockup { font-size: 19px; }
  .brand-mark { height: 54px; }
  .mobile-menu-button { display: inline-flex; margin-inline-start: auto; }
  .main-nav {
    display: none;
    position: absolute;
    inset-inline: 15px;
    top: calc(100% + 4px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 6px 16px 6px 16px;
    background: var(--paper);
    box-shadow: 0 12px 32px rgba(24,39,70,.14);
  }
  .main-nav.is-open { display: flex; animation: rise-in .22s ease both; }
  .main-nav .nav-link { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .main-nav .nav-link:last-child { border-bottom: none; }
  .hero-copy { padding: 30px 0 4px; }
  .hero-art-wrap { height: 300px; }
  .hero-note { padding: 13px 18px; }
  .hero-actions { flex-wrap: wrap; gap: 16px; margin: 22px 0; }
  h1 { font-size: clamp(34px, 9.5vw, 50px); }
  .content-section, .stories-section { padding: 48px 0; }
  .advice-card, .post-card { padding: 18px; }
  .bottom-spacer { display: none; }
  .composer-fields { grid-template-columns: 1fr; }
  .composer-footer { flex-wrap: wrap; gap: 10px; }
  .carousel-image-wrap { height: 180px; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 24px; }
  .pagination { flex-wrap: wrap; }
  .page-link { min-width: 40px; height: 40px; }
  .faq-question { padding: 16px; }
  .faq-answer { padding: 0 16px 16px; }
  .modal-card { width: min(92vw, 560px); padding: 20px; }
  .announcement-bar { padding: 10px 14px; font-size: 13px; }
  .announcement-cta { display: none; }
}

/* Small phones */
@media (max-width: 560px) {
  .header-inner, .footer-inner, .hero-inner, .content-layout, .teacher-feature-inner, .stories-inner { width: calc(100% - 28px); }
  .header-actions { flex-wrap: wrap; gap: 8px 12px; }
  .header-actions .welcome-user { font-size: 12px; }
  .hero-art-wrap { height: 250px; }
  .hero-art-frame { border-radius: 70px 6px 6px 6px; }
  .hero-art-wrap .note-bottom { bottom: 14px; }
  .advice-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .stories-card { grid-template-columns: 1fr; }
  .advice-grid-head h2 { font-size: 26px; }
  .footer-inner { gap: 12px; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
  footer .brand-mark { height: 48px; }
  .avatar { width: 40px; height: 40px; font-size: 12px; }
  h2 { font-size: clamp(20px, 6.5vw, 30px); }
}

/* Touch devices: no hover-lift stickiness */
@media (hover: none) {
  .advice-card:hover, .post-card:hover { transform: none; box-shadow: 0 12px 34px rgba(24,39,70,.07); }
  .carousel-btn:hover, .modal-button:hover { transform: none; }
  .advice-helpful:hover, .helpful-button:hover { border-color: var(--line); color: var(--ink); }
}

html { -webkit-text-size-adjust: 100%; }

/* Modern teacher-advice grid cards */
.advice-grid-section { margin-bottom: 26px; padding: 8px 0; }
.advice-grid-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px;flex-direction:column }

.advice-grid-link { color: var(--coral); font-size: 13px; font-weight: 700; white-space: nowrap; }
.advice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; direction: rtl; }
.advice-card { background: #fffdf7; border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 13px; box-shadow: 0 12px 34px rgba(24,39,70,.07); position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.advice-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; }
.advice-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(24,39,70,.14); }
.advice-card-top { display: flex; align-items: center; gap: 11px; }
.advice-card-teacher strong { display: block; color: var(--ink); font-size: 14px; }
.advice-card-teacher span { color: #89929f; font-size: 12px; }
.advice-card-quote { color: #4e586b; line-height: 1.9; font-size: 15px; margin: 0; flex: 1 1 auto; font-weight: 500; }
.advice-card-duration { align-self: flex-start; color: var(--olive); background: #edf0e6; padding: 3px 10px; border-radius: 99px; font-size: 11px; }
.advice-card .native-audio { margin: 2px 0; }
.advice-card-foot { border-top: 1px dashed var(--line); padding-top: 12px; }
.advice-card-foot form { margin: 0; }
.advice-helpful { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 99px; padding: 7px 13px; cursor: pointer; font: inherit; font-size: 12px; }
.advice-helpful b { color: var(--coral); }
.advice-helpful:hover { border-color: var(--coral); color: var(--coral); }
.advice-helpful.is-helpful { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 3px 10px rgba(26, 143, 227, 0.3); }
.advice-helpful.is-helpful b { color: #fff; }
.advice-helpful.is-helpful:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: #fff; }
.advice-empty { color: #89909e; font-size: 13px; }
@media (max-width: 560px) { .advice-grid { grid-template-columns: 1fr; } .advice-grid-head h2 { font-size: 26px; } }

/* Modern posts grid cards */
.posts-grid-section { margin-bottom: 26px; padding: 8px 0; }
.posts-grid-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.posts-grid-head h2 { font-family: Georgia, serif; font-weight: 600; font-size: 30px; margin: 6px 0 0; color: var(--ink); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; direction: rtl; }
.post-card { margin:0;background: #fffdf7; border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 34px rgba(24,39,70,.07); position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.post-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(24,39,70,.14); }
.post-card-top { display: flex; align-items: center; gap: 11px; }
.post-card-author strong { display: block; color: var(--ink); font-size: 14px; }
.post-card-author span { color: #89929f; font-size: 12px; }
.post-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-card-title { font-family: Georgia, serif; font-weight: 600; font-size: 20px; color: var(--ink); margin: 4px 0 2px; line-height: 1.4; }
.post-card-body { color: #4e586b; line-height: 1.85; font-size: 14px; margin: 0; flex: 1 1 auto; }
.post-card-image { width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; margin: 4px 0; }
.post-card .native-audio { margin: 2px 0; }
.post-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; flex-wrap: wrap; }
.post-card-foot form { margin: 0; }
.helpful-button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 99px; padding: 7px 13px; cursor: pointer; font: inherit; font-size: 12px; }
.helpful-button:hover { border-color: var(--coral); color: var(--coral); }
.helpful-button b { color: var(--coral); }
.text-action { color: #798091; font-size: 13px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: #89909e; }
.empty-state h3 { color: var(--ink); margin-bottom: 8px; }
@media (max-width: 560px) { .posts-grid { grid-template-columns: 1fr; } .posts-grid-head h2 { font-size: 26px; } }

/* FAQ Accordion Section */
.faq-section { background: #faf8f4; padding: 85px 0; }
.faq-inner { width: min(900px, calc(100% - 48px)); margin: 0 auto; }
.faq-head { text-align: center; margin-bottom: 36px; }
.faq-head .eyebrow { display: block; margin-bottom: 8px; }
.faq-head h2 { font-size: clamp(28px, 4vw, 42px); color: var(--ink); margin: 0 0 12px; }
.faq-head p { color: #6e7786; font-size: 15px; line-height: 1.8; }
.faq-head a { color: var(--coral); font-weight: 600; }
.faq-head a:hover { text-decoration: underline; }

.faq-accordion { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fffdf7; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.faq-item:hover { border-color: var(--line-strong); box-shadow: 0 8px 24px rgba(24,39,70,.06); }
.faq-item[open] { border-color: var(--coral); box-shadow: 0 12px 32px rgba(26, 143, 227, 0.12); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question > span:first-child { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.faq-icon { width: 24px; height: 24px; flex-shrink: 0; transition: transform .25s ease; color: var(--coral); }
.faq-icon::before { content: ""; display: block; width: 100%; height: 100%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a8fe3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 20px; color: #4e586b; line-height: 1.9; font-size: 14px; animation: faqSlide .25s ease; }
.faq-answer p { margin: 0; }
.faq-answer strong { color: var(--ink); }
.faq-answer a { color: var(--coral); font-weight: 600; }
.faq-answer a:hover { text-decoration: underline; }
@keyframes faqSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 560px) { .faq-section { padding: 60px 0; } .faq-question { padding: 16px; } .faq-answer { padding: 0 16px 16px; } .faq-head h2 { font-size: 28px; } }

/* jQuery Carousel (sidebar) */
.sidebar-card.carousel-card { background: #fffdf7; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; padding: 18px 18px 14px; box-shadow: var(--shadow-md); }
.carousel-card .sidebar-card-head { margin-bottom: 12px; }
.carousel { position: relative; direction: ltr; border-radius: 10px; overflow: hidden; }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.65,.05,.36,1); }
.carousel-slide { flex: 0 0 100%; min-width: 100%; position: relative; }
.carousel-image-wrap { position: relative; width: 100%; height: 195px; overflow: hidden; background: var(--coral-light); }
.carousel-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-caption { position: absolute; inset: auto 0 0 0; padding: 36px 16px 14px; background: linear-gradient(180deg, rgba(24,39,70,0) 0%, rgba(24,39,70,.82) 100%); text-align: center; }
.carousel-title { margin: 0 0 8px; color: #fff; font-size: 17px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.carousel-btn { display: inline-block; background: var(--coral); color: #fff; padding: 7px 16px; border-radius: 99px; font-size: 13px; font-weight: 700; text-decoration: none; box-shadow: 0 3px 10px rgba(26,143,227,.35); transition: background var(--transition), transform var(--transition); }
.carousel-btn:hover { background: var(--coral-dark); transform: translateY(-1px); }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 3px 12px rgba(24,39,70,.2); z-index: 3; display: grid; place-items: center; padding: 0; transition: background var(--transition), color var(--transition); }
.carousel-arrow:hover { background: var(--coral); color: #fff; }
.carousel-prev { left: 10px; } .carousel-next { right: 10px; }
.carousel-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; list-style: none; margin: 0; padding: 0; z-index: 3; }
.carousel-dot { width: 9px; height: 9px; border-radius: 99px; background: rgba(255,255,255,.55); cursor: pointer; transition: background var(--transition), width var(--transition); }
.carousel-dot.is-current { background: #fff; width: 22px; }
@media (max-width: 560px) { .carousel-card { padding: 14px; } .carousel-image-wrap { height: 175px; } }

/* Announcement bar + modal */
.announcement-bar { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; border: 0; cursor: pointer; padding: 12px 20px; 
background: linear-gradient(90deg, var(--coral) 0%, #0da1dd 100%); color: #fff; font-family: var(--font-main); font-size: 15px; font-weight: 700; position: relative; z-index: 60; transition: filter var(--transition); }
.announcement-bar:hover { filter: brightness(1.08); }
.announcement-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 14px; flex: 0 0 auto; }
.announcement-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announcement-cta { flex: 0 0 auto; font-size: 13px; background: rgba(255,255,255,.16); padding: 4px 12px; border-radius: 99px; }
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(24,39,70,.6); backdrop-filter: blur(3px); animation: fadeIn .2s ease; }
.modal-overlay[hidden] { display: none; }
.modal-card { position: relative; width: min(560px, 100%); max-height: 88vh; overflow: auto; background: #fffdf7; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 28px; text-align: center; animation: modalRise .28s cubic-bezier(.65,.05,.36,1); }
.modal-card .modal-image { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 18px; }
.modal-title { font-size: 26px; color: var(--ink); margin: 0 0 10px; }
.modal-body { color: #4e586b; font-size: 15px; line-height: 1.9; margin: 0 0 20px; }
.modal-button { display: inline-block; background: var(--coral); color: #fff; padding: 11px 26px; border-radius: 99px; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 14px rgba(26,143,227,.35); transition: background var(--transition), transform var(--transition); }
.modal-button:hover { background: var(--coral-dark); transform: translateY(-2px); }
.modal-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(24,39,70,.08); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background var(--transition); }
.modal-close:hover { background: rgba(24,39,70,.18); }
body.modal-open { overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 560px) { .announcement-bar { font-size: 13px; padding: 10px 14px; } .announcement-cta { display: none; } .modal-card { padding: 20px; } }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 4px; }
.pagination.is-loading { opacity: .55; pointer-events: none; }
.page-link { min-width: 34px; height: 34px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; transition: border-color var(--transition), background var(--transition), color var(--transition); }
.page-link:hover { border-color: var(--coral); color: var(--coral); }
.page-link.active { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 3px 10px rgba(26,143,227,.3); }
.page-link.disabled { opacity: .4; pointer-events: none; background: #f2f4f8; color: #9aa3b2; }
.sidebar-card .pagination { margin-top: 14px; }
.advice-grid-section .pagination { justify-content: center; }
#teachers, #posts, #feed, #stories, #faq, #share, #teacher-advice { scroll-margin-top: 88px; }
