:root{
  --primary:#2f5f6b;
  --accent:#3c7a86;
  --text:#222;
  --muted:#555;
  --light:#f5f5f5;
  --ink:#111;
  --border:rgba(0,0,0,.10);
  --shadow:0 10px 24px rgba(0,0,0,.10);
}

*{ box-sizing:border-box; }

html,body{ height:100%; }

body{
  margin:0;
  font-family: Georgia, serif;
  color:var(--text);
  line-height:1.6;
  background:#fff;
}

img{ max-width:100%; height:auto; display:block; }

.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

/* =========================================================
   HEADER
========================================================= */

.header{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.12);
  position:sticky;
  top:0;
  z-index:1000;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 0;
}

.branding{ min-width:240px; }

.title{
  font-size:28px;
  font-weight:700;
  letter-spacing:.2px;
}

.subtitle{
  font-size:13px;
  color:var(--accent);
  margin-top:4px;
}

/* =========================================================
   NAV + DROPDOWN
========================================================= */

.nav-toggle{
  display:none;
  font-size:22px;
  background:#fff;
  border:1px solid rgba(0,0,0,.25);
  border-radius:6px;
  padding:6px 10px;
  cursor:pointer;
  line-height:1;
}

.nav{
  display:flex;
  align-items:center;
  gap:18px;
}

.nav a,
.dropdown-toggle{
  font-family: inherit;
  font-size:16px;
  color:#333;
  text-decoration:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px 6px;
}

.nav a:hover,
.dropdown-toggle:hover{
  color:var(--primary);
}

.nav a.active{
  color:var(--primary);
  font-weight:700;
  border-bottom:2px solid var(--primary);
  padding-bottom:6px;
}

/* Dropdown */
.dropdown{ position:relative; }

.dropdown-menu{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  min-width:340px;
  background:var(--ink);
  border-radius:8px;
  padding:8px 0;
  box-shadow:0 14px 28px rgba(0,0,0,.25);
  z-index:2000;
}

.dropdown-menu a{
  display:block;
  padding:10px 16px;
  color:#e5e5e5;
  text-decoration:none;
  font-size:14px;
}

.dropdown-menu a:hover{
  background:rgba(255,255,255,.08);
}

/* Desktop hover behavior */
@media (min-width: 901px){
  .dropdown:hover .dropdown-menu{ display:block; }
}

/* =========================================================
   HERO
========================================================= */

.hero{
  height:260px;
  background:url("../assets/images/medimage.jpg") center/cover no-repeat;
  border-bottom:1px solid rgba(0,0,0,.10);
}

/* =========================================================
   HOME PAGE
========================================================= */

.home-wrap{
  background:#eef2f3;
  border-top:1px solid rgba(0,0,0,.06);
  padding:36px 0 44px;
}

.home-grid{
  display:grid;
  grid-template-columns: 2fr 1.05fr;
  gap:40px;
  align-items:start;
}

.home-left h1{
  margin:0 0 12px;
  font-size:42px;
  line-height:1.15;
  color:#163a42;
}

.lead{
  margin:0 0 18px;
  max-width:56ch;
  color:#444;
}

/* Inset “Common examples” card */
.case-card{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(0,0,0,.10);
  border-radius:10px;
  padding:20px 22px;
  box-shadow:var(--shadow);
}

.case-card h3{
  margin:0 0 12px;
  color:#1f4e57;
  font-size:18px;
}

.check-list{
  list-style:none;
  padding:0;
  margin:0 0 16px;
}

.check-list li{
  position:relative;
  padding-left:26px;
  margin:10px 0;
}

.check-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:#1f6b78;
  font-weight:700;
}

.btn{
  display:inline-block;
  margin-top:6px;
  background:var(--primary);
  color:#fff;
  padding:10px 18px;
  text-decoration:none;
  border-radius:8px;
  font-weight:700;
}

.btn:hover{ filter:brightness(.95); }

.learn{
  display:inline-block;
  margin-left:14px;
  color:#1f6b78;
  text-decoration:none;
  font-weight:700;
}

.learn:hover{ text-decoration:underline; }

