/* Friends Federation 98: a modern take on legacy views/themes/primary/generation (layout ff98_2k), with the colours of
   legacy's style_generation_ff98_2k.css (pink #f9488b, orange #ee8425, blue #3D5A9C, gold #dbcc8f). Bootstrap 5 base. */

:root {
  --ff-pink: #f9488b;
  --ff-pink-700: #d92f70;
  --ff-orange: #ee8425;
  --ff-blue: #3d5a9c;
  --ff-blue-900: #1d2c52;
  --ff-gold: #dbcc8f;
  --ff-ink: #1f2433;
  --ff-muted: #5d6475;
  --ff-surface: #fbf6f8;
  --ff-border: #eee3e8;
  --ff-radius: 18px;
  --ff-shadow: 0 2px 6px rgba(31, 36, 51, 0.05), 0 14px 34px rgba(31, 36, 51, 0.07);
  --ff-gradient: linear-gradient(120deg, var(--ff-pink) 0%, var(--ff-orange) 100%);
  --bs-link-color: var(--ff-pink-700);
  --bs-link-color-rgb: 217, 47, 112;
  --bs-link-hover-color: var(--ff-orange);
}

body.ff {
  font-family: 'Hind Siliguri', 'Poppins', system-ui, sans-serif;
  color: var(--ff-ink);
  font-size: 1.03rem;
  line-height: 1.75;
  background: #fff;
}
.ff h1, .ff h2, .ff h3, .ff h4 { font-family: 'Poppins', 'Hind Siliguri', sans-serif; font-weight: 700; letter-spacing: -0.01em; color: var(--ff-ink); }
.ff a { text-decoration: none; }
.ff-skip { position: absolute; z-index: 2000; left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* buttons */
.btn-ff { background: var(--ff-gradient); border: 0; color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(249, 72, 139, .28); }
.btn-ff:hover, .btn-ff:focus { color: #fff; filter: brightness(1.05); transform: translateY(-1px); }
.btn-ff-outline { border: 2px solid var(--ff-pink); color: var(--ff-pink-700); font-weight: 600; background: #fff; }
.btn-ff-outline:hover { background: var(--ff-pink); color: #fff; }

/* top bar: the announcement (legacy top_area) */
.ff-topbar { background: var(--ff-blue-900); color: #fff; font-size: .95rem; padding: .45rem 0; }
.ff-marquee { flex: 1; overflow: hidden; white-space: nowrap; }
.ff-marquee span { display: inline-block; padding-left: 100%; animation: ff-marquee 18s linear infinite; }
@keyframes ff-marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ff-marquee span { animation: none; padding-left: 0; } }

/* logo bar and menu */
.ff-logobar { background: #fff; padding: .9rem 0; }
.ff-brand img { max-height: 92px; width: auto; }
.ff-nav { background: #fff; border-top: 1px solid var(--ff-border); border-bottom: 3px solid var(--ff-pink); box-shadow: 0 6px 20px rgba(31, 36, 51, .06); }
.ff-nav .nav-link { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .95rem; color: var(--ff-ink); padding: 1rem .9rem !important; }
.ff-nav .nav-link:hover, .ff-nav .nav-link.active, .ff-nav .show > .nav-link { color: var(--ff-pink-700); }
.ff-nav .dropdown-menu { border: 0; border-radius: 14px; box-shadow: var(--ff-shadow); padding: .5rem; }
.ff-nav .dropdown-item { border-radius: 10px; padding: .55rem .9rem; font-weight: 500; }
.ff-nav .dropdown-item:hover { background: var(--ff-surface); color: var(--ff-pink-700); }
.ff-nav-title { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--ff-blue); }
@media (min-width: 992px) { .ff-nav .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; } }

/* banner (home slider) */
.ff-banner-img { height: clamp(220px, 46vw, 560px); background-size: cover; background-position: center; }

/* inner pages' title band (legacy page_title) */
.ff-hero { background: var(--ff-gradient); color: #fff; text-align: center; padding: 3.2rem 0 2.6rem; position: relative; overflow: hidden; }
.ff-hero::after { content: ''; position: absolute; inset: auto -10% -60% auto; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.ff-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.5rem); margin-bottom: .4rem; }
.ff-hero-sub { opacity: .9; margin-bottom: .6rem; }
.ff-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .7); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .85); font-size: .92rem; }
.ff-hero .breadcrumb a { color: #fff; }

/* sections */
.ff-section { padding: 3.5rem 0; }
.ff-block { padding: 4.5rem 0; }
.ff-block-alt { background: var(--ff-surface); }
.ff-heading { text-align: center; max-width: 680px; margin: 0 auto 2.6rem; }
.ff-eyebrow { display: inline-block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ff-pink-700); background: rgba(249, 72, 139, .1); padding: .35rem .95rem; border-radius: 999px; margin-bottom: .8rem; }
.ff-heading h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }
.ff-card { display: block; background: #fff; border: 1px solid var(--ff-border); border-radius: var(--ff-radius); box-shadow: var(--ff-shadow); transition: transform .2s, box-shadow .2s; overflow: hidden; color: inherit; }
a.ff-card:hover, .ff-card:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(31, 36, 51, .06), 0 22px 44px rgba(31, 36, 51, .1); }
.ff-date { display: inline-block; font-size: .85rem; color: var(--ff-muted); }
.ff-more { font-weight: 600; color: var(--ff-pink-700); white-space: nowrap; }
.ff-img-blank { display: grid; place-items: center; height: 100%; min-height: 200px; background: var(--ff-surface); color: var(--ff-muted); font-size: 2.4rem; }
.ff-empty { text-align: center; color: var(--ff-muted); padding: 2rem 0; }
.ff-empty > i { font-size: 2.6rem; color: var(--ff-pink); }
.ff-empty h2 { font-size: 1.4rem; margin-top: .8rem; }
.ff-404 { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; background: var(--ff-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* home blocks */
.ff-notice { padding: 2rem; border-top: 4px solid var(--ff-pink); }
.ff-notice h3 { font-size: 1.2rem; margin: .4rem 0 .8rem; }
.ff-notice h3 a, .ff-news h3 a, .ff-list-item h3 a { color: var(--ff-ink); }
.ff-notice h3 a:hover, .ff-news h3 a:hover, .ff-list-item h3 a:hover { color: var(--ff-pink-700); }
.ff-news-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ff-surface); }
.ff-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ff-news:hover .ff-news-img img { transform: scale(1.05); }
.ff-news h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.ff-about { overflow-x: hidden; }
.ff-block-national_anthem { background: linear-gradient(120deg, var(--ff-blue-900), var(--ff-blue)); }
.ff-anthem, .ff-anthem-text, .ff-anthem-text * { color: #fff !important; }
.ff-anthem-video { border-radius: var(--ff-radius); overflow: hidden; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.ff-anthem-text { font-size: 1.05rem; }
.ff-strip-wrap { position: relative; }
.ff-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .3rem; }
.ff-strip::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .ff-strip { grid-auto-columns: calc((100% - 3.3rem) / 4); } }
.ff-strip-item { scroll-snap-align: start; border-radius: var(--ff-radius); overflow: hidden; box-shadow: var(--ff-shadow); background: var(--ff-surface); }
.ff-activity img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ff-strip-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ff-pink-700); box-shadow: var(--ff-shadow); }
.ff-strip-prev { left: -14px; } .ff-strip-next { right: -14px; }
.ff-partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.ff-partner { display: grid; place-items: center; width: 200px; height: 120px; padding: 1rem; background: #fff; border: 1px solid var(--ff-border); border-radius: var(--ff-radius); box-shadow: var(--ff-shadow); transition: transform .2s; }
.ff-partner:hover { transform: translateY(-3px); }
.ff-partner img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ff-album img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.ff-album strong { display: block; padding: 1rem 1.2rem; font-family: 'Poppins', 'Hind Siliguri', sans-serif; color: var(--ff-ink); }
.ff-album:hover strong { color: var(--ff-pink-700); }

/* lists and articles */
.ff-list { display: grid; gap: 1.4rem; }
.ff-list-item { display: flex; flex-direction: column; }
@media (min-width: 768px) { .ff-list-item { flex-direction: row; } }
.ff-list-img { flex: 0 0 300px; max-width: 100%; background: var(--ff-surface); }
.ff-list-img img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block; }
.ff-list-body { padding: 1.5rem 1.7rem; }
.ff-list-body h3 { font-size: 1.2rem; margin: .3rem 0 .4rem; text-transform: uppercase; }
.ff-list-sub { font-weight: 600; color: var(--ff-muted); margin-bottom: .4rem; }
.ff-article-sub { font-weight: 600; font-size: 1.1rem; color: var(--ff-muted); }
.ff-article-img { float: left; max-width: min(100%, 420px); margin: 0 1.6rem 1.2rem 0; border-radius: var(--ff-radius); box-shadow: var(--ff-shadow); }
.ff-prose { overflow-wrap: anywhere; }
.ff-prose img { max-width: 100%; height: auto; border-radius: 10px; }
.ff-prose table { width: 100%; max-width: 100%; display: block; overflow-x: auto; }
.ff-prose iframe { max-width: 100%; }
@media (max-width: 767px) { .ff-article-img { float: none; margin: 0 0 1rem; } }

