:root {
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --theme-primary: #2563eb;
  --theme-primary-rgb: 37, 99, 235;
  --theme-accent: #0ea5e9;
  --theme-accent-rgb: 14, 165, 233;
  --theme-highlight: #38bdf8;
  --theme-highlight-rgb: 56, 189, 248;
  --theme-header-bg: #ffffff;
  --theme-header-bg-rgb: 255, 255, 255;
  --theme-footer-bg: #f8fafc;
  --theme-footer-bg-rgb: 248, 250, 252;
  --theme-footer-text: #0f172a;
  --theme-footer-text-rgb: 15, 23, 42;
  --theme-footer-hover: #1d4ed8;
  --theme-footer-hover-rgb: 29, 78, 216;
  --theme-header-text: #0f172a;
  --theme-header-text-rgb: 15, 23, 42;
  --theme-body-text: #0f172a;
  --theme-body-text-rgb: 15, 23, 42;
  --theme-heading-text: #0f172a;
  --theme-heading-text-rgb: 15, 23, 42;

  --header-text: var(--theme-header-text);
  --header-accent: var(--theme-accent);
  --header-hover: var(--theme-footer-hover);
  --shadow-sm: 0 6px 16px rgba(15, 23, 42, 0.1);
  --shadow-md: 0 16px 34px rgba(15, 23, 42, 0.15);
  --shadow-lg: 0 30px 60px rgba(15, 23, 42, 0.2);
  --transition-fast: 200ms ease;
  --transition-base: 350ms ease;
  --header-height: 72px;
  --mobile-header-height: 64px;
  --home-primary: var(--theme-primary);
  --home-accent: var(--theme-accent);
  --home-shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.08);
  --home-shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
  --home-shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --home-shadow-xl: 0 40px 80px rgba(15, 23, 42, 0.22);
  --footer-bg: var(--theme-footer-bg);
  --footer-text: var(--theme-footer-text);
  --footer-accent: var(--theme-highlight);
  --footer-border: rgba(var(--theme-primary-rgb), 0.2);
  --footer-hover: var(--theme-footer-hover);
}

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

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 15% 10%, rgba(var(--theme-primary-rgb), 0.08), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(var(--theme-accent-rgb), 0.08), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
  color: var(--theme-body-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image: linear-gradient(rgba(var(--theme-primary-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--theme-primary-rgb), 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
}

body::after {
  background: radial-gradient(circle at 70% 80%, rgba(var(--theme-primary-rgb), 0.08), transparent 50%);
  opacity: 0.6;
}

main#main-content,
.home-content,
.page-layout,
.page-content,
.site-footer,
header.site-header {
  position: relative;
  z-index: 1;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.alignwide {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.is-style-peptide-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.is-style-peptide-boxed {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
}

body.home {
  padding-top: 0;
}

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

main#main-content {
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: var(--theme-heading-text);
}

/************************************************************
 *                    MAIN HEADER CONTAINER
 ************************************************************/
header.site-header {
  width: 100%;
  background: rgba(var(--theme-header-bg-rgb), 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.18);
  position: fixed;
  top: 0;
  z-index: 9999;
  height: var(--header-height);
  transition: all var(--transition-base);
  pointer-events: auto;
}

header.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--theme-primary-rgb), 0.9) 35%, rgba(var(--theme-highlight-rgb), 0.9) 65%, transparent 100%);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

header.site-header.scrolled {
  box-shadow: var(--shadow-lg);
  height: calc(var(--header-height) - 10px);
  background: rgba(var(--theme-header-bg-rgb), 0.96);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/************************************************************
 *                    ENHANCED LOGO STYLING
 ************************************************************/
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform var(--transition-fast);
  position: relative;
  padding: 8px 0;
}

.header-logo::before {
  content: '';
  position: absolute;
  inset: -5px;
  background: linear-gradient(45deg, var(--header-accent), var(--header-hover));
  border-radius: 10px;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
  filter: blur(10px);
}

.header-logo:hover::before {
  opacity: 0.3;
}

.header-logo:hover {
  transform: scale(1.05);
}

.header-logo img,
.header-logo-img {
  height: 42px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(var(--theme-header-bg-rgb),0.2));
  transition: all var(--transition-base);
}

.header-logo:hover img,
.header-logo:hover .header-logo-img {
  transform: rotate(-5deg) scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(var(--theme-header-bg-rgb),0.3));
}


/************************************************************
 *                    ENHANCED DESKTOP NAV
 ************************************************************/
nav.main-nav {
  display: flex;
  height: 100%;
  justify-content: center;
}

nav.main-nav > ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 5px;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

nav.main-nav .menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-wrap: nowrap;
}

nav.main-nav .menu > ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

nav.main-nav ul.menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

nav.main-nav .menu > ul > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

nav.main-nav ul li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

nav.main-nav ul li > a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 10px;
  transition: all var(--transition-base);
  position: relative;
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
}

nav.main-nav ul li > a:hover {
  background: rgba(var(--theme-primary-rgb), 0.12);
  color: var(--theme-footer-text);
  transform: translateY(-1px);
  border-color: rgba(var(--theme-primary-rgb), 0.6);
  box-shadow: 0 8px 18px rgba(var(--theme-primary-rgb), 0.18);
}

nav.main-nav ul li.has-dropdown > a::after,
nav.main-nav ul li.menu-item-has-children > a::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  margin-left: 8px;
  opacity: 0.7;
  transition: transform var(--transition-fast);
}

nav.main-nav ul li.has-dropdown:hover > a::after,
nav.main-nav ul li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(var(--theme-header-bg-rgb), 0.95);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  min-width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.22);
  z-index: 10;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: rgba(var(--theme-header-bg-rgb), 0.95);
  border-top: 1px solid rgba(var(--theme-primary-rgb), 0.22);
  border-left: 1px solid rgba(var(--theme-primary-rgb), 0.22);
  transform: translateX(-50%) rotate(45deg);
}

nav.main-nav ul li:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
  list-style: none;
  margin: 2px 0;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--theme-footer-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
  background: transparent;
}

