/* assets/css/style.css
   Douglas & Morgan LLC - Courses (Landing)
   Modern / blue-gray dominant with red accent
*/

:root{
  --bg: #0b1220;
  --bg2:#0f1a2e;
  --surface:#ffffff;
  --surface2:#f8fafc;
  --text:#0f172a;
  --muted:#64748b;
  --muted2:#94a3b8;

  --brand:#e11d48;   /* primary */
  --brand2:#f43f5e;  /* gradient */
  --ring: rgba(225, 29, 72, .22);

  --line: rgba(2, 6, 23, .08);
  --line2: rgba(255,255,255,.12);

  --radius: 16px;
  --radius2: 22px;

  --shadow: 0 14px 44px rgba(2,6,23,.18);
  --shadow2: 0 10px 26px rgba(2,6,23,.10);

  --container: 1180px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: #eef2f7;
  overflow-x:hidden;
}

img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
a:hover{opacity:.92}

.container{
  width:min(var(--container), 92%);
  margin:0 auto;
}

.sep{opacity:.5; margin:0 8px}

/* --------------------------
   Topbar
---------------------------*/
.topbar{
  position:sticky;
  top:0;
  z-index:30;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
}

.brand{display:flex; align-items:center; gap:12px}
.brand__logo{
  width:38px;height:38px;border-radius:12px;
  display:grid;place-items:center;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  color:#fff;
  font-weight:900;
  letter-spacing:.6px;
  box-shadow: 0 10px 24px rgba(225,29,72,.22);
}
.brand__text{display:flex; flex-direction:column; line-height:1.1}
.brand__text b{font-size:13px}
.brand__text span{font-size:12px; color:var(--muted)}

.topbar__nav{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.topbar__nav a{
  font-size:13px;
  color:#0f172a;
  opacity:.9;
  padding:8px 10px;
  border-radius:999px;
}
.topbar__nav a:hover{
  background: rgba(2,6,23,.04);
}

/* --------------------------
   Buttons
---------------------------*/
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  padding: 11px 14px;
  font-weight:800;
  font-size:13px;
  letter-spacing:.2px;
  cursor:pointer;
  border:1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  user-select:none;
}
.btn:active{transform: translateY(1px)}
.btn--primary{
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  color:#fff;
  box-shadow: 0 14px 28px rgba(225,29,72,.24);
}
.btn--primary:hover{box-shadow: 0 16px 34px rgba(225,29,72,.28)}
.btn--ghost{
  background: rgba(2,6,23,.04);
  border: 1px solid rgba(2,6,23,.08);
}

/* --------------------------
   Hero
---------------------------*/
.hero{
  position:relative;
  background: var(--bg);
  overflow:hidden;
  padding: 34px 0 38px;
}
.hero__bg{
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 700px at 12% 20%, rgba(244,63,94,.22), transparent 55%),
    radial-gradient(900px 500px at 80% 10%, rgba(59,130,246,.20), transparent 55%),
    linear-gradient(90deg, rgba(11,18,32,.92) 0%, rgba(11,18,32,.55) 55%, rgba(11,18,32,.25) 100%),
    url("../hero.jpg") center/cover no-repeat;
  filter:saturate(1.08);
  transform: scale(1.02);
}
.hero__grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 28px;
  align-items:stretch;
}

.hero__left{
  color:#fff;
  padding: 18px 0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.kicker{
  font-size:13px;
  font-weight:700;
  opacity:.92;
  letter-spacing:.2px;
  margin-bottom:10px;
}
.hero h1{
  margin:0 0 14px;
  font-size: clamp(28px, 3.2vw, 54px);
  line-height:1.05;
  letter-spacing:-.02em;
}
.sub{
  margin:0 0 16px;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height:1.55;
  opacity:.92;
  max-width: 62ch;
}

.hero__meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 8px 0 14px;
}
.meta-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 9px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  font-size:13px;
  opacity:.96;
}
.dot{
  width:10px;height:10px;border-radius:999px;
  background: var(--brand2);
  box-shadow: 0 0 0 6px rgba(244,63,94,.14);
}

/* Spots */
.spots{
  margin-top: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 14px;
  max-width: 610px;
}
.spots__head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-end;
  margin-bottom:10px;
}
.spots__head b{font-size:13px}
.spots__head span{font-size:12px; opacity:.9}
.spots__bar{
  height: 10px;
  border-radius:999px;
  background: rgba(255,255,255,.16);
  overflow:hidden;
}
.spots__fill{
  height:100%;
  width:0%;
  border-radius:999px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand2) 70%, #fb7185 100%);
}
.spots__foot{
  margin-top:9px;
  display:flex;
  justify-content:space-between;
  font-size:12px;
  opacity:.9;
}