/* sidebar */
.ff-sidebar { display: grid; gap: 1.5rem; }
.ff-side-box { background: #fff; border: 1px solid var(--ff-border); border-radius: var(--ff-radius); box-shadow: var(--ff-shadow); padding: 1.4rem; }
.ff-side-title { font-size: 1.1rem; padding-bottom: .6rem; margin-bottom: 1rem; border-bottom: 2px solid var(--ff-surface); position: relative; }
.ff-side-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 48px; height: 2px; background: var(--ff-pink); }
.ff-side-post { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; color: var(--ff-ink); }
.ff-side-post img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.ff-side-post:hover { color: var(--ff-pink-700); }
.ff-side-item { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--ff-surface); }
.ff-side-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.ff-side-item h4 { font-size: .98rem; margin: 0 0 .2rem; }
.ff-side-item p { font-size: .88rem; color: var(--ff-muted); margin: 0; }

/* contact */
.ff-form .form-control { border-radius: 12px; padding: .7rem 1rem; border-color: var(--ff-border); }
.ff-form .form-control:focus { border-color: var(--ff-pink); box-shadow: 0 0 0 .2rem rgba(249, 72, 139, .15); }
.ff-form .form-label { font-weight: 600; font-size: .92rem; }
.ff-map iframe { width: 100%; min-height: 360px; border: 0; border-radius: var(--ff-radius); }

