/* ============================================================
   Majlisul Islam — Faculty of Applied Sciences, SEUSL
   style.css  ·  Design system + components
   Royal-green identity · gold accent · academic serif headings
   ============================================================ */

:root{
  /* Royal-green + gold identity.
     Variable names are kept for compatibility; the VALUES are now
     royal green (primary), deep forest green (dark) and gold (accent). */
  --primary-blue:    #15653F;  /* royal green — primary */
  --dark-blue:       #0E3D26;  /* deep forest green — headers, hero, footer */
  --olive-green:     #C9A227;  /* elegant gold — accent */
  --olive-soft:      #F3E9C8;  /* soft gold tint */
  --white:           #FFFFFF;
  --light-background:#F4F7F2;  /* very light neutral green */
  --text-dark:       #17251C;
  --text-muted:      #5B6A60;
  --line:            #E4EAE4;

  /* clear aliases for new rules */
  --green:    #15653F;
  --green-dk: #0E3D26;
  --gold:     #C9A227;
  --gold-dk:  #A7841B;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --wrap: 1160px;
  --radius: 12px;
  --shadow: 0 1px 0 rgba(14,61,38,.03), 0 22px 46px -30px rgba(14,61,38,.30);
  --shadow-sm: 0 10px 26px -20px rgba(14,61,38,.35);
  --header-h: 76px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; font-family:var(--sans); color:var(--text-dark);
  background:var(--white); font-size:17px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--primary-blue); }

