:root{
  --green:#006A4E; --green-deep:#00513C; --red:#F42A41; --red-deep:#D11830;
  --cream:#F7F4EC; --ink:#10241C; --paper:#FFFFFF; --line:#DCE5DF;
  --display:"Archivo",sans-serif; --body:"Hind Siliguri",sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{font-family:var(--body);color:var(--ink);background:var(--paper);line-height:1.65;font-size:16.5px}
img{max-width:100%;display:block}
a{color:var(--green);text-decoration:none}
.wrap{max-width:1180px;margin:0 auto;padding:0 22px}

.flag-strip{height:6px;background:linear-gradient(90deg,var(--green) 0 62%,var(--red) 62% 78%,var(--green) 78% 100%)}

.site-header{position:sticky;top:0;z-index:50;background:var(--paper);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 22px}
.brand{display:flex;align-items:center;gap:12px;color:var(--ink)}
.brand-logo{height:46px;width:46px;border-radius:50%;object-fit:cover}
.brand-mark{width:44px;height:30px;background:var(--green);border-radius:4px;display:grid;place-items:center;flex:none}
.brand-disc{width:16px;height:16px;border-radius:50%;background:var(--red);transform:translateX(-2px)}
.brand-text strong{font-family:var(--display);font-stretch:115%;font-weight:800;font-size:1.02rem;letter-spacing:.01em;display:block;line-height:1.15}
.brand-text small{color:var(--green);font-weight:600}
.site-nav{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.site-nav a{font-weight:600;color:var(--ink);font-size:.95rem;padding:6px 2px;border-bottom:2px solid transparent}
.site-nav a:hover{border-bottom-color:var(--red);color:var(--green)}
.btn-join{background:var(--red);color:#fff!important;padding:9px 18px!important;border-radius:999px;border-bottom:none!important}
.btn-join:hover{background:var(--red-deep)}
.nav-toggle{display:none;font-size:1.5rem;background:none;border:1px solid var(--line);border-radius:8px;padding:4px 12px;cursor:pointer}

.hero{position:relative;background:var(--green);color:#fff;overflow:hidden}
.hero-disc{position:absolute;right:-160px;top:50%;transform:translateY(-50%);width:560px;height:560px;border-radius:50%;background:var(--red);opacity:.92}
.hero-inner{position:relative;padding:96px 22px 110px;max-width:760px;margin:0;padding-left:max(22px,calc((100vw - 1180px)/2 + 22px))}
.eyebrow{font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:.8rem;color:var(--red);margin-bottom:14px}
.hero .eyebrow{color:#FFD9DE} .eyebrow-light{color:var(--red)}
.hero h1{font-family:var(--display);font-stretch:120%;font-weight:900;font-size:clamp(2.2rem,5.4vw,4rem);line-height:1.04;letter-spacing:-.01em}
.hero-sub{margin-top:18px;font-size:1.15rem;max-width:34em;color:#E7F2EC}
.hero-actions{margin-top:30px;display:flex;gap:14px;flex-wrap:wrap}

.btn{display:inline-block;font-weight:700;padding:13px 26px;border-radius:999px;border:2px solid transparent;cursor:pointer;font-family:var(--body);font-size:1rem}
.btn-red{background:var(--red);color:#fff}.btn-red:hover{background:var(--red-deep)}
.btn-green{background:var(--green);color:#fff}.btn-green:hover{background:var(--green-deep)}
.btn-ghost{border-color:#ffffff80;color:#fff}.btn-ghost:hover{background:#ffffff1a}

.section{padding:72px 0}
.section-cream{background:var(--cream)}
.section-green{background:var(--green-deep);color:#fff}
.section-green .section-title{color:#fff}
.section-title{font-family:var(--display);font-stretch:115%;font-weight:800;font-size:clamp(1.6rem,3vw,2.3rem);margin-bottom:34px}
.page-head{background:var(--green);color:#fff;padding:64px 0}
.page-head h1{font-family:var(--display);font-stretch:120%;font-weight:900;font-size:clamp(2rem,4.5vw,3.2rem)}
.center{text-align:center;margin-top:30px}
.muted{color:#5d6f66;font-size:.92rem}
.section-green .muted{color:#BFD7CC}
.empty{padding:40px;border:1px dashed var(--line);border-radius:12px;text-align:center;color:#5d6f66}

.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px}
.card{background:var(--paper);border:1px solid var(--line);border-radius:14px;overflow:hidden;color:var(--ink);transition:transform .15s,box-shadow .15s}
.card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #10241c1f}
.card img{height:190px;width:100%;object-fit:cover}
.card-body{padding:20px}
.card-body h3{font-family:var(--display);font-stretch:110%;font-weight:700;font-size:1.12rem;margin:6px 0}
.card-body time{font-size:.85rem;font-weight:700;color:var(--red)}
.card-dark{background:#0B3D2E;border-color:#1d5a47;color:#fff}
.card-dark h3{color:#fff}
.pill{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:3px 10px;border-radius:999px;margin-bottom:8px}
.pill-event{background:#E2F0EA;color:var(--green)}
.pill-campaign{background:#FDE3E6;color:var(--red-deep)}

.news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px}
.news-item{display:flex;flex-direction:column;gap:12px;color:var(--ink)}
.news-item img{height:170px;width:100%;object-fit:cover;border-radius:12px}
.news-item time{font-size:.82rem;color:var(--red);font-weight:700}
.news-item h3{font-family:var(--display);font-stretch:110%;font-size:1.08rem;line-height:1.3;margin:4px 0}
.news-item p{font-size:.92rem;color:#5d6f66}
.news-item:hover h3{color:var(--green)}

.team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:26px}
.team-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:24px;text-align:center}
.team-photo{width:120px;height:120px;border-radius:50%;overflow:hidden;margin:0 auto 16px;background:var(--cream);border:3px solid var(--green)}
.team-photo img{width:100%;height:100%;object-fit:cover}
.team-card h3{font-family:var(--display);font-stretch:110%;font-size:1.05rem}
.designation{color:var(--red);font-weight:700;font-size:.9rem;margin-top:2px}
.bio{font-size:.88rem;color:#5d6f66;margin-top:10px}
.mini-link{display:inline-block;margin-top:10px;font-weight:700;font-size:.85rem}

.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.gallery-grid img{width:100%;height:200px;object-fit:cover;border-radius:10px}
.gallery-grid figure{position:relative}
.gallery-grid figcaption{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,#10241cd9);color:#fff;font-size:1rem;padding:18px 10px 8px;border-radius:0 0 10px 10px}
.home-gallery img{height:160px}

.resource-list{display:flex;flex-direction:column;gap:14px}
.resource-row{display:flex;justify-content:space-between;align-items:center;gap:18px;border:1px solid var(--line);border-radius:12px;padding:20px 24px;flex-wrap:wrap}
.resource-row h3{font-family:var(--display);font-stretch:110%;font-size:1.05rem}

/* Library ---------------------------------------------------------------- */
.lib-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:22px}
.lib-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}
.lib-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #10241c1a}
.lib-cover{position:relative;height:200px;background:var(--cream);overflow:hidden;display:flex;align-items:center;justify-content:center}
.lib-cover img{width:100%;height:100%;object-fit:cover}
.lib-cover-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:linear-gradient(135deg,#E2F0EA 0%,#c8e3d6 100%)}
.lib-badge{position:absolute;top:10px;left:10px;background:var(--green);color:#fff;font-size:.68rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;padding:3px 10px;border-radius:999px}
.lib-info{padding:16px;display:flex;flex-direction:column;gap:8px;flex:1}
.lib-title{font-family:var(--display);font-stretch:110%;font-weight:700;font-size:1rem;line-height:1.3;color:var(--ink)}
.lib-author{font-size:.82rem;color:var(--green);font-weight:600}
.lib-desc{font-size:.85rem;color:#5d6f66;line-height:1.5;display:-webkit-box;--webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.lib-meta{font-size:.75rem;color:#8a9a90;display:flex;gap:12px;margin-top:auto;padding-top:4px}
.lib-actions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.lib-btn{padding:8px 16px!important;font-size:.85rem!important}
.lib-preview-btn{border:1px solid var(--line)!important;color:var(--ink)!important;background:transparent}
.lib-preview-btn:hover{background:var(--cream)!important}

.tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:30px}
.tabs a{padding:8px 18px;border:1px solid var(--line);border-radius:999px;font-weight:600;color:var(--ink);font-size:.9rem}
.tabs a.active{background:var(--green);color:#fff;border-color:var(--green)}
.pager{display:flex;gap:8px;justify-content:center;margin-top:40px}
.pager a{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;font-weight:700}
.pager a.active{background:var(--red);color:#fff;border-color:var(--red)}

.article-wrap{max-width:780px}
.article-wrap h1{font-family:var(--display);font-stretch:115%;font-weight:800;font-size:clamp(1.7rem,4vw,2.6rem);line-height:1.15;margin:8px 0 10px}
.meta{color:#5d6f66;font-size:.92rem;margin-bottom:24px}
.article-img{border-radius:14px;margin-bottom:28px}
.article-body{font-size:1.06rem}
.article-body + p{margin-top:32px}

.form-wrap{max-width:720px}
form label{display:block;font-weight:600;font-size:.92rem;margin-bottom:16px}
form input,form textarea,form select{width:100%;margin-top:6px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font-family:var(--body);font-size:1rem;background:var(--paper);color:var(--ink)}
form input:focus,form textarea:focus,form select:focus{outline:2px solid var(--green);outline-offset:1px;border-color:var(--green)}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
.hp{position:absolute!important;left:-9999px!important;height:1px;width:1px;opacity:0}

.flash{max-width:1180px;margin:18px auto;padding:14px 20px;border-radius:10px;font-weight:600}
.flash-ok{background:#E2F0EA;color:var(--green-deep);border:1px solid #b9d9c9}
.flash-err{background:#FDE3E6;color:var(--red-deep);border:1px solid #f5b6bf}

.cta-band{background:var(--red);color:#fff;text-align:center;padding:70px 0}
.cta-band h2{font-family:var(--display);font-stretch:120%;font-weight:900;font-size:clamp(1.8rem,4vw,2.8rem)}
.cta-band p{margin:12px 0 26px;color:#FFE3E7}
.cta-band .btn-red{background:#fff;color:var(--red-deep)}

.site-footer{background:var(--ink);color:#C9D6CF}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.4fr;gap:36px;padding:60px 22px 44px}
.footer-grid h3.footer-brand{font-family:var(--display);font-stretch:115%;color:#fff;font-size:1.1rem}
.footer-bn{color:var(--red);font-weight:600;margin:4px 0 10px}
.footer-grid h4{color:#fff;font-size:.85rem;text-transform:uppercase;letter-spacing:.1em;margin-bottom:14px}
.footer-grid a{display:block;color:#C9D6CF;padding:3px 0;font-size:.94rem}
.footer-grid a:hover{color:#fff}
.socials{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.socials a{background:#2a4035;color:#fff;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:background 0.2s, transform 0.2s;padding:0}
.socials a:hover{background:var(--red);transform:translateY(-2px);color:#fff}
.footer-bar{border-top:1px solid #24382f;padding:18px 0;font-size:.85rem;text-align:center}
.footer-bar .wrap{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}

:focus-visible{outline:3px solid var(--red);outline-offset:2px}

@media (max-width:860px){
  .nav-toggle{display:block}
  .site-nav{display:none;width:100%;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 0}
  .site-nav.open{display:flex}
  .header-inner{flex-wrap:wrap}
  .grid-2{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .hero-disc{width:340px;height:340px;right:-200px}
  .resource-row{flex-direction:column;align-items:flex-start}
}
@media (max-width:540px){.footer-grid{grid-template-columns:1fr}}

.brand-logo{height:52px;width:52px;border-radius:50%}
.footer-logo{height:84px;width:84px;border-radius:50%;margin-bottom:12px}

/* Papers page -------------------------------------------------------------- */
.papers-list{display:flex;flex-direction:column;gap:28px}

.paper-item{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  transition:box-shadow .18s,transform .18s;
}
.paper-item:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 30px #10241c18;
}

.paper-header{
  display:flex;
  align-items:flex-start;
  gap:16px;
  padding:22px 26px 18px;
  border-bottom:1px solid var(--line);
  background:var(--cream);
}

.paper-icon{
  flex:none;
  width:44px;height:44px;
  border-radius:10px;
  background:var(--green);
  color:#fff;
  display:grid;
  place-items:center;
  margin-top:2px;
}

.paper-header-text{flex:1;min-width:0}

.paper-title{
  font-family:var(--display);
  font-stretch:110%;
  font-weight:800;
  font-size:1.18rem;
  line-height:1.3;
  color:var(--ink);
  margin:0 0 8px;
}

.paper-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 10px;
  font-size:.85rem;
  color:#5d6f66;
}
.paper-author{
  display:inline-flex;
  align-items:center;
  font-weight:700;
  color:var(--green);
}
.paper-meta-sep{color:var(--line)}
.paper-meta time{display:inline-flex;align-items:center;color:#5d6f66}

.paper-body{
  padding:22px 26px;
  font-size:1.02rem;
  line-height:1.75;
  color:var(--ink);
}
.paper-body p{margin-bottom:1em}
.paper-body p:last-child{margin-bottom:0}
.paper-body h1,.paper-body h2,.paper-body h3{
  font-family:var(--display);
  font-stretch:110%;
  font-weight:700;
  margin:1.2em 0 .5em;
  color:var(--ink);
}
.paper-body ul,.paper-body ol{padding-left:1.4em;margin-bottom:1em}
.paper-body li{margin-bottom:.35em}
.paper-body a:not(.btn){color:var(--green);text-decoration:underline}
.paper-body blockquote{
  border-left:4px solid var(--green);
  padding:12px 20px;
  margin:18px 0;
  background:var(--cream);
  border-radius:0 8px 8px 0;
  color:#3a5a4a;
  font-style:italic;
}
.paper-body img{border-radius:8px;margin:12px 0;max-width:100%}

@media(max-width:600px){
  .paper-header{padding:16px 18px 14px;gap:12px}
  .paper-body{padding:16px 18px}
  .paper-title{font-size:1.06rem}
  .paper-icon{width:38px;height:38px}
}

/* Editor page -------------------------------------------------------------- */
.editor-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:28px;
}

.editor-card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .18s,box-shadow .18s;
}
.editor-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 36px #10241c1c;
}

/* Avatar band — green gradient strip at the top */
.editor-avatar-band{
  background:linear-gradient(140deg,var(--green-deep) 0%,var(--green) 100%);
  height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:none;
  position:relative;
}
.editor-avatar-band::after{
  content:'';
  position:absolute;
  bottom:-1px;left:0;right:0;
  height:24px;
  background:var(--paper);
  border-radius:50% 50% 0 0 / 100% 100% 0 0;
}

.editor-avatar{
  width:100px;height:100px;
  border-radius:50%;
  object-fit:cover;
  border:4px solid rgba(255,255,255,.92);
  box-shadow:0 6px 20px rgba(0,0,0,.22);
  position:relative;
  z-index:1;
}
.editor-avatar-placeholder{
  background:rgba(255,255,255,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.75);
}

.editor-body{
  padding:12px 22px 22px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.editor-name{
  font-family:var(--display);
  font-stretch:110%;
  font-weight:800;
  font-size:1.12rem;
  color:var(--ink);
  margin:0 0 4px;
  text-align:center;
}

.editor-designation{
  color:var(--red);
  font-weight:700;
  font-size:.88rem;
  margin:0 0 14px;
  text-align:center;
}

.editor-bio{
  font-size:.9rem;
  color:#5d6f66;
  line-height:1.65;
  margin-bottom:16px;
  flex:1;
}
.editor-bio p{margin-bottom:.6em}
.editor-bio p:last-child{margin-bottom:0}

.editor-contacts{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:14px;
}
.editor-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:.8rem;
  font-weight:600;
  color:var(--green-deep);
  background:var(--cream);
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 14px;
  text-decoration:none;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  transition:background .15s,border-color .15s;
}
.editor-chip:hover{background:#d1f5e4;border-color:#a7dfbf;color:var(--green-deep)}
.editor-chip svg{flex:none;opacity:.7}

.editor-socials{display:flex;justify-content:center;gap:8px;margin-top:4px}
.editor-social-btn{
  width:34px;height:34px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-decoration:none;
  transition:opacity .15s,transform .15s;
}
.editor-social-btn:hover{opacity:.82;transform:scale(1.1)}
.editor-social-fb{background:#1877f2}
.editor-social-x {background:#111}
.editor-social-li{background:#0a66c2}
.editor-social-web{background:var(--green)}

@media(max-width:600px){
  .editor-grid{grid-template-columns:1fr}
  .editor-avatar-band{height:130px}
  .editor-avatar{width:86px;height:86px}
  .editor-body{padding:10px 18px 18px}
}

/* Homepage empty-state placeholder ----------------------------------------- */
.home-empty-state{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:48px 24px;
  border:2px dashed var(--line);
  border-radius:16px;
  background:var(--cream);
  text-align:center;
}
.home-empty-icon{
  width:72px;height:72px;
  border-radius:50%;
  background:#fff;
  border:2px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--green);
}
.home-empty-text{
  color:#5d6f66;
  font-size:.97rem;
  max-width:380px;
  line-height:1.55;
}

/* Featured news card ------------------------------------------------------- */
.featured-news-card{
  display:flex;
  gap:0;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--paper);
  margin-bottom:32px;
  text-decoration:none;
  color:var(--ink);
  transition:box-shadow .18s,transform .18s;
}
.featured-news-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 40px #10241c1c;
}
.featured-news-img{
  width:45%;
  min-height:260px;
  object-fit:cover;
  flex:none;
  display:block;
}
.featured-news-body{
  padding:28px 30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:10px;
  flex:1;
}
.featured-news-pill{
  display:inline-block;
  background:#fef3c7;
  color:#92400e;
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
  padding:3px 12px;
  border-radius:999px;
  width:fit-content;
}
.featured-news-title{
  font-family:var(--display);
  font-stretch:115%;
  font-weight:800;
  font-size:1.45rem;
  line-height:1.25;
  color:var(--ink);
  margin:0;
}
.featured-news-card:hover .featured-news-title{color:var(--green)}
.featured-news-excerpt{
  color:#5d6f66;
  font-size:.96rem;
  line-height:1.6;
  margin:0;
  display:-webkit-box;
  --webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.featured-news-date{
  font-size:.82rem;
  font-weight:700;
  color:var(--red);
  margin-top:4px;
}

@media(max-width:700px){
  .featured-news-card{flex-direction:column}
  .featured-news-img{width:100%;min-height:200px}
  .featured-news-body{padding:20px}
  .featured-news-title{font-size:1.18rem}
}
