/*
Theme Name:   gschildtheme
Theme URI:    https://panography.org
Description:  gschildtheme is a child theme of Astra.
Author:       Jason Pogodzinski
Author URI:   https://giantsponge.com
Template:     astra
Version:      1.2.5
Text Domain:  gschildtheme
*/

/* --- CSS VARIABLES (Easy Maintenance) --- */
:root {
  --gs-gold:    #C2A09E;
  --gs-orange:  #c2a09ecf;
  --gs-slate:   #4B4F58;
  --gs-charcoal:#3A3A3A;
}

/* --- LAYOUT & CONTAINERS --- */

.site .site-content #primary {
  margin-top: 0px;
}

.ast-separate-container #primary,
.ast-separate-container.ast-left-sidebar #primary,
.ast-separate-container.ast-right-sidebar #primary {
  padding: 0;
  margin: 0em 0;
}

.ast-container,
.ast-container-fluid {
  max-width: 98%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0px;
  padding-right: 0px;
}

.ast-site-title-wrap {
  padding-left: 20px;
}

.ast-builder-layout-element.site-header-focus-item.ast-header-account {
  padding-right: 20px;
}

.gsgallery-max-width-container {
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
}

/* --- HEADERS & NAVIGATION --- */

header#masthead.site-header {
  grid-area: header;
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ast-builder-menu-1 .sub-menu,
.ast-builder-menu-1 .inline-on-mobile .sub-menu {
  border: 0;
}

/* --- POSTS & ARCHIVES --- */

article.type-post .ast-post-format- {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Custom Padding Adjustment for Archive Descriptions */
body.archive .ast-archive-description {
  text-align: left;
  max-width: 800px !important;
  
  /* FIXED: Pushed down to clear sticky header */
  padding-top: 140px; 
  
  padding-bottom: 3em;
  padding-left: 3em;
  padding-right: 3em;
  margin-left: auto;
  margin-right: auto;
}

.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
  padding: 30px;
}

body.astra-hide-featured-artist-title h1.entry-title {
  display: none !important;
}

/* BUTTONS */
a.ast-button.artist-page-button {
  font-size: 12px;
  padding: 5px 10px;
  background-color: var(--gs-charcoal);
  color: #fff;
  border: 1px solid var(--gs-charcoal);
  transition: all 0.3s ease;
}

a.ast-button.artist-page-button:hover {
  background-color: var(--gs-gold);
  color: var(--gs-charcoal);
  border-color: var(--gs-gold);
}

/* READ MORE BUTTON */
p.ast-blog-single-element.ast-read-more-container.read-more {
  padding: 8px 24px;
  border-radius: 2px; /* Slight rounding, more professional */
  display: inline-block;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  background-color: var(--gs-gold); /* Gold Background */
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

p.ast-blog-single-element.ast-read-more-container.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 188, 0, 0.3); /* Gold Glow */
  background-color: var(--gs-orange);
}

p.ast-blog-single-element.ast-read-more-container.read-more a {
  color: var(--gs-charcoal);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

p.ast-blog-single-element.ast-read-more-container.read-more a:hover {
  text-decoration: none;
}

/* --- TYPOGRAPHY (H1-H6 EDITORIAL STYLING) --- */

/* Base Heading Styles */
h1, h2, h3, h4, h5, h6 {
    color: var(--gs-charcoal);
    line-height: 1.3;
    margin-bottom: 20px;
}

body.archive .ast-archive-description .ast-archive-title,
body.archive .ast-archive-description .ast-archive-title *,
.archive .entry-title,
.blog .entry-title,
.search .entry-title {
  line-height: 1.2;
}

/* H1 - Main Title */
h1.entry-title {
  font-size: 48px;
  font-weight: 800; /* Extra Bold */
  color: var(--gs-charcoal);
  letter-spacing: -1px;
}

/* H2 - Section Headers */
h2.wp-block-heading,
h2.entry-title.ast-blog-single-element a {
  font-size: 36px; /* Scaled for balance */
  font-weight: 700;
  color: var(--gs-charcoal);
  margin-top: 20px;
  margin-bottom: 15px;
  line-height: 2.2rem;
}

h2.entry-title.ast-blog-single-element a:hover {
  text-decoration: none;
  color: var(--gs-orange);
}

/* H3 - Subsections */
h3.wp-block-heading {
  font-size: 26px;
  font-weight: 600;
  color: var(--gs-slate); /* Softer contrast without hard lines */
  margin-top: 25px;
  margin-bottom: 12px;
}

/* H4 - Standard Headers */
h4.wp-block-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--gs-charcoal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 25px;
}

/* H5 & H6 - Minor Headers */
h5, h6 {
    font-weight: 600;
    color: var(--gs-slate);
}

.wp-block-heading {
  margin-top: .5em;
}

/* --- LISTS & BLOCKS --- */

ol.wp-block-list li {
  margin-left: 60px;
}

ul.children li {
  margin-left: 10px;
}

ul.wp-block-categories-list li {
  list-style: none;
  position: relative;
  padding-left: 10px;
}

ul.wp-block-categories-list li::before {
  content: "\203A";
  position: absolute;
  left: 0;
  color: var(--gs-gold); /* Gold chevron */
  font-weight: bold;
  margin-right: 5px;
}

ul.wp-block-list li {
  list-style: none;
  position: relative;
  padding-left: 15px;
  margin-left: 0px;
  margin-bottom: 8px; /* Breathing room between items */
}

ul.wp-block-list li::before {
  content: "\203A";
  position: absolute;
  left: 0;
  color: var(--gs-orange); /* Orange chevron for lists */
  font-weight: bold;
  margin-right: 5px;
}