.dropdown-menu li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--header-accent);
  transition: height var(--transition-fast);
  border-radius: 2px;
}

.dropdown-menu li a:hover {
  background: rgba(var(--theme-primary-rgb), 0.18);
  color: #ffffff;
  padding-left: 24px;
  font-weight: 600;
}

.dropdown-menu li a:hover::before {
  height: 70%;
}

/************************************************************
 *                    HEADER SEARCH BAR
 ************************************************************/
.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search-form {
  position: relative;
}

.header-search-wrapper {
  display: flex;
  align-items: center;
  background: rgba(var(--theme-header-bg-rgb), 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.35);
  border-radius: 14px;
  padding: 4px;
  transition: all var(--transition-base);
  min-width: 250px;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(var(--theme-header-bg-rgb), 0.9);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(var(--theme-header-bg-rgb), 0.6);
  overflow: hidden;
  z-index: 99999;
}

.search-result-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--theme-footer-text);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.12);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(var(--theme-primary-rgb), 0.12);
}

.search-result-title {
  flex: 1;
}

.search-result-type {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: rgba(var(--theme-primary-rgb), 0.75);
}

.search-result-empty {
  padding: 12px 14px;
  color: rgba(var(--theme-footer-text-rgb), 0.7);
  font-size: 0.85rem;
}

.header-search-wrapper:hover {
  background: rgba(var(--theme-header-bg-rgb), 0.85);
  border-color: rgba(var(--theme-primary-rgb), 0.55);
}

.header-search-wrapper:focus-within {
  background: rgba(var(--theme-header-bg-rgb), 0.85);
  border-color: rgba(var(--theme-primary-rgb), 0.8);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.25);
}

.header-search-input {
  flex: 1;
  padding: 8px 15px;
  background: transparent;
  border: none;
  color: var(--header-text);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  min-width: 150px;
}

.header-search-input::placeholder {
  color: rgba(var(--theme-footer-text-rgb), 0.6);
}

.header-search-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.9), rgba(var(--theme-highlight-rgb), 0.8));
  color: #05140b;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.header-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(var(--theme-primary-rgb), 0.4);
}

.header-search-btn i {
  font-size: 0.9rem;
}

.mobile-search-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  transition: all var(--transition-fast);
}

.mobile-search-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.mobile-search-toggle i {
  font-size: 1.2rem;
  color: var(--header-text);
}

.mobile-search-overlay {
  display: none;
  position: fixed;
  top: var(--mobile-header-height);
  left: 0;
  right: 0;
  background: var(--theme-header-bg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 998;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.mobile-search-overlay.active {
  display: block;
}

.mobile-search-form {
  display: flex;
  gap: 10px;
}

.mobile-search-input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  background: rgba(var(--theme-header-bg-rgb), 0.85);
  color: var(--theme-footer-text);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.35);
}

.mobile-search-input::placeholder {
  color: rgba(var(--theme-footer-text-rgb), 0.6);
}

.mobile-search-submit {
  padding: 12px 25px;
  background: var(--header-accent);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.mobile-search-submit:hover {
  background: var(--theme-highlight);
}

/************************************************************
 *                    MOBILE NAVIGATION
 ************************************************************/
.hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  transition: all var(--transition-fast);
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.hamburger-btn i {
  font-size: 1.3rem;
  color: var(--header-text);
  transition: color var(--transition-fast);
}

.hamburger-btn.active {
  background: var(--header-accent);
  border-color: var(--header-accent);
}

.hamburger-btn.active i {
  color: #ffffff;
}

.hamburger-btn.active i::before {
  content: '\f00d';
}

.mobile-nav-panel {
  display: none;
  position: fixed;
  top: var(--mobile-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--theme-header-bg);
  z-index: 10001;
  overflow-y: auto;
  transform: none;
  transition: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  color: var(--theme-footer-text);
}

.mobile-nav-panel.active {
  display: block !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

body.mobile-menu-open .mobile-nav-panel {
  display: block !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-nav-panel-inner {
  padding: 30px 20px;
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list li {
  margin-bottom: 10px;
}

.mobile-nav-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  text-decoration: none;
  font-weight: 500;
  color: var(--theme-footer-text) !important;
  background: rgba(var(--theme-header-bg-rgb), 0.6) !important;
  border-radius: 10px;
  transition: all var(--transition-fast);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.25) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-nav-list li a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
  border-color: var(--header-accent);
}

.mobile-nav-list li a[data-target]::after {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  opacity: 0.7;
  transition: transform var(--transition-fast);
}

.mobile-nav-list li a[data-target].submenu-open::after {
  transform: rotate(90deg);
  color: var(--header-accent);
}

.mobile-nav-list .dropdown-menu {
  display: none;
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0 0 0 20px;
  border-left: 3px solid var(--header-accent);
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: transparent;
  box-shadow: none;
  border: none;
}

.mobile-nav-list .dropdown-menu::before {
  display: none;
}

.mobile-nav-list .dropdown-menu li {
  margin-bottom: 8px;
}

.mobile-nav-list .dropdown-menu li a {
  padding: 12px 15px;
  font-size: 0.9rem;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.8);
}

.mobile-nav-list .dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--header-text);
  border-color: var(--header-hover);
}


.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(var(--theme-header-bg-rgb), 0.7);
  z-index: 997;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(5px);
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}


.disclaimer-gate {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(var(--theme-header-bg-rgb), 0.88);
  backdrop-filter: blur(14px);
  z-index: 100000;
}

.disclaimer-gate.active {
  display: flex;
}

.disclaimer-gate-card {
  max-width: 720px;
  width: 100%;
  background: rgba(var(--theme-header-bg-rgb), 0.75);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.35);
  border-radius: 22px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(var(--theme-header-bg-rgb), 0.55);
}

.disclaimer-gate-card h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.disclaimer-gate-card p {
  color: rgba(var(--theme-footer-text-rgb), 0.8);
  line-height: 1.6;
  margin-bottom: 22px;
}

