/* Custom Homepage Styles for JHHR (Updated Layout) */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
  --primary-color: #8B6B43;
  --bg-color-main: #f5eedc;
  /* slightly warmer parchment */
  --text-dark: #2c2825;
  --text-light: #fdfbf7;
  --box-bg: rgba(44, 40, 37, 0.95);
  --border-gold: #c6a87c;
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Inter', sans-serif;
}

body.pkp_page_index {
  background-color: var(--bg-color-main);
  color: var(--text-dark);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  /* Fix horizontal scrollbar */
}



/* Base resets inside the custom container */
.custom-homepage {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 40px 20px 40px;
  display: flex;
  gap: 40px;
}

.custom-homepage-fullwidth {
  width: 100%;
  margin: 0 auto;
  padding: 20px 40px 60px 40px;
  display: block;
}

.pkp_structure_head {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.custom-homepage h1,
.custom-homepage h2,
.custom-homepage h3,
.custom-homepage h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-dark);
}

.custom-homepage p {
  line-height: 1.6;
  font-size: 15px;
}

/* Layout Columns */
.main-column {
  flex: 3;
  /* 75% */
}

.sidebar-column {
  flex: 1;
  /* 25% */
}

/* Main Content Header */
.main-header h1 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 800;
  color: #3b2f21;
  /* Rich dark historical brown */
  margin: 0 0 12px 0;
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

.main-header .subtitle {
  font-weight: 600;
  font-size: 17px;
  color: #8b6b43;
  /* Elegant gold-brown */
  letter-spacing: 0.5px;
}

.main-header .quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: #5a4b3c;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 25px;
  padding: 15px 25px;
  background: rgba(139, 107, 67, 0.08);
  border-left: 4px solid var(--border-gold);
  border-radius: 4px;
}

.main-header .intro-text {
  font-size: 12px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 30px;
  text-align: justify;
  padding-right: 20px;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #8b6b43 0%, #6b5131 100%);
  color: #fff;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  border: 1px solid #5a4b3c;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6b5131 0%, #4a3b2c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.intro-text p {
  margin-bottom: 20px;
  text-align: justify;
}

/* Section Titles with Ornaments */
.section-title-wrapper {
  text-align: center;
  margin: 30px 0 20px 0;
}

.section-title {
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  position: relative;
  margin: 0;
}

.section-title::after {
  content: '✦';
  display: block;
  font-size: 14px;
  color: var(--border-gold);
  margin-top: 5px;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: -20px;
  right: -20px;
  height: 1px;
  background: var(--border-gold);
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.article-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  background-color: #2c2825;
  color: white;
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  opacity: 1;
  transition: transform 0.3s;
}

.article-card:hover .article-img {
  transform: scale(1.05);
}