/* album photos and viewer */
.ff-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.ff-photo { padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ff-surface); cursor: zoom-in; }
.ff-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ff-photo:hover img { transform: scale(1.05); }
.ff-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(15, 18, 30, .94); display: flex; align-items: center; justify-content: center; padding: 2rem 4.5rem; }
.ff-lightbox figure { margin: 0; text-align: center; max-width: 100%; }
.ff-lightbox img { max-height: 82vh; max-width: 100%; border-radius: 10px; }
.ff-lightbox figcaption { color: #d7dae6; margin-top: .75rem; font-size: .88rem; }
.ff-lb-btn { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem; display: grid; place-items: center; }
.ff-lb-btn:hover { background: rgba(255, 255, 255, .25); }
.ff-lb-close { top: 1rem; right: 1rem; } .ff-lb-prev { left: 1rem; } .ff-lb-next { right: 1rem; }

/* footer */
.ff-footer { background: var(--ff-blue-900); color: rgba(255, 255, 255, .82); padding-top: 3.5rem; }
.ff-footer a { color: #fff; }
.ff-footer a:hover { color: var(--ff-gold); }
.ff-footer-title { color: #fff !important; font-size: 1.15rem; margin-bottom: 1.1rem; }
.ff-social { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 1.1rem; transition: background .2s; }
.ff-social:hover { background: var(--ff-gradient); color: #fff !important; }
.ff-footer-bottom { margin-top: 3rem; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; }