.disclaimer-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.disclaimer-btn {
  border: 1px solid rgba(var(--theme-primary-rgb), 0.4);
  background: rgba(var(--theme-header-bg-rgb), 0.6);
  color: var(--theme-footer-text);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.disclaimer-btn.accept {
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.95), rgba(var(--theme-highlight-rgb), 0.85));
  color: #04140b;
  border-color: transparent;
}

.disclaimer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(var(--theme-header-bg-rgb), 0.4);
}

body.disclaimer-gate-active {
  overflow: hidden;
}

body.disclaimer-gate-active header,
body.disclaimer-gate-active main,
body.disclaimer-gate-active footer,
body.disclaimer-gate-active .mobile-nav-panel,
body.disclaimer-gate-active .mobile-search-overlay {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

/************************************************************
 *                    PROGRESS BAR
 ************************************************************/
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--header-accent) 0%, var(--header-hover) 50%, var(--header-accent) 100%);
  background-size: 200% 100%;
  width: 0%;
  z-index: 10001;
  transition: width var(--transition-fast);
  animation: shimmer 2s linear infinite;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--header-accent);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  z-index: 10002;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/************************************************************
 *                    HERO SECTION
 ************************************************************/
.hero-section {
  background: linear-gradient(135deg, var(--theme-header-bg) 0%, var(--theme-header-bg) 55%, var(--theme-header-bg) 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.home-content .hero-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.home-content .hero-section .hero-container {
  max-width: 100%;
  padding: 0;
}

.home-content .hero-container {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  padding: 0;
}

.hero-section.is-style-peptide-full {
  padding-left: 0;
  padding-right: 0;
  --wp--style--root--padding-left: 0;
  --wp--style--root--padding-right: 0;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  width: 100vw;
}

.hero-section.is-style-peptide-full.wp-block-group-is-layout-constrained,
.hero-section.is-style-peptide-full .wp-block-group-is-layout-constrained {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  --wp--style--root--padding-left: 0;
  --wp--style--root--padding-right: 0;
}

.hero-container.is-style-peptide-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  --wp--style--root--padding-left: 0;
  --wp--style--root--padding-right: 0;
}

body.home .hero-section .wp-block-columns,
body.home .hero-section .wp-block-column,
body.home .hero-section .wp-block-image {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.home-content .hero-section .hero-image img {
  display: block;
  border-radius: 0;
  box-shadow: none;
}

body.home .hero-section {
  padding-top: calc(80px + var(--header-height));
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(120deg, rgba(var(--theme-primary-rgb), 0.2), transparent 40%),
    linear-gradient(240deg, rgba(var(--theme-highlight-rgb), 0.16), transparent 45%);
  opacity: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 20% 20%, rgba(var(--theme-primary-rgb), 0.24), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(var(--theme-highlight-rgb), 0.18), transparent 35%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-section::after {
  mix-blend-mode: screen;
}

.hero-section::before {
  mix-blend-mode: screen;
}

.hero-section::after,
.hero-section::before {
  filter: blur(2px);
}

.hero-section::after {
  animation: heroGlow 12s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-10px); }
}



.hero-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--theme-primary-rgb), 0.8) 45%, rgba(var(--theme-highlight-rgb), 0.9) 55%, transparent 100%);
  box-shadow: 0 0 20px rgba(var(--theme-primary-rgb), 0.6);
}

.hero-container {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

.hero-text {
  text-align: center;
  margin-bottom: 30px;
  animation: slideInUp 0.8s ease;
  padding: 0 15px;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text h1 {
  font-size: 2.4rem;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 12px 30px rgba(var(--theme-header-bg-rgb),0.4);
}

.hero-text p {
  font-size: 1.05rem;
  color: rgba(var(--theme-footer-text-rgb), 0.75);
  margin-bottom: 25px;
  line-height: 1.5;
  padding: 0 10px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
}

.hero-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-buttons a.primary-cta {
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.95), rgba(var(--theme-highlight-rgb), 0.75));
  color: #03140b;
  box-shadow: 0 12px 30px rgba(var(--theme-primary-rgb), 0.35);
}

.hero-buttons a.primary-cta:hover {
  background: linear-gradient(135deg, var(--theme-footer-hover), rgba(var(--theme-primary-rgb), 0.95));
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 40px rgba(var(--theme-primary-rgb), 0.45);
}

.hero-buttons a.primary-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-buttons a.primary-cta:hover::before {
  width: 300px;
  height: 300px;
}

.hero-buttons a.secondary-cta {
  background: rgba(var(--theme-header-bg-rgb), 0.7);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.4);
  backdrop-filter: blur(10px);
  color: #ffffff;
}

.hero-buttons a.secondary-cta:hover {
  background: rgba(var(--theme-primary-rgb), 0.18);
  border-color: rgba(var(--theme-highlight-rgb), 0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(var(--theme-primary-rgb), 0.25);
}

.hero-buttons a i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.hero-buttons a:hover i {
  transform: translateX(3px);
}

.hero-image {
  text-align: center;
  padding: 0;
  animation: fadeIn 0.8s ease 0.3s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-image img {
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(var(--theme-header-bg-rgb), 0.35);
  transition: all 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
  box-shadow: var(--home-shadow-xl);
}

.home-content {
  max-width: 100%;
  margin: 30px auto 40px;
  padding: 0 15px;
  overflow-x: hidden;
}

.section-block {
  background: linear-gradient(135deg, rgba(var(--theme-header-bg-rgb), 0.42) 0%, rgba(var(--theme-header-bg-rgb), 0.55) 100%);
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 28px;
  box-shadow: 0 30px 70px rgba(var(--theme-header-bg-rgb), 0.55), inset 0 1px 0 rgba(var(--theme-primary-rgb), 0.18);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.28);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease both;
  transition: all 0.3s ease;
  backdrop-filter: blur(26px) saturate(140%);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 90px rgba(var(--theme-header-bg-rgb), 0.6), inset 0 1px 0 rgba(var(--theme-primary-rgb), 0.25);
  border-color: rgba(var(--theme-primary-rgb), 0.55);
}

.section-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 45%);
  pointer-events: none;
}