h1,h2,h3,h4{ font-family:var(--serif); font-weight:700; color:var(--dark-blue); line-height:1.2; margin:0; }

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 24px; }
.section{ padding:76px 0; }
.section.tint{ background:var(--light-background); }
.section.blue{ background:var(--dark-blue); color:#E6F1EA; }
.section.blue h2, .section.blue h3{ color:#fff; }

/* ---------- section heading block ---------- */
.sec-head{ max-width:44rem; margin:0 auto 44px; text-align:center; }
.sec-head.left{ margin-left:0; text-align:left; }
.eyebrow{
  font-family:var(--sans); font-size:12.5px; font-weight:600; letter-spacing:.18em;
  text-transform:uppercase; color:var(--olive-green);
}
.sec-head h2{ font-size:clamp(28px,4vw,40px); margin:12px 0 0; }
.sec-head p{ color:var(--text-muted); font-size:18px; margin:14px 0 0; }
.rule{ width:52px; height:3px; background:var(--olive-green); border:0; margin:18px auto 0; }
.sec-head.left .rule{ margin-left:0; }

/* ---------- buttons ---------- */
.btn{
  display:inline-block; font-family:var(--sans); font-size:15.5px; font-weight:600;
  padding:13px 26px; border-radius:8px; text-decoration:none; cursor:pointer;
  border:1.5px solid transparent; transition:background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover{ transform:translateY(-1px); }
.btn-solid{ background:var(--primary-blue); color:#fff; }
.btn-solid:hover{ background:var(--dark-blue); }
.btn-olive{ background:var(--olive-green); color:#20180a; }
.btn-olive:hover{ background:var(--gold-dk); color:#fff; }
.btn-outline{ border-color:var(--primary-blue); color:var(--primary-blue); background:#fff; }
.btn-outline:hover{ background:var(--primary-blue); color:#fff; }
.btn-ghost{ color:#fff; border-color:rgba(255,255,255,.5); }
.btn-ghost:hover{ background:rgba(255,255,255,.12); border-color:#fff; }
.btn-text{ color:var(--primary-blue); font-weight:600; text-decoration:none; }
.btn-text:hover{ text-decoration:underline; }

/* ============================================================
   HEADER / NAV  (injected by components.js)
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:60; background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--line);
}
.site-header .bar{
  max-width:var(--wrap); margin:0 auto; padding:0 24px; height:var(--header-h);
  display:flex; align-items:center; gap:18px;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand img{ height:46px; width:auto; }
.brand .bt{ line-height:1.2; }
.brand .bt .n1, .brand .bt .n2{ display:block; }
.brand .bt .n1{ font-family:var(--serif); font-weight:700; font-size:18px; color:var(--dark-blue); }
.brand .bt .n2{ font-size:11.5px; color:var(--text-muted); letter-spacing:.02em; }
.nav{ margin-left:auto; display:flex; align-items:center; gap:4px; }
.nav a{
  font-size:15px; color:var(--text-dark); text-decoration:none; padding:9px 12px;
  border-radius:7px; white-space:nowrap; transition:background .15s, color .15s;
}
.nav a:hover{ background:var(--light-background); color:var(--dark-blue); }
.nav a.active{ color:var(--primary-blue); font-weight:600; }
.nav a.active::after{ content:""; display:block; height:2px; background:var(--olive-green); margin-top:5px; border-radius:2px; }
.nav-toggle{ display:none; margin-left:auto; background:none; border:1px solid var(--line); border-radius:8px; padding:9px 11px; cursor:pointer; }
.nav-toggle span{ display:block; width:22px; height:2px; background:var(--dark-blue); margin:4px 0; transition:.2s; }

/* ============================================================
   HERO
   ============================================================ */
.hero{ position:relative; background:var(--dark-blue); color:#fff; overflow:hidden; }
.hero::before{
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(90% 120% at 85% 10%, rgba(201,162,39,.35), transparent 55%),
    linear-gradient(180deg, #0E3D26, #0A2E1C);
}
.hero .wrap{ position:relative; z-index:1; padding-top:82px; padding-bottom:86px; }
.hero .badge{
  display:inline-flex; align-items:center; gap:9px; background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.22); border-radius:30px; padding:7px 16px;
  font-size:13px; letter-spacing:.02em; color:#F2ECD9; margin-bottom:24px;
}
.hero .badge .dot{ width:8px; height:8px; border-radius:50%; background:var(--olive-green); }
.hero h1{ color:#fff; font-size:clamp(34px,5.4vw,60px); letter-spacing:-.01em; max-width:16ch; }
.hero p.lede{ color:#CFE1D4; font-size:19px; max-width:52ch; margin:22px 0 0; }
.hero .cta{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }
.hero .fac{ margin-top:40px; font-size:13.5px; color:#9DBBA6; letter-spacing:.04em; }

/* ============================================================
   CARDS
   ============================================================ */
.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

.card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-sm); overflow:hidden; display:flex; flex-direction:column;
  transition:transform .18s, box-shadow .18s;
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }

/* key-area card */
.area{ padding:28px 26px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); transition:transform .18s, box-shadow .18s, border-color .18s; }
.area:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--olive-soft); }
.area .ic{ width:46px; height:46px; border-radius:10px; background:var(--olive-soft); color:var(--olive-green); display:grid; place-items:center; margin-bottom:16px; }
.area .ic svg{ width:24px; height:24px; }
.area h3{ font-size:20px; }
.area p{ color:var(--text-muted); font-size:15.5px; margin:8px 0 0; }

/* media card (project/article) */
.mcard .thumb{ aspect-ratio:16/9; background:var(--light-background); position:relative; overflow:hidden; }
.mcard .thumb img{ width:100%; height:100%; object-fit:cover; }
.mcard .body{ padding:22px 24px; display:flex; flex-direction:column; gap:8px; flex:1; }
.mcard .meta{ display:flex; gap:10px; align-items:center; font-size:12.5px; color:var(--text-muted); }
.mcard h3{ font-size:21px; }
.mcard p{ color:var(--text-muted); font-size:15px; margin:0; flex:1; }
.mcard .foot{ margin-top:6px; }

/* tags / status pills */
.tag{ display:inline-block; font-family:var(--sans); font-size:11.5px; font-weight:600; letter-spacing:.04em;
  padding:4px 11px; border-radius:20px; background:var(--olive-soft); color:#5f672f; }
.tag.blue{ background:#E4F0E9; color:var(--green); }
.status{ font-size:12px; font-weight:600; padding:4px 11px; border-radius:20px; }
.status.ongoing{ background:#E7F1E9; color:#2E7D46; }
.status.upcoming{ background:#FCF1DE; color:#98680F; }
.status.completed{ background:#EDEFF3; color:#5A6473; }

/* notice / opportunity row */
.list-row{ display:flex; gap:18px; align-items:flex-start; padding:20px 22px; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow-sm); transition:transform .15s, box-shadow .15s; }
.list-row:hover{ transform:translateY(-2px); box-shadow:var(--shadow); }
.list-row .date{ flex:none; text-align:center; width:64px; }
.list-row .date .d{ font-family:var(--serif); font-size:24px; font-weight:700; color:var(--primary-blue); }
.list-row .date .m{ font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--text-muted); }
.list-row .rc{ flex:1; }
.list-row .rc h3{ font-size:19px; margin:2px 0 4px; }
.list-row .rc p{ color:var(--text-muted); font-size:14.5px; margin:6px 0 0; }
.list-row .rmeta{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* committee card */
.person{ text-align:center; }
.person .ph{ aspect-ratio:1/1; border-radius:12px; overflow:hidden; background:var(--light-background); margin-bottom:14px; }
.person .ph img{ width:100%; height:100%; object-fit:cover; }
.person h3{ font-size:18px; }
.person .role{ color:var(--olive-green); font-weight:600; font-size:14px; margin-top:2px; }
.person .yr{ color:var(--text-muted); font-size:13px; }

/* filter bar */
.filters{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-bottom:30px; }
.filters button{
  font-family:var(--sans); font-size:14px; font-weight:500; padding:8px 16px; border-radius:20px;
  border:1px solid var(--line); background:#fff; color:var(--text-muted); cursor:pointer; transition:.15s;
}
.filters button:hover{ border-color:var(--primary-blue); color:var(--primary-blue); }
.filters button.active{ background:var(--primary-blue); border-color:var(--primary-blue); color:#fff; }

/* ---------- CTA band ---------- */
.cta-band{ background:var(--primary-blue); color:#fff; border-radius:16px; padding:44px 40px; text-align:center; }
.cta-band h2{ color:#fff; font-size:clamp(24px,3.4vw,34px); }
.cta-band p{ color:#E6F1EA; max-width:44ch; margin:12px auto 26px; }

/* ---------- forms ---------- */
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13.5px; font-weight:600; color:var(--text-dark); margin-bottom:7px; }
.field input, .field textarea, .field select{
  width:100%; font-family:var(--sans); font-size:16px; color:var(--text-dark);
  background:#fff; border:1px solid var(--line); border-radius:9px; padding:12px 14px; transition:border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--primary-blue); }
.field textarea{ min-height:140px; resize:vertical; }

/* ---------- gallery ---------- */
.gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.gallery a{ display:block; aspect-ratio:4/3; border-radius:10px; overflow:hidden; background:var(--light-background); }
.gallery img{ width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.gallery a:hover img{ transform:scale(1.06); }

/* lightbox */
.lightbox{ position:fixed; inset:0; background:rgba(8,30,20,.9); display:none; align-items:center; justify-content:center; z-index:100; padding:24px; }
.lightbox.open{ display:flex; }
.lightbox img{ max-width:92vw; max-height:88vh; border-radius:8px; }
.lightbox .x{ position:absolute; top:18px; right:22px; color:#fff; font-size:34px; cursor:pointer; background:none; border:none; }

/* ---------- breadcrumb / page hero ---------- */
.page-hero{ background:var(--dark-blue); color:#fff; padding:56px 0; }
.page-hero .eyebrow{ color:#E7D49A; }
.page-hero h1{ color:#fff; font-size:clamp(30px,4.6vw,46px); margin-top:10px; }
.page-hero p{ color:#CFE1D4; max-width:56ch; margin:14px 0 0; }

.site-footer{ background:var(--dark-blue); color:#BBD0C2; }
.site-footer .top{ max-width:var(--wrap); margin:0 auto; padding:56px 24px 34px;
  display:grid; grid-template-columns:1.6fr 1fr 1fr 1.2fr; gap:34px; }
.site-footer h4{ color:#fff; font-family:var(--sans); font-size:13px; letter-spacing:.14em; text-transform:uppercase; margin:0 0 14px; }
.site-footer p{ font-size:14.5px; margin:0 0 12px; }
.site-footer ul{ list-style:none; margin:0; padding:0; }
.site-footer li{ margin:8px 0; }
.site-footer a{ color:#BBD0C2; text-decoration:none; font-size:14.5px; }
.site-footer a:hover{ color:#fff; }
.site-footer .fbrand{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.site-footer .fbrand img{ height:42px; background:#fff; border-radius:8px; padding:4px; }
.site-footer .socials{ display:flex; gap:10px; margin-top:8px; }
.site-footer .socials a{ width:38px; height:38px; border:1px solid rgba(255,255,255,.2); border-radius:8px; display:grid; place-items:center; }
.site-footer .socials a:hover{ background:rgba(255,255,255,.1); }
.site-footer .socials svg{ width:18px; height:18px; fill:#fff; }
.site-footer .bottom{ border-top:1px solid rgba(255,255,255,.12); }
.site-footer .bottom .in{ max-width:var(--wrap); margin:0 auto; padding:18px 24px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; font-size:13px; }
.site-footer .bottom a{ font-size:13px; }

.mt-0{margin-top:0;} .center{text-align:center;} .mt-40{margin-top:40px;}

.area .pic{ width:96px; height:96px; margin:0 auto 16px; border-radius:50%;
  overflow:hidden; background:var(--light-background); border:3px solid var(--olive-soft); }
.area .pic img{ width:100%; height:100%; object-fit:cover; display:block; }
.area.center{ text-align:center; }

/* ============================================================
   ROYAL-GREEN THEME ADDITIONS
   Islamic geometric motifs · branding · polish
   ============================================================ */

/* Islamic geometric divider under the header (replaces the old plain bar) */
.ip-strip{
  height:18px;
  background-color:var(--green-dk);
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='36'%20height='18'%20viewBox='0%200%2036%2018'%3E%3Cg%20fill='none'%20stroke='%23C9A227'%20stroke-width='1'%3E%3Cpath%20d='M18%203L22%209L18%2015L14%209Z'/%3E%3Cpath%20d='M0%209H12'/%3E%3Cpath%20d='M24%209H36'/%3E%3C/g%3E%3Ccircle%20cx='18'%20cy='9'%20r='1'%20fill='%23C9A227'/%3E%3C/svg%3E");
  background-size:36px 18px;
  background-repeat:repeat-x;
  background-position:center;
}

/* subtle geometric motif inside the hero + inner-page banner */
.hero::after,
.page-hero{ position:relative; }
.hero::after{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.10;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%3E%3Cg%20fill='none'%20stroke='%23C9A227'%20stroke-width='1'%3E%3Cpath%20d='M32%200L64%2032L32%2064L0%2032Z'/%3E%3Cpath%20d='M16%2016H48V48H16Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size:64px 64px;
}
.page-hero{ overflow:hidden; }
.page-hero::after{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none; opacity:.10;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%3E%3Cg%20fill='none'%20stroke='%23C9A227'%20stroke-width='1'%3E%3Cpath%20d='M32%200L64%2032L32%2064L0%2032Z'/%3E%3Cpath%20d='M16%2016H48V48H16Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size:64px 64px;
}
.page-hero .wrap{ position:relative; z-index:1; }

/* thin gold accent line under the header bar for a premium feel */
.site-header{ border-bottom:1px solid var(--line); box-shadow:0 1px 0 rgba(201,162,39,.25); }

/* stronger, more prominent branding in the header */
.brand img{ height:50px; }
.brand .bt .n1{
  font-family:var(--serif); font-weight:700; font-size:17.5px; letter-spacing:.02em;
  color:var(--green-dk); text-transform:uppercase; line-height:1.15;
}
.brand .bt .n2{ font-size:11px; color:var(--text-muted); letter-spacing:.03em; }
.brand .bt{ border-left:3px solid var(--gold); padding-left:11px; }

/* nav: modern pill hover + gold active */
.nav a{ font-weight:500; }
.nav a:hover{ background:var(--olive-soft); color:var(--green-dk); }
.nav a.active{ color:var(--green); font-weight:600; }
.nav a.active::after{ background:var(--gold); }

/* hero badge in gold key */
.hero .badge{ background:rgba(201,162,39,.14); border-color:rgba(201,162,39,.45); color:#F3E9C8; }

/* project / activity card image: consistent, professional crop */
.mcard .thumb{ aspect-ratio:16/10; }

/* Activities feature rows (activities.html) */
.feature{ display:grid; grid-template-columns:1fr 1fr; gap:0; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-sm); margin-bottom:24px; }
.feature:nth-child(even){ direction:rtl; }
.feature:nth-child(even) > *{ direction:ltr; }
.feature .fimg{ min-height:260px; background:var(--light-background); }
.feature .fimg img{ width:100%; height:100%; object-fit:cover; }
.feature .fbody{ padding:34px 36px; align-self:center; }
.feature .fbody h3{ font-size:24px; margin:10px 0 8px; }
.feature .fbody p{ color:var(--text-muted); margin:0 0 18px; }

/* footer branding block — three-line identity */
.site-footer .fbrand{ align-items:flex-start; flex-direction:column; gap:6px; }
.site-footer .fident .l1{ font-family:var(--serif); font-weight:700; color:#fff; font-size:19px; letter-spacing:.03em; text-transform:uppercase; }
.site-footer .fident .l2{ color:var(--gold); font-size:13px; font-weight:600; letter-spacing:.04em; }
.site-footer .fident .l3{ color:#BBD0C2; font-size:12.5px; }
.site-footer h4{ color:var(--gold); }
.site-footer .socials a:hover{ background:var(--gold); border-color:var(--gold); }
.site-footer .socials a:hover svg{ fill:#0E3D26; }
.site-footer .bottom{ background:rgba(0,0,0,.18); }
.feature .mrow{ display:flex; gap:8px; align-items:center; margin-bottom:6px; }

.fident .l1,
.fident .l2,
.fident .l3 {
  display: block;
}

/* clickable cards (blog + resources) */
a.cardlink{ text-decoration:none; color:inherit; }
a.cardlink h3{ color:var(--dark-blue); }
a.area.cardlink:hover{ border-color:var(--olive-soft); }

/* article body typography */
.article-body p{ margin:0 0 20px; }

/* lightbox caption */
.lightbox .lb-cap{ position:absolute; bottom:20px; left:0; right:0; text-align:center;
  color:#fff; font-size:14px; padding:0 20px; text-shadow:0 1px 3px rgba(0,0,0,.6); }
