/**
 * Main Stylesheet
 *
 * @package AgileTech\Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* CSS Custom Properties from theme.json */
:root {
  --wp--preset--color--primary: #e13a51;
  --wp--preset--color--secondary: #6c757d;
  --wp--preset--color--accent: #ff6b35;
  --wp--preset--color--dark: #1a1a1a;
  --wp--preset--color--light: #f8f9fa;
  --wp--preset--color--white: #ffffff;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--wp--preset--color--dark);
  background-color: var(--wp--preset--color--white);
}

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

li {
  list-style: none;
}

a {
  color: var(--wp--preset--color--primary);
  text-decoration: none;
}

a:hover {
  color: var(--wp--preset--color--accent);
}

/* Utility Classes */
.alignwide {
  max-width: 1400px;
}

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

.aligncenter {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin-right: 1rem;
}

.alignright {
  float: right;
  margin-left: 1rem;
}

/* Entry Content */
.entry-content {
  margin-top: 2rem;
}

.entry-content>*+* {
  margin-top: 1.5rem;
}

.custom-post-grid li {
  box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.06);
  border-radius: 10px;
}

.wp-block-post-author__byline {
  font-size: 10px;
}

.wp-block-post-author {
  align-items: center;
}

.wp-block-post-author img {
  border-radius: 50%;
}

.wp-block-post-author__name {
  font-weight: 700;
}

.wp-block-post-author__bio {
  margin: 0;
}

.sidebar-post-cat li {
  list-style: none;
  background-color: var(--wp--preset--color--white);
  padding: 20px;
  margin: 10px 0;
  border-radius: 10px;
}

.sidebar-post-search button {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  border: none;
  padding: 15px 20px;
  border-radius: 10px;
  cursor: pointer;
}

.sidebar-post-search input {
  padding: 15px 20px;
  border-radius: 10px;
  border: none;
  outline: none;
}

.sidebar-post-heading .taxonomy-post_tag a {
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--primary);
  padding: 10px 20px;
  border-radius: 5px;
  margin: 10px 0;
}


.sidebar-post-heading h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 24px;
  font-weight: 700;
}

.sidebar-post-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 70px;
  height: 2px;
  background-color: var(--wp--preset--color--primary);
}

/* Header Overlay Utility */
.overlay-header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: transparent !important;
}