.section-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(var(--theme-primary-rgb), 0.85) 0%, rgba(var(--theme-highlight-rgb), 0.85) 60%, rgba(var(--theme-primary-rgb), 0.6) 100%);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}

.section-block h2 {
  font-size: 1.7rem;
  color: var(--theme-footer-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-block h2 i {
  color: var(--theme-primary);
  font-size: 1.3rem;
}

.section-block > p {
  font-size: 1rem;
  color: rgba(230, 241, 255, 0.72);
  margin-bottom: 20px;
  line-height: 1.6;
}

.home-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

.home-card {
  background: rgba(var(--theme-header-bg-rgb), 0.6);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 20px 45px rgba(var(--theme-header-bg-rgb), 0.35);
  transition: all 0.3s ease;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.25);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
}

.home-card:hover {
  transform: none;
  box-shadow: 0 20px 45px rgba(var(--theme-header-bg-rgb), 0.35);
  border-color: rgba(var(--theme-primary-rgb), 0.35);
}



.home-card-media {
  padding: 0;
}

.home-card-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.home-card-placeholder {
  height: 260px;
  border-radius: 0;
  border: none;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.2), rgba(var(--theme-header-bg-rgb), 0.95));
}

.home-card-body {
  padding: 15px;
  display: grid;
  gap: 10px;
}

.home-card h3 {
  font-size: 1.35rem;
  color: var(--theme-heading-text);
  margin-bottom: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.home-card:hover h3 {
  color: var(--theme-highlight);
}

.home-card h3 i,
.archive-card-title i {
  display: none;
}

.home-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(var(--theme-header-text-rgb), 0.78);
  margin-bottom: 0;
}

.home-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.home-card-cta {
  color: var(--theme-highlight);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.home-card-link:hover .home-card-cta {
  color: #ffffff;
  transform: translateX(4px);
}

.home-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

#video-categories h2,
#video-categories p {
  text-align: center;
}

#video-categories {
  text-align: center;
}

#video-categories h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.video-card {
  background: rgba(var(--theme-header-bg-rgb), 0.6);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.25);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 45px rgba(var(--theme-header-bg-rgb), 0.35);
}

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

.video-card-media iframe {
  width: 100%;
  height: 200px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.35);
  border-radius: 16px;
  background: var(--theme-header-bg);
  display: block;
}

.video-card-body {
  padding: 0 20px 20px;
  display: grid;
  gap: 10px;
  text-align: center;
  justify-items: center;
}

.video-card-body h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.video-card-body a {
  color: var(--theme-highlight);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.video-card-media video {
  width: 100%;
  height: 200px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.35);
  border-radius: 16px;
  background: var(--theme-header-bg);
  display: block;
  object-fit: cover;
}

.section-block .wp-block-button__link,
.page-content .wp-block-button__link {
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.95), rgba(var(--theme-highlight-rgb), 0.8));
  color: #03140b;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 22px;
}

.section-block .wp-block-button__link:hover,
.page-content .wp-block-button__link:hover {
  background: linear-gradient(135deg, var(--theme-footer-hover), rgba(var(--theme-primary-rgb), 0.95));
  box-shadow: 0 12px 24px rgba(var(--theme-primary-rgb), 0.4);
}

.why-section {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.why-content {
  order: 2;
}

.why-content ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.why-content li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(230, 241, 255, 0.72);
  transition: all 0.3s ease;
}

.why-content li:hover {
  transform: translateX(5px);
  color: var(--home-primary);
}

.why-content li i {
  color: var(--home-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.why-content li:hover i {
  transform: scale(1.2);
}

.why-note {
  margin-top: 20px;
  font-size: 0.95rem;
  color: rgba(var(--theme-footer-text-rgb), 0.5);
}

.why-image {
  order: 1;
  text-align: center;
}

.why-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--home-shadow-md);
  transition: all 0.3s ease;
}

.why-image img:hover {
  transform: scale(1.05);
  box-shadow: var(--home-shadow-lg);
}

.calc-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.calc-intro-section {
  order: 1;
}

.calc-calculator-section {
  order: 2;
}

.calc-intro-section h3 {
  font-size: 1.1rem;
  color: var(--home-primary);
  margin: 20px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-intro-section h3 i {
  color: var(--home-accent);
  font-size: 1rem;
}

.calc-intro-section ul {
  list-style: none;
  padding: 0;
}

.calc-intro-section li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(230, 241, 255, 0.72);
  transition: all 0.3s ease;
}

.calc-intro-section li:hover {
  transform: translateX(5px);
  color: var(--home-primary);
}

.calc-intro-section li i {
  color: var(--home-accent);
  margin-top: 2px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.calc-intro-section li:hover i {
  transform: scale(1.2);
}

.calc-intro-section p a {
  color: var(--home-accent);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.calc-intro-section p a:hover {
  color: var(--home-primary);
  border-bottom-color: var(--home-primary);
}

#peptide-calculator {
  background: linear-gradient(135deg, rgba(var(--theme-header-bg-rgb), 0.95) 0%, rgba(var(--theme-header-bg-rgb), 0.96) 100%);
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(11, 18, 32, 0.25);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.25);
  width: 100%;
  max-width: 100%;
  transition: all 0.3s ease;
}

#peptide-calculator:hover {
  box-shadow: var(--home-shadow-lg);
  transform: translateY(-2px);
}

#peptide-calculator h3 {
  color: var(--theme-footer-text);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

#peptide-calculator p {
  font-size: 0.9rem;
  color: rgba(var(--theme-footer-text-rgb), 0.65);
  margin-bottom: 15px;
}

#peptide-calculator label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--theme-footer-text);
  font-size: 0.95rem;
}

#peptide-calculator input,
#peptide-calculator select {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  border-radius: 6px;
  font-size: 16px;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  background: rgba(var(--theme-header-bg-rgb), 0.7);
  color: var(--theme-footer-text);
}

#peptide-calculator .input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

#peptide-calculator .input-group input {
  flex: 1;
  min-width: 0;
}

#peptide-calculator .input-group select {
  width: 80px;
  flex-shrink: 0;
}

