/* =========================================================================
   TAMSYA — Islamic design language
   Mihrab arches, eight-point stars (khatam), arcade edges and a geometric
   lattice. Shapes are CSS masks, so they always take the brand colours
   configured in Settings (see --t-* variables in the website layout).
   ========================================================================= */
:root {
    --t-font-arabic: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
    /* eight-point star (two overlapping squares) */
    --t-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0l14.6 14.6H85.4v20.8L100 50 85.4 64.6v20.8H64.6L50 100 35.4 85.4H14.6V64.6L0 50l14.6-14.6V14.6h20.8z'/%3E%3C/svg%3E");
    --t-star-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M50 3l13.8 13.8h19.4v19.4L97 50 83.2 63.8v19.4H63.8L50 97 36.2 83.2H16.8V63.8L3 50l13.8-13.8V16.8h19.4z'/%3E%3Ccircle cx='50' cy='50' r='16'/%3E%3C/svg%3E");
    /* girih-style lattice */
    --t-lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M40 4l10.5 10.5H65.5v15L76 40 65.5 50.5v15H50.5L40 76 29.5 65.5h-15v-15L4 40l10.5-10.5v-15h15z'/%3E%3Cpath d='M40 22l18 18-18 18-18-18z'/%3E%3Cpath d='M0 0l14.5 14.5M80 0L65.5 14.5M0 80l14.5-14.5M80 80L65.5 65.5'/%3E%3C/svg%3E");
    --t-arch-radius: 50% 50% var(--t-radius) var(--t-radius) / 38% 38% var(--t-radius) var(--t-radius);
}

.arabic { font-family: var(--t-font-arabic); direction: rtl; line-height: 1.6; }
.bismillah {
    font-family: var(--t-font-arabic); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--t-accent);
    line-height: 1.4; margin-bottom: .5rem; direction: rtl; display: block;
}

/* Brand-coloured geometric lattice behind a section */
.bg-geo { position: relative; isolation: isolate; }
.bg-geo::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: var(--t-primary); opacity: .045;
    -webkit-mask: var(--t-lattice) repeat; mask: var(--t-lattice) repeat;
    -webkit-mask-size: 80px; mask-size: 80px;
}

/* Eight-point star shapes */
.star8, .star8-outline {
    display: inline-block; width: 1em; height: 1em; background: currentColor; vertical-align: -.1em;
    -webkit-mask: var(--t-star) center / contain no-repeat; mask: var(--t-star) center / contain no-repeat;
}
.star8-outline { -webkit-mask-image: var(--t-star-outline); mask-image: var(--t-star-outline); }
.float-star {
    position: absolute; pointer-events: none; color: var(--t-accent); opacity: .35; z-index: 0;
    animation: t-rotate 60s linear infinite;
}
.float-star.slow { animation-duration: 120s; animation-direction: reverse; }
@keyframes t-rotate { to { transform: rotate(360deg); } }

/* Ornamental divider  ─── ✦ ─── */
.t-ornament { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--t-accent); margin: 1rem auto 0; }
.t-ornament::before, .t-ornament::after { content: ""; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, currentColor); }
.t-ornament::after { transform: scaleX(-1); }
.t-ornament .star8 { font-size: 14px; }
.t-ornament .star8.sm { font-size: 7px; opacity: .7; }

