/* ==============================================
   HEADER — LOGO, SLOGAN, AND COUPLET BLOCK
   ============================================== */

/* Header container: align logo+slogan (stacked) and couplet horizontally */
.region-header {
  display: flex;
  align-items: flex-start;       /* align top to accommodate stacked logo+slogan */
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;

  /* ✅ Removed the white box look */
  background: none;              /* no background color */
  border: none;                  /* no border */
  box-shadow: none;              /* remove subtle shadow */
}

/* Branding block: logo on top, slogan below */
.region-header .block-system.block-basic-branding {
  display: flex;
  flex-direction: column;        /* stack vertically */
  align-items: flex-start;
  gap: 0.4rem;
  flex: 0 0 auto;
}

/* Logo image */
.region-header .site-logo img {
  display: block;
  max-height: 60px;
  width: auto;
}

/* Slogan text — smaller, subtle below logo */
.region-header .site-slogan {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.1;
  color: #555;
  font-weight: 400;
}

/* Couplet (right side): simple, airy, elegant */
.region-header .views-element-container,
.region-header .block-views {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  margin: 0;
  text-align: right;

  /* ✅ Simplified typography */
  color: #333;
  font-size: 1.25rem;             /* slightly larger */
  font-weight: 300;               /* thinner typeface weight */
  font-style: normal;
  line-height: 1.4;
}

/* Limit couplet width for readability */
.region-header .views-element-container .view-content {
  max-width: 65ch;
}

/* Hide contextual links visually but keep accessible */
.region-header .contextual .contextual-links[hidden] {
  display: none;
}

/* ==============================================
   NAVIGATION — PRIMARY & SECONDARY MENUS
   ============================================== */

#navigation {
  background-color: #0b5fb4;          /* blue navigation */
  border-top: 1px solid #002b4f;
  /* border-bottom: 12px solid #eb1f3d; */
  color: #fff;
  padding: 10px;
}

#navigation .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0.4rem 1.25rem;            /* reduced height */
}

.region-primary-menu,
.region-secondary-menu {
  margin: 0;
  padding: 0;
}

.region-primary-menu .menu,
.region-secondary-menu .menu {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Menu links */
.region-primary-menu a,
.region-secondary-menu a {
  text-decoration: none;
  font-weight: 500;
  color: #f0f0f0;
  transition: color 0.2s ease, background-color 0.2s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
}

/* Hover/active states */
.region-primary-menu a:hover,
.region-secondary-menu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ✅ Active link contrast improved */
.region-primary-menu .is-active > a,
.region-secondary-menu .is-active > a {
  background-color: #ffd24d;   /* warm amber */
  color: #002b4f;
  font-weight: 600;
}

/* ==============================================
   RESPONSIVE ADJUSTMENTS
   ============================================== */

@media (max-width: 992px) {
  .region-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .region-header .views-element-container,
  .region-header .block-views {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    font-size: 1.15rem;        /* slightly smaller on medium screens */
  }

  .region-header .site-logo img {
    max-height: 54px;
  }

  .region-header .site-slogan {
    font-size: 0.88rem;
  }
}

@media (max-width: 768px) {
  #navigation .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .region-primary-menu .menu,
  .region-secondary-menu .menu {
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .region-primary-menu a,
  .region-secondary-menu a {
    padding: 0.35rem 0.65rem;
  }

  .region-header .site-logo img {
    max-height: 50px;
  }

  .region-header .views-element-container {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .region-header {
    padding: 0.6rem 1rem;
  }

  .region-header .site-logo img {
    max-height: 45px;
  }

  .region-header .site-slogan {
    font-size: 0.85rem;
  }

  .region-header .views-element-container {
    font-size: 1rem;
  }

  /* ==============================================
   COUPLET VIEW BLOCK — TYPOGRAPHICALLY REFINED
   ============================================== */

.region-header .view-couplet {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  margin: 0;
  text-align: right;

  /* Poetic visual rhythm */
  color: #333;
  font-size: 1.25rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.35;              /* softer, but not taller */
  letter-spacing: 0.02em;         /* slight tracking for readability */
}

/* Limit width for comfortable reading */
.region-header .view-couplet .view-content {
  max-width: 65ch;
}

/* Target any heading inside the couplet view */
.region-header .view-couplet h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500 !important;    /* consistent tone */
  line-height: 1.4;
  letter-spacing: 0.025em;        /* delicate visual spacing */
  color: inherit;
  font-style: normal;
}

/* Optional — if your couplet uses <p> instead of <h3> */
.region-header .view-couplet p {
  margin: 0;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

  #navigation .container {
    padding: 0.35rem 1rem;
  }
}


/* Center the logo and slogan block */
#block-basic-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 1rem auto;
}

/* Center the logo image */
#block-basic-branding .site-logo img {
  display: block;
  margin: 0 auto;
  max-width: 200px; /* adjust as needed */
  height: auto;
}

/* Optional: spacing between logo and slogan */
#block-basic-branding .site-slogan {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  color: #333; /* optional styling */
}


#block-elgar-kavitebaddal {
  background: #faf7f4;
  border-left: 3px solid #c18b45;
  border-radius: 5px;
  margin: 0.4rem 0 1rem 0;
  padding: 1rem 1.2rem; /* space on all sides */
}

#block-elgar-kavitebaddal img.align-left {
  margin: 0 0.8rem 0.4rem 0;
  border-radius: 4px;
  max-width: 220px;
  height: auto;
  float: left;
}

#block-elgar-kavitebaddal p.blockquote {
  font-family: "Noto Serif Devanagari", "Mukta", serif;
  font-size: 1.2rem;
  line-height: 1.4;      /* tighter lines */
  color: #2d1f14;
  margin: 0;
  padding: 0.6rem 0.8rem; /* inner space around the text */
  text-align: justify;
  quotes: "“" "”" "‘" "’";
  position: relative;
}

#block-elgar-kavitebaddal p.blockquote::before {
  content: open-quote;
  color: #c18b45;
  font-size: 1.4rem;
  margin-right: 0.2rem;
  vertical-align: text-top;
}

#block-elgar-kavitebaddal p.blockquote::after {
  content: close-quote;
  color: #c18b45;
  font-size: 1.4rem;
  margin-left: 0.2rem;
  vertical-align: text-bottom;
}

@media (max-width: 768px) {
  #block-elgar-kavitebaddal img.align-left {
    float: none;
    margin: 0 0 0.6rem 0;
    max-width: 100%;
  }
  #block-elgar-kavitebaddal p.blockquote {
    font-size: 1.1rem;
    line-height: 1.35;
    padding: 0.5rem 0.7rem;
  }
}