#peptide-calculator input:focus,
#peptide-calculator select:focus {
  outline: none;
  border-color: rgba(var(--theme-primary-rgb), 0.8);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.2);
}

#peptide-calculator button {
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.95), rgba(var(--theme-highlight-rgb), 0.8));
  color: #03140b;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 15px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

#peptide-calculator button:hover {
  background: linear-gradient(135deg, var(--theme-footer-hover), rgba(var(--theme-primary-rgb), 0.95));
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--theme-primary-rgb), 0.4);
}

#peptide-calculator button:active {
  transform: translateY(0);
}

#peptide-calculator button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#peptide-calculator button:hover::before {
  width: 300px;
  height: 300px;
}

#calcResults {
  margin-top: 15px;
  padding: 15px;
  background: rgba(var(--theme-header-bg-rgb), 0.85);
  border-radius: 10px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  font-size: 0.95rem;
  color: var(--theme-footer-text);
}

#calcResults .calc-result-highlight {
  color: var(--theme-accent);
  font-weight: 600;
}

.extra-cta-section {
  background: linear-gradient(135deg, var(--theme-header-bg), var(--theme-header-bg));
  border-radius: 18px;
  padding: 40px 24px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.extra-cta-section:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow-xl);
}

.extra-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.extra-cta-section h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.extra-cta-section p {
  font-size: 1rem;
  margin-bottom: 25px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  padding: 0 10px;
}

.extra-cta-section a {
  display: inline-block;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.95), rgba(var(--theme-highlight-rgb), 0.8));
  color: #03140b;
  padding: 12px 30px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 24px rgba(var(--theme-primary-rgb), 0.35);
}

.extra-cta-section a:hover {
  background: linear-gradient(135deg, var(--theme-footer-hover), rgba(var(--theme-primary-rgb), 0.95));
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(var(--theme-primary-rgb), 0.45);
  color: #03140b;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/************************************************************
 *                    FOOTER
 ************************************************************/
.site-footer {
  background: linear-gradient(135deg, var(--footer-bg) 0%, var(--footer-bg) 60%, var(--footer-bg) 100%);
  color: var(--footer-text);
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(var(--theme-primary-rgb), 0.2);
}

.footer-wave {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: var(--footer-bg);
}

.footer-wave::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 50px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 50'%3E%3Cpath fill='%23f8fafc' fill-opacity='1' d='M0,25 C240,5 480,45 720,25 C960,5 1200,45 1440,25 L1440,50 L0,50 Z'%3E%3C/path%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

.footer-main {
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--footer-text);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, rgba(var(--theme-primary-rgb), 0.85), rgba(var(--theme-highlight-rgb), 0.85));
  border-radius: 2px;
}

.footer-about p {
  line-height: 1.8;
  color: rgba(var(--theme-footer-text-rgb), 0.7);
  margin-bottom: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}


.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(var(--theme-footer-text-rgb), 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--theme-footer-text);
  transform: translateX(6px);
}

.footer-links a::before {
  content: '▸';
  color: var(--footer-accent);
  transition: transform 0.3s ease;
}

.footer-links a:hover::before {
  transform: translateX(3px);
}

.footer-newsletter {
  background: rgba(var(--theme-header-bg-rgb), 0.75);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
}

.footer-newsletter p {
  color: rgba(var(--theme-footer-text-rgb), 0.7);
  margin-bottom: 15px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.6);
  border-radius: 5px;
  background: rgba(var(--theme-header-bg-rgb), 0.8);
  color: var(--footer-text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(var(--theme-footer-text-rgb), 0.55);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  background: rgba(var(--theme-header-bg-rgb), 0.9);
  box-shadow: 0 0 0 2px rgba(var(--theme-primary-rgb), 0.5);
}

.newsletter-form button {
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.95), rgba(var(--theme-highlight-rgb), 0.8));
  color: #03140b;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-form button:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--theme-footer-hover), rgba(var(--theme-primary-rgb), 0.95));
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--theme-primary-rgb), 0.35);
}

.newsletter-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--theme-primary-rgb), 0.12);
  border-radius: 50%;
  color: var(--footer-text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(var(--theme-primary-rgb), 0.4);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(var(--theme-primary-rgb), 0.35);
}

.footer-bottom {
  padding: 25px 0;
  border-top: 1px solid rgba(var(--theme-primary-rgb), 0.15);
  position: relative;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  color: rgba(var(--theme-footer-text-rgb), 0.55);
  font-size: 0.95rem;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-links a {
  color: rgba(230, 241, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--footer-hover);
}

.footer-disclaimer {
  background: rgba(var(--theme-primary-rgb), 0.1);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.25);
  border-radius: 8px;
  padding: 15px 20px;
  margin-top: 30px;
  text-align: center;
}

.footer-disclaimer p {
  color: var(--theme-footer-text);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.footer-disclaimer strong {
  color: var(--footer-accent);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.95), rgba(var(--theme-highlight-rgb), 0.85));
  color: #03140b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 12px 24px rgba(var(--theme-primary-rgb), 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--theme-footer-hover), rgba(var(--theme-primary-rgb), 0.95));
  transform: translateY(-5px);
  box-shadow: 0 16px 28px rgba(var(--theme-primary-rgb), 0.5);
}

/************************************************************
 *                    ARCHIVE LAYOUT
 ************************************************************/
.archive-hero {
  padding: calc(var(--header-height) + 40px) 20px 30px;
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.25);
  background: linear-gradient(140deg, rgba(var(--theme-primary-rgb), 0.08), rgba(var(--theme-accent-rgb), 0.12));
}

.archive-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.archive-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 10px;
  color: var(--theme-heading-text);
}

.archive-hero p {
  max-width: 680px;
  color: rgba(var(--theme-body-text-rgb), 0.75);
}

.archive-page {
  padding: 40px 20px 80px;
}

.archive-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  align-items: start;
  gap: 30px;
}

