/* Blog Index Page Styles */

.blog-index-container {
    padding: 2rem 0 4rem;
    background-color: #ffffff;
    min-height: calc(100vh - 160px);
}

.blog-index-container.author-view-active {
    padding-top: 0;
}

.blog-index-container .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Breadcrumb */
.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.breadcrumb-item {
    color: #475569;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    padding: 0 0.5rem;
    color: #475569;
}

.breadcrumb-item a {
    color: #475569;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0070C0;
}

.breadcrumb-item.active {
    color: #000000;
}

/* Grid Layout */
.blog-grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-top: 3rem;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.search-section {
    margin-bottom: 2rem;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #000000;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0070C0;
    box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

.search-input::placeholder {
    color: #525252;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #525252;
    font-size: 14px;
    pointer-events: none;
}


.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
}

.filter-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #000000;
    background-color: #ffffff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23525252' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #0070C0;
    box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.1);
}

/* Author Hero (replaces carousel when author selected) */
.author-hero-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: url('../images/Dr-BG.svg') center center / cover no-repeat;
    background-color: #f0f9ff; /* fallback if image fails */
    border-radius: 0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.author-hero-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 328px;
    padding: 102px 2rem 3rem;
}

.author-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
    width: 290px;
    min-height: 328px;
    opacity: 1;
}

.author-hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #0070C0;
    margin-bottom: 1.25rem;
}

.author-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-hero-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 38px;
    letter-spacing: 0;
    text-align: center;
    color: #000000;
}

.author-hero-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 290px;
    min-height: 54px;
    gap: 3px;
    opacity: 1;
}

.author-hero-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    text-transform: capitalize;
    color: #0070C0;
}

.author-hero-qualification {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    text-transform: capitalize;
    color: #000000;
}

.author-hero-bio-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: #0070C0;
    color: white;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.author-hero-bio-btn:hover {
    background-color: #005999;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Author Bio Modal */
.author-bio-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.author-bio-modal.active {
    display: flex;
}

.author-bio-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.author-bio-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem 2rem 2rem;
}

.author-bio-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    color: #475569;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease;
}

.author-bio-modal-close:hover {
    color: #000000;
}

.author-bio-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-bio-modal-avatar {
    width: 79px;
    height: 80px;
    border-radius: 99px;
    overflow: hidden;
    border: 3px solid #0070C0;
    margin-bottom: 1.25rem;
}

.author-bio-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-bio-modal-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 38px;
    letter-spacing: 0;
    text-align: center;
    color: #000000;
    margin-bottom: 0.5rem;
}

.author-bio-modal-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    text-transform: capitalize;
    color: #0070C0;
    margin-bottom: 0.25rem;
}

.author-bio-modal-qualification {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    text-transform: capitalize;
    color: #000000;
    margin-bottom: 1.5rem;
}

.author-bio-modal-bio-section {
    width: 100%;
    max-width: 573px;
    text-align: left;
    margin-bottom: 2rem;
}

.author-bio-modal-bio-heading {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0;
    color: #525252;
    margin-right: 0.25rem;
}

.author-bio-modal-bio-p1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0;
    color: #525252;
    margin-bottom: 0.75rem;
}

.author-bio-modal-bio-p2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0;
    color: #525252;
}

.author-bio-modal-contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: #0070C0;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-bio-modal-contact-btn:hover {
    background-color: #005999;
    color: white;
    text-decoration: none;
}

/* Author name clickable (carousel & category cards) */
.author-name-clickable {
    cursor: pointer;
    color: #0070C0 !important;
    transition: color 0.3s ease;
}

.author-name-clickable:hover {
    color: #005999 !important;
    text-decoration: underline;
}

/* Featured Article Carousel - Full Width */
.featured-article {
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

.featured-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #F6F6F6;
    border-radius: 8px;
    overflow: hidden;
}

.featured-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    pointer-events: none;
}

.featured-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.featured-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-decoration: none;
    color: inherit;
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 400px;
}

.featured-link:hover {
    box-shadow: none;
    transform: none;
}

.featured-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #E5E5E5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
    transform: scale(1);
}

.featured-link:hover .featured-img {
    transform: scale(1.05);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
    justify-content: flex-end;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: #D1D5DB;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.carousel-dot:hover {
    background-color: #9CA3AF;
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: #0070C0;
    width: 12px;
    height: 12px;
}