/* Quickgrid */
.quickgrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top: 16px;
  max-width: 720px;
}
.quickcard{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 12px 12px 12px;
  box-shadow: 0 10px 24px rgba(2,6,23,.18);
}
.quickcard b{
  display:block;
  font-size:13px;
  margin-bottom:6px;
}
.quickcard span{
  font-size:12px;
  opacity:.9;
  line-height:1.45;
}

.trust{
  margin-top: 16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.trust__pill{
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  font-size:12px;
  opacity:.95;
}

/* --------------------------
   Card / Form
---------------------------*/
.card{
  align-self:center;
  background: var(--surface);
  border-radius: var(--radius2);
  border: 1px solid rgba(2,6,23,.08);
  box-shadow: var(--shadow);
  padding: 18px;
}
.card__head h2{
  margin:0 0 6px;
  font-size:18px;
  letter-spacing:-.01em;
}
.card__head p{
  margin:0 0 14px;
  color: var(--muted);
  font-size:13px;
  line-height:1.45;
}

.form{display:grid; gap:10px}
.form__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.field label{
  display:block;
  font-size:12px;
  font-weight:800;
  color:#334155;
  margin: 0 0 6px;
}
.field input, .field select{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,.14);
  outline:none;
  font-size:14px;
  background: #fff;
}
.field input:focus, .field select:focus{
  border-color: var(--brand2);
  box-shadow: 0 0 0 6px var(--ring);
}
.legal{
  font-size:11px;
  color:#64748b;
  line-height:1.4;
  padding: 8px 2px 0;
}
.legal a{color: var(--brand); text-decoration:underline}
.micro{
  font-size:12px;
  color:#0f172a;
  background: rgba(225,29,72,.06);
  border: 1px solid rgba(225,29,72,.14);
  border-radius: 14px;
  padding: 10px 12px;
  line-height:1.45;
}

/* --------------------------
   Sections
---------------------------*/
.section{
  padding: 54px 0;
}
.section--alt{
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head h3{
  margin:0 0 10px;
  font-size: 28px;
  letter-spacing:-.02em;
}
.section__head p{
  margin:0 0 18px;
  color: var(--muted);
  max-width: 80ch;
  line-height:1.55;
  font-size: 14px;
}

/* Grids */
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top: 12px;
}
.info{
  background: #fff;
  border: 1px solid rgba(2,6,23,.08);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow2);
}
.info b{display:block; margin-bottom:6px; letter-spacing:-.01em}
.info span{display:block; color: var(--muted); font-size:13px; line-height:1.5}

/* Syllabus */
.syllabus{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top: 14px;
}
.syllabus__card{
  background:#fff;
  border:1px solid rgba(2,6,23,.08);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow2);
  margin: 1em;
}
.tag{
  display:inline-flex;
  padding: 6px 10px;
  border-radius:999px;
  background: rgba(225,29,72,.10);
  border: 1px solid rgba(225,29,72,.18);
  color: var(--brand);
  font-weight:900;
  font-size: 12px;
  margin-bottom: 10px;
}
.syllabus__card ul{
  margin:0;
  padding-left: 18px;
  color:#0f172a;
}
.syllabus__card li{
  margin: 8px 0;
  color:#0f172a;
  font-size: 13px;
  line-height:1.45;
}
.syllabus__card li::marker{color: rgba(225,29,72,.65)}

/* CTA strip */
.cta-strip{
  margin-top: 18px;
  background: #0b1220;
  color:#fff;
  border-radius: var(--radius2);
  padding: 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  box-shadow: 0 16px 40px rgba(2,6,23,.22);
  border: 1px solid rgba(255,255,255,.10);
}
.cta-strip b{font-size:14px}
.cta-strip span{display:block; font-size:12px; opacity:.9}

/* Thumbnails gallery */
.thumbs{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
  margin-top: 12px;
}
.thumb{
  background:#fff;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(2,6,23,.08);
  box-shadow: var(--shadow2);
}
.thumb img{
  height: 180px;
  width:100%;
  object-fit: cover;
}
.thumb figcaption{
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  line-height:1.35;
}

