/*
Theme Name: Himalayan Ayurveda College
Theme URI: https://himalayanayurveda.edu.np/
Author: Himalayan Ayurveda Medical Science College
Author URI: https://himalayanayurveda.edu.np/
Description: A calm, modern WordPress theme for Himalayan Ayurveda Medical Science College, built around Ayurveda education, clinical science, admissions, courses, and contact information.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: himalayan-ayurveda
Tags: education, custom-logo, custom-menu, featured-images, block-styles, wide-blocks
*/

:root {
  --ha-forest: #12382f;
  --ha-leaf: #39795f;
  --ha-mint: #e5f1ea;
  --ha-saffron: #c9832b;
  --ha-gold: #f2c46d;
  --ha-ink: #1a2522;
  --ha-muted: #64736d;
  --ha-line: #d9e5de;
  --ha-paper: #fbfcf8;
  --ha-white: #ffffff;
  --ha-radius: 8px;
  --ha-shadow: 0 18px 45px rgba(18, 56, 47, 0.12);
  --ha-wrap: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ha-paper);
  color: var(--ha-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  height: auto;
  max-width: 100%;
}

a {
  color: var(--ha-leaf);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--ha-forest);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link:focus {
  clip: auto;
  background: var(--ha-white);
  border: 2px solid var(--ha-saffron);
  color: var(--ha-forest);
  height: auto;
  left: 16px;
  padding: 10px 14px;
  top: 16px;
  width: auto;
  z-index: 1000;
}

