:root {
  color-scheme: light;
  --primary-gradient: (135deg, #1E45C0, #1E45C0);
/*   --primary-gradient: #195B75;  */
}

* {
  box-sizing: border-box
}

/* Ensure form elements inherit theme font */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

html {
  font-size: var(--gh-font-size, 16px);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--gh-font-body, system-ui);
  background: var(--gh-bg, #fff);
  color: var(--gh-text, #111);
  line-height: 1.6;
}

a {
  color: var(--gh-link, #0b57d0);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 1.05em;
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  transition: background-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

a:hover {
  background-size: 100% 1.5px;
}

/* Exclude sliding underline from certain elements */
.gh-btn,
.header-cta,
.search-toggle,
.gh-modal__close,
.gh-drawer__close,
.gh-pagination a,
.site-logo a,
.gh-mini-card__link,
.gh-recent__item,
.widget_categories a,
.primary-nav a,
.gh-drawer__nav a,
.tagcloud a {
  background-image: none !important;
}

.site-branding .site-title {
  color: #fff !important;
}

/* Logo max width control */
.custom-logo {
  max-width: var(--gh-logo-width, 160px);
  height: auto;
}

.site-logo img {
  max-width: var(--gh-logo-width, 160px);
  height: auto;
}

.container {
  width: min(100% - 2rem, var(--gh-container, 1120px));
  margin-inline: auto;
  padding: 0 1rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: .5rem .75rem;
  border: 1px solid #ddd;
  border-radius: var(--gh-radius, 8px);
  z-index: 9999;
}

.site-header {
  background: var(--gh-bg, #fff);
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
}

.site-branding .site-title {
  font-family: var(--gh-font-heading, system-ui);
  font-weight: 800;
  font-size: 1.1rem;
}

.site-tagline {
  margin: .2rem 0 0;
  font-size: .9rem;
  opacity: .8
}

.primary-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
}

.primary-nav a {
  padding: .4rem .2rem;
  display: inline-block;
}

.header-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.header-search input[type="search"] {
  max-width: 12rem;
  padding: .45rem .55rem;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: var(--gh-radius, 10px);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(0, 0, 0, .15);
  background: transparent;
  border-radius: var(--gh-radius, 10px);
  padding: .45rem .6rem;
}

.gh-btn {
  display: inline-block;
  padding: .6rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .15);
  background: transparent;
  text-decoration: none;
  font-weight: 600;
}

.gh-btn--primary {
  background: var(--gh-primary, #0b57d0);
  border-color: var(--gh-primary, #0b57d0);
  color: #fff;
}

.gh-btn--primary:hover {
  opacity: .92;
  text-decoration: none;
}

.site-main {
  padding: 1.25rem 0 2rem;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  z-index: 10;
  height: fit-content;
}

/* Adjust for WordPress Admin Bar globally */
body.admin-bar .sidebar,
body.admin-bar .gh-main-layout .sidebar {
  top: 50px;
}

.content-area {
  min-width: 0;
}

.avatar.custom-avatar {
  border-radius: 50% !important;
}

.sidebar .widget {
  background: var(--gh-bg-alt, #fff);
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: var(--gh-radius, 12px);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget-title {
  margin: 0 0 1.25rem;
  font-family: var(--gh-font-heading, system-ui);
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
  position: relative;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gh-link, #0b57d0);
  z-index: 1;
}

/* Card Base Styles */
.gh-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gh-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--gh-radius, 12px);
  overflow: hidden;
  background: #f3f4f6;
}

.gh-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gh-card:hover .gh-card__media img {
  transform: scale(1.08);
}

.gh-card__placeholder {
  width: 100%;
  height: 100%;
  background: #e5e7eb;
}

.gh-card__badges {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 5;
}

.gh-badge {
  display: inline-block;
  background: var(--gh-primary, #0b57d0);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(11, 87, 208, 0.2);
}

.gh-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #888;
}

.gh-card__title {
  margin: 0 0 0.85rem;
  font-size: 1.4rem;
  line-height: 1.3;
  font-family: var(--gh-font-heading, system-ui);
  font-weight: 800;
}

.gh-card__title a {
  color: #111;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gh-card__title a:hover {
  color: var(--gh-link, #0b57d0);
}

.gh-card__excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
}

/* Widget Lists (Categories, Archives, Recent Posts) */
.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget ul li:last-child {
  border-bottom: 0;
}

.widget ul li a {
  color: #444;
  text-decoration: none;
  display: inline;
  font-weight: 500;
  background-position: 0 1.15em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget ul li a:hover {
  color: var(--gh-link, #0b57d0);
  transform: translateX(4px);
}

/* Unified Search Form (Modal & Sidebar Block/Widget) */
.search-form,
.wp-block-search__inside-wrapper {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  background: #f4f6f8 !important;
  border-radius: var(--gh-radius, 10px) !important;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
  position: relative;
  transition: all 0.3s ease;
  width: 100%;
}

.search-form:focus-within,
.wp-block-search__inside-wrapper:focus-within {
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.1);
  border-color: var(--gh-link, #0b57d0) !important;
}

.search-form .search-field,
.wp-block-search__input {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #111;
  outline: none !important;
  min-width: 0;
}

.search-form .search-submit,
.wp-block-search__button {
  background: transparent !important;
  color: #111 !important;
  border: 0 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
  /* Hide text */
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.search-form .search-submit:hover::before,
.wp-block-search__button:hover::before {
  background: var(--gh-link, #0b57d0);
  opacity: 1;
}

.search-form .search-submit::before,
.wp-block-search__button::before {
  content: "";
  width: 22px;
  height: 22px;
  background: #111;
  display: block;
  opacity: 0.7;
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22.705,21.253l-4.399-4.374c1.181-1.561,1.81-3.679,1.859-6.329-.105-6.095-3.507-9.473-9.588-9.513C4.423,1.076,1,4.649,1,10.549c0,6.195,3.426,9.512,9.589,9.548,2.629-.016,4.739-.626,6.303-1.805l4.403,4.379c.518,.492,1.131,.291,1.414-.004,.383-.398,.388-1.025-.004-1.414ZM3,10.567c.097-5.035,2.579-7.499,7.576-7.53,4.949,.032,7.503,2.571,7.589,7.512-.094,5.12-2.505,7.518-7.576,7.548-5.077-.03-7.489-2.422-7.589-7.53Z"/></svg>');
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22.705,21.253l-4.399-4.374c1.181-1.561,1.81-3.679,1.859-6.329-.105-6.095-3.507-9.473-9.588-9.513C4.423,1.076,1,4.649,1,10.549c0,6.195,3.426,9.512,9.589,9.548,2.629-.016,4.739-.626,6.303-1.805l4.403,4.379c.518,.492,1.131,.291,1.414-.004,.383-.398,.388-1.025-.004-1.414ZM3,10.567c.097-5.035,2.579-7.499,7.576-7.53,4.949,.032,7.503,2.571,7.589,7.512-.094,5.12-2.505,7.518-7.576,7.548-5.077-.03-7.489-2.422-7.589-7.53Z"/></svg>');
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
  transition: opacity 0.3s ease;
}

.search-form .search-field::placeholder,
.wp-block-search__input::placeholder {
  color: #999;
  font-weight: 400;
}

/* Specific fix for sidebar label being visible */
.widget_search .screen-reader-text {
  display: none;
}

.widget_block .wp-block-heading {
  margin: 0 0 .9rem;
  font-size: 1.05rem;
  font-family: var(--gh-font-heading, system-ui);
  padding-bottom: .65rem;
  border-bottom: 2px solid rgba(0, 0, 0, .08);
}

.widget_search .wp-block-search__label {
  margin-bottom: 1.25rem;
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
}

/* Tag Cloud */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tagcloud a {
  background: #f1f5f9;
  color: #475569;
  padding: 0.4rem 0.75rem;
  border-radius: var(--gh-radius, 8px);
  font-size: 0.85rem !important;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tagcloud a:hover {
  background: var(--gh-link, #0b57d0);
  color: #fff;
  transform: translateY(-2px);
}

/* Recent Posts with Thumbnails (if any) */
.widget_recent_entries ul li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.widget_recent_entries .post-date {
  font-size: 0.8rem;
  color: #888;
  order: -1;
}

/* Calendar Widget */
.widget_calendar table {
  width: 100%;
  border-collapse: collapse;
}

.widget_calendar th,
.widget_calendar td {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.widget_calendar #today {
  background: var(--gh-primary, #0b57d0);
  color: #fff;
  border-radius: var(--gh-radius, 8px);
}

/* Custom HTML / Text Widget */
.widget_text img,
.widget_custom_html img {
  max-width: 100%;
  height: auto;
  border-radius: var(--gh-radius, 12px);
}

/* Categories List item count */
.widget_categories ul li,
.widget_archive ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget_categories ul li a,
.widget_archive ul li a {
  flex: 1;
}

.widget ul li::after {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Adding counts styling if enabled in WP */
.widget_categories li,
.widget_archive li {
  color: #94a3b8;
}

/* Sidebar Popular Posts (Recent Posts Widget style) */
.widget_recent_entries ul li {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.widget_recent_entries ul li:last-child {
  border-bottom: 0;
}

.widget_recent_entries .post-date {
  display: block;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  margin-top: 0.45rem;
}

.widget_recent_entries a {
  font-weight: 800 !important;
  line-height: 1.35;
  color: #111;
  font-size: 1rem;
  flex: 1;
  align-self: flex-start;
  background-position: 0 1.1em;
}

.widget_recent_entries a:hover {
  color: var(--gh-link, #0b57d0);
  transform: none !important;
  background-size: 100% 1.5px;
}

.widget_recent_entries img {
  width: 90px;
  height: 90px;
  border-radius: var(--gh-radius, 16px);
  object-fit: cover;
  flex: 0 0 auto;
}

/* Categories Styling (Screenshot style) */
.widget_categories ul li {
  padding: 0 !important;
  border-bottom: 0 !important;
  margin-bottom: 0.85rem;
}

.widget_categories ul li a {
  display: flex;
  align-items: center;
  padding: 1rem 1.4rem;
  background: #f1f3f6;
  border-radius: var(--gh-radius, 14px);
  color: #111 !important;
  font-weight: 700 !important;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget_categories ul li a:hover {
  background: #e5e9ef;
  transform: translateX(6px);
  color: var(--gh-link, #0b57d0) !important;
}

.widget_categories ul li a::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-right: 1rem;
  background-color: #111;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  transition: background-color 0.3s ease;
}

.widget_categories ul li a:hover::before {
  background-color: var(--gh-link, #0b57d0);
}

/* Specific category "icons" mimic */
.widget_categories .cat-item a::before {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"/><line x1="3" y1="6" x2="21" y2="6"/><path d="M16 10a4 4 0 0 1-8 0"/></svg>');
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z"/><line x1="3" y1="6" x2="21" y2="6"/><path d="M16 10a4 4 0 0 1-8 0"/></svg>');
}

/* Search Bar (Modal Style) */
.sidebar .widget_search .search-form {
  background: #f1f3f6 !important;
  padding: 0.5rem !important;
  border-radius: var(--gh-radius, 10px) !important;
  border: none !important;
  gap: 0;
  display: flex;
}

.sidebar .widget_search .search-field {
  background: transparent !important;
  padding: 0.85rem 1.15rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #111;
  flex: 1;
}

.sidebar .widget_search .search-submit {
  width: 48px;
  height: 48px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
  background: var(--gh-primary, #0b57d0);
  border-radius: var(--gh-radius, 12px);
}

.sidebar .widget_search .search-submit::before {
  content: "";
  width: 20px;
  height: 20px;
  background: #fff;
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22.705,21.253l-4.399-4.374c1.181-1.561,1.81-3.679,1.859-6.329-.105-6.095-3.507-9.473-9.588-9.513C4.423,1.076,1,4.649,1,10.549c0,6.195,3.426,9.512,9.589,9.548,2.629-.016,4.739-.626,6.303-1.805l4.403,4.379c.518,.492,1.131,.291,1.414-.004,.383-.398,.388-1.025-.004-1.414ZM3,10.567c.097-5.035,2.579-7.499,7.576-7.53,4.949,.032,7.503,2.571,7.589,7.512-.094,5.12-2.505,7.518-7.576,7.548-5.077-.03-7.489-2.422-7.589-7.53Z"/></svg>');
  -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M22.705,21.253l-4.399-4.374c1.181-1.561,1.81-3.679,1.859-6.329-.105-6.095-3.507-9.473-9.588-9.513C4.423,1.076,1,4.649,1,10.549c0,6.195,3.426,9.512,9.589,9.548,2.629-.016,4.739-.626,6.303-1.805l4.403,4.379c.518,.492,1.131,.291,1.414-.004,.383-.398,.388-1.025-.004-1.414ZM3,10.567c.097-5.035,2.579-7.499,7.576-7.53,4.949,.032,7.503,2.571,7.589,7.512-.094,5.12-2.505,7.518-7.576,7.548-5.077-.03-7.489-2.422-7.589-7.53Z"/></svg>');
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.site-main {
  font-family: var(--gh-font-heading, system-ui);
  line-height: 1.25;
  margin: .2rem 0 .75rem;
}

.post-title,
.archive-title {
  font-family: var(--gh-font-heading, system-ui);
  line-height: 1.25;
  margin: .2rem 0 .75rem;
}

.post-meta {
  opacity: .8;
  font-size: .92rem
}

.post-content {
  margin-top: 1rem
}

.post-content :where(h2, h3) {
  font-family: var(--gh-font-heading, system-ui);
  line-height: 1.3;
}

.content-widgets {
  margin: 1rem 0;
}

.content-widgets .widget {
  border: 1px dashed rgba(0, 0, 0, .2);
  border-radius: var(--gh-radius, 12px);
  padding: .9rem;
}

.pagination {
  margin-top: 1rem;
}

/* Premium Pagination */
.gh-pagination {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.gh-pagination ul {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 0.6rem;
  align-items: center;
}

.gh-pagination ul.page-numbers li .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.5rem;
  border-radius: var(--gh-radius, 12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #111;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gh-pagination ul.page-numbers li .page-numbers.current,
.gh-pagination ul.page-numbers li .page-numbers:hover:not(.dots) {
  background: var(--gh-link, #0b57d0);
  border-color: var(--gh-link, #0b57d0);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 87, 208, 0.2);
  transform: translateY(-2px);
}

.gh-pagination ul.page-numbers li .page-numbers.prev,
.gh-pagination ul.page-numbers li .page-numbers.next {
  padding: 0 1.5rem;
}

.gh-pagination ul.page-numbers li .page-numbers.dots {
  border: none;
  background: transparent;
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding: 2rem 0;
}

.footer-widgets {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

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

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

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

.footer-col .widget {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--gh-radius, 12px);
  padding: .9rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
}

.gh-product-box {
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: var(--gh-radius, 12px);
  padding: 1rem;
  margin: 1rem 0;
}

.gh-product-box__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.gh-product-box__title {
  font-size: 1.05rem
}

.gh-product-box__note {
  margin: .4rem 0 0;
  opacity: .85;
  font-size: .92rem
}

/* Mobile nav behavior */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-block
  }

  .primary-nav {
    display: none
  }

  .primary-nav.is-open {
    display: block
  }

  .primary-nav ul {
    flex-direction: column;
    gap: .35rem
  }

  .header-actions .header-search {
    display: none
  }
}

/* Desktop layout with sidebar */
@media (min-width: 980px) {
  .layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
  }
}

/* ==============================
   MODERN HEADER STYLE
================================ */
.site-header {
  padding: 1rem 0;
  background: transparent;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
/*   background: var(--primary-gradient); */
  background: #000 !important;
  border-radius: var(--gh-radius, 16px);
  color: #fff;
  position: relative;
}

.header-wrapper .header-right-sec {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: rgba(255, 255, 255, .9);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: .4rem 0;
  transition: color 0.3s ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.primary-nav a:hover {
  color: #fff;
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item>a::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-cta {
  padding: .5rem 1rem;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: var(--gh-radius, 8px);
  color: #fff;
  text-decoration: none !important;
  font-weight: 500;
  transition: .2s ease;
}

.header-cta:hover {
  background: rgba(255, 255, 255, .2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 900px) {
  .header-actions .header-cta {
    display: none;
  }
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--gh-radius, 10px);
  border: 1px solid rgba(255, 255, 255, .45);
  background: transparent;
  cursor: pointer;
}

.search-toggle:hover {
  background: rgba(255, 255, 255, .12);
}

.search-icon {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* For the screen-reader text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

/* =========================
   SEARCH MODAL (Overlay)
========================= */
.gh-modal[hidden] {
  display: none
}

.gh-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.gh-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.gh-modal__dialog {
  position: relative;
  width: min(92vw, 760px);
  margin: 30vh auto;
  background: #fff;
  border-radius: var(--gh-radius, 16px);
  padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.gh-modal__close {
  position: absolute;
  top: .8rem;
  right: .8rem;
  width: 40px;
  height: 40px;
  border-radius: var(--gh-radius, 10px);
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.gh-modal__title {
  margin: .2rem 0 1rem;
  font-family: var(--gh-font-heading, system-ui);
  font-size: 1.1rem;
}

/* Unified Search styles handled above */
.search-submit__icon {
  display: none !important;
}

.gh-modal__section {
  margin-top: .85rem;
}

.gh-modal__label {
  font-weight: 600;
  font-size: .95rem;
}

.gh-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.gh-tag {
  display: inline-block;
  padding: .35rem .6rem;
  border-radius: 999px;
  background: #eef2ff;
  text-decoration: none;
  font-size: .92rem;
}

.gh-divider {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, .1);
  margin: 1rem 0;
}

.gh-modal__subtitle {
  margin: 0 0 .75rem;
  font-size: 1rem;
  font-family: var(--gh-font-heading, system-ui);
}

.gh-recent {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.gh-recent__item {
  display: flex;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
}

.gh-recent__thumb img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: var(--gh-radius, 12px);
}

.gh-recent__placeholder {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: var(--gh-radius, 12px);
  background: #e5e7eb;
}

.gh-recent__title {
  font-weight: 700;
  line-height: 1.25;
}

.gh-recent__date {
  opacity: .75;
  font-size: .92rem;
  margin-top: .2rem;
}

/* Make modal fit better on small screens */
@media (max-width: 520px) {
  .gh-modal__dialog {
    margin: 6vh auto;
    padding: 1rem;
  }
}

/* Parent item with chevron */
.primary-nav .menu-item-has-children>a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.gh-chevron {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, .9);
  transform: translateY(1px);
  transition: transform .18s ease, opacity .18s ease;
  opacity: .9;
}

.gh-drawer__nav .gh-chevron {
  width: 16px;
  height: 16px;
  fill: currentColor;
  margin-left: .35rem;
  transition: transform .18s ease;
}

/* Rotate chevron on hover/focus */
.primary-nav .menu-item-has-children:hover>a .gh-chevron,
.primary-nav .menu-item-has-children:focus-within>a .gh-chevron,
.gh-drawer__nav li.is-sub-open>a .gh-chevron {
  transform: translateY(1px) rotate(180deg);
  opacity: 1;
}

/* Dropdown container */
.primary-nav li {
  position: relative;
}

/* Submenu panel */
.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 240px;
  padding: .65rem;
  margin: 0;
  gap: .5rem;
  background: #fff;
  border-radius: var(--gh-radius, 14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  border: 1px solid rgba(0, 0, 0, .08);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 50;
}

.primary-nav .sub-menu li {
  width: 100%;
}

/* Show on hover + keyboard focus */
.primary-nav li:hover>.sub-menu,
.primary-nav li:focus-within>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Submenu links */
.primary-nav .sub-menu a {
  display: block;
  padding: .7rem .85rem;
  border-radius: var(--gh-radius, 10px);
  color: #111;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.2;
  transition: all 0.3s ease;
}

/* Hover like screenshot (soft highlight) */
.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus {
  background: #f3f4f6;
  color: var(--gh-link, #0b57d0);
  padding-left: 1.25rem;
  outline: none;
}

/* Spacing between submenu items */
.primary-nav .sub-menu li+li {
  margin-top: .25rem;
}

/* Optional: keep dropdown centered under parent like screenshot */
.primary-nav .menu-item-has-children>.sub-menu {
  left: 50%;
  transform: translate(-50%, 6px);
}

.primary-nav .menu-item-has-children:hover>.sub-menu,
.primary-nav .menu-item-has-children:focus-within>.sub-menu {
  transform: translate(-50%, 0);
}

/* Make sure dropdown looks good on mobile (where nav is hidden anyway) */
@media (max-width: 900px) {
  .primary-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: .35rem 0 0;
    background: transparent;
  }

  .primary-nav .sub-menu a {
    color: rgba(255, 255, 255, .95);
    background: rgba(255, 255, 255, .10);
  }

  .gh-chevron {
    fill: rgba(255, 255, 255, .95);
  }
}

/* =========================
   Mobile Drawer Menu ONLY
========================= */
.gh-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--gh-radius, 12px);
  border: 1px solid rgba(255, 255, 255, .45);
  background: transparent;
  cursor: pointer;
}

.gh-burger__lines {
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  display: block;
  margin: 0 auto;
}

.gh-burger__lines::before,
.gh-burger__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
}

.gh-burger__lines::before {
  top: -6px;
}

.gh-burger__lines::after {
  top: 6px;
}

@media (max-width: 900px) {
  .primary-nav {
    display: none;
  }

  .gh-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
  }
}

/* Drawer */
.gh-drawer[hidden] {
  display: none
}

.gh-drawer .menu-item-has-children>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gh-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.gh-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.gh-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: min(85vw, 340px);
  background: #fff;
  padding: 1.25rem;
  box-shadow: 20px 0 50px rgba(0, 0, 0, .25);
  transform: translateX(-105%);
  transition: transform .25s ease;
  overflow-y: auto;
}

.gh-drawer.is-open .gh-drawer__panel {
  transform: translateX(0);
}

.gh-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.gh-drawer__close {
  width: 40px;
  height: 40px;
  border-radius: var(--gh-radius, 10px);
  border: 1px solid rgba(0, 0, 0, .1);
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}

/* Mobile menu styling */
.gh-drawer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gh-drawer__nav>ul>li {
  padding: .75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.gh-drawer__nav a {
  text-decoration: none;
  font-weight: 600;
  color: #111;
  display: block;
  padding: .6rem .75rem;
  border-radius: var(--gh-radius, 8px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.gh-drawer__nav a:hover {
  background: #f3f4f6;
  color: var(--gh-link, #0b57d0);
  padding-left: 1.15rem;
}

.gh-drawer__nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 4px;
  height: 16px;
  background: var(--gh-primary, #0b57d0);
  border-radius: 0 4px 4px 0;
  transition: transform 0.3s ease;
}

.gh-drawer__nav a:hover::before {
  transform: translateY(-50%) scale(1);
  background: var(--gh-link, #0b57d0);
}

/* Submenu toggle */
.gh-drawer__nav .sub-menu {
  display: none;
  padding-left: .75rem;
  margin-top: .5rem;
}

.gh-drawer__nav li.is-sub-open>.sub-menu {
  display: block;
}

.gh-drawer__nav .sub-menu li {
  padding: .45rem 0;
  border-bottom: 0;
}

.gh-drawer__nav .sub-menu a {
  font-weight: 500;
  opacity: .95;
}

.gh-drawer__cta {
  margin-top: 2rem;
}

.gh-drawer__cta .header-cta {
  display: block;
  text-align: center;
  background: #f3f4f6;
  color: var(--gh-text);
  padding: .8rem 1.25rem;
  font-weight: 500;
}

.gh-drawer__cta .header-cta:hover {
  opacity: .9;
  transform: translateY(-2px);
}

.gh-search-history__empty {
  opacity: .75;
  font-size: .95rem;
}

/* Scroll to Top Button */
.gh-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gh-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gh-scroll-top:hover {
  transform: translateY(-5px);
}

.gh-scroll-top svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--gh-text);
}

.gh-scroll-top:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .gh-scroll-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
  }
}