/* Instructors */
.instructors{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.instructor{
  background:#fff;
  border-radius: var(--radius2);
  border:1px solid rgba(2,6,23,.08);
  box-shadow: var(--shadow2);
  overflow:hidden;
  display:grid;
  grid-template-columns: 160px 1fr;
  min-height: 220px;
}
.instructor img{
  width:100%;
  height:100%;
  object-fit: cover;
  background: #e5e7eb;
}
.instructor__body{
  padding: 14px;
}
.instructor__body b{font-size:16px; letter-spacing:-.01em}
.role{
  display:block;
  margin-top:4px;
  color: var(--muted);
  font-size: 13px;
}
.instructor__body p{
  margin: 10px 0 12px;
  color:#334155;
  font-size: 13px;
  line-height: 1.55;
}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chips span{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(2,6,23,.04);
  border: 1px solid rgba(2,6,23,.08);
  color:#0f172a;
}

/* Slider */
.slider{
  position:relative;
  margin-top: 12px;
}
.slider__viewport{
  overflow:hidden;
  border-radius: var(--radius2);
}
.slider__track{
  display:flex;
  gap:14px;
  transition: transform .25s ease;
  will-change: transform;
  padding: 2px;
}
.review{
  flex: 0 0 calc(50% - 7px); /* 2 per view on desktop */
  background:#fff;
  border-radius: var(--radius2);
  border:1px solid rgba(2,6,23,.08);
  box-shadow: var(--shadow2);
  padding: 14px;
}
.review__top{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 8px;
}
.avatar{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  font-weight:900;
  color:#fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  box-shadow: 0 10px 22px rgba(225,29,72,.18);
}
.muted{font-size:12px; color: var(--muted)}
.stars{
  color: #f59e0b;
  letter-spacing: 1px;
  margin: 8px 0 10px;
  font-size: 14px;
}
.review p{
  margin:0;
  color:#334155;
  font-size: 13px;
  line-height:1.6;
}
.slider__btn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,.10);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px rgba(2,6,23,.12);
  cursor:pointer;
  font-size: 22px;
  font-weight: 900;
  display:grid;
  place-items:center;
}
.slider__btn:hover{background:#fff}
.slider__btn--left{left:-12px}
.slider__btn--right{right:-12px}

/* Includes note */
.note{
  margin-top: 14px;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.16);
  border-radius: var(--radius2);
  padding: 14px;
  color:#0f172a;
  line-height:1.55;
  box-shadow: var(--shadow2);
}
.note b{color:#0f172a}

/* Courses grid */
.coursegrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
  margin-top: 12px;
}
.course{
  background:#fff;
  border-radius: var(--radius2);
  border:1px solid rgba(2,6,23,.08);
  box-shadow: var(--shadow2);
  padding: 14px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.badge{
  display:inline-flex;
  padding: 6px 10px;
  border-radius:999px;
  background: rgba(225,29,72,.10);
  border: 1px solid rgba(225,29,72,.18);
  color: var(--brand);
  font-weight:900;
  font-size: 12px;
  margin-bottom: 8px;
}
.course .meta{
  color: var(--muted);
  font-size: 13px;
  line-height:1.5;
  margin-top: 6px;
}
.price{
  font-weight: 900;
  color:#0f172a;
  white-space:nowrap;
}

/* FAQ */
.faq{
  display:grid;
  gap:10px;
  margin-top: 10px;
}
.faq__item{
  background:#fff;
  border-radius: var(--radius2);
  border:1px solid rgba(2,6,23,.08);
  box-shadow: var(--shadow2);
  padding: 12px 14px;
}
.faq__item summary{
  cursor:pointer;
  font-weight: 900;
  font-size: 13px;
  color:#0f172a;
  list-style:none;
}
.faq__item summary::-webkit-details-marker{display:none}
.faq__item summary::after{
  content:"+";
  float:right;
  font-weight: 900;
  color: var(--brand);
}
.faq__item[open] summary::after{content:"–"}
.faq__body{
  margin-top: 10px;
  color:#334155;
  font-size: 13px;
  line-height:1.6;
}

/* Policies */
.policies{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin-top: 10px;
}
.policy{
  background:#fff;
  border-radius: var(--radius2);
  border:1px solid rgba(2,6,23,.08);
  box-shadow: var(--shadow2);
  padding: 14px;
}
.policy b{display:block; margin-bottom:6px}
.policy p{
  margin:0;
  color:#334155;
  font-size: 13px;
  line-height:1.6;
}

/* Footer */
.footer{
  background:#fff;
  border-top:1px solid var(--line);
  padding: 20px 0;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color: var(--muted);
  font-size: 13px;
}
.footer a{color: var(--brand); text-decoration: underline}

/* --------------------------
   Responsive
---------------------------*/
@media (max-width: 1080px){
  .hero__grid{grid-template-columns: 1fr; gap:18px}
  .quickgrid{grid-template-columns: 1fr}
  .topbar__nav{display:none}
  .card{max-width: 620px}
  .spots{max-width: 100%}
}

@media (max-width: 980px){
  .grid3{grid-template-columns:1fr}
  .syllabus{grid-template-columns:1fr}
  .thumbs{grid-template-columns:1fr}
  .coursegrid{grid-template-columns:1fr}
  .policies{grid-template-columns:1fr}
  .instructors{grid-template-columns:1fr}
  .instructor{grid-template-columns: 1fr; min-height:auto}
  .instructor img{height: 220px}
  .review{flex: 0 0 100%} /* 1 per view on mobile */
  .slider__btn--left{left:8px}
  .slider__btn--right{right:8px}
}

@media (max-width: 560px){
  .form__row{grid-template-columns:1fr}
  .hero{padding: 26px 0 28px}
  .section{padding: 42px 0}
  .section__head h3{font-size: 24px}
  .cta-strip{flex-direction:column; align-items:flex-start}
}