.site-header {
  background: rgba(251, 252, 248, 0.94);
  border-bottom: 1px solid var(--ha-line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner,
.site-footer__inner,
.wrap {
  margin: 0 auto;
  width: var(--ha-wrap);
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 82px;
}

.site-branding {
  align-items: center;
  color: var(--ha-forest);
  display: flex;
  gap: 12px;
  min-width: 240px;
}

.site-branding a {
  color: inherit;
  text-decoration: none;
}

.custom-logo {
  max-height: 58px;
  width: auto;
}

.site-branding__mark {
  align-items: center;
  background: var(--ha-forest);
  border-radius: 50%;
  color: var(--ha-gold);
  display: inline-flex;
  flex: 0 0 48px;
  font-family: Georgia, serif;
  font-size: 26px;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.site-branding__mark:hover {
  color: var(--ha-gold);
}

.site-branding__text {
  display: block;
}

.site-title {
  display: block;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.site-description {
  color: var(--ha-muted);
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
}

.primary-menu {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  border-radius: 999px;
  color: var(--ha-ink);
  display: block;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: var(--ha-mint);
  color: var(--ha-forest);
}

.hero {
  background:
    linear-gradient(90deg, rgba(18, 56, 47, 0.96) 0%, rgba(18, 56, 47, 0.86) 42%, rgba(18, 56, 47, 0.14) 76%),
    var(--hero-image) center / cover no-repeat;
  color: var(--ha-white);
  min-height: min(720px, calc(100vh - 82px));
  padding: clamp(64px, 8vw, 108px) 0 clamp(56px, 7vw, 96px);
}

.hero__content {
  max-width: 650px;
}

.eyebrow {
  color: var(--ha-gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6vw, 5rem);
  line-height: 0.98;
  margin: 0;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  margin: 24px 0 0;
  max-width: 610px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  align-items: center;
  background: var(--ha-saffron);
  border: 0;
  border-radius: 999px;
  color: var(--ha-white);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  text-decoration: none;
}

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: #a96920;
  color: var(--ha-white);
}

.button--light {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.button--light:hover {
  background: var(--ha-white);
  color: var(--ha-forest);
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section--profile {
  background: var(--ha-white);
  border-bottom: 1px solid var(--ha-line);
}

.section--tint {
  background: var(--ha-mint);
}

.section--visual {
  background: #f6f8f5;
}

.section--admission {
  background: #f7efe2;
}

.section__head {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.55fr);
  margin-bottom: 32px;
}

.section h2,
.entry-content h2 {
  color: var(--ha-forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin: 0;
}

.section__head p {
  color: var(--ha-muted);
  margin: 0;
}

.quick-facts {
  background: var(--ha-white);
  border-bottom: 1px solid var(--ha-line);
  border-top: 1px solid var(--ha-line);
}

.quick-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-facts__grid div {
  border-left: 1px solid var(--ha-line);
  min-height: 112px;
  padding: 24px 22px;
}

.quick-facts__grid div:last-child {
  border-right: 1px solid var(--ha-line);
}

.quick-facts strong,
.quick-facts span {
  display: block;
}

.quick-facts strong {
  color: var(--ha-forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.1;
}

.quick-facts span {
  color: var(--ha-muted);
  font-size: 0.9rem;
  margin-top: 6px;
}

.profile-grid,
.admission-layout {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.74fr) minmax(320px, 1fr);
}

.profile-copy {
  border-left: 4px solid var(--ha-saffron);
  color: var(--ha-muted);
  font-size: 1.06rem;
  padding-left: 26px;
}

.profile-copy p:first-child {
  margin-top: 0;
}

.media-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-card {
  background: var(--ha-white);
  border: 1px solid var(--ha-line);
  border-radius: var(--ha-radius);
  box-shadow: 0 8px 26px rgba(18, 56, 47, 0.06);
  overflow: hidden;
}

.media-card img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.media-card div {
  padding: 20px;
}

.media-card span {
  color: var(--ha-saffron);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.media-card h3 {
  color: var(--ha-forest);
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0;
}

.feature-grid,
.program-grid,
.contact-grid,
.post-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.program-grid--six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.card,
.program-card,
.contact-panel,
.post-card {
  background: var(--ha-white);
  border: 1px solid var(--ha-line);
  border-radius: var(--ha-radius);
  box-shadow: 0 8px 26px rgba(18, 56, 47, 0.06);
  padding: 26px;
}

.program-card--featured {
  background: var(--ha-forest);
  color: var(--ha-white);
  grid-column: span 2;
}

.program-card--featured h3,
.program-card--featured p {
  color: var(--ha-white);
}

.program-card__meta,
.card__label {
  color: var(--ha-saffron);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.program-card--featured .program-card__meta {
  color: var(--ha-gold);
}

.card__icon {
  align-items: center;
  background: var(--ha-mint);
  border-radius: 50%;
  color: var(--ha-forest);
  display: inline-flex;
  font-size: 1.4rem;
  height: 48px;
  justify-content: center;
  margin-bottom: 18px;
  width: 48px;
}

.card h3,
.program-card h3,
.contact-panel h3,
.post-card h2,
.entry-content h3 {
  color: var(--ha-forest);
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 10px;
}

.card p,
.program-card p,
.contact-panel p,
.post-card p {
  color: var(--ha-muted);
  margin: 0;
}

.program-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.program-card ul,
.outcomes-list {
  color: var(--ha-muted);
  margin: 14px 0 0;
  padding-left: 20px;
}

.program-card li + li,
.outcomes-list li + li {
  margin-top: 8px;
}

.feature-grid--dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.criteria-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.criteria-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #ead6b9;
  border-radius: var(--ha-radius);
  padding: 22px;
}

.criteria-card h3 {
  color: var(--ha-forest);
  font-size: 1.05rem;
  line-height: 1.25;
  margin: 0 0 8px;
}

.criteria-card p {
  color: var(--ha-muted);
  margin: 0;
}

.contact-grid--strong > div > p {
  color: var(--ha-muted);
  margin-top: 18px;
}

.contact-panel--highlight {
  border-top: 5px solid var(--ha-saffron);
  box-shadow: var(--ha-shadow);
}

.banner {
  background: var(--ha-forest);
  color: var(--ha-white);
  padding: clamp(46px, 7vw, 76px) 0;
}

.banner .wrap {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.5fr);
}

.banner h2 {
  color: var(--ha-white);
}

.banner p,
.banner li {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero {
  background: var(--ha-forest);
  color: var(--ha-white);
  padding: 72px 0;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
}

.content-area {
  padding: 64px 0;
}

.entry-content {
  margin: 0 auto;
  max-width: 830px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content a {
  font-weight: 700;
}

.wp-block-image img,
.entry-content img {
  border-radius: var(--ha-radius);
}

.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card a {
  color: inherit;
  text-decoration: none;
}

.post-card__meta {
  color: var(--ha-muted);
  font-size: 0.9rem;
}

.site-footer {
  background: #0f2924;
  color: rgba(255, 255, 255, 0.76);
  padding: 42px 0;
}

.site-footer__inner {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr auto;
}

.site-footer a {
  color: var(--ha-gold);
}

.footer-brand {
  color: var(--ha-white);
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

input,
textarea,
select {
  border: 1px solid var(--ha-line);
  border-radius: var(--ha-radius);
  font: inherit;
  max-width: 100%;
  padding: 12px 14px;
  width: 100%;
}

@media (max-width: 900px) {
  .header-inner,
  .section__head,
  .banner .wrap,
  .contact-grid,
  .quick-facts__grid,
  .profile-grid,
  .admission-layout,
  .criteria-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    display: grid;
    padding: 16px 0;
  }

  .primary-menu {
    justify-content: flex-start;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(18, 56, 47, 0.98) 0%, rgba(18, 56, 47, 0.82) 62%, rgba(18, 56, 47, 0.38) 100%),
      var(--hero-image) center / cover no-repeat;
  }

  .feature-grid,
  .program-grid,
  .post-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .program-card--featured {
    grid-column: auto;
  }

  .feature-grid--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-menu {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  :root {
    --ha-wrap: min(100vw - 28px, 1120px);
  }

  .site-branding {
    min-width: 0;
  }

  .primary-menu a {
    padding: 8px 10px;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature-grid--dense {
    grid-template-columns: 1fr;
  }

  .quick-facts__grid div,
  .quick-facts__grid div:last-child {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--ha-line);
    min-height: auto;
  }

  .profile-copy {
    border-left: 0;
    border-top: 4px solid var(--ha-saffron);
    padding-left: 0;
    padding-top: 22px;
  }
}
