/* Custom styles for Leesa K. Donner author page */

/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Georgia", serif;
  }
  
  body {
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    padding-bottom: 50px;
  }
  
  a {
    color: #d00;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  a:hover {
    color: #a00;
  }
  
  /* Author Bio Section with Image */
  .author-bio-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
  }
  
  .author-bio {
    display: flex;
    border: 1px solid #e0e0e0;
    padding: 25px 30px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    gap: 50px;
    align-items: center;
  }
  
  .author-image {
    flex: 0 0 auto;
  }
  
  .profile-image {
    width: 140px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  
  .author-text {
    flex: 1;
  }
  
  .author-text p {
    line-height: 1.8;
    font-size: 18px;
    color: #333;
  }
  
  /* Promo Video Section */
  .promo-section {
    max-width: 860px;
    margin: 0px auto;
    padding: 0px;
    text-align: center;
    position: relative;
    overflow: visible !important;
  }
  
  .promo-title {
    font-size: 28px;
    font-weight: normal;
    margin-bottom: 25px;
    color: #222;
    font-family: "Times New Roman", Times, serif;
  }
  
  .video-placeholder {
    height: 400px;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    background-color: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .play-button {
    position: absolute;
    transition: transform 0.3s ease;
    z-index: 3 !important;
  }
  
  .video-placeholder:hover .play-button {
    transform: scale(1.1);
  }
  
  .divider {
    margin: 30px 0 20px;
    text-align: center;
  }
  
  /* Top Navigation Bar */
  .top-nav {
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .read-articles {
    color: #d00;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.3s;
  }
  
  .read-articles:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #d00;
    transition: width 0.3s;
  }
  
  .read-articles:hover {
    color: #a00;
  }
  
  .read-articles:hover:after {
    width: 100%;
  }
  
  /* View Toggle */
  .view-toggle {
    display: flex;
    gap: 10px;
  }
  
  .view-toggle button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
  }
  
  .view-toggle button:hover {
    background: #f5f5f5;
    color: #333;
  }
  
  .view-toggle button.active {
    background: #d00;
    color: #fff;
    border-color: #d00;
  }
  
  /* Featured Articles Section */
  .articles-header{
    font-size: 24px;
    font-family: "Georgia", serif;
    color: #222;
    padding: 0;
    font-weight:400;
    margin-bottom: 0px!important;
  }
  
  .articles-section {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 0 20px;
    position: relative;
  }
  
  /* Grid View */
  .articles-section.grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .articles-section.grid-view .article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s ease;
  }
  
  .articles-section.grid-view .article-title {
    order: 2;
    line-height: 30px;
    /* line-height: 1.4; */
    margin-bottom: 6px;
}
  
  .articles-section.grid-view .article-date{
    order: 1;
  }
  
  .articles-section.grid-view .article-tagline{
    order: 3;
    font-size: 14px;
  }
  
  .articles-section.grid-view .article-image {
    height: 180px;
  }
  
  .articles-section.list-view .article-tagline{
    display: none;
  }
  
  .articles-section.grid-view .article-date{
    margin-bottom: 4px;
  }
  
  .articles-section.grid-view .show-only-on-list {
    display: none;
  }
  
  .articles-section.list-view .show-only-on-list {
    display: block;
  }
  
  /* List View */
  .articles-section.list-view {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .articles-section.list-view .article-content{
    padding: 0px 22px 0px;
  }
    
  .articles-section.list-view .article-card {
    display: flex;
    flex-direction: unset;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.3s ease;
    width: 49%;
    height: 121px;
    margin-bottom: 20px;
    justify-content: center;
  }
  .articles-section.list-view .article-title{
    line-height: 20px;
  }

  .articles-section.list-view .article-image {
    flex: 0 0 167px; /* Fixed width for image */
    height: 122px;    /* Fixed height for image */
    aspect-ratio: 436/580; /* simplified */
  }
  
  .articles-section.list-view .article-content {
    display: flex;
    flex-flow: column;
    justify-content: center;
  }
  
  .articles-section.list-view .article-summary {
    display: none;
  }
  
  /* Common Article Card Styles */
  .article-card {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: -5px 5px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .article-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .article-image {
    overflow: hidden;
  }
  
  .article-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
  }
  
  .article-card:hover .article-thumbnail {
    transform: scale(1.05);
  }
  
  .grid-view .article-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
  }
  
  .article-title {
    margin-bottom: 8px;
    color: #222;
    font-weight: 400;
    line-height: 1.4;
  }
  
  .article-title a {
    font-size: 17px;
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .grid-view .article-title a {
      font-size: 18px;
  }
  
  .grid-view .article-title{
    margin-bottom: 6px;
  }
  
  .article-title a:hover {
    color: #d00;
  }
  
  .article-date {
    font-size: 13px;
    color: #656565;
    margin-bottom: 0px;
    font-family: Arial;
  }
  
  .article-tagline {
    font-style: italic;
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
  }
  
  .article-categories {
    font-size: 13px;
    color: #d00;
    margin-bottom: 10px;
    display: none;
  }
  
  .articles-section.list-view .article-categories {
    display: none;
  }
  
  .article-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
  }
  
  .article-excerpt p {
    margin: 0;
  }
  
  /* Animation for article cards */
  .article-card {
    opacity: 0;
    transform: translateY(20px);
  }
  
  /* Pagination */
  .pagination {
    clear: both;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 0;
    gap: 5px;
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
  
  .pagination a,
  .pagination span {
    display: inline-block;
    background-color: unset;
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s;
    text-decoration: none;
  }
  
  .pagination a:hover {
    background-color: #f5f5f5;
    color: #d00;
    border-color: #d00;
  }
  
  .pagination .current {
    background-color: #d00;
    color: white;
    border-color: #d00;
  }
  
  .pagination .dots {
    border: none;
  }
  
  /* Newsletter Signup Form */
  .newsletter-signup {
    max-width: 680px;
    margin: 20px auto 40px;
    padding: 25px 30px 0px;
    background-color: #892828;
    border-radius: 6px;
    color: white;
    text-align: center;
    border: 2px solid #e6e6e6;
  }
  
  .newsletter-signup h4 {
    color: white;
    font-size: 24px!important;
    font-weight: bold!important;
    margin-bottom: 10px;
  }
  .ml-form-embedWrapper.embedForm{
    border:0px!important;
  }

  .ml-form-embedBody{
    padding:0px!important;
  }
  
  .ml-embedded button {
    background-color: white;
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .ml-embedded button:hover {
    background-color: #f0f0f0;
  }

  .c5-latest-video-section{
    max-width: 900px;
    margin: 20px auto 40px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
  }

  .c5-latest-video-section h2{
    font-size: 24px;
    font-family: "Georgia", serif;
    color: #222;
    padding: 0;
    font-weight:400;
  }

  .c5-view-more-btn {
    background-color: #892828;
    font-family: "Open Sans", serif;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    margin: auto;
    margin-top: 20px;
}
  .c5-view-more-btn:hover{
    color: #ffffff!important;
}
.c5-view-more-btn span {
    margin-right: 6px;
    font-family: 'Open Sans';
    font-weight: bold;
}
  
  
  /* Author Header */
  .author_header {
    background: url("https://www.libertynation.com/wp-content/uploads/2023/10/Temp-BG.jpg") center/cover no-repeat;
    color: white !important;
    text-align: center;
  }
  
  .header_title_container {
    background-color: rgba(0, 0, 0, 0.6);
    color: white !important;
    text-align: center;
    padding: 30px;
  }
  
  .author_header h1.entry-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: white;
    margin: 15px auto 10px !important;
  }
  
  .author_header .header_text_container h2 {
    font-size: 28px !important;
    font-weight: 400 !important;
    color: white;
  }
  
  /* Force Divi overrides */
  body.author {
    overflow-x: hidden;
  }
  
  /* Make sure Divi doesn't override our styles */
  .articles-section .article-card * {
    font-family: "Georgia", serif !important;
  }

  /* video thumbnail and play button cover video */
  .video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2 !important;
  }
  
  .video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  
  .play-button svg {
    width: 24px;
    height: 24px;
    color: white;
  }
  
  .play-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  .fluid-width-video-wrapper {
    position: relative !important;
    z-index: 1 !important;
  }
  
  /* Responsive Styles */
  @media (max-width: 900px) {
    .articles-section.grid-view {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
      flex-direction: column;
    }
  }
  
  @media (max-width: 768px) {
    .author-bio {
      flex-direction: column;
      text-align: center;
      padding: 15px;
      gap: 20px;
    }
    .author-text {
      width: 100%;
    }
    .articles-section.list-view .article-card {
      flex-direction: column;
    }
    .articles-section.list-view .article-image {
      flex: none;
      height: 200px;
      width: 100%;
    }
    
    .top-nav {
      flex-direction: column;
      align-items: center;
      gap: 15px;
    }
    .view-toggle{
        display: none;
    }
    #et-main-area{
        padding: 0px 10px;
    }
  }
  
  @media (max-width: 600px) {
    .articles-section.grid-view {
      grid-template-columns: 1fr;
    }
  
    .view-toggle {
      justify-content: center;
    }
  
    .promo-title {
      font-size: 24px;
    }
  
    .article-title {
      font-size: 17px;
    }
  
    .profile-image {
      width: 120px;
      height: 120px;
    }
  
    .video-placeholder {
      height: 200px;
    }
  
    .pagination {
      flex-wrap: wrap;
    }
  
    .pagination a,
    .pagination span {
      margin-bottom: 5px;
    }
  }