.article-content {
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.article-date {
  font-size: 11px;
  color: var(--border-gold);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-title {
  font-size: 11px;
  font-weight: 500;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  line-height: 1.3;
  color: #ffffff !important;
}

.article-author {
  font-size: 11px;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 5px;
}

.center-btn {
  text-align: center;
}

/* Benefits Section */
.benefits-wrapper {
  display: flex;
  background: var(--bg-color-main);
  padding: 30px;
  border-radius: 8px;
  gap: 30px;
  border: 1px solid var(--border-gold);
  margin-bottom: 40px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
  /* Subtle inner shadow */
}

.vertical-separator {
  width: 1px;
  background: var(--border-gold);
  margin: 10px 0;
  opacity: 0.5;
}

.benefit-col {
  flex: 1.5;
}

.benefit-col h3 {
  font-size: 18px;
  text-transform: uppercase;
  text-align: left;
  margin-top: 0;
  margin-bottom: 25px;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--text-dark);
}

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

.benefit-list li {
  margin-bottom: 14px;
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
}

.benefit-list li::before {
  content: '✔';
  color: white;
  background-color: #4a3b2c;
  /* Dark brown */
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 0px;
}

.impact-col {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.impact-card {
  background: #eedcb8;
  /* Slightly darker parchment for the card */
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.impact-card h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  margin: 0 0 5px 0;
  text-transform: uppercase;
}

.impact-card h3 small {
  font-size: 14px;
  font-family: var(--font-sans);
  font-weight: normal;
  text-transform: none;
}

/* Info Section (Glance & Commitment) */
.info-section {
  display: flex;
  gap: 30px;
  align-items: stretch;
  margin-bottom: 40px;
}

.glance-table {
  flex: 1;
  background: rgba(245, 238, 220, 0.5);
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.commitment-area {
  flex: 1;
  background: rgba(245, 238, 220, 0.5);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
}

.glance-table h3 {
  text-align: center;
  margin: 0;
  padding: 20px 0;
  text-transform: uppercase;
  font-size: 18px;
  border-bottom: 1px solid rgba(139, 107, 67, 0.2);
}

.commitment-area h3 {
  text-align: center;
  margin-top: 0;
  text-transform: uppercase;
  padding-bottom: 10px;
  font-size: 18px;
}

.glance-table table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  margin: 0;
}

.glance-table th,
.glance-table td {
  padding: 9px 15px;
  border: none;
  border-bottom: 1px solid rgba(139, 107, 67, 0.2);
  font-size: 12px;
  text-align: left;
  vertical-align: top;
}

.glance-table tr:last-child th,
.glance-table tr:last-child td {
  border-bottom: none;
}

.glance-table th {
  width: 32%;
  font-weight: 700;
  color: #222;
  background-color: rgba(220, 205, 175, 0.4);
  border-right: 1px solid rgba(139, 107, 67, 0.2);
}

.glance-table td {
  color: #111;
  background-color: rgba(255, 255, 255, 0.3);
}

/* Spider Web Commitment Diagram */
.commitment-diagram {
  width: 100%;
  height: 340px;
  position: relative;
  margin-top: 10px;
}

.commit-center {
  position: absolute;
  top: 170px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, #2b231d 0%, #111 100%);
  color: var(--border-gold);
  border: 4px solid var(--border-gold);
  outline: 1px solid var(--border-gold);
  outline-offset: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 26px;
  z-index: 10;
  box-shadow: 0 0 20px rgba(139, 107, 67, 0.7), inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.commit-center::after {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 1px dashed var(--border-gold);
  border-radius: 50%;
  opacity: 0.7;
}

.commit-item {
  position: absolute;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  transform: translateY(-50%);
}

.commit-text {
  width: 125px;
  /* Ensures text wraps and doesn't overflow container */
  line-height: 1.3;
}

.commit-item.left {
  right: 50%;
  margin-right: 90px;
  justify-content: flex-end;
}

.commit-item.left .commit-text {
  text-align: right;
}

.commit-item.right {
  left: 50%;
  margin-left: 90px;
  justify-content: flex-start;
}

.commit-item.right .commit-text {
  text-align: left;
}

.commit-icon {
  width: 32px;
  height: 32px;
  background: #2b231d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
  z-index: 5;
  margin: 0 10px;
  font-size: 14px;
  color: var(--border-gold);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.commit-line {
  height: 1px;
  background: var(--border-gold);
  position: absolute;
  top: 50%;
  z-index: 1;
}

.commit-item.left .commit-line {
  left: 100%;
  transform-origin: left center;
}

.commit-item.right .commit-line {
  right: 100%;
  transform-origin: right center;
}

.commit-line::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--border-gold);
  border-radius: 50%;
  top: -1.5px;
}

.commit-item.left .commit-line::after {
  right: 0;
}

.commit-item.right .commit-line::after {
  left: 0;
}

/* Mathematical Positioning */
.item-1 {
  top: 30px;
}

.item-1 .commit-line {
  width: 104px;
  transform: translateY(-50%) rotate(57.3deg);
}

.item-2 {
  top: 100px;
}

.item-2 .commit-line {
  width: 52px;
  transform: translateY(-50%) rotate(37.9deg);
}

.item-3 {
  top: 170px;
}

.item-3 .commit-line {
  width: 28px;
  transform: translateY(-50%) rotate(0deg);
}

.item-4 {
  top: 240px;
}

.item-4 .commit-line {
  width: 52px;
  transform: translateY(-50%) rotate(-37.9deg);
}

.item-5 {
  top: 310px;
}

.item-5 .commit-line {
  width: 104px;
  transform: translateY(-50%) rotate(-57.3deg);
}

.item-6 {
  top: 30px;
}

.item-6 .commit-line {
  width: 104px;
  transform: translateY(-50%) rotate(-57.3deg);
}

.item-7 {
  top: 100px;
}

.item-7 .commit-line {
  width: 52px;
  transform: translateY(-50%) rotate(-37.9deg);
}

.item-8 {
  top: 170px;
}

.item-8 .commit-line {
  width: 28px;
  transform: translateY(-50%) rotate(0deg);
}

.item-9 {
  top: 240px;
}

.item-9 .commit-line {
  width: 52px;
  transform: translateY(-50%) rotate(37.9deg);
}

.item-10 {
  top: 310px;
}

.item-10 .commit-line {
  width: 104px;
  transform: translateY(-50%) rotate(57.3deg);
}

/* Global Community (Standard) */
.global-community {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 40px;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  margin-top: 20px;
  background-image: url('community_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.global-community .community-text {
  flex: 2;
}

.global-community .community-text h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  text-transform: uppercase;
  margin-top: 0;
}

.global-community .community-text p {
  font-size: 13px;
  color: #333;
}

.global-community .community-image {
  flex: 1;
  text-align: center;
}

.global-community .community-image img {
  width: 100%;
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}


/* SIDEBAR STYLES */
.sidebar-box {
  background: rgba(220, 205, 175, 0.2);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.sidebar-box h3 {
  font-size: 16px;
  text-transform: uppercase;
  margin-top: 0;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.current-issue-cover {
  background: #1a1816;
  border: 2px solid var(--border-gold);
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 15px;
  color: var(--border-gold);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 24px;
}

body {
  font-family: 'Inter', sans-serif;
  color: #4a4a4a;
  background-color: #f9f6f0;
}

.pkp_structure_page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
}

.pkp_structure_content {
  flex-grow: 1;
}

.custom-global-footer {
  margin-top: auto;
}

.partners-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.partner-logo {
  height: 50px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #555;
  border: 1px solid rgba(139, 107, 67, 0.2);
  border-radius: 4px;
  padding: 5px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.article-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  border-radius: 8px 8px 0 0;
}

.impact-gauge {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 10px solid var(--border-gold);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-dark);
}

/* Overriding PKP defaults */
.pkp_structure_page {
  background: var(--bg-color-main);
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.pkp_structure_main {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.pkp_structure_sidebar {
  display: none !important;
}

.pkp_structure_content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.pkp_structure_page::before,
.pkp_structure_page::after,
.pkp_structure_main::before,
.pkp_structure_main::after,
.pkp_structure_content::before,
.pkp_structure_content::after {
  display: none !important;
  content: none !important;
  background: none !important;
  border: none !important;
}

/* =========================================
   CUSTOM GLOBAL FOOTER STYLES
   ========================================= */
.custom-global-footer {
  background-color: #2b231d;
  color: #d8cbbc;
  font-family: var(--font-sans);
  padding: 60px 0 20px 0;
  width: 100%;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-col {
  flex: 1;
}

.footer-col h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  font-family: var(--font-sans);
}

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

.footer-col ul li {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.footer-col ul li a {
  color: #d8cbbc;
  text-decoration: none;
  transition: color 0.2s;
}

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

.brand-col {
  flex: 1.5;
}

.brand-col h2 {
  font-family: var(--font-serif);
  color: var(--border-gold);
  font-size: 32px;
  margin: 0 0 10px 0;
}

.brand-col .footer-title {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.brand-col .footer-motto {
  font-size: 12px;
  color: #a89c8c;
  font-style: italic;
  margin: 0 0 20px 0;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--border-gold);
  color: #2b231d;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  transition: opacity 0.2s;
}

.footer-socials a:hover {
  opacity: 0.8;
}



/* Contact Column */
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-list .icon {
  color: var(--border-gold);
}



/* Footer Bottom */
.footer-bottom {
  max-width: 1400px;
  margin: 40px auto 0 auto;
  padding: 20px 40px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #888;
}

.designed-by span {
  color: var(--border-gold);
}

/* Force User Navigation (Register/Login) to display in the header */
.pkp_structure_head {
  position: relative;
}

.pkp_navigation_user_wrapper {
  display: block !important;
  position: absolute;
  top: 10px;
  right: 40px;
  z-index: 1000;
}

.pkp_navigation_user {
  display: flex;
  gap: 15px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pkp_navigation_user li {
  margin: 0;
  padding: 0;
}

.pkp_navigation_user a {
  color: #5a4b3c;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.2s;
}

.pkp_navigation_user a:hover {
  background: #f4ebdb;
  color: #2b231d;
}

/* Primary Navigation Dropdown Menu Styling */
.pkp_navigation_primary li {
  position: relative !important;
}

.pkp_navigation_primary li ul {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  display: none !important;
  background-color: #ffffff !important;
  min-width: 220px !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
  border: 1px solid rgba(0,0,0,0.05) !important;
  padding: 10px 0 !important;
  z-index: 9999 !important;
  list-style: none !important;
}

.pkp_navigation_primary li:hover > ul,
.pkp_navigation_primary li:focus-within > ul {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.pkp_navigation_primary li ul li {
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

.pkp_navigation_primary li ul li a {
  display: block !important;
  padding: 12px 20px !important;
  color: #1a2b3c !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.pkp_navigation_primary li ul li a:hover,
.pkp_navigation_primary li ul li a:focus {
  background-color: #f8f9fa !important;
  color: var(--primary-color) !important;
}