/**
 * Bylines Public CSS
 * Migrated from amfm-bylines plugin
 */

#amfm-byline-wrapper {
   /* display: none; */
}

.amfm-hidden {
   display: none !important;
}

.amfm-pagination .current {
   color: #111;
}

.amfm-related-posts .amfm-related-post-item {
   margin-bottom: 15px;
}

/* Elementor Widget Styles */
.amfm-staff-grid {
    display: grid;
    gap: 20px;
    text-align: center;
}

.amfm-staff-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amfm-staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.amfm-staff-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.amfm-staff-image {
    text-align: center;
    overflow: hidden;
}

.amfm-staff-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.amfm-staff-content {
    padding: 15px;
    text-align: center;
}

.amfm-staff-name {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: bold;
}

.amfm-staff-credentials {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.amfm-staff-title {
    font-size: 14px;
    color: #00997A;
    font-weight: bold;
    margin-bottom: 10px;
}

.amfm-staff-bio {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.amfm-related-posts {
    margin: 20px 0;
}

.amfm-related-post-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.amfm-related-post-link {
    color: #0073aa;
    text-decoration: none;
}

.amfm-related-post-link:hover {
    text-decoration: underline;
}

.amfm-featured-images-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.amfm-featured-image-item {
    text-align: center;
}

.amfm-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.amfm-featured-image-title {
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: bold;
}

.amfm-featured-image-title a {
    color: #333;
    text-decoration: none;
}

.amfm-featured-image-title a:hover {
    color: #0073aa;
    text-decoration: underline;
}

.amfm-pagination {
    margin-top: 20px;
    text-align: center;
}

.amfm-pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    color: #0073aa;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.amfm-pagination a:hover {
    background: #f8f9fa;
}

.amfm-pagination .current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Bylines Widget Styles */
.amfm-bylines-container {
    display: flex;
    gap: 20px;
    align-items: center;
    background: #fff;
    padding: 15px;
}

.amfm-layout-vertical .amfm-bylines-container {
    flex-direction: column;
    align-items: flex-start;
}

.amfm-layout-grid .amfm-bylines-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.amfm-byline-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amfm-layout-vertical .amfm-byline-item {
    width: 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.amfm-byline-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amfm-layout-vertical .amfm-byline-content {
    flex: 1;
}

.amfm-byline-image img {
    border-radius: 50%;
    object-fit: cover;
}

.amfm-byline-label {
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
}

.amfm-byline-name {
    font-weight: bold;
    font-size: 14px;
}

.amfm-byline-name a {
    text-decoration: none;
}

.amfm-byline-name a:hover {
    text-decoration: underline;
}

.amfm-byline-credentials {
    font-size: 12px;
}

.amfm-byline-title {
    font-size: 12px;
    color: #00997A;
    font-weight: bold;
}

@media (max-width: 768px) {
    .amfm-bylines-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .amfm-staff-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .amfm-staff-grid {
        grid-template-columns: 1fr !important;
    }
}

.amfm-related-post-title {
   font-size: 18px; 
   font-weight: bold;
}

.amfm-related-post-link {
   font-size: 14px; 
   font-weight: bold;
}

.amfm-related-posts .amfm-read-more {
   color: #0073aa;
   text-decoration: underline;
   font-weight: bold;
}

/* AMFM STAFF ELEMENTOR MODULE */
.amfm-staff-grid {
   text-align: center;
}

.amfm-staff-item {
   margin-left: auto;
   margin-right: auto;
}

.amfm-staff-image {
   text-align: center;
}

/* AMFM Bylines Grid Styles */
.amfm-bylines-container {
   display: flex;
   flex-wrap: wrap;
   gap: 20px;
   justify-content: space-between;
   margin: 20px 0;
}

.amfm-column {
   flex: 1;
   min-width: 200px;
   text-align: center;
   padding: 15px;
   border: 1px solid #e0e0e0;
   border-radius: 5px;
   background: #f9f9f9;
}

.amfm-text {
   font-weight: bold;
   margin-bottom: 10px;
   color: #333;
}

.amfm-image img {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   border: 2px solid #00245d;
   object-fit: cover;
   margin-bottom: 10px;
}

.amfm-row-text-container {
   text-align: center;
}

.amfm-row-text-name {
   font-weight: bold;
   font-size: 16px;
   margin-bottom: 5px;
   color: #333;
}

.amfm-row-text-credentials {
   font-size: 14px;
   color: #666;
   margin-bottom: 5px;
}

.amfm-row-text-title {
   font-size: 14px;
   color: #888;
}

/* Bylines Link Styles */
.amfm-byline-col-author,
.amfm-byline-col-editor,
.amfm-byline-col-reviewer,
.amfm-byline-col-in-the-press,
.amfm-byline-link-author,
.amfm-byline-link-editor {
   cursor: pointer;
   border: none;
}

.amfm-byline-col-main,
.amfm-byline-col-reviewer {
   justify-content: left !important;
}

@media (min-width: 768px) {
   .amfm-byline-col-reviewer::before {
       content: '';
       position: absolute;
       left: 0;
       top: 25%;
       height: 50%;
       width: 1px;
       background-color: #162B67;
   }

   .amfm-byline-col-reviewer {
       position: relative !important;
       padding-top: 0 !important;
       gap: 18px !important;
   } 

   .amfm-col-reviewer-new {
       gap: 8px !important; 
       padding-left: 13px !important; 
       padding-top: 20px !important; 
       padding-bottom: 20px !important;
   }
}

@media (max-width: 767px) {
   .amfm-bylines-container {
       flex-direction: column;
   }
   
   .amfm-column {
       min-width: unset;
       width: 100%;
       flex: 0 0 100% !important;
   }
   
   .amfm-col-reviewer-new {
       padding: 20px !important;
   }
}