.archive-sidebar {
  
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: none;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.sidebar-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.sidebar-card form {
  display: flex;
  gap: 6px;
  align-items: center;
  background: #f8fafc;
  backdrop-filter: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 4px;
  transition: all var(--transition-base);
  width: 100%;
  flex-wrap: nowrap;
}

.sidebar-card .searchform > div {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
}

.sidebar-card form:hover {
  background: #ffffff;
  border-color: rgba(var(--theme-primary-rgb), 0.4);
}

.sidebar-card form:focus-within {
  background: #ffffff;
  border-color: rgba(var(--theme-primary-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--theme-primary-rgb), 0.16);
}

.sidebar-card .searchform input[type="text"],
.sidebar-card input[type="search"] {
  flex: 1;
  padding: 8px 15px;
  background: transparent;
  border: none;
  color: var(--theme-body-text);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  min-width: 0;
}

.sidebar-card .searchform input[type="text"]::placeholder,
.sidebar-card input[type="search"]::placeholder {
  color: rgba(var(--theme-body-text-rgb), 0.6);
}

.sidebar-card button[type="submit"],
.sidebar-card input[type="submit"] {
  padding: 0;
  background: var(--theme-primary);
  color: transparent;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  width: 38px;
  height: 34px;
  text-indent: -9999px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305140b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.sidebar-card button[type="submit"]:hover,
.sidebar-card input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(var(--theme-primary-rgb), 0.4);
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sidebar-list a {
  color: var(--theme-body-text);
  text-decoration: none;
}

.sidebar-list a:hover {
  color: var(--theme-primary);
}


.sidebar-related {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.archive-related {
  display: none;
  margin-top: 20px;
}
.archive-content {
  min-width: 0;
}


.protocol-controls,
.archive-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

.toggle-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.toggle-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: var(--theme-body-text);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.toggle-button:hover {
  background: rgba(var(--theme-primary-rgb), 0.12);
  border-color: rgba(var(--theme-primary-rgb), 0.4);
  color: var(--theme-body-text);
}

.toggle-button.is-active {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #ffffff;
}

.toggle-count {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.8;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.archive-grid.is-compact {
  grid-template-columns: 1fr;
  gap: 16px;
}

.archive-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: none;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

.archive-grid.is-compact .archive-card-link {
  flex-direction: row;
  align-items: stretch;
}

.archive-grid.is-compact .archive-card-media {
  padding: 12px;
  flex: 0 0 200px;
}

.archive-grid.is-compact .archive-card-media img,
.archive-grid.is-compact .archive-card-placeholder {
  height: 140px;
  border-radius: 12px;
}

.archive-grid.is-compact .archive-card-placeholder {
  margin: 0;
}

.archive-grid.is-compact .archive-card-body {
  padding: 16px;
}

.archive-grid.is-compact .archive-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.archive-card-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.archive-card-placeholder {
  height: 260px;
  margin: 20px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.12), rgba(var(--theme-accent-rgb), 0.18));
}

.archive-card-body {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.archive-card-meta {
  font-size: 0.8rem;
  color: rgba(var(--theme-body-text-rgb), 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.archive-card-title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.archive-card-title {
  color: var(--theme-heading-text);
}

.archive-card-link:hover .archive-card-title {
  color: var(--theme-primary);
}

.archive-card-excerpt {
  color: rgba(var(--theme-body-text-rgb), 0.75);
}

.archive-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.archive-card-cta {
  font-weight: 600;
  color: var(--theme-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.archive-pagination {
  margin-top: 30px;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--theme-body-text);
  text-decoration: none;
}

.archive-pagination .page-numbers.current,
.archive-pagination .page-numbers:hover {
  background: rgba(var(--theme-primary-rgb), 0.2);
  color: var(--theme-primary);
}

.archive-empty {
  text-align: center;
  padding: 40px;
  background: rgba(var(--theme-header-bg-rgb), 0.5);
  border-radius: 20px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
}

/************************************************************
 *                    RESPONSIVE
 ************************************************************/
@media (max-width: 768px) {
  :root {
    --header-height: var(--mobile-header-height);
  }

  body {
    padding-top: var(--mobile-header-height);
  }

  body.home {
    padding-top: 0;
  }

  header.site-header {
    height: var(--mobile-header-height);
  }

  header.site-header.scrolled {
    height: var(--mobile-header-height);
  }

  .header-inner {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    padding: 0 10px;
    gap: 0;
  }

  .hamburger-btn {
    display: flex;
    justify-self: start;
    order: 1;
  }

  .header-logo {
    justify-self: center;
    order: 2;
    padding: 0;
  }

  .mobile-search-toggle {
    display: flex;
    justify-self: end;
    order: 3;
    margin-right: 0;
  }

  nav.main-nav,
  .header-search {
    display: none;
  }

  .header-logo img,
  .header-logo-img {
    height: 32px;
  }


  .mobile-nav-panel {
    display: none;
  }

  .mobile-nav-panel.active {
    display: block;
  }

  .mobile-overlay {
    display: block;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .archive-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-related {
    position: static;
    display: none;
  }

  .archive-related {
    display: block;
  }

  .archive-content {
  }

  .archive-hero {
    padding-top: calc(var(--mobile-header-height) + 30px);
  }

  .archive-card-media img,
  .archive-card-placeholder {
    height: 210px;
  }

  .archive-grid.is-compact .archive-card-link {
    flex-direction: column;
  }

  .archive-grid.is-compact .archive-card-media {
    flex: 0 0 auto;
    width: 100%;
  }

  .archive-grid.is-compact .archive-card-media img,
  .archive-grid.is-compact .archive-card-placeholder {
    height: 210px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-legal-links {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

@media (min-width: 768px) {
  .hero-section {
    padding: 90px 0 70px;
  }

  body.home .hero-section {
    padding-top: calc(90px + var(--header-height));
  }

  body.home .hero-container {
    justify-content: center;
  }

  body.home .hero-text {
    text-align: center;
    padding: 0;
  }

  body.home .hero-buttons {
    justify-content: center;
  }

  .hero-container {
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
  }

  .hero-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
    margin-bottom: 0;
    padding: 0 20px 0 0;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    font-size: 1.2rem;
    padding: 0;
  }

  .hero-buttons {
    flex-direction: row;
    padding: 0;
  }

  .hero-buttons a {
    width: auto;
    min-width: 180px;
  }

  .hero-image {
    flex: 1;
    min-width: 300px;
    padding: 0;
  }

  .home-content {
    max-width: 1200px;
    margin: -40px auto 60px;
    padding: 0 30px;
  }

  .section-block {
    padding: 35px 30px;
    border-radius: 16px;
    margin-bottom: 35px;
  }

  .section-block h2 {
    font-size: 2rem;
  }

  .home-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .home-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-section {
    flex-direction: row;
  }

  .why-content {
    order: 1;
    flex: 1;
  }

  .why-image {
    order: 2;
    flex: 1;
  }

  .why-image img {
    max-width: 400px;
  }

  .calc-container {
    flex-direction: row;
  }

  .calc-intro-section,
  .calc-calculator-section {
    flex: 1;
  }

  #peptide-calculator {
    padding: 25px;
  }

  .extra-cta-section {
    padding: 45px 35px;
    border-radius: 16px;
  }

  .extra-cta-section h2 {
    font-size: 2.2rem;
  }

  .extra-cta-section p {
    font-size: 1.1rem;
    padding: 0;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 100px 0 80px;
  }

  body.home .hero-section {
    padding-top: calc(100px + var(--header-height));
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

  .hero-text p {
    font-size: 1.3rem;
  }


  .section-block {
    padding: 40px;
    margin-bottom: 40px;
  }

  .section-block h2 {
    font-size: 2.2rem;
  }

  .section-block > p {
    font-size: 1.1rem;
  }

  .home-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .home-card {
    padding: 0;
  }

  .home-card h3 {
    font-size: 1.4rem;
  }

  .home-card p {
    font-size: 1rem;
  }

  .calc-intro-section h3 {
    font-size: 1.3rem;
  }

  .calc-intro-section li {
    font-size: 1rem;
  }

  #peptide-calculator {
    padding: 30px;
  }

  #peptide-calculator h3 {
    font-size: 1.5rem;
  }

  .extra-cta-section {
    padding: 50px 40px;
  }

  .extra-cta-section h2 {
    font-size: 2.5rem;
  }

  .extra-cta-section p {
    font-size: 1.2rem;
  }
}

/************************************************************
 *                    SINGLE POST LAYOUT
 ************************************************************/
.page-hero {
  background: linear-gradient(135deg, var(--theme-header-bg) 0%, var(--theme-header-bg) 60%, var(--theme-header-bg) 100%);
  padding: 255px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(var(--theme-header-bg-rgb), 0.82);
  opacity: 1;
}

.page-hero.has-hero-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero.has-hero-image::before {
  background: rgba(var(--theme-header-bg-rgb), 0.85);
  opacity: 1;
}

.page-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--theme-footer-text);
  margin: 0 auto;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 16px 30px rgba(var(--theme-header-bg-rgb),0.5);
}


.video-hero {
  background: var(--theme-header-bg);
  padding: 60px 0 60px;
  position: relative;
  overflow: hidden;
}

.video-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.video-hero-media {
  max-width: 1100px;
  margin: 0 auto 30px;
}

.video-hero-media iframe,
.video-hero-player,
.video-hero-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.35);
  box-shadow: 0 24px 50px rgba(var(--theme-header-bg-rgb), 0.45);
  background: var(--theme-header-bg);
  display: block;
}

.page-layout {
  max-width: 1200px;
  margin: -20px auto 40px;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.toc-container {
  display: none;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--theme-footer-text);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(230, 241, 255, 0.75);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
  background: rgba(var(--theme-primary-rgb), 0.18);
  color: #ffffff;
}

.nav-list a.toc-subitem {
  padding-left: 20px;
  font-size: 0.85rem;
}

.page-content {
  background: #ffffff;
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: none;
}

.page-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(37, 99, 235, 0.04), transparent 45%);
  pointer-events: none;
}

.page-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(var(--theme-primary-rgb), 0.65) 0%, rgba(var(--theme-highlight-rgb), 0.65) 60%, rgba(var(--theme-primary-rgb), 0.5) 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.page-content > h1:first-child {
  display: none;
}

.page-content h2 {
  color: var(--theme-heading-text);
  font-size: 1.45rem;
  margin: 26px 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
  font-weight: 600;
}

.page-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, rgba(var(--theme-primary-rgb), 0.85), rgba(var(--theme-highlight-rgb), 0.85));
  border-radius: 2px;
}