/* Right-side profile card */
.profile-card{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(0,0,0,.10);
  border-radius:10px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.profile-card img{ width:100%; }

.profile-body{
  padding:14px 16px 16px;
}

.profile-body h3{
  margin:0 0 10px;
  color:#163a42;
  font-size:20px;
}

.profile-body ul{
  margin:0;
  padding-left:18px;
}

/* =========================================================
   ABOUT PAGE (used by about.html you created)
========================================================= */

.about-layout{
  display:grid;
  grid-template-columns: 2.2fr 1fr;
  gap:40px;
  padding:40px 0;
}

.about-main h1{ margin-top:0; }

.about-section{
  margin-top:28px;
}

.about-section h2{
  color:var(--primary);
  margin:0 0 10px;
  font-size:20px;
}

.case-list{
  padding-left:20px;
  margin:0 0 26px;
}

.about-sidebar img{
  border-radius:10px;
}

.caption{
  text-align:center;
  margin-top:8px;
  font-size:14px;
  color:var(--muted);
}

/* =========================================================
   FOOTER
========================================================= */

/*
 .footer{ 
  background:var(--primary); 
  color:#fff;
  padding:26px 0;
} 
*/
.footer {
  background: linear-gradient(
      180deg,
      rgba(0,0,0,0.08),
      rgba(0,0,0,0.15)
    ),
    var(--primary);

  color: #fff;
  padding: 26px 0;
  margin-top: 40px;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.footer a{ color:#fff; }

.footer .copyright{
  text-align:center;
  font-size:13px;
  margin-top:18px;
  opacity:.9;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px){

  .title{ font-size:24px; }
  .branding{ min-width: 0; }

  .nav-toggle{ display:inline-block; }

  /* Mobile dropdown menu layout */
  .nav{
    display:none;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
    background:#fff;
    position:absolute;
    right:20px;
    top:72px;
    width:min(360px, calc(100vw - 40px));
    padding:14px;
    border:1px solid rgba(0,0,0,.15);
    border-radius:10px;
    box-shadow:0 14px 28px rgba(0,0,0,.18);
  }

  .nav.show{ display:flex; }

  .nav a.active{
    border-bottom:none;
    padding-bottom:8px;
  }

  /* Disable hover open on mobile; JS toggles display */
  .dropdown-menu{
    position:static;
    width:100%;
    min-width:unset;
    background:#f3f3f3;
    box-shadow:none;
    border-radius:8px;
    margin-top:6px;
    display:none; /* JS will toggle */
  }

  .dropdown-menu a{
    color:#333;
  }

  .dropdown-menu a:hover{
    background:#e8e8e8;
  }

  .hero{ height:220px; }

  .home-grid{
    grid-template-columns:1fr;
    gap:22px;
  }

  .home-left h1{
    font-size:34px;
  }

  .about-layout{
    grid-template-columns:1fr;
  }

  .about-sidebar{
    order:-1;
  }
}

/* =========================================================
   STANDARD INNER PAGE LAYOUT (reusable)
========================================================= */

.page-wrap{
  background:#eef2f3;                 /* same band as home */
  border-top:1px solid rgba(0,0,0,.06);
  padding:36px 0 44px;
}

.page-grid{
  display:grid;
  grid-template-columns: 2fr 1.05fr;
  gap:40px;
  align-items:start;
}

.page-main h1{
  margin:0 0 12px;
  font-size:38px;
  line-height:1.2;
  color:#163a42;
}

.page-main h2{
  margin:26px 0 10px;
  color:var(--primary);
  font-size:20px;
}

.page-main p{ color:#333; }

.page-main ul{
  margin:0 0 10px;
  padding-left:20px;
}

/* Reusable side card (matches homepage profile card) */
.side-card{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(0,0,0,.10);
  border-radius:10px;
  overflow:hidden;
  box-shadow:var(--shadow);
  margin-bottom:18px;
}

.side-card--simple{
  overflow:visible;
}

.side-card img{
  width:100%;
  display:block;
}

.side-body{
  padding:14px 16px 16px;
}

.side-body h3{
  margin:0 0 10px;
  color:#163a42;
  font-size:18px;
}

.side-body ul{
  margin:0;
  padding-left:18px;
}

/* Mobile stacking */
@media (max-width: 900px){
  .page-grid{
    grid-template-columns:1fr;
    gap:22px;
  }
  .page-main h1{ font-size:32px; }
}

/* =========================================================
   PUBLICATIONS
========================================================= */

.pub-byline{
  margin: -6px 0 18px;
  color: var(--muted);
}

.pub-category{
  margin-top: 18px;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
}

.pub-list{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.pub-list li{
  margin: 12px 0;
}

.pub-list a{
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  line-height: 1.35;
}

.pub-list a:hover{
  filter: brightness(.9);
}