.carousel-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    color: #0070C0;
    border: 1px solid #0070C0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background-color: rgba(0, 112, 192, 0.1);
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.featured-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    height: 100%;
}

.featured-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-leadership {
    background-color: transparent;
    color: #0070C0;
    border: 1px solid #0070C0;
}

.tag-read-time {
    background-color: #E5E5E5;
    color: #000000;
    border: none;
}

.featured-title {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    line-height: 1.3;
    margin: 0 0 1rem 0;
}

.featured-description {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.author-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info-small {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name-small {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
}

.publish-date-small {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #525252;
}

.read-more-link {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0070C0;
    margin-top: auto;
    text-decoration: none;
}

.featured-link:hover .read-more-link {
    text-decoration: none;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.article-card {
    background-color: #F6F6F6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.article-card-image {
    width: 100%;
    height: 150px;
    background-color: #E5E5E5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.article-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5E5E5;
    z-index: 0;
}

.article-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
    transform: scale(1);
    display: block;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.article-card:hover .article-card-img {
    transform: scale(1.1);
}

.article-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.article-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    line-height: 1.4;
    margin: 0 0 1rem 0;
    flex: 1;
}

.article-card-read-more {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0070C0;
    margin-top: auto;
    text-decoration: none;
}

.article-card:hover .article-card-read-more {
    text-decoration: none;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E5E5E5;
}

.pagination-info {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #475569;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    background-color: #ffffff;
    color: #000000;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #0070C0;
    color: #ffffff;
    border-color: #0070C0;
}

.pagination-btn.active {
    background-color: #0070C0;
    color: #ffffff;
    border-color: #0070C0;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Newsletter Section - Removed, using project footer instead */

/* Latest Blogs Section */
.latest-blogs-section {
    background-color: #E6E6E6;
    padding: 4rem 0;
    margin-top: 3rem;
}

.category-blog-section {
    margin-bottom: 4rem;
}

.category-blog-section:last-child {
    margin-bottom: 0;
}

.category-section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 2rem;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-grid-layout {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .blog-grid-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .featured-carousel-wrapper,
    .featured-carousel-container {
        min-height: auto;
        height: auto;
    }
    
    .featured-slide {
        position: relative;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }
    
    .featured-slide.active {
        display: block;
    }

    .featured-link {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 0;
    }

    .featured-image {
        min-height: 250px;
        max-height: 300px;
    }
    
    .featured-img {
        object-position: center;
    }
    
    .featured-content {
        min-height: auto;
        padding: 1.5rem;
    }
    
    .carousel-controls {
        position: relative;
        bottom: auto;
        right: auto;
        justify-content: center;
        padding: 1rem 0;
        gap: 0.75rem;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .carousel-dots {
        padding: 0.4rem 0.75rem;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-index-container {
        padding: 1.5rem 0 3rem;
    }

    .blog-index-container .container {
        padding: 0 1rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        min-height: 200px;
        max-height: 250px;
    }
    
    .featured-content {
        padding: 1.25rem;
    }
    
    .featured-title {
        font-size: 22px;
        margin-bottom: 0.75rem;
    }
    
    .featured-description {
        font-size: 14px;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .latest-blogs-section {
        padding: 3rem 0;
        margin-top: 2rem;
    }
    
    .category-blog-section {
        margin-bottom: 3rem;
    }
    
    .category-section-title {
        font-size: 20px;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .featured-title {
        font-size: 20px;
    }
    
    .featured-content {
        padding: 1rem;
    }
    
    .featured-image {
        min-height: 180px;
        max-height: 220px;
    }
    
    .featured-author {
        margin-bottom: 0.75rem;
    }
    
    .author-avatar-small {
        width: 32px;
        height: 32px;
    }
    
    .author-name-small {
        font-size: 12px;
    }
    
    .publish-date-small {
        font-size: 11px;
    }
    
    .read-more-link {
        font-size: 14px;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0.5rem;
        font-size: 12px;
    }
    
    .carousel-controls {
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    
    .carousel-dots {
        padding: 0.3rem 0.5rem;
        gap: 0.4rem;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .carousel-dot.active {
        width: 10px;
        height: 10px;
    }
}