hr.wp-block-separator {
  display: none;
}

/* --- WIDGETS & UTILITIES --- */

body>div.cky-btn-revisit-wrapper.cky-revisit-bottom-left {
  visibility: hidden;
}

.gt_switcher_wrapper {
  margin-left: -5%;
  margin-bottom: 29px;
}

.hero-overlay {
  position: relative;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-overlay > * {
  position: relative;
  z-index: 2;
}

.after-content-shortcode > * {
  text-align: center;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
}

#wd_captcha6 {
  width: 150px;
}

#secondary {
  margin: 0em 0 2.5em;
}

.astra-search-form-container {
  text-align: center;
}

.heart-icon {
  width: 2rem;
  height: 2rem;
  fill: var(--gs-orange); /* Updated to Theme Orange */
}

/* --- CUSTOM LOGIN FORM --- */

.custom-login-wrapper {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-family: inherit;
  border-top: 5px solid var(--gs-gold); /* Professional touch */
}

.custom-login-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-login-wrapper label {
  font-weight: bold;
  font-size: 14px;
  color: var(--gs-charcoal);
}

.custom-login-wrapper input[type="text"],
.custom-login-wrapper input[type="password"] {
  padding: 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ddd;
  width: 100%;
  box-sizing: border-box;
}

.custom-login-wrapper input[type="text"]:focus,
.custom-login-wrapper input[type="password"]:focus {
    border-color: var(--gs-gold);
    outline: none;
}

.custom-login-wrapper input[type="submit"] {
  border: none;
  padding: 0.75rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  background-color: var(--gs-charcoal);
  color: #fff;
  transition: background-color 0.3s ease;
}

.custom-login-wrapper input[type="submit"]:hover {
  background-color: var(--gs-orange);
}

.custom-login-wrapper .login-error {
  padding: 0.75rem;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

.custom-login-wrapper .login-remember label {
  font-weight: normal;
}

.custom-login-wrapper .login-submit,
.custom-login-wrapper .login-remember {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-login-wrapper p.forgetmenot,
.custom-login-wrapper .login .forgetmenot {
  margin: 0 auto;
  text-align: center;
}

/* --- COMMENTS --- */

details.comment-collapse summary {
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  margin: 1em 0;
  color: var(--gs-charcoal);
}

.comment-form-wrapper {
  margin-top: 1em;
}

.login-to-comment {
  margin: 1.5em 0;
  font-style: italic;
}

.login-to-comment a {
  text-decoration: underline;
  color: var(--gs-orange);
}

.comment-author,
.comment-meta.commentmetadata,
#primary > .comments-area {
  display: none;
}

.gnarlytree-comment {
  border: 2px dashed #eee;
  padding: 1em;
}

/* --- CUSTOM BREADCRUMBS --- */

.custom-breadcrumb {
  background-color: white;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  text-align: center;
  line-height: 1rem;
  font-size: 0.9rem;
  color: var(--gs-slate);
}

.custom-breadcrumb a {
  text-decoration: none;
  color: var(--gs-charcoal);
}

.custom-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--gs-orange);
}


/* ==========================================================================
   DESKTOP MENU ACTIVE HIGHLIGHTS (Overrides Astra Native)
   ========================================================================== */

/* 1. Force the active text to Gold */
.main-header-menu .current-menu-item > a,
.main-header-menu .current-menu-ancestor > a,
.main-header-menu .current_page_item > a,
.main-header-menu .current_page_parent > a {
    color: var(--gs-gold) !important;
}

/* 2. Lock Astra's bottom-underline animation to the "On" position */
.ast-menu-hover-style-underline .main-header-menu .current-menu-item > a::before,
.ast-menu-hover-style-underline .main-header-menu .current-menu-ancestor > a::before,
.ast-menu-hover-style-underline .main-header-menu .current_page_item > a::before,
.ast-menu-hover-style-underline .main-header-menu .current_page_parent > a::before {
    transform: translate(-50%, 0) scaleX(1) !important;
    background-color: var(--gs-gold) !important;
}


/* --- MOBILE QUERIES --- */
@media (max-width: 921px) {
  header.entry-header:not(.related-entry-header) {
    text-align: center;
  }

  .ast-header-break-point .site-primary-footer-wrap[data-section="section-primary-footer-builder"] {
    /* display: grid; */
    padding: 10px;
  }

  h1,
  .entry-content :where(h1) {
    text-align: center;
  }

  body.archive .ast-archive-description p {
    font-size: 1.1rem;
    line-height: 1.4rem;
  }

  h1.entry-title {
    font-size: 30px;
    font-weight: 800;
  }

  h2.wp-block-heading {
    font-size: 28px;
    /* Cleaned up leftover borders here */
  }
}
/* --- H2 Mobile Cell Header (Clean) --- */
@media (max-width: 768px) {
  h2.wp-block-heading,
  h2.entry-title.ast-blog-single-element a {
    display: block;
    text-align: center;
    
    /* Box Sizing & Spacing */
    margin: 2rem auto !important; /* Centers the box, adds vertical space */
    padding: 1rem 1.5rem;
    max-width: 92%; /* Keeps it from touching the absolute edges of the phone */
    
    /* The "Cell" Design */
    background-color: #f8f9fa; /* Very light grey */
    border: 1px solid #e9ecef; /* Subtle outline */
    border-radius: 12px; /* Smooth rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04); /* Soft depth */
    
    /* Typography cleanup */
    font-size: 2.1rem; 
    line-height: 1.3;
    color: #2b2b2b; /* Dark charcoal text */
    text-decoration: none; /* Strips underline from links */
  }
}