/*
Theme Name: avonpartitioningservices
Theme URI: https://avonpartitioningservices.co.uk
Author: avonpartitioningservices
Author URI: https://avonpartitioningservices.co.uk
Description: Your theme avonpartitioningservices
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: your-theme-textdomain
*/

/* Base styles and CSS Variables */
  :root {
    --primary-color: #0062ff;
    --primary-hover: #0051cc;
    --text-color: #000;
    --text-light: #fff;
    --bg-light: #fff;
    --bg-dark: #000;
    --bg-gray: #f9f9f9;
    --border-light: #e0e0e0;
    --border-dark: #444;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 15px;
    --space-lg: 20px;
    --space-xl: 40px;
  }

  /* Reset and Base Styles */
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  html, body {
    height: 100%;
    margin: 0;
  }
  body {
    font-family: Arial, sans-serif;
    color: var(--text-color);
    background: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
  }

  /* Layout Components */
  .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
  }

  .section {
    padding: var(--space-sm);
    background-color: var(--bg-light);
  }

  /* Navigation */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
  }

  .navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
  }

  .navbar .menu {
    display: flex;
    gap: var(--space-md);
  }

  .navbar a {
    color: var(--text-light);
    text-decoration: none;
  }

  .navbar .menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background-color: #333; /* Set the background color */
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
}

  .navbar .menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 4px 0;
    background-color: #fff; /* Set the color of the lines */
}

  /* Hero Section */
  .hero {
    padding: var(--space-lg);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    background-color: var(--bg-gray);
  }

  .hero .first-row {
    flex: 7;
    min-height: auto;
  }

  /* Card Components */
  .p-card,
  .hero .first-row {
    background-color: var(--bg-light);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
  }

  .is-card-bg {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 200px;
    position: relative;
  }

  .is-card-bg img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
  }

  .is-card-content,
  .p-card__content {
    padding: var(--space-md);
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    margin-top: var(--space-sm);
  }

  /* Fixed Author Group Styles */
  .hero .first-row .is-card-author-group,
  .p-card .is-card-author-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: rgba(0, 0, 0, 0.5);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.9em;
    z-index: 2;
  }

  /* Fixed Avatar Styles */
  .hero .first-row .is-card-author-group .avatar,
  .p-card .is-card-author-group .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }

  .is-card-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 2;
  }

  /* Avatar List Styles */
  .avatar-list-container {
    text-align: center;
    margin: var(--space-xl) 0;
  }

  .avatar-list {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin: var(--space-xl) 0;
    flex-wrap: wrap;
  }

  .avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 120px;
  }

  .avatar-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
  }

  .avatar-item img:hover {
    transform: scale(1.1);
  }

  .avatar-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1em;
    font-weight: bold;
  }

  .avatar-item a:hover {
    text-decoration: underline;
  }

  /* Button Styles */
  .p-button--brand,
  .is-more-btn button,
  .is-read-more {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-block;
    margin-top: var(--space-sm);
  }

  .p-button--brand:hover,
  .is-more-btn button:hover,
  .is-read-more:hover {
    background-color: var(--primary-hover);
  }

  /* Grid Layouts */
  .stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
  }

  .p-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* Typography and Links */
  .hero .first-row h2 {
    margin: var(--space-sm) 0;
    font-size: 1.4em;
  }

  .p-heading--four {
    color: #111;
    margin-bottom: 1rem;
    font-weight: 400;
  }

  .is-comman-title {
    font-size: 1.5em;
    margin-bottom: var(--space-lg);
    font-weight: bold;
  }

  .p-link--external {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    padding-right: 1rem;
  }

  .p-link--external:hover {
    text-decoration: underline;
  }

  .p-link--external::after {
    content: "↗";
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.875em;
  }

  /* Utility Classes */
  .p-divider {
    border: 0;
    border-top: 1px solid var(--border-light);
    margin: var(--space-sm) 0;
  }

  /* Media Queries */
  @media (max-width: 1024px) {
    .stories-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .p-list {
      grid-template-columns: repeat(3, 1fr);
    }

    .section-container {
      padding: 1.5rem;
    }

    .p-heading--four {
      font-size: 1.5rem;
      margin-bottom: 1.25rem;
    }

    .p-list__item {
      padding: 0.4rem 0;
    }
  }

  @media (max-width: 768px) {
    .navbar {
      flex-wrap: wrap;
    }

    .navbar .menu {
      display: none;
      flex-direction: column;
      width: 100%;
      background-color: var(--bg-dark);
      padding-top: var(--space-sm);
    }

    .navbar .menu.active {
      display: flex;
    }

    .navbar .menu-toggle {
      display: flex;
    }

    .navbar .menu a {
      padding: var(--space-sm);
      border-top: 1px solid var(--border-dark);
      
    }

    .auth {
      width: 100%;
      justify-content: center;
      padding-top: var(--space-sm);
    }

    .hero {
      flex-direction: column;
    }

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

    .p-list {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .section-container {
      padding: 1rem;
    }
  }

  @media (max-width: 480px) {
    .p-list {
      grid-template-columns: 1fr;
    }
  }

  .is-title-link {
    color: inherit; /* Inherit color from parent element */
    text-decoration: none; /* Remove underline */
}

.is-title-link:hover,
.is-title-link:focus {
    color: inherit; /* Ensure color remains the same on hover/focus */
    text-decoration: none; /* Ensure underline is not added on hover/focus */
}