/*
Theme Name: Yardstics Child
Theme URI: https://yardstics.com/
Description: Child theme for Astra tailored for Yardstics.
Author: Yardstics
Author URI: https://yardstics.com/
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: astra-child
Text Domain: yardstics-child
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Global Layout & Structure
# Global Typography & Links
# Button Styles
# General Section Styling
# Header/Container Alignment (from original global)
# Global Responsive Adjustments (Base)
--------------------------------------------------------------*/


/*--------------------------------------------------------------
# Global Layout & Structure
--------------------------------------------------------------*/
body {
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Align header container with content container */
/* Note: !important might be needed to override Astra's defaults */
.site-header .ast-container,
.main-header-bar .ast-container {
  max-width: 1200px !important;
  width: 90% !important;
  margin-left: auto !important; /* Ensure centering */
  margin-right: auto !important; /* Ensure centering */
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Ensure main content area also aligns */
.site-content .ast-container {
  max-width: 1200px !important;
  width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Global Section Styling */
section {
  padding: 60px 5%; /* Increased padding slightly */
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Default container within sections */
section > div {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px; /* Add slight inner padding */
  padding-right: 15px; /* Add slight inner padding */
  box-sizing: border-box;
}


/*--------------------------------------------------------------
# Global Typography & Links
--------------------------------------------------------------*/

/* Default Section Headings */
section h2 {
  font-size: 36px;
  margin-bottom: 25px; /* Slightly more space */
  font-weight: 600;
  text-align: center;
  color: #333; /* Ensure consistent heading color */
}

/* Default Section Paragraphs */
section p {
  font-size: 18px;
  line-height: 1.7; /* Slightly more line height */
  margin-bottom: 30px; /* Consistent bottom margin */
  text-align: center;
  max-width: 800px; /* Limit width for readability */
  margin-left: auto;
  margin-right: auto;
  color: #555; /* Default text color */
}

/* Remove underlines for specific links/buttons within post content */
/* Keeping this selector specific to avoid overriding all links */
.ast-single-post .entry-content a.button-main,
.ast-single-post .entry-content a.button-outline,
.ast-single-post .entry-content a[href*="screener"],
.ast-single-post .entry-content a[href*="coaches"], /* Keep if coaches might return */
.ast-single-post .entry-content a[href*="resources"] { /* Keep if resources might return */
  text-decoration: none;
}


/*--------------------------------------------------------------
# Button Styles
--------------------------------------------------------------*/
.button-main,
.button-outline {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent; /* Base border */
  box-sizing: border-box;
}

.button-main {
  background-color: #0099ff;
  border-color: #0099ff;
  color: white;
}

.button-main:hover {
  background-color: #0077cc;
  border-color: #0077cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: white; /* Ensure color stays white */
}

.button-outline {
  background-color: transparent;
  /* Color and border-color often set contextually (e.g., white on blue CTA, blue on white feedback) */
  /* Provide a default that works on light backgrounds */
  color: #0099ff;
  border-color: #0099ff;
}

.button-outline:hover {
  background-color: #0099ff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Style the dropdown container */
.main-header-menu .sub-menu {
    background-color: #ffffff; /* White background */
    border: 1px solid #eaeaea; /* Subtle border */
    border-top: none; /* Remove top border if theme adds one */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    padding-top: 5px; /* Small padding top */
    padding-bottom: 5px; /* Small padding bottom */
    min-width: 220px; /* Set a minimum width */
    border-radius: 0 0 4px 4px; /* Optional: Rounded bottom corners */
}

/* Style individual dropdown items (links) */
.main-header-menu .sub-menu li a {
    padding-top: 8px; /* REDUCED vertical padding */
    padding-bottom: 8px; /* REDUCED vertical padding */
    padding-left: 15px; /* Horizontal padding */
    padding-right: 15px; /* Horizontal padding */
    font-size: 0.9em; /* Slightly smaller font size (adjust as needed) */
    color: #333333; /* Dark text color */
    line-height: 1.4; /* Adjust line height */
    white-space: nowrap; /* Prevent text wrapping */
    display: block; /* Make the whole area clickable */
    clear: both; /* Theme compatibility */
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out; /* Smooth hover transition */
}

/* Style the hover effect */
.main-header-menu .sub-menu li:hover > a {
    background-color: #f5f5f5; /* Light grey background on hover */
    color: #0077cc; /* Change text color on hover (match your blue?) */
}

/* Remove default Astra arrow if desired */
/* .main-header-menu .menu-item-has-children > .ast-menu-toggle {
    display: none; 
} 
*/

/* Adjust arrow position if keeping it */
/*
.main-header-menu .menu-item-has-children > .ast-menu-toggle {
    top: calc(50% - 0.7em); /* Adjust vertical alignment */
/* right: 1em; */
/* }
*/


/*--------------------------------------------------------------
# Global Responsive Adjustments (Base)
--------------------------------------------------------------*/
@media (max-width: 768px) {
  section {
    padding: 40px 20px; /* Adjust padding for mobile */
  }

  section h2 {
    font-size: 28px; /* Smaller headings on mobile */
    margin-bottom: 20px;
  }

  section p {
    font-size: 16px; /* Smaller text on mobile */
    margin-bottom: 25px;
  }

  /* Generic Mobile Button Styling */
  .button-main,
  .button-outline {
    padding: 14px 20px; /* More touch-friendly padding */
    /* width: 100%; */ /* Avoid forcing full width globally */
    /* max-width: 300px; */ /* Context specific max-width */
    /* margin: 5px auto; */ /* Context specific margin */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Add any global tablet adjustments if needed */
}