/* ==========================================================
   Kantipur College of Medical Science — Stylesheet
   ========================================================== */

:root {
  --color-primary: #0b3d63;      /* deep medical blue */
  --color-primary-dark: #072a46;
  --color-primary-light: #12558a;
  --color-accent: #c0392b;       /* maroon/red accent */
  --color-accent-light: #e74c3c;
  --color-teal: #0e8a72;         /* secondary teal (health/pharmacy) */
  --color-gold: #d4a017;

  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fa;
  --color-bg-dark: #072a46;
  --color-text: #202b36;
  --color-text-muted: #5b6b7a;
  --color-border: #e1e8ef;

  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(7, 42, 70, 0.08);
  --shadow-md: 0 8px 24px rgba(7, 42, 70, 0.12);
  --shadow-lg: 0 16px 40px rgba(7, 42, 70, 0.18);

  --container-width: 1180px;
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary-dark);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.section-tag {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-heading {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.section-desc {
  color: var(--color-text-muted);
  max-width: 640px;
  font-size: 1.02rem;
}

.section-header {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 700px;
}

.section-header .section-desc {
  margin: 0 auto;
}

.bg-alt {
  background: var(--color-bg-alt);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-secondary {
  background: var(--color-primary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--color-primary-light);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--color-primary-dark);
  color: #cfe0ef;
  font-size: 0.82rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.topbar-info {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-social {
  display: flex;
  gap: 14px;
}

.topbar-social a {
  color: #cfe0ef;
  transition: color var(--transition);
}

.topbar-social a:hover {
  color: var(--color-gold);
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 0 var(--color-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {

  display: flex;
  flex-direction: column;
  align-items: center; /* or 'flex-start' if you want it left-aligned instead of centered */
  gap: 4px; /* adjust spacing between logo and text */

}

.brand-logo-img{
  height: 65px; 
  width:auto; 

}

.brand-text .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.brand-text .brand-sub {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-accent);
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 100%;
  background: var(--color-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-primary-dark);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(135deg, rgba(7, 42, 70, 0.92), rgba(11, 61, 99, 0.85)), var(--hero-img) center/cover no-repeat;
  padding: 110px 0 100px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--color-gold);
}

.hero p {
  color: #dce8f2;
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-gold);
}

.hero-stats div span {
  font-size: 0.82rem;
  color: #cfe0ef;
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.25);
}

.hero-media .floating-card {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: #fff;
  color: var(--color-text);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  max-width: 240px;
}

.hero-media .floating-card .icon-circle {
  background: var(--color-teal);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Page (inner) hero for subpages ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 10px;
}

.breadcrumb {
  color: #cfe0ef;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--color-gold);
}

/* ---------- Highlights / Why choose ---------- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; /* adjust spacing between cards */
}

.highlight-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(11, 61, 99, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.highlight-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.highlight-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ---------- About preview ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.about-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.about-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-text-muted);
  font-size: 0.96rem;
}



/* ---------- Program cards ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.program-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.program-card-head {
  padding: 26px 26px 20px;
  color: #fff;
  position: relative;
}

.program-card:nth-child(1) .program-card-head { background: linear-gradient(135deg, #0b3d63, #12558a); }
.program-card:nth-child(2) .program-card-head { background: linear-gradient(135deg, #0e8a72, #12a888); }
.program-card:nth-child(3) .program-card-head { background: linear-gradient(135deg, #7a2618, #c0392b); }

.program-card-head .program-code {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 6px;
}

.program-card-head h3 {
  color: #fff;
  font-size: 1.25rem;
}

.program-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.program-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.85rem;
}

.program-meta div span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.program-meta div strong {
  color: var(--color-text);
}

.program-card-body p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.program-card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Program detail sections (programs.html) ---------- */
.program-detail {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}

.program-detail:last-of-type {
  border-bottom: none;
}

.program-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.program-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.program-badge {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.badge-ha { background: linear-gradient(135deg, #0b3d63, #12558a); }
.badge-pharma { background: linear-gradient(135deg, #0e8a72, #12a888); }
.badge-lab { background: linear-gradient(135deg, #7a2618, #c0392b); }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.92rem;
}

.info-table tr {
  border-bottom: 1px solid var(--color-border);
}

.info-table td {
  padding: 12px 6px;
}

.info-table td:first-child {
  color: var(--color-text-muted);
  font-weight: 500;
  width: 40%;
}

.info-table td:last-child {
  font-weight: 600;
  color: var(--color-text);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.program-detail img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-grid strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-gold);
}

.stats-grid span {
  color: #cfe0ef;
  font-size: 0.9rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(7, 42, 70, 0.85), transparent);
  color: #fff;
  padding: 30px 16px 12px;
  font-size: 0.88rem;
  font-weight: 500;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 15, 25, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 26px;
  right: 34px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.testimonial-quote {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author strong {
  display: block;
  font-size: 0.92rem;
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-accent), #8e2a1f);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.cta-band p {
  color: #f6dcd8;
}

/* ---------- Admission steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px 24px;
}

.step-number {
  position: absolute;
  top: -18px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
}

.step-card h3 {
  font-size: 1rem;
  margin: 10px 0 8px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: #fff;
  color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(14, 138, 114, 0.12);
  color: var(--color-teal);
  border: 1px solid rgba(14, 138, 114, 0.3);
}

.form-status.error {
  display: block;
  background: rgba(192, 57, 43, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(192, 57, 43, 0.3);
}

/* ---------- Contact info cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-info-card:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(11, 61, 99, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-card h4 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-top: 26px;
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: #cfe0ef;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-col p,
.footer-col li {
  font-size: 0.88rem;
  color: #a9c1d6;
  margin-bottom: 10px;
}

.footer-col a {
  color: #a9c1d6;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  color: #7f9bb3;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 480px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .program-detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
  }
  .nav-menu.open { right: 0; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; }
  .programs-grid,
  .highlights-grid,
  .gallery-grid,
  .testimonial-grid,
  .steps-grid,
  .stats-grid,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item.large { grid-column: span 1; grid-row: span 1; }
  .cta-band { flex-direction: column; text-align: center; }
  section { padding: 56px 0; }
  .hero { padding: 90px 0 70px; }
}
