/* Akshaya site components (header, slider, page banners, program popups, gallery, footer).
   Plain CSS so it works alongside the compiled Tailwind stylesheet. */
:root {
  --ak-primary: #059669;
  --ak-primary-dark: #047857;
  --ak-deep: #064e3b;
  --ak-accent: #d97706;
  --ak-ink: #111827;
  --ak-muted: #4b5563;
  --ak-line: #e5e7eb;
}
.ak-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ak-wrap { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .ak-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .ak-wrap { padding: 0 2rem; } }

/* ---------- Header / navigation ---------- */
.ak-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid #f3f4f6; }
.ak-nav { height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ak-logo { font-family: var(--font-playfair), Georgia, serif; font-size: 1.5rem; font-weight: 900; color: var(--ak-primary); letter-spacing: -.02em; text-decoration: none; }
.ak-logo span { color: var(--ak-accent); }
.ak-menu { display: none; list-style: none; margin: 0; padding: 0; align-items: center; gap: 1.4rem; }
.ak-menu > li { position: relative; }
.ak-menu a, .ak-menu button { font: 700 .8rem/1 var(--font-inter), system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: #374151; text-decoration: none; background: none; border: 0; padding: .6rem 0; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.ak-menu a:hover, .ak-menu button:hover, .ak-menu a[aria-current="page"] { color: var(--ak-primary); }
.ak-caret { width: .7rem; height: .7rem; transition: transform .2s; }
.ak-drop { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 13rem; background: #fff; border: 1px solid var(--ak-line); border-radius: 1rem; box-shadow: 0 18px 40px -12px rgba(0,0,0,.18); padding: .5rem; list-style: none; margin: 0; opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
.ak-has-drop:hover .ak-drop, .ak-has-drop:focus-within .ak-drop, .ak-has-drop.is-open .ak-drop { opacity: 1; visibility: visible; }
.ak-has-drop:hover .ak-caret, .ak-has-drop.is-open .ak-caret { transform: rotate(180deg); }
.ak-drop a { display: block; width: 100%; padding: .7rem .9rem; border-radius: .6rem; text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 600; }
.ak-drop a:hover { background: #ecfdf5; }
.ak-donate { display: none; align-items: center; gap: .4rem; border-radius: 999px; background: var(--ak-accent); color: #fff; padding: .65rem 1.4rem; font: 700 .85rem/1 var(--font-inter), system-ui, sans-serif; text-decoration: none; box-shadow: 0 6px 16px -6px rgba(217,119,6,.6); transition: background .2s; }
.ak-donate:hover { background: #b45309; }
.ak-burger { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border: 1px solid var(--ak-line); border-radius: .8rem; background: #fff; color: var(--ak-ink); cursor: pointer; }
.ak-mobile { display: none; border-top: 1px solid #f3f4f6; background: #fff; max-height: calc(100vh - 4rem); overflow-y: auto; }
.ak-mobile.is-open { display: block; }
.ak-mobile ul { list-style: none; margin: 0; padding: .5rem 0 1rem; }
.ak-mobile a { display: block; padding: .8rem 0; font-weight: 700; color: #374151; text-decoration: none; border-bottom: 1px solid #f3f4f6; }
.ak-mobile .ak-sub a { padding-left: 1rem; font-weight: 600; color: var(--ak-muted); }
.ak-mobile .ak-label { display: block; padding: .8rem 0 .3rem; font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ak-primary); }
.ak-mobile .ak-donate { display: flex; justify-content: center; margin-top: 1rem; border-bottom: 0; color: #fff; }
@media (min-width: 1100px) {
  .ak-menu, .ak-donate { display: flex; }
  .ak-burger, .ak-mobile, .ak-mobile.is-open { display: none; }
}

/* ---------- Homepage slider (matches Prime Trust hero) ---------- */
.ak-hero { position: relative; height: 70vh; min-height: 520px; width: 100%; overflow: hidden; background: #022c22; outline: none; }
.ak-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease-in-out; }
.ak-hero img.is-active { opacity: 1; }
.ak-hero::after { content: ""; pointer-events: none; position: absolute; left: 0; right: 0; bottom: 0; height: 9rem; background: linear-gradient(to top, rgba(0,0,0,.45), transparent); }
.ak-hero-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 0; background: rgba(0,0,0,.35); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s, transform .2s; }
.ak-hero-btn:hover { background: rgba(0,0,0,.6); transform: translateY(-50%) scale(1.05); }
.ak-hero-btn:focus-visible, .ak-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ak-hero-prev { left: 1rem; } .ak-hero-next { right: 1rem; }
@media (min-width: 640px) { .ak-hero-prev { left: 2rem; } .ak-hero-next { right: 2rem; } }
.ak-dots { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: .6rem; }
.ak-dot { height: .625rem; width: .625rem; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: all .3s; }
.ak-dot:hover { background: rgba(255,255,255,.8); }
.ak-dot[aria-current="true"] { width: 2rem; background: #fff; }

/* ---------- Page header banner (inner pages) ---------- */
.ak-banner { position: relative; min-height: 340px; display: flex; align-items: flex-end; overflow: hidden; background: var(--ak-deep); color: #fff; }
.ak-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ak-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,44,34,.88), rgba(2,44,34,.35) 60%, rgba(2,44,34,.15)); z-index: 1; }
.ak-banner .ak-wrap { position: relative; z-index: 2; width: 100%; padding-top: 5rem; padding-bottom: 3rem; }
.ak-crumbs { font-size: .8rem; font-weight: 600; color: #a7f3d0; margin-bottom: .75rem; }
.ak-crumbs a { color: #d1fae5; text-decoration: none; } .ak-crumbs a:hover { text-decoration: underline; }
.ak-banner h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.05; margin: 0 0 .75rem; }
.ak-banner p { font-size: 1.1rem; color: #d1fae5; max-width: 42rem; margin: 0; }

/* ---------- Inner page content ---------- */
.ak-section { padding: 4.5rem 0; }
.ak-section.alt { background: #f9fafb; }
.ak-prose { max-width: 48rem; color: var(--ak-muted); font-size: 1.05rem; line-height: 1.75; }
.ak-prose h2 { color: var(--ak-ink); font-size: 1.9rem; font-weight: 900; line-height: 1.2; margin: 0 0 1rem; }
.ak-prose h3 { color: var(--ak-ink); font-size: 1.2rem; font-weight: 800; margin: 2rem 0 .5rem; }
.ak-prose p { margin: 0 0 1rem; }
.ak-prose ul { padding-left: 1.2rem; margin: 0 0 1rem; list-style: disc; }
.ak-prose li { margin: .35rem 0; }
.ak-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ak-grid.two, .ak-grid.three, .ak-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ak-grid.three { grid-template-columns: repeat(3, 1fr); } .ak-grid.four { grid-template-columns: repeat(4, 1fr); } }
.ak-card { background: #fff; border: 1px solid #f3f4f6; border-radius: 1.5rem; padding: 2rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.ak-card h3 { margin: 0 0 .5rem; font-size: 1.2rem; font-weight: 800; color: var(--ak-ink); }
.ak-card p { margin: 0 0 1rem; color: var(--ak-muted); line-height: 1.65; font-size: .95rem; }
.ak-card a.ak-link { color: var(--ak-primary); font-weight: 700; text-decoration: none; }
.ak-card a.ak-link:hover { text-decoration: underline; }
a.ak-card { display: block; text-decoration: none; transition: box-shadow .25s, transform .25s; }
a.ak-card:hover { box-shadow: 0 20px 40px -18px rgba(0,0,0,.25); transform: translateY(-3px); }
.ak-icon { width: 3rem; height: 3rem; border-radius: .9rem; background: #ecfdf5; color: var(--ak-primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }
.ak-empty { border: 2px dashed #d1d5db; border-radius: 1.5rem; padding: 2.5rem 2rem; text-align: center; color: var(--ak-muted); background: #fff; }
.ak-empty strong { display: block; color: var(--ak-ink); font-size: 1.1rem; margin-bottom: .4rem; }
.ak-btn { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; background: var(--ak-primary); color: #fff; padding: .9rem 1.8rem; font-weight: 700; font-size: .9rem; text-decoration: none; border: 0; cursor: pointer; transition: background .2s; }
.ak-btn:hover { background: var(--ak-primary-dark); }
.ak-btn.ghost { background: transparent; color: var(--ak-primary); border: 2px solid var(--ak-primary); }
.ak-btn.ghost:hover { background: #ecfdf5; }
.ak-btn.amber { background: var(--ak-accent); } .ak-btn.amber:hover { background: #b45309; }
.ak-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Program cards + popups ---------- */
.ak-programs { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ak-programs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ak-programs { grid-template-columns: repeat(4, 1fr); } }
.ak-program { text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; background: #fff; border: 1px solid #f3f4f6; border-radius: 1.5rem; padding: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .3s, transform .3s; }
.ak-program:hover { box-shadow: 0 22px 40px -18px rgba(0,0,0,.28); transform: translateY(-4px); }
.ak-program:focus-visible { outline: 3px solid var(--ak-primary); outline-offset: 3px; }
.ak-program .ak-thumb { aspect-ratio: 16/10; border-radius: 1rem; overflow: hidden; background: #f3f4f6; margin-bottom: 1rem; }
.ak-program .ak-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ak-program:hover .ak-thumb img { transform: scale(1.05); }
.ak-tag { display: inline-block; align-self: flex-start; padding: .25rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 700; margin-bottom: .6rem; }
.ak-program p { margin: 0 0 1rem; color: var(--ak-muted); font-size: .9rem; line-height: 1.6; flex: 1; }
.ak-more { font-size: .85rem; font-weight: 700; color: var(--ak-primary); }
.ak-modal { position: fixed; inset: 0; margin: auto; height: fit-content; border: 0; padding: 0; border-radius: 1.5rem; width: min(44rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.ak-modal::backdrop { background: rgba(2,44,34,.6); backdrop-filter: blur(3px); }
.ak-modal-img { aspect-ratio: 16/8; width: 100%; object-fit: cover; display: block; }
.ak-modal-body { padding: 1.75rem 1.75rem 2rem; color: var(--ak-muted); line-height: 1.7; }
.ak-modal-body h3 { margin: 0 0 .75rem; font-size: 1.7rem; font-weight: 900; color: var(--ak-ink); line-height: 1.2; }
.ak-modal-body h4 { margin: 1.25rem 0 .4rem; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ak-primary); }
.ak-modal-body p { margin: 0 0 .75rem; }
.ak-modal-body ul { margin: 0 0 .75rem; padding-left: 1.2rem; list-style: disc; }
.ak-modal-body li { margin: .3rem 0; }
.ak-close { position: absolute; top: .9rem; right: .9rem; width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.ak-close:hover { background: rgba(0,0,0,.8); }
.ak-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Gallery: uniform landscape tiles ---------- */
.ak-gallery { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .ak-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ak-gallery { grid-template-columns: repeat(3, 1fr); } }
.ak-gallery figure { margin: 0; aspect-ratio: 4/3; border-radius: 1rem; overflow: hidden; background: #f3f4f6; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ak-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.ak-gallery figure:hover img { transform: scale(1.05); }

/* ---------- Footer ---------- */
.ak-footer { position: relative; overflow: hidden; background: var(--ak-deep); color: #a7f3d0; padding: 4.5rem 0 2rem; font-size: .925rem; }
.ak-foot-glow { position: absolute; top: -12rem; left: 50%; transform: translateX(-50%); width: 50rem; height: 25rem; border-radius: 999px; background: rgba(217,119,6,.12); filter: blur(64px); pointer-events: none; }
.ak-footer .ak-wrap { position: relative; }
.ak-foot-grid { display: grid; gap: 2.5rem 1.5rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 3rem; }
.ak-foot-about { grid-column: 1 / -1; }
@media (min-width: 640px) { .ak-foot-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .ak-foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; } .ak-foot-about { grid-column: auto; } }
.ak-foot-brand { font-family: var(--font-playfair), Georgia, serif; font-size: 2rem; font-weight: 900; color: #fff; margin: 0 0 1rem; line-height: 1; }
.ak-foot-brand span { color: #fbbf24; }
.ak-foot-about p:not(.ak-foot-brand) { max-width: 22rem; margin: 0 0 1.5rem; line-height: 1.75; color: #a7f3d0; }
.ak-footer h4 { margin: 0 0 1.25rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; color: #fbbf24; }
.ak-footer ul { list-style: none; margin: 0; padding: 0; }
.ak-footer li { margin: .7rem 0; }
.ak-footer a { color: #d1fae5; text-decoration: none; transition: color .2s; }
.ak-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ak-footer a.ak-btn, .ak-footer a.ak-btn:hover { color: #fff; text-decoration: none; }
.ak-social { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem !important; }
.ak-social li { margin: 0; }
.ak-social a { width: 2.5rem; height: 2.5rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); color: #fff; transition: background .2s, transform .2s; }
.ak-social a:hover { background: var(--ak-accent); transform: translateY(-2px); }
.ak-social a:focus-visible { outline: 2px solid #fbbf24; outline-offset: 2px; }
.ak-social svg { width: 1.05rem; height: 1.05rem; }
.ak-contact li { display: flex; align-items: center; gap: .75rem; margin: .8rem 0; }
.ak-ci { width: 2.25rem; height: 2.25rem; flex-shrink: 0; border-radius: .7rem; background: rgba(255,255,255,.08); color: #6ee7b7; display: flex; align-items: center; justify-content: center; }
.ak-ci svg { width: 1rem; height: 1rem; }
.ak-foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.75rem; display: flex; flex-direction: column; gap: .75rem; justify-content: space-between; align-items: center; text-align: center; font-size: .85rem; color: #6ee7b7; }
.ak-foot-bottom p { margin: 0; }
.ak-dim { color: #34d399; opacity: .8; }
@media (min-width: 768px) { .ak-foot-bottom { flex-direction: row; text-align: left; } }

@media (prefers-reduced-motion: reduce) {
  .ak-hero img, .ak-program, .ak-program .ak-thumb img, .ak-gallery img { transition: none; }
}