/* Section titles: lines + a star in the middle */
.section-title h1::after, .section-title h2::after, .section-title h3::after {
    width: 140px !important; height: 14px !important;
    background:
        linear-gradient(90deg, transparent, var(--t-accent)) left center / 56px 1px no-repeat,
        linear-gradient(270deg, transparent, var(--t-accent)) right center / 56px 1px no-repeat,
        var(--t-accent) !important;
    -webkit-mask: linear-gradient(#000, #000) left center / 56px 1px no-repeat, linear-gradient(#000, #000) right center / 56px 1px no-repeat, var(--t-star) center / 14px 14px no-repeat;
    mask: linear-gradient(#000, #000) left center / 56px 1px no-repeat, linear-gradient(#000, #000) right center / 56px 1px no-repeat, var(--t-star) center / 14px 14px no-repeat;
}

/* Mihrab arch frame for photos */
.arch-frame { position: relative; border-radius: var(--t-arch-radius); overflow: hidden; }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arch-outline { position: relative; }
.arch-outline::before {
    content: ""; position: absolute; inset: -10px; border: 1.5px solid rgba(var(--t-accent-rgb), .8);
    border-radius: var(--t-arch-radius); pointer-events: none;
}
.arch-outline::after {
    content: ""; position: absolute; inset: -20px; border: 1px dashed rgba(var(--t-accent-rgb), .4);
    border-radius: var(--t-arch-radius); pointer-events: none;
}

/* Arcade edge: a row of small arches cut along the bottom/top of a block */
.arcade-bottom { position: relative; }
.arcade-bottom::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 22px; z-index: 3; pointer-events: none;
    background: radial-gradient(circle at 22px 0, transparent 21px, var(--arcade-bg, var(--t-paper)) 22px) repeat-x;
    background-size: 44px 22px;
}
.arcade-top { position: relative; }
.arcade-top::before {
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 22px; z-index: 3; pointer-events: none;
    background: radial-gradient(circle at 22px 22px, transparent 21px, var(--arcade-bg, var(--t-paper)) 22px) repeat-x;
    background-size: 44px 22px;
}

/* Grey TAMSYA placeholder state */
img.is-placeholder { object-fit: cover; background: #e9e9ea; }

/* ---------- Page hero: stars, bismillah, arcade edge ---------- */
.page-hero .float-star.s1 { width: 220px; height: 220px; left: -70px; top: -60px; color: #fff; opacity: .08; }
.page-hero .float-star.s2 { width: 110px; height: 110px; right: 7%; bottom: 36px; opacity: .3; }
.page-hero .container { z-index: 1; }
.page-hero::after {
    clip-path: none !important; height: 22px !important; background: radial-gradient(circle at 22px 22px, transparent 21px, var(--t-paper) 22px) repeat-x !important;
    background-size: 44px 22px !important;
}
.page-hero .bismillah { font-size: 1.35rem; opacity: .95; }

/* ---------- Home hero slider ---------- */
.hero-shell { position: relative; padding: 1.75rem 0 2.5rem; overflow: hidden; }
.hero-shell .float-star.s1 { width: 240px; height: 240px; top: -80px; left: -80px; opacity: .25; }
.hero-shell .float-star.s2 { width: 170px; height: 170px; bottom: -30px; right: -60px; opacity: .25; }
.hero-frame {
    position: relative; z-index: 1; border-radius: 28px; overflow: hidden; box-shadow: var(--t-shadow-lg);
    border: 6px solid #fff; outline: 1px solid rgba(var(--t-accent-rgb), .55); outline-offset: 7px;
}
.hero-frame .carousel-item { position: relative; background: #e9e9ea; }
/* 16:9 keeps text that is designed into banner images fully visible */
/* Show each banner whole, at its own proportions, on every screen. The old template CSS forced
   fixed heights (500/350/250px) with object-fit: cover, which cropped banner text on phones. */
.hero-frame .carousel-item img {
    width: 100% !important; height: auto !important; max-height: none !important; min-height: 0 !important;
    aspect-ratio: auto !important; object-fit: contain !important; position: static !important; display: block;
}
.hero-frame .carousel-item { min-height: 0 !important; }
.hero-frame .carousel-inner { background: #e9e9ea; }
.hero-frame .carousel-item.has-caption::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(var(--t-primary-rgb), .72));
}

/* Prev / next: frosted round buttons with a brand ring and an accent star on hover */
.hero-nav {
    position: absolute; top: 50%; z-index: 5; transform: translateY(-50%);
    width: 54px; height: 54px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    display: grid; place-items: center; color: var(--t-primary); font-size: 1rem;
    background: rgba(255, 255, 255, .88); box-shadow: 0 10px 25px -10px rgba(0, 0, 0, .45), 0 0 0 4px rgba(255, 255, 255, .28);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform .25s var(--t-ease), background .25s, color .25s, box-shadow .25s;
}
.hero-nav::before {
    content: ""; position: absolute; inset: -9px; background: var(--t-accent); opacity: 0; transform: rotate(0deg) scale(.85);
    -webkit-mask: var(--t-star-outline) center / contain no-repeat; mask: var(--t-star-outline) center / contain no-repeat;
    transition: opacity .3s, transform .6s var(--t-ease); pointer-events: none;
}
.hero-nav:hover, .hero-nav:focus-visible { background: var(--t-primary); color: var(--t-on-primary); outline: none; }
.hero-nav:hover::before, .hero-nav:focus-visible::before { opacity: .9; transform: rotate(45deg) scale(1); }
.hero-nav:active { transform: translateY(-50%) scale(.94); }
.hero-prev { left: 1.25rem; }
.hero-next { right: 1.25rem; }
.hero-counter {
    position: absolute; right: 1.25rem; top: 1.1rem; z-index: 5; padding: .3rem .8rem; border-radius: 999px;
    background: rgba(0, 0, 0, .35); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .08em;
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-variant-numeric: tabular-nums;
}
.hero-counter span { color: var(--t-accent); }
@media (max-width: 767.98px) {
    .hero-shell { padding: .75rem 0 1.75rem; }
    /* Phones: controls live in a slim strip under the banner so they never cover its text */
    .hero-frame .carousel { padding-bottom: 48px; background: #fff; }
    .hero-nav { width: 36px; height: 36px; font-size: .78rem; top: auto; bottom: 6px; transform: none; box-shadow: none;
        background: var(--t-primary-tint); color: var(--t-primary); border: 1px solid var(--t-line); }
    .hero-nav:active { transform: scale(.94); }
    .hero-nav::before { display: none; }
    .hero-prev { left: .65rem; }
    .hero-next { right: .65rem; }
    .hero-frame .carousel-indicators { margin-bottom: 0; bottom: 14px; }
    .hero-frame .carousel-indicators [data-bs-target] { width: 8px; height: 8px; margin: 0 5px; background-color: var(--t-primary); opacity: .3; }
    .hero-frame .carousel-indicators .active { opacity: 1; background-color: var(--t-accent); }
    .hero-counter { display: none; }
    .hero-caption h2 { font-size: 1.05rem; }
    .hero-caption .section-eyebrow { display: none; }
}
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 2.5rem 3rem 3.5rem; color: #fff; }
@media (max-width: 767.98px) { .hero-caption { padding: 1.25rem 1.25rem 2.75rem; } }
.hero-caption h2 { color: #fff; font-size: clamp(1.35rem, 3.4vw, 2.8rem); margin: 0; max-width: 820px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-caption .section-eyebrow { color: var(--t-accent); margin-bottom: .5rem; }
.hero-frame .carousel-indicators { margin-bottom: 1.2rem; z-index: 4; }
.hero-frame .carousel-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); margin: 0 8px; border: 0; background-color: #fff; opacity: .55;
}
.hero-frame .carousel-indicators .active { opacity: 1; background-color: var(--t-accent); }
.hero-frame .carousel-control-prev, .hero-frame .carousel-control-next { z-index: 4; width: 8%; }
.hero-frame .carousel-control-prev-icon, .hero-frame .carousel-control-next-icon {
    width: 48px; height: 48px; border-radius: 50%; background-color: rgba(255,255,255,.16); background-size: 40%;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.35);
}
.hero-empty {
    aspect-ratio: 16 / 7; display: grid; place-items: center; text-align: center; color: #fff; padding: 2rem;
    background: radial-gradient(600px 300px at 80% 0%, rgba(var(--t-accent-rgb), .35), transparent 60%), linear-gradient(135deg, var(--t-primary-deep), var(--t-primary));
}
.hero-empty h2 { color: #fff; }

/* ---------- Welcome / about band with president ---------- */
.welcome-band {
    position: relative; overflow: hidden; color: #fff; border-radius: 32px; isolation: isolate;
    background:
        radial-gradient(700px 320px at 100% 0%, rgba(var(--t-accent-rgb), .30), transparent 60%),
        linear-gradient(135deg, var(--t-primary-deep), var(--t-primary) 75%);
    box-shadow: var(--t-shadow-lg);
}
.welcome-band::before {
    content: ""; position: absolute; inset: 0; background: #fff; opacity: .07; pointer-events: none; z-index: -1;
    -webkit-mask: var(--t-lattice) repeat; mask: var(--t-lattice) repeat; -webkit-mask-size: 80px; mask-size: 80px;
}
.welcome-band .float-star.s1 { width: 300px; height: 300px; right: -100px; bottom: -120px; color: #fff; opacity: .08; }
.welcome-band .float-star.s2 { width: 64px; height: 64px; left: 52%; top: 28px; opacity: .45; }
.welcome-band .welcome-copy { position: relative; padding: 3.5rem 3.25rem; }
@media (max-width: 575.98px) { .welcome-band .welcome-copy { padding: 2.5rem 1.5rem; } }
.welcome-band h2 { color: #fff; font-size: clamp(2.1rem, 3.8vw, 3rem); }
.welcome-band p { color: rgba(255,255,255,.86); font-size: 1.04rem; text-align: justify; }
.welcome-band .about-facts { display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem; margin: 1.75rem 0 2rem; }
.welcome-band .about-facts div { border-inline-start: 2px solid var(--t-accent); padding-inline-start: .85rem; }
.welcome-band .about-facts strong { display: block; font-family: var(--t-font-display); font-size: 1.7rem; color: #fff; line-height: 1.1; }
.welcome-band .about-facts span { font-size: .76rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .1em; }

.president-arch { position: relative; padding: 3.5rem 2.5rem 3rem; text-align: center; }
.president-arch .arch-outline { max-width: 290px; margin: 0 auto; }
.president-arch .arch-frame { aspect-ratio: 4 / 5; background: rgba(255,255,255,.1); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.president-arch .arch-frame img { object-position: top center; }
.president-arch .p-star {
    position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 56px; height: 56px; z-index: 2;
    display: grid; place-items: center; color: var(--t-on-accent);
}
.president-arch .p-star::before {
    content: ""; position: absolute; inset: 0; background: var(--t-accent);
    -webkit-mask: var(--t-star) center / contain no-repeat; mask: var(--t-star) center / contain no-repeat;
}
.president-arch .p-star i { position: relative; font-size: 1rem; }
.president-arch .p-plate {
    position: relative; margin: -1.75rem auto 0; max-width: 270px; background: #fff; border-radius: 14px;
    padding: .9rem 1rem; box-shadow: var(--t-shadow); z-index: 2;
}
.president-arch .p-plate h5 { font-family: var(--t-font-display); font-size: 1.35rem; margin: 0 0 .1rem; color: var(--t-ink); }
.president-arch .p-plate small { color: var(--t-primary); font-weight: 700; letter-spacing: .02em; font-size: .82rem; }

/* ---------- Content cards (news / programs / projects) ---------- */
.content-card {
    background: #fff; border: 1px solid var(--t-line); border-radius: 18px; overflow: hidden; height: 100%;
    display: flex; flex-direction: column; transition: transform .35s var(--t-ease), box-shadow .35s var(--t-ease);
}
.content-card:hover { transform: translateY(-6px); box-shadow: var(--t-shadow); }
.content-card .cc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #e9e9ea; flex-shrink: 0; }
.content-card .cc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--t-ease); }
.content-card:hover .cc-media img { transform: scale(1.05); }
.content-card .cc-media.arch-top { border-radius: 50% 50% 0 0 / 24% 24% 0 0; margin: .75rem .75rem 0; }
.content-card .cc-badge {
    position: absolute; top: .9rem; left: .9rem; z-index: 2; background: rgba(255,255,255,.95); color: var(--t-primary);
    font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .32rem .75rem; border-radius: 999px;
    text-decoration: none;
}
/* On arch-topped images the top corners are cut away, so labels sit at the (square) bottom instead */
.content-card .cc-media.arch-top .cc-badge,
.content-card .cc-media.arch-top .badge {
    top: auto !important; bottom: .85rem !important; left: 50% !important; right: auto !important;
    transform: translateX(-50%); white-space: nowrap; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35);
}
.content-card .cc-date-wrap { position: relative; }
.content-card .cc-date {
    position: absolute; right: 1rem; top: -30px; z-index: 3; width: 60px; height: 60px; display: grid; place-items: center;
    text-align: center; color: var(--t-on-accent); line-height: 1; font-weight: 700;
}
.content-card .cc-date::before {
    content: ""; position: absolute; inset: 0; background: var(--t-accent);
    -webkit-mask: var(--t-star) center / contain no-repeat; mask: var(--t-star) center / contain no-repeat;
}
.content-card .cc-date span, .content-card .cc-date small { position: relative; }
.content-card .cc-date span { font-size: 1.05rem; display: block; }
.content-card .cc-date small { font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; }
.content-card .cc-body { padding: 1.5rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.content-card .cc-meta { font-size: .8rem; color: var(--t-muted); margin-bottom: .5rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.content-card .cc-meta i { color: var(--t-accent); margin-right: .3rem; }
.content-card h3, .content-card h5 { font-family: var(--t-font-display); font-size: 1.35rem; line-height: 1.25; margin-bottom: .6rem; font-weight: 700; }
.content-card h3 a, .content-card h5 a { color: var(--t-ink); text-decoration: none; }
.content-card h3 a:hover, .content-card h5 a:hover { color: var(--t-primary); }
.content-card .cc-excerpt {
    color: var(--t-ink-soft); font-size: .93rem; margin-bottom: 1rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.content-card .cc-link { margin-top: auto; font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.content-card .cc-link i { transition: transform .25s var(--t-ease); }
.content-card:hover .cc-link i { transform: translateX(4px); }
.content-card.featured { flex-direction: row; }
@media (max-width: 991.98px) { .content-card.featured { flex-direction: column; } }
.content-card.featured .cc-media { aspect-ratio: auto; min-height: 340px; flex: 0 0 55%; }
@media (max-width: 991.98px) { .content-card.featured .cc-media { min-height: 240px; aspect-ratio: 16 / 10; } }
.content-card.featured .cc-body { padding: 2.25rem; justify-content: center; }
.content-card.featured h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }

/* progress (projects) */
.t-progress { height: 8px; border-radius: 999px; background: var(--t-primary-soft); overflow: hidden; }
.t-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--t-primary), var(--t-accent)); }

/* filter chips & pagination */
.t-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.t-chip {
    border: 1px solid var(--t-line); background: #fff; color: var(--t-ink-soft); border-radius: 999px;
    padding: .45rem 1.05rem; font-weight: 600; font-size: .86rem; cursor: pointer; transition: all .2s; text-decoration: none;
}
.t-chip:hover { border-color: var(--t-primary); color: var(--t-primary); }
.t-chip.active { background: var(--t-primary); border-color: var(--t-primary); color: var(--t-on-primary); }
.pagination { gap: 4px; }
.pagination .page-link { border-radius: 10px !important; border-color: var(--t-line); color: var(--t-ink-soft); }
.pagination .page-item.active .page-link { background: var(--t-primary); border-color: var(--t-primary); color: var(--t-on-primary); }

/* ---------- Article (news details) ---------- */
.article-body { font-size: 1.06rem; line-height: 1.85; color: var(--t-ink-soft); overflow-wrap: anywhere; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 1rem 0; }
.article-body h2, .article-body h3 { margin-top: 2rem; }
.article-body blockquote {
    border-inline-start: 3px solid var(--t-accent); padding-inline-start: 1.1rem;
    font-family: var(--t-font-display); font-size: 1.25rem; font-style: italic;
}
.article-cover { border-radius: 24px; overflow: hidden; box-shadow: var(--t-shadow-lg); background: #e9e9ea; }
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.side-card { background: #fff; border: 1px solid var(--t-line); border-radius: 18px; padding: 1.5rem; }
.side-card h5 { font-family: var(--t-font-display); font-size: 1.3rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.side-card h5 .star8 { color: var(--t-accent); font-size: 12px; }
.mini-post { display: flex; gap: .85rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--t-line); text-decoration: none; }
.mini-post:last-child { border-bottom: 0; }
.mini-post img { width: 74px; height: 62px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #e9e9ea; }
.mini-post strong { color: var(--t-ink); font-size: .92rem; line-height: 1.3; display: block; }
.mini-post:hover strong { color: var(--t-primary); }
.mini-post small { color: var(--t-muted); }
.share-row a {
    width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--t-line);
    color: var(--t-ink-soft); margin-inline-end: .35rem; transition: all .2s; text-decoration: none;
}
.share-row a:hover { background: var(--t-primary); color: var(--t-on-primary); border-color: var(--t-primary); }

/* ---------- Value / pillar cards (about, home) ---------- */
.pillar {
    position: relative; background: #fff; border: 1px solid var(--t-line); border-radius: 50% 50% 18px 18px / 18% 18% 18px 18px;
    padding: 3rem 1.6rem 1.8rem; text-align: center; height: 100%; transition: transform .35s var(--t-ease), box-shadow .35s var(--t-ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--t-shadow); }
.pillar .pillar-icon {
    width: 66px; height: 66px; margin: -5.2rem auto 1.1rem; position: relative; display: grid; place-items: center;
    color: var(--t-on-primary); font-size: 1.35rem;
}
.pillar .pillar-icon::before {
    content: ""; position: absolute; inset: 0; background: var(--t-primary);
    -webkit-mask: var(--t-star) center / contain no-repeat; mask: var(--t-star) center / contain no-repeat;
}
.pillar .pillar-icon::after {
    content: ""; position: absolute; inset: -7px; background: var(--t-accent); opacity: .45;
    -webkit-mask: var(--t-star-outline) center / contain no-repeat; mask: var(--t-star-outline) center / contain no-repeat;
}
.pillar .pillar-icon i { position: relative; z-index: 1; }
.pillar h4 { font-size: 1.45rem; margin-bottom: .6rem; }
.pillar p { margin: 0; font-size: .95rem; }

/* ---------- Member portal ---------- */
.member-cover {
    position: relative; overflow: hidden; border-radius: 24px; color: #fff; isolation: isolate;
    background: radial-gradient(600px 240px at 100% 0%, rgba(var(--t-accent-rgb), .35), transparent 60%), linear-gradient(135deg, var(--t-primary-deep), var(--t-primary));
}
.member-cover::before {
    content: ""; position: absolute; inset: 0; background: #fff; opacity: .07; z-index: -1;
    -webkit-mask: var(--t-lattice) repeat; mask: var(--t-lattice) repeat; -webkit-mask-size: 80px; mask-size: 80px;
}
.member-cover h2, .member-cover h3 { color: #fff; }
.member-avatar {
    width: 128px; height: 152px; border-radius: 50% 50% 16px 16px / 40% 40% 16px 16px; overflow: hidden;
    border: 5px solid #fff; box-shadow: var(--t-shadow); background: #e9e9ea; flex-shrink: 0; position: relative;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.t-stat { background: #fff; border: 1px solid var(--t-line); border-radius: 16px; padding: 1.1rem 1.2rem; height: 100%; }
.t-stat .t-stat-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--t-on-primary); position: relative; margin-bottom: .6rem; }
.t-stat .t-stat-icon::before {
    content: ""; position: absolute; inset: 0; background: var(--t-primary);
    -webkit-mask: var(--t-star) center / contain no-repeat; mask: var(--t-star) center / contain no-repeat;
}
.t-stat .t-stat-icon i { position: relative; font-size: .95rem; }
.t-stat strong { display: block; font-size: 1.4rem; font-family: var(--t-font-display); color: var(--t-ink); line-height: 1.2; }
.t-stat span { color: var(--t-muted); font-size: .82rem; }
.t-panel { background: #fff; border: 1px solid var(--t-line); border-radius: 18px; }
.t-panel-head { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--t-line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.t-panel-head h5 { margin: 0; font-family: var(--t-font-display); font-size: 1.3rem; display: flex; align-items: center; gap: .55rem; }
.t-panel-head h5 .star8 { color: var(--t-accent); font-size: 12px; }
.t-panel-body { padding: 1.4rem; }
.t-timeline { position: relative; padding-inline-start: 1.7rem; }
.t-timeline::before { content: ""; position: absolute; inset-inline-start: 6px; top: .35rem; bottom: .35rem; width: 2px; background: var(--t-line); }
.t-timeline-item { position: relative; padding-bottom: 1.25rem; }
.t-timeline-item:last-child { padding-bottom: 0; }
.t-timeline-item::before {
    content: ""; position: absolute; inset-inline-start: -1.7rem; top: .3rem; width: 14px; height: 14px; background: var(--t-accent);
    -webkit-mask: var(--t-star) center / contain no-repeat; mask: var(--t-star) center / contain no-repeat;
}
.t-ring { --p: 0; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: conic-gradient(var(--t-accent) calc(var(--p) * 1%), rgba(255,255,255,.2) 0); }
.t-ring > span { width: 70px; height: 70px; border-radius: 50%; background: var(--t-primary-deep); display: grid; place-items: center; font-weight: 700; color: #fff; }
.t-info-list { list-style: none; padding: 0; margin: 0; }
.t-info-list li { display: flex; gap: .85rem; padding: .7rem 0; border-bottom: 1px dashed var(--t-line); }
.t-info-list li:last-child { border-bottom: 0; }
.t-info-list li i { width: 18px; color: var(--t-primary); margin-top: .25rem; text-align: center; }
.t-info-list li small { display: block; color: var(--t-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.t-info-list li span { color: var(--t-ink); font-weight: 500; }
.t-info-list li .missing { color: var(--t-muted); font-style: italic; font-weight: 400; }

/* ---------- Leaders: arch-topped portraits ---------- */
.leader-tile { border-radius: 22px; padding: .7rem .7rem 0; background: linear-gradient(180deg, var(--t-primary-tint), #fff 40%); }
.leader-tile .leader-photo { border-radius: 50% 50% 14px 14px / 30% 30% 14px 14px; }
.leader-tile .leader-photo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: linear-gradient(180deg, transparent 60%, rgba(var(--t-primary-rgb), .35));
}
.leader-tile .leader-rank { top: auto; bottom: .75rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.leader-tile .leader-contacts { z-index: 3; }
.leader-tile .leader-body { position: relative; padding-top: 1.4rem; }
.leader-tile .leader-star {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-size: 22px; color: var(--t-accent);
    filter: drop-shadow(0 2px 3px rgba(0,0,0,.15));
}
.leader-spotlight { border-radius: 28px; background: linear-gradient(135deg, #fff 55%, var(--t-primary-tint)); position: relative; isolation: isolate; }
.leader-spotlight::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: var(--t-primary); opacity: .04;
    -webkit-mask: var(--t-lattice) repeat; mask: var(--t-lattice) repeat; -webkit-mask-size: 80px; mask-size: 80px;
}
.leader-spotlight .spot-photo { min-height: 0; height: auto; background: transparent; padding: 2.5rem 2rem; display: grid; place-items: center; }
.leader-spotlight .spot-photo .arch-outline { width: 100%; max-width: 300px; }
.leader-spotlight .spot-photo .arch-frame { aspect-ratio: 4 / 5; box-shadow: var(--t-shadow-lg); background: #e9e9ea; }
.leader-spotlight .spot-photo .arch-frame img { position: static; object-position: top center; }
@media (max-width: 767.98px) { .leader-spotlight .spot-body { padding: 1.5rem 1.5rem 2rem; text-align: center; } .leader-spotlight .spot-body .d-flex { justify-content: center; } }

/* ---------- Video (YouTube) feature ---------- */
.video-band {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; color: #fff;
    background: radial-gradient(700px 300px at 0% 100%, rgba(var(--t-accent-rgb), .3), transparent 60%), linear-gradient(135deg, var(--t-primary), var(--t-primary-deep));
    box-shadow: var(--t-shadow-lg);
}
.video-band::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; opacity: .06;
    -webkit-mask: var(--t-lattice) repeat; mask: var(--t-lattice) repeat; -webkit-mask-size: 80px; mask-size: 80px;
}
.video-band h3 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.video-band p { color: rgba(255,255,255,.82); }
.video-frame { border-radius: 20px; overflow: hidden; border: 5px solid rgba(255,255,255,.9); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); background: #000; }
.video-thumbs { display: flex; gap: .65rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.video-thumb {
    flex: 0 0 150px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; position: relative;
    background: rgba(255,255,255,.08); padding: 0; text-align: left; color: #fff;
}
.video-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; opacity: .8; }
.video-thumb span { display: block; font-size: .74rem; padding: .35rem .5rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-thumb.active, .video-thumb:hover { border-color: var(--t-accent); }
.video-thumb.active img { opacity: 1; }

/* ---------- Page frame: every page ends with breathing room before the footer ---------- */
.site-main { display: block; padding-bottom: 4.5rem; }
.site-main > :last-child { margin-bottom: 0 !important; }
footer.footer-modern {
    display: block; width: 100%; max-width: none !important; margin: 0 !important;
    padding-left: 0; padding-right: 0; position: relative;
}
footer.footer-modern::before {
    /* arcade edge on top of the footer, matching the page heroes */
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 22px; pointer-events: none;
    background: radial-gradient(circle at 22px 22px, transparent 21px, var(--t-paper) 22px) repeat-x; background-size: 44px 22px;
}
footer.footer-modern, footer.footer-modern p, footer.footer-modern a { font-family: var(--t-font-body); }
.footer-modern .footer-heading { text-transform: none; letter-spacing: 0; }

/* ---------- Initiatives showcase ---------- */
.initiative-switch { display: inline-flex; gap: .35rem; padding: .35rem; background: #fff; border: 1px solid var(--t-line); border-radius: 999px; box-shadow: var(--t-shadow-sm); }
.initiative-switch .nav-link {
    border: 0 !important; border-radius: 999px !important; padding: .6rem 1.4rem; font-weight: 600; color: var(--t-ink-soft) !important;
    text-transform: none !important; letter-spacing: 0; background: transparent; display: inline-flex; align-items: center; gap: .5rem;
}
.initiative-switch .nav-link .count { font-size: .72rem; background: var(--t-primary-soft); color: var(--t-primary); border-radius: 999px; padding: .05rem .5rem; }
.initiative-switch .nav-link.active { background: var(--t-primary) !important; color: var(--t-on-primary) !important; }
.initiative-switch .nav-link.active .count { background: rgba(255,255,255,.2); color: inherit; }

.showcase { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; }
@media (max-width: 991.98px) { .showcase { grid-template-columns: 1fr; } }
.showcase-feature {
    position: relative; border-radius: 26px; overflow: hidden; min-height: 460px; display: flex; align-items: flex-end;
    color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--t-shadow-lg); background: #e9e9ea;
}
.showcase-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--t-ease); }
.showcase-feature:hover img { transform: scale(1.05); }
.showcase-feature::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, transparent 25%, rgba(var(--t-primary-rgb), .55) 55%, var(--t-primary-deep) 100%);
}
.showcase-feature .sf-body { padding: 2.25rem; width: 100%; }
.showcase-feature .sf-body h3 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .4rem 0 .6rem; }
.showcase-feature .sf-body p { color: rgba(255,255,255,.85); margin-bottom: 1.1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.showcase-feature .sf-tag {
    display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--t-accent);
}
.showcase-feature .sf-corner {
    position: absolute; top: 1.25rem; right: 1.25rem; width: 64px; height: 64px; color: var(--t-accent); opacity: .9;
}
.showcase-list { display: flex; flex-direction: column; gap: 1rem; }
.showcase-item {
    display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--t-line); border-radius: 18px; padding: .75rem;
    text-decoration: none; transition: transform .3s var(--t-ease), box-shadow .3s var(--t-ease), border-color .3s;
}
.showcase-item:hover { transform: translateX(6px); box-shadow: var(--t-shadow); border-color: rgba(var(--t-primary-rgb), .25); }
.showcase-item .si-img {
    width: 120px; height: 104px; flex-shrink: 0; overflow: hidden; background: #e9e9ea;
    border-radius: 50% 50% 12px 12px / 34% 34% 12px 12px;
}
.showcase-item .si-img img { width: 100%; height: 100%; object-fit: cover; }
.showcase-item .si-num { font-family: var(--t-font-display); font-size: .95rem; color: var(--t-accent); font-weight: 700; }
.showcase-item h5 { font-family: var(--t-font-display); font-size: 1.25rem; color: var(--t-ink); margin: .1rem 0 .25rem; line-height: 1.2; }
.showcase-item p { font-size: .86rem; color: var(--t-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.showcase-item .si-go { margin-inline-start: auto; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--t-primary-soft); color: var(--t-primary); transition: all .3s; }
.showcase-item:hover .si-go { background: var(--t-primary); color: var(--t-on-primary); }
.showcase-item .t-progress { height: 6px; margin-top: .5rem; }
@media (max-width: 575.98px) {
    .showcase-feature { min-height: 380px; }
    .showcase-feature .sf-body { padding: 1.5rem; }
    .showcase-item .si-img { width: 88px; height: 80px; }
    .showcase-item .si-go { display: none; }
}

/* ---------- Member auth pages (login / register / password) ---------- */
.auth-shell { position: relative; padding: 3rem 0 1rem; }
.auth-shell .float-star.page-s1 { width: 260px; height: 260px; top: -40px; right: -90px; opacity: .18; }
.auth-shell .float-star.page-s2 { width: 160px; height: 160px; bottom: 0; left: -60px; opacity: .15; }
.auth-shell > .container { position: relative; z-index: 1; }
.auth-shell .card { border: 0 !important; border-radius: 28px !important; box-shadow: var(--t-shadow-lg) !important; }
.auth-panel {
    position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center;
    display: flex; align-items: center; justify-content: center; padding: 3rem 2.25rem;
    background:
        radial-gradient(500px 260px at 100% 0%, rgba(var(--t-accent-rgb), .35), transparent 60%),
        radial-gradient(400px 260px at 0% 100%, rgba(255, 255, 255, .08), transparent 60%),
        linear-gradient(160deg, var(--t-primary), var(--t-primary-deep));
}
.auth-panel::before {
    content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; opacity: .07;
    -webkit-mask: var(--t-lattice) repeat; mask: var(--t-lattice) repeat; -webkit-mask-size: 80px; mask-size: 80px;
}
.auth-panel::after {
    /* arcade edge down the inner side, like a row of arches */
    content: ""; position: absolute; top: 0; bottom: 0; right: -1px; width: 18px; z-index: 1;
    background: radial-gradient(circle at 0 18px, transparent 17px, #fff 18px) repeat-y; background-size: 18px 36px;
}
.auth-panel .float-star.s1 { width: 220px; height: 220px; left: -80px; bottom: -80px; color: #fff; opacity: .1; }
.auth-panel .float-star.s2 { width: 90px; height: 90px; right: 10%; top: 6%; opacity: .45; }
.auth-panel-inner { position: relative; max-width: 330px; }
.auth-panel .bismillah { font-size: 1.35rem; color: var(--t-accent); }
.auth-seal {
    width: 112px; height: 128px; margin: .75rem auto 1.25rem; display: grid; place-items: center; background: #fff;
    border-radius: 50% 50% 16px 16px / 42% 42% 16px 16px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55);
    outline: 1.5px solid rgba(var(--t-accent-rgb), .8); outline-offset: 6px;
}
.auth-seal img { width: 76%; height: auto; }
.auth-panel h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .6rem; }
.auth-panel .auth-lead, .auth-panel p { color: rgba(255, 255, 255, .86) !important; font-size: 1rem; margin-bottom: 1.25rem; }
.auth-points { list-style: none; padding: 0; margin: 0 0 1rem; text-align: left; }
.auth-points li { display: flex; align-items: center; gap: .75rem; color: rgba(255, 255, 255, .9); font-size: .9rem; padding: .4rem 0; }
.auth-point-icon { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; position: relative; color: var(--t-on-accent); font-size: .8rem; }
.auth-point-icon::before { content: ""; position: absolute; inset: 0; background: var(--t-accent); -webkit-mask: var(--t-star) center/contain no-repeat; mask: var(--t-star) center/contain no-repeat; }
.auth-point-icon i { position: relative; }
.auth-ornament { color: var(--t-accent); margin-top: 1.25rem; }
/* form side */
.auth-shell .card-body h3 { font-size: 2rem; color: var(--t-ink) !important; }
.auth-shell .form-control, .auth-shell .form-select { background-color: var(--t-primary-tint) !important; border: 1.5px solid transparent !important; border-radius: 12px !important; }
.auth-shell .form-control:focus, .auth-shell .form-select:focus { background-color: #fff !important; border-color: var(--t-primary) !important; }
.auth-shell .input-group > .form-control { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.auth-shell .input-group > .btn { background: var(--t-primary-tint) !important; border-radius: 0 12px 12px 0 !important; border: 0 !important; color: var(--t-muted); }
.auth-shell .form-label { letter-spacing: .06em; font-size: .72rem !important; color: var(--t-muted) !important; }
.auth-shell .btn-lg { border-radius: 999px !important; }
@media (max-width: 767.98px) {
    .auth-shell { padding-top: 1.5rem; }
    .auth-panel { padding: 2rem 1.5rem 2.25rem; }
    .auth-panel::after {
        top: auto; left: 0; right: 0; bottom: -1px; width: auto; height: 18px;
        background: radial-gradient(circle at 18px 0, transparent 17px, #fff 18px) repeat-x; background-size: 36px 18px;
    }
    .auth-seal { width: 80px; height: 92px; margin: .25rem auto .9rem; }
    .auth-points, .auth-panel .float-star.s2, .auth-ornament { display: none; }
    .auth-panel h2 { font-size: 1.6rem; }
    .auth-panel .auth-lead { margin-bottom: 0; font-size: .92rem; }
}

/* ---------- Smart links on event pages ---------- */
.event-link { padding: .8rem .9rem; border: 1px solid var(--t-line); border-radius: 14px; background: #fff; transition: all .2s var(--t-ease); color: var(--t-ink); }
.event-link:hover { border-color: var(--t-primary); background: var(--t-primary-tint); transform: translateX(3px); }
.event-link strong { color: var(--t-ink); font-size: .95rem; }
.event-link-icon { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; position: relative; color: var(--t-on-primary); font-size: .85rem; }
.event-link-icon::before { content: ""; position: absolute; inset: 0; background: var(--t-primary); -webkit-mask: var(--t-star) center/contain no-repeat; mask: var(--t-star) center/contain no-repeat; }
.event-link-icon i { position: relative; }

/* ---------- Mobile refinements ---------- */
@media (max-width: 575.98px) {
    .section { padding: 3.5rem 0; }
    .page-hero { padding: 3.5rem 0 3.25rem; }
    .hero-frame { border-width: 3px; border-radius: 18px; outline-offset: 4px; }
    .welcome-band, .video-band, .cta-band { border-radius: 22px; }
    .cta-band { padding: 1.75rem; }
    .president-arch { padding: 3rem 1.5rem 2.5rem; }
    .content-card.featured .cc-body { padding: 1.5rem; }
    .float-star { display: none; }
    .section-title h1, .section-title h2 { font-size: 2rem; }
}