.page-content h3 {
  color: rgba(var(--theme-heading-text-rgb), 0.9);
  font-size: 1.2rem;
  margin: 20px 0 12px;
  font-weight: 600;
  padding-left: 12px;
  border-left: 3px solid var(--home-primary);
}

.page-content p {
  line-height: 1.65;
  margin: 0 0 16px;
  color: rgba(var(--theme-body-text-rgb), 0.85);
  font-size: 0.95rem;
}

.page-content ul,
.page-content ol {
  margin: 16px 0 20px;
  padding-left: 22px;
}

.page-content li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: rgba(var(--theme-body-text-rgb), 0.85);
  font-size: 0.95rem;
}

.page-content a {
  color: var(--home-primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-weight: 500;
}

.page-content a:hover {
  color: var(--home-accent);
  border-bottom-color: var(--home-accent);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}

.page-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(var(--theme-primary-rgb), 0.2), var(--home-shadow-md);
  background: rgba(var(--theme-header-bg-rgb), 0.9);
  font-size: 0.95rem;
  color: var(--theme-footer-text);
}

.page-content thead {
  background: linear-gradient(135deg, var(--theme-header-bg) 0%, var(--theme-header-bg) 100%);
}

.page-content th {
  color: var(--theme-footer-text);
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-bottom: 3px solid rgba(var(--theme-primary-rgb), 0.7);
}

.page-content td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.12);
  color: rgba(var(--theme-footer-text-rgb), 0.75);
  background: rgba(var(--theme-header-bg-rgb), 0.65);
  vertical-align: top;
}

.page-content tbody tr:nth-child(even) td {
  background: rgba(var(--theme-header-bg-rgb), 0.8);
}

