/*
Theme Name: CELT Journals — Medical Sciences
Description: Subdomain theme for CELT Journal of Medical Sciences (CJMS). Pre-configured with red color theme and medical research cover.
Version: 1.1
Author: CELT Educational Consultancy Centre
Author URI: https://celtjournals.com
Text Domain: celt-cjms
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --purple:    #3D3580;
  --purple-dk: #2C256A;
  --purple-lt: #EEEDFB;
  --amber:     #F5A623;
  --amber-dk:  #C4841A;
  --amber-lt:  #FEF3DC;
  --cyan:      #00AEEF;
  --cyan-dk:   #0080C0;
  --cyan-lt:   #E0F6FF;
  --cream:     #F8F6F1;
  --cream2:    #F0EDE4;
  --ink:       #1A1A2E;
  --ink2:      #3D3D5C;
  --muted:     #7A7490;
  --border:    rgba(61,53,128,0.13);
  --white:     #ffffff;
  --green:     #1a7a4a;
  --red:       #C0392B;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: #fafaf7; color: var(--ink); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: var(--purple); }
a:hover { color: var(--purple-dk); text-decoration: underline; }
img { max-width: 100%; display: block; height: auto; }
button { cursor: pointer; font-family: inherit; }

/* TOP STRIP */
.top-strip { background: var(--purple-dk); color: rgba(255,255,255,0.7); font-size: 11px; padding: 6px 0; letter-spacing: 0.3px; }
.top-strip-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-strip a { color: var(--amber); font-weight: 500; }
.top-strip a:hover { color: #fff; text-decoration: none; }

/* HEADER */
header.site-header { background: var(--white); border-bottom: 1px solid var(--border); box-shadow: 0 1px 0 rgba(0,0,0,0.02); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1140px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo-img { height: 60px; width: auto; display: block; }
.brand-text { line-height: 1.2; }
.brand-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--purple); letter-spacing: -0.3px; }
.brand-sub { font-size: 11px; color: var(--cyan); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; margin-top: 2px; }
.header-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hnav-link { padding: 8px 14px; font-size: 13px; color: var(--ink2); font-weight: 500; border-radius: 6px; transition: all 0.15s; }
.hnav-link:hover { background: var(--purple-lt); color: var(--purple); text-decoration: none; }
.hnav-cta { background: var(--purple); color: #fff !important; padding: 9px 18px !important; font-weight: 600 !important; }
.hnav-cta:hover { background: var(--purple-dk) !important; color: #fff !important; }

/* TITLE BANNER (color set per-journal in functions.php) */
.title-banner { padding: 38px 0 32px; position: relative; overflow: hidden; border-bottom: 4px solid var(--amber); }
.title-banner.cs  { background: linear-gradient(135deg,#1a0a4e 0%, #3D3580 50%, #0a3d6e 100%); }
.title-banner.biz { background: linear-gradient(135deg,#6a3800 0%, #C4841A 50%, #e8a020 100%); }
.title-banner.med { background: linear-gradient(135deg,#4a0808 0%, #C0392B 50%, #e85555 100%); }
.title-banner.soc { background: linear-gradient(135deg,#003a58 0%, #0080C0 50%, #00AEEF 100%); }
.title-banner::before { content: ''; position: absolute; top: -60px; right: -60px; width: 280px; height: 280px; background: rgba(245,166,35,0.1); border-radius: 50%; }
.title-banner::after { content: ''; position: absolute; bottom: -80px; left: 5%; width: 200px; height: 200px; background: rgba(0,174,239,0.08); border-radius: 50%; }
.title-banner-deco { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0.08; }
.title-banner-deco svg { width: 60%; height: 80%; }
.title-banner-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.title-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.t-pill { background: rgba(255,255,255,0.18); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.25); letter-spacing: 0.5px; }
.title-banner h1 { font-family: 'Playfair Display', serif; font-size: 30px; color: #fff; font-weight: 700; line-height: 1.2; margin-bottom: 6px; }
.title-banner-sub { color: rgba(255,255,255,0.75); font-size: 13px; }
.title-banner-sub strong { color: var(--amber); }

/* WRAPPER */
.wrapper { max-width: 1140px; margin: 0 auto; padding: 32px 24px; display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: flex-start; }

/* INTRO BOX */
.intro-box { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 24px 28px; margin-bottom: 24px; display: flex; gap: 24px; align-items: flex-start; }
.intro-cover { width: 200px; flex-shrink: 0; }
.cover-card { width: 100%; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(61,53,128,0.18); border: 1px solid var(--border); background: #fff; }
.cover-card-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.cover-card-label { background: linear-gradient(180deg,var(--purple) 0%, var(--purple-dk) 100%); color: #fff; padding: 12px 14px 14px; text-align: center; }
.cover-card-label.biz { background: linear-gradient(180deg,var(--amber) 0%, var(--amber-dk) 100%); }
.cover-card-label.med { background: linear-gradient(180deg,#E05555 0%, #C0392B 100%); }
.cover-card-label.soc { background: linear-gradient(180deg,var(--cyan) 0%, var(--cyan-dk) 100%); }
.cover-card-label .ccl-name { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.cover-card-label .ccl-tag { font-size: 9px; color: rgba(255,255,255,0.7); letter-spacing: 1.5px; text-transform: uppercase; }
.intro-content { flex: 1; }
.intro-content h2 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.rss-icon { display: inline-flex; width: 14px; height: 14px; background: var(--amber); border-radius: 2px; align-items: center; justify-content: center; color: #fff; font-size: 8px; font-weight: 700; }
.intro-content p { color: var(--ink2); font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
.intro-meta { font-size: 13px; line-height: 1.9; }
.intro-meta strong { color: var(--ink); font-weight: 500; display: inline-block; min-width: 160px; }
.intro-meta a { color: var(--purple); }

/* SECTIONS */
.section { background: #fff; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 18px; overflow: hidden; scroll-margin-top: 80px; }
.section-head { background: linear-gradient(90deg,var(--purple-lt) 0%, #fff 100%); padding: 11px 24px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--purple); font-size: 13px; letter-spacing: 0.4px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.section-head::before { content: ''; display: block; width: 3px; height: 16px; background: var(--amber); border-radius: 2px; }
.section-body { padding: 20px 24px; }
.section-body p { color: var(--ink2); font-size: 13px; line-height: 1.75; margin-bottom: 10px; }
.section-body p:last-child { margin-bottom: 0; }
.section-body h3 { font-size: 14px; color: var(--purple); margin: 14px 0 6px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.section-body h3:first-child { margin-top: 0; }
.section-body ul { margin: 6px 0 12px 20px; }
.section-body li { font-size: 13px; color: var(--ink2); line-height: 1.75; margin-bottom: 3px; list-style: disc; }
.section-body li::marker { color: var(--amber); }

/* SCOPE TAGS */
.scope-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px 16px; margin-top: 8px; }
.scope-tag { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); padding: 5px 0; }
.scope-tag::before { content: '\25B8'; color: var(--amber); font-weight: 700; flex-shrink: 0; }

/* INDEXING LIST */
.idx-list { display: flex; flex-direction: column; gap: 12px; }
.idx-item { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.idx-item:last-child { border-bottom: none; }
.idx-item .idx-name { color: var(--purple); font-weight: 600; font-size: 14px; margin-bottom: 3px; display: inline-block; }
.idx-item .idx-name:hover { text-decoration: underline; }
.idx-item .idx-desc { color: var(--ink2); font-size: 13px; line-height: 1.65; }
.idx-status { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-left: 8px; vertical-align: middle; letter-spacing: 0.3px; }
.idx-status.live { background: #e8f7ef; color: var(--green); }
.idx-status.live::before { content: '\25CF'; color: var(--green); }
.idx-status.pend { background: var(--amber-lt); color: var(--amber-dk); }
.idx-status.pend::before { content: '\25CF'; color: var(--amber); }

/* TABLE */
.j-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.j-table th { background: var(--purple); color: #fff; padding: 9px 14px; text-align: left; font-weight: 500; font-size: 12px; letter-spacing: 0.4px; }
.j-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); color: var(--ink2); }
.j-table tr:nth-child(even) td { background: var(--cream); }
.j-table tr:last-child td { border-bottom: none; }

/* CTA */
.cta-strip { background: linear-gradient(135deg,var(--purple) 0%, var(--purple-dk) 100%); border-radius: 10px; padding: 24px 28px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.cta-strip h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 4px; color: #fff; }
.cta-strip p { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 0; }
.cta-strip-btn { background: var(--amber); color: #fff; padding: 11px 22px; border-radius: 6px; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; border: none; transition: background 0.2s; white-space: nowrap; }
.cta-strip-btn:hover { background: var(--amber-dk); color: #fff; text-decoration: none; }

/* SIDEBAR */
.sidebar { position: sticky; top: 80px; }
.sb-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.sb-head { background: var(--cream); padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--purple); text-transform: uppercase; letter-spacing: 0.7px; display: flex; align-items: center; gap: 8px; }
.sb-head::before { content: ''; display: block; width: 3px; height: 14px; background: var(--amber); border-radius: 2px; }
.sb-links { padding: 4px 0; }
.sb-link { display: flex; align-items: center; gap: 8px; padding: 9px 16px; font-size: 13px; color: var(--ink2); transition: all 0.15s; border-left: 3px solid transparent; }
.sb-link::before { content: '\25B8'; color: var(--amber); font-weight: 700; font-size: 11px; flex-shrink: 0; }
.sb-link:hover { background: var(--purple-lt); color: var(--purple); text-decoration: none; border-left-color: var(--purple); }
.sb-contact { padding: 14px 16px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.sb-contact strong { color: var(--ink); font-weight: 500; display: block; margin-bottom: 2px; }
.sb-contact a { color: var(--purple); }

/* FOOTER */
footer.site-footer { background: #1A1830; color: rgba(255,255,255,0.6); margin-top: 40px; border-top: 4px solid var(--amber); }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 36px 24px 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-logo-img { height: 60px; width: auto; background: #fff; border-radius: 50%; padding: 4px; border: 2px solid var(--amber); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.footer-brand-name { font-family: 'Playfair Display', serif; color: #fff; font-weight: 700; font-size: 18px; }
.footer-brand-sub { font-size: 10px; color: var(--cyan); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }
.footer-tag { font-size: 12px; line-height: 1.7; color: rgba(255,255,255,0.4); max-width: 340px; }
.footer-col h5 { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.55); font-size: 13px; padding: 5px 0; }
.footer-col a:hover { color: var(--amber); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; font-size: 11px; color: rgba(255,255,255,0.35); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .wrapper { grid-template-columns: 1fr; gap: 20px; }
  .intro-box { flex-direction: column; align-items: center; }
  .intro-cover { width: 200px; }
  .scope-grid { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .header-nav { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .title-banner h1 { font-size: 24px; }
  .cta-strip { flex-direction: column; text-align: center; }
  .sidebar { position: static; }
}