.protocol-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 18px 0;
}

.protocol-card {
  background: linear-gradient(135deg, rgba(11, 18, 32, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 16px 32px rgba(11, 18, 32, 0.25);
  transition: all 0.3s ease;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
}

.protocol-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(var(--theme-primary-rgb), 0.25);
  border-color: rgba(var(--theme-primary-rgb), 0.5);
}

.protocol-card h3,
.protocol-card p,
.protocol-card li {
  color: var(--theme-footer-text);
}

.protocol-card li strong {
  color: var(--theme-highlight);
}

.intro-card {
  background: linear-gradient(135deg, rgba(var(--theme-header-bg-rgb), 0.95) 0%, rgba(var(--theme-header-bg-rgb), 0.95) 100%);
  border-radius: 14px;
  padding: 25px 20px;
  box-shadow: var(--home-shadow-sm);
  margin-bottom: 20px;
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  position: relative;
}

.intro-content h2 {
  margin-top: 0;
}

.intro-image {
  margin-top: 15px;
  text-align: center;
}

.intro-image img {
  width: 160px;
  border-radius: 8px;
  box-shadow: var(--home-shadow-md);
}


.important-note {
  background: rgba(var(--theme-primary-rgb), 0.08);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.25);
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
  color: var(--theme-footer-text);
}

.supplier-info {
  background: linear-gradient(135deg, rgba(var(--theme-header-bg-rgb), 0.95) 0%, rgba(var(--theme-header-bg-rgb), 0.95) 100%);
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
  box-shadow: var(--home-shadow-sm);
  border-left: 4px solid rgba(var(--theme-primary-rgb), 0.8);
}

@media (min-width: 1024px) {
  .home-content .section-block {
    margin: 0 40px 40px;
  }

  .page-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
  }

.toc-container {
  display: block;
  position: sticky;
  top: 110px;
  background: rgba(var(--theme-header-bg-rgb), 0.85);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 16px 32px rgba(var(--theme-header-bg-rgb), 0.4);
  border: 1px solid rgba(var(--theme-primary-rgb), 0.2);
  backdrop-filter: blur(14px);
}

  .page-title {
    font-size: 2.2rem;
  }

  .intro-card {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 20px;
    align-items: start;
  }

  .intro-image {
    margin-top: 0;
  }
}


.newsletter-form .form-message {
  flex-basis: 100%;
  font-size: 0.9rem;
  margin-top: 8px;
}

.newsletter-form .form-message.success {
  color: var(--theme-footer-hover);
}

.newsletter-form .form-message.error {
  color: #ff7b7b;
}

/************************************************************
 *                    NEWS HOME LAYOUT
 ************************************************************/
.news-home {
  padding: calc(var(--header-height) + 20px) 20px 80px;
}

.news-hero {
  max-width: 1200px;
  margin: 20px auto 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.news-hero-side,
.news-card,
.news-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--home-shadow-sm);
}

.news-feature {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--home-shadow-sm);
  border-radius: 24px;
  overflow: hidden;
  height: 100%;
}

.news-hero-main {
  display: flex;
}

.news-feature.empty {
  padding: 32px;
  display: grid;
  gap: 12px;
}

.news-feature-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-feature-media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.news-feature-placeholder {
  height: 340px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.08), rgba(var(--theme-accent-rgb), 0.18));
}

.news-feature-content {
  padding: 24px 26px 28px;
  display: grid;
  gap: 12px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
  color: #64748b;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.news-tag {
  background: rgba(var(--theme-primary-rgb), 0.12);
  color: var(--theme-primary);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.72rem;
}

.news-feature-content h1 {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 1.15;
  color: var(--theme-heading-text);
}

.news-feature-content p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.65;
}

.news-readmore {
  color: var(--theme-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.news-hero-side {
  border-radius: 22px;
  padding: 20px;
  display: grid;
  grid-template-rows: auto repeat(4, minmax(0, 1fr));
  gap: 16px;
  height: 100%;
}

.news-hero-side h2 {
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.news-compact a {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.news-compact {
  display: flex;
}

.news-compact-media img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.news-compact-placeholder {
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.08), rgba(var(--theme-accent-rgb), 0.18));
}

.news-compact-body h3 {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--theme-heading-text);
}

.news-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
}

.news-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.news-section-head h2 {
  font-size: 1.4rem;
}

.news-link {
  color: var(--theme-primary);
  text-decoration: none;
  font-weight: 600;
}

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

.news-card {
  border-radius: 18px;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.news-card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.news-card-placeholder {
  height: 180px;
  background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.08), rgba(var(--theme-accent-rgb), 0.18));
}

.news-card-body {
  padding: 16px 18px 20px;
  display: grid;
  gap: 10px;
}

.news-card-body p {
  color: #475569;
  line-height: 1.6;
}

.news-card-body h3 {
  color: var(--theme-heading-text);
  line-height: 1.35;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow-md);
  border-color: rgba(var(--theme-primary-rgb), 0.22);
}

.news-sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
}

.news-panel {
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.news-topic-list,
.news-protocol-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.news-topic-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: rgba(var(--theme-primary-rgb), 0.06);
}

.news-topic-list a span {
  color: var(--theme-primary);
  font-weight: 600;
}

.news-protocol-list a {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.news-protocol-list small {
  color: #64748b;
  font-size: 0.8rem;
}

.news-newsletter {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.9) 0%, rgba(239, 246, 255, 0.9) 100%);
  border-color: rgba(var(--theme-primary-rgb), 0.2);
}

.news-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--theme-primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  width: fit-content;
}

.news-empty {
  color: #64748b;
  font-size: 0.95rem;
}

@media (max-width: 1024px) {
  .news-hero {
    grid-template-columns: 1fr;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .news-home {
    padding: calc(var(--mobile-header-height) + 16px) 16px 60px;
  }

  .news-feature-media img,
  .news-feature-placeholder {
    height: 240px;
  }

  .news-compact a {
    grid-template-columns: 80px 1fr;
  }

  .news-card-media img,
  .news-card-placeholder {
    height: 160px;
  }
}
