/*
Theme Name: Celebrity Bio
Theme URI: https://celebrity-bio.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: A modern, beautiful theme for celebrity biographies with advanced UI/UX design. Features custom post types, beautiful layouts, and seamless content management.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: celebrity-bio
Tags: biography, celebrity, modern, responsive, custom-post-type
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100%;
    position: relative;
}

/* Header Styles - Minimal & Clean */
.site-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    transform: translateY(0);
    border-bottom: 1px solid #f3f4f6;
}

.site-header.header-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.main-navigation a:hover {
    color: var(--primary-color);
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.search-button {
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background: var(--primary-dark);
}

/* Main Content - Minimal & Clean */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    overflow: visible;
    min-height: 50vh;
    background: #fff;
}

/* Hero Slider - Minimal & Clean with Neutral Colors */
.hero-slider {
    margin-bottom: 4rem;
    margin-left: calc(-1 * var(--container-padding, 2rem));
    margin-right: calc(-1 * var(--container-padding, 2rem));
    width: calc(100% + var(--container-padding, 2rem) * 2);
    border-radius: 0;
    overflow: visible;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    height: 440px;
    overflow: hidden;
    min-height: 360px;
    margin: 0 auto;
    padding: 0 50px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-wrapper {
    display: grid;
    grid-template-columns: minmax(300px, 400px) 1fr;
    height: 100%;
    width: 100%;
}

.slide-image-section {
    position: relative;
    overflow: visible;
    height: 100%;
    max-width: 400px;
}

@media (min-width: 1024px) {
    .slide-wrapper {
        grid-template-columns: minmax(320px, 420px) 1fr;
    }
    
    .slide-image-section {
        max-width: 420px;
    }
}

@media (min-width: 1440px) {
    .slide-wrapper {
        grid-template-columns: minmax(350px, 450px) 1fr;
    }
    
    .slide-image-section {
        max-width: 450px;
    }
}

.slide-image-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 120px;
    height: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 3;
    pointer-events: none;
    mask: none;
    -webkit-mask: none;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    transition: transform 10s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slider-slide.active .slide-bg-image {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.slide-content-section {
    position: relative;
    background: linear-gradient(
        to right,
        rgba(248, 249, 250, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 20%,
        #ffffff 100%
    );
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 2;
}

.slide-content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 120px;
    height: 100%;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
    pointer-events: none;
    mask: linear-gradient(to left, transparent 0%, black 40%, black 60%, transparent 100%);
    -webkit-mask: linear-gradient(to left, transparent 0%, black 40%, black 60%, transparent 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 2rem 2.5rem;
    padding-bottom: 4rem;
    width: 100%;
    max-width: 100%;
}

.slide-inner {
    max-width: 100%;
    color: white;
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-category {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #f8f9fa;
    color: var(--cs-charcoal, #1F2937);
    border-radius: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-category:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: none;
}

.slide-title a {
    color: var(--cs-charcoal, #1F2937);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    text-shadow: none;
}

.slide-title a:hover {
    color: var(--cs-orange, #F97316);
    transform: translateX(6px);
}

.slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.slide-meta .meta-item {
    font-size: 0.875rem;
    color: var(--cs-charcoal, #1F2937);
    background: #f8f9fa;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    direction: ltr;
    min-height: 2.5rem;
    height: auto;
    line-height: 1.4;
}

.slide-meta .meta-item:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.slide-excerpt {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    color: #4b5563;
    font-weight: 400;
    max-width: 90%;
}

.slide-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--cs-orange, #F97316);
    color: white;
    text-decoration: none;
    border-radius: 0.625rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(249, 115, 22, 0.25);
    border: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.slide-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.slide-button:hover::before {
    left: 100%;
}

.slide-button:hover {
    background: var(--cs-red, #DC2626);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.slide-button:active {
    transform: translateY(-1px);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 0.5rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: var(--cs-charcoal, #1F2937);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    outline: none;
    overflow: hidden;
    box-sizing: border-box;
}

.slider-nav:hover {
    background: var(--cs-orange, #F97316);
    border-color: var(--cs-orange, #F97316);
    color: #ffffff;
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.slider-nav:active {
    transform: translateY(-50%) scale(1.05);
}

.slider-nav:focus {
    outline: 2px solid var(--cs-orange, #F97316);
    outline-offset: 2px;
}

.slider-prev {
    left: 10px;
    z-index: 20;
}

.slider-next {
    right: 10px;
    z-index: 20;
}

.slider-nav svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.slider-nav svg path {
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.slider-nav:hover svg {
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
    display: none !important;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    outline: none;
    position: relative;
}

.slider-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.2);
    transition: transform 0.3s ease;
}

.slider-dot:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.slider-dot:hover,
.slider-dot.active {
    background: var(--cs-orange, #F97316);
    border-color: var(--cs-orange, #F97316);
    transform: scale(1.3);
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.4);
}

.slider-dot:focus {
    outline: 2px solid var(--cs-orange, #F97316);
    outline-offset: 2px;
}

/* Fallback Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 5rem 2rem;
    border-radius: 1.5rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.375rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.title-icon {
    font-size: 1.75rem;
}

.all-biographies-section {
    margin-top: 4rem;
}

/* Movies & Shows Section */
.movies-shows-section {
    margin-top: 4rem;
}

.movies-shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.movie-show-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid #e5e7eb;
    position: relative;
}

.movie-show-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-show-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #8b5cf6;
}

.movie-show-card:hover::before {
    opacity: 1;
}

.movie-show-card .card-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    height: 400px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
}

.movie-show-card-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 400px;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    background: var(--bg-light);
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-show-card:hover .movie-show-card-image {
    transform: scale(1.1);
}

.movie-show-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(139, 92, 246, 0.9) 0%, rgba(236, 72, 153, 0.7) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
}

.movie-show-card:hover .card-overlay {
    opacity: 1;
}

.movie-show-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid #f3f4f6;
}

.movie-show-card-title {
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.movie-show-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-show-card-title a:hover {
    color: #8b5cf6;
}

.movie-show-card-excerpt {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.movie-show-card .card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
    padding-top: 0;
}

.movie-show-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    border: none;
}

.movie-show-card-link:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    color: white;
}

/* Featured Section */
.featured-section {
    margin-bottom: 4rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.featured-card {
    background: var(--bg-white);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.25);
}

.featured-image-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    height: 280px;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-card:hover .featured-image {
    transform: scale(1.1);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(99, 102, 241, 0.9) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-card:hover .featured-overlay {
    opacity: 1;
}

.read-more {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.featured-content {
    padding: 1.75rem;
}

.featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: var(--primary-color);
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.featured-meta .meta-item {
    font-size: 0.875rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.featured-excerpt {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.featured-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    color: white;
}

/* Biography Grid */
.biography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.biography-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #f3f4f6;
}

.biography-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #e5e7eb;
}

.card-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    height: 280px;
}

.biography-card-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 280px;
    max-height: 280px;
    object-fit: cover;
    object-position: center;
    background: var(--bg-light);
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.biography-card a:not(.card-image-link) .biography-card-image {
    height: 280px !important;
    max-height: 280px !important;
    object-fit: cover;
    object-position: center;
}

.biography-card:hover .biography-card-image {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(31, 41, 55, 0.85) 0%, rgba(31, 41, 55, 0.6) 30%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.biography-card:hover .card-overlay {
    opacity: 1;
}

.card-hover-meta {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    max-width: 100%;
    padding: 0 0.75rem 0.75rem 0.75rem;
}

.hover-meta-item {
    display: inline-block;
    color: white;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    white-space: normal;
    line-height: 1.3;
    word-wrap: break-word;
    max-width: 100%;
    text-align: left;
    width: auto;
}

.hover-meta-item:first-child {
    white-space: nowrap;
}

.hover-meta-item:last-child {
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    width: auto;
    box-sizing: border-box;
}

.biography-card:hover .hover-meta-item {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.biography-card-image[width],
.biography-card-image[height],
.biography-card-image[style*="width"],
.biography-card-image[style*="height"] {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 280px;
    object-fit: cover;
}

.biography-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.biography-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.biography-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.biography-card-title a:hover {
    color: var(--primary-color);
}


.biography-card-excerpt {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.biography-card-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    color: var(--cs-orange, #F97316);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.biography-card-category:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--cs-red, #DC2626);
}

/* Related Biographies Section */
.related-biographies-section {
    margin: 60px 0 40px 0;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.related-section-heading {
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-icon {
    font-size: 32px;
}

.related-biographies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.related-biography-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.related-biography-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #6366f1;
}

.related-biography-card .card-image-link {
    position: relative;
    display: block;
    overflow: hidden;
    height: 280px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
}

.related-biography-card .biography-card-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 280px;
    max-height: 280px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-biography-card:hover .biography-card-image {
    transform: scale(1.1);
}

.related-biography-card .biography-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-biography-card .biography-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1F2937;
}

.related-biography-card .biography-card-title a {
    color: #1F2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-biography-card .biography-card-title a:hover {
    color: #6366f1;
}

.related-biography-card .biography-card-excerpt {
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.related-biography-card .card-footer {
    margin-top: auto;
    padding-top: 0;
}

/* Responsive adjustments for related biographies */
@media (max-width: 768px) {
    .related-biographies-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .related-section-heading {
        font-size: 24px;
    }
    
    .related-biography-card .card-image-link {
        height: 240px;
    }
    
    .related-biography-card .biography-card-image {
        min-height: 240px;
        max-height: 240px;
    }
}

@media (max-width: 480px) {
    .related-biographies-grid {
        grid-template-columns: 1fr;
    }
}

/* Single Biography Page - Minimal & Clean */
.single-biography {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: visible;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f3f4f6;
}

.single-biography:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.biography-header {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 2rem;
    margin-bottom: 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    align-items: start;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .biography-header {
        grid-template-columns: 400px 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .biography-featured-image {
        height: auto !important;
        min-height: 400px;
        max-height: 500px;
    }
    
    .biography-featured-image[width],
    .biography-featured-image[height],
    .biography-featured-image[style*="width"],
    .biography-featured-image[style*="height"] {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 400px;
        max-height: 500px;
    }
}

@media (max-width: 900px) {
    .biography-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .biography-image-wrapper {
        position: relative;
        top: 0;
    }
    
    .biography-featured-image {
        height: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: 350px;
        max-height: 450px;
    }
    
    .biography-featured-image[width],
    .biography-featured-image[height],
    .biography-featured-image[style*="width"],
    .biography-featured-image[style*="height"] {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 350px;
        max-height: 450px;
    }
}

.biography-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .site-main {
        padding: 1rem;
    }
    
    .biography-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .biography-header::before {
        display: none;
    }
    
    .biography-image-wrapper {
        position: relative;
        top: 0;
        width: 100%;
    }
    
    .biography-meta {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .biography-content {
        padding: 1.5rem 1rem;
    }
    
    .single-biography {
        border-radius: 1rem;
    }
    
    .biography-featured-image {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 300px;
        max-height: 400px;
    }
    
    .biography-featured-image[width],
    .biography-featured-image[height],
    .biography-featured-image[style*="width"],
    .biography-featured-image[style*="height"] {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 300px;
        max-height: 400px;
    }
    
    .biography-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .biography-personal-life,
    .biography-relationships,
    .biography-family {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .personal-life-grid,
    .family-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .meta-item {
        padding: 0.875rem 1rem;
        min-height: auto;
    }
    
    .biography-content img {
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0.75rem 0 0.375rem 0;
    }
    
    .biography-content img + p,
    .biography-content img + div {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
}

.biography-image-wrapper {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.biography-featured-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 400px;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 5px solid white;
    position: relative;
    z-index: 1;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
}

/* Override inline styles for featured image */
.biography-featured-image[style*="width"],
.biography-featured-image[style*="height"],
.biography-featured-image[width],
.biography-featured-image[height] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 400px;
    max-height: 600px;
}

.biography-featured-image:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 40px 100px rgba(99, 102, 241, 0.25), 0 15px 35px rgba(0, 0, 0, 0.2);
}

.biography-title {
    font-size: 35px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #1e293b;
    line-height: 1.15;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #1e293b 0%, var(--primary-color) 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .biography-title {
        font-size: 2rem;
    }
}

.biography-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.875rem;
    margin-top: 1rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    position: relative;
    z-index: 1;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    color: #334155;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 70px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.meta-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleY(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.meta-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
}

.meta-item:hover::before {
    transform: scaleY(1);
}

.meta-item strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.25rem;
    display: block;
}

.meta-item span,
.meta-item {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

.biography-header-content {
    display: flex;
    flex-direction: column;
}

.biography-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Social Media Icons in Header */
.biography-social-media-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0.25rem 0;
}

.social-link-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
}

.social-link-header:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-link-header.instagram {
    color: #E4405F;
}

.social-link-header.instagram:hover {
    background: #E4405F;
    color: white;
    border-color: #E4405F;
}

.social-link-header.facebook {
    color: #1877F2;
}

.social-link-header.facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.social-link-header.twitter {
    color: #1DA1F2;
}

.social-link-header.twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.social-link-header.linkedin {
    color: #0A66C2;
}

.social-link-header.linkedin:hover {
    background: #0A66C2;
    color: white;
    border-color: #0A66C2;
}

.social-link-header.youtube {
    color: #FF0000;
}

.social-link-header.youtube:hover {
    background: #FF0000;
    color: white;
    border-color: #FF0000;
}

.social-link-header svg {
    width: 20px;
    height: 20px;
}

.biography-content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #334155;
    padding: 2rem;
    background: white;
    text-align: left !important;
    max-width: 100%;
}

.biography-content * {
    text-align: left !important;
}

.biography-content h1,
.biography-content h2,
.biography-content h3,
.biography-content h4,
.biography-content h5,
.biography-content h6 {
    text-align: left !important;
}

.biography-content > *:first-child {
    margin-top: 0;
}

.biography-content h2 {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: #1e293b;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    letter-spacing: -0.01em;
    text-align: left !important;
}

.biography-content h2:first-of-type {
    margin-top: 0;
}

.biography-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: #1e293b;
    letter-spacing: -0.01em;
    text-align: left !important;
}

.biography-content h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: #334155;
    text-align: left !important;
}

.biography-content p {
    margin-bottom: 0.875rem;
    line-height: 1.65;
    color: #475569;
    font-size: 1rem;
    text-align: left !important;
}

.biography-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0.625rem;
    margin: 1rem 0 0.5rem 0;
    display: block;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .biography-content img {
        max-width: 800px !important;
    }
}

@media (min-width: 1440px) {
    .biography-content img {
        max-width: 900px !important;
    }
}

/* Override inline styles for content images */
.biography-content img[style*="width"],
.biography-content img[style*="height"] {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

@media (min-width: 1024px) {
    .biography-content img[style*="width"],
    .biography-content img[style*="height"] {
        max-width: 800px !important;
    }
}

@media (min-width: 1440px) {
    .biography-content img[style*="width"],
    .biography-content img[style*="height"] {
        max-width: 900px !important;
    }
}

.biography-content img:hover {
    transform: scale(1.01);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

/* Ensure all images are responsive - GLOBAL RULE */
img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
}

/* Override any inline width/height attributes */
img[width],
img[height] {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

/* Responsive images in all contexts */
.biography-content img,
.biography-content figure img,
.biography-content picture img,
.biography-content video,
.biography-content img[width],
.biography-content img[height] {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .biography-content img,
    .biography-content figure img,
    .biography-content picture img,
    .biography-content video,
    .biography-content img[width],
    .biography-content img[height] {
        max-width: 800px !important;
    }
}

@media (min-width: 1440px) {
    .biography-content img,
    .biography-content figure img,
    .biography-content picture img,
    .biography-content video,
    .biography-content img[width],
    .biography-content img[height] {
        max-width: 900px !important;
    }
}

/* Featured image responsive */
.biography-featured-image,
.biography-featured-image[width],
.biography-featured-image[height] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

/* Card images responsive */
.biography-card-image,
.biography-card-image[width],
.biography-card-image[height] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* Image wrapper to ensure responsiveness */
.biography-image-wrapper {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

.biography-image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* Style paragraphs that immediately follow images as captions */
.biography-content img + p {
    margin-top: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 0 1rem;
}

/* Also handle divs that might contain caption text after images */
.biography-content img + div {
    margin-top: 0.375rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 0 1rem;
}

.biography-content figure {
    margin: 1rem 0;
    text-align: left;
    max-width: 100% !important;
    width: 100% !important;
}

.biography-content figure img {
    margin: 0;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

.biography-content figure img[width],
.biography-content figure img[height],
.biography-content figure img[style*="width"],
.biography-content figure img[style*="height"] {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

@media (min-width: 1024px) {
    .biography-content figure img,
    .biography-content figure img[width],
    .biography-content figure img[height],
    .biography-content figure img[style*="width"],
    .biography-content figure img[style*="height"] {
        max-width: 800px !important;
        width: auto !important;
    }
}

@media (min-width: 1440px) {
    .biography-content figure img,
    .biography-content figure img[width],
    .biography-content figure img[height],
    .biography-content figure img[style*="width"],
    .biography-content figure img[style*="height"] {
        max-width: 900px !important;
        width: auto !important;
    }
}

.biography-content figcaption {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 0 1rem;
}

/* Twitter Embed Styling - Control emoji/image sizes */
.twitter-embed-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 25px auto;
    display: block;
    overflow: hidden;
}

.twitter-embed-wrapper blockquote.twitter-tweet {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 1rem;
    border-left: 4px solid #1DA1F2;
    background: #f8fafc;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Limit ALL images in Twitter embeds - prevent large emojis/graphics */
.twitter-embed-wrapper blockquote.twitter-tweet img,
.twitter-embed-wrapper blockquote.twitter-tweet svg,
.twitter-embed-wrapper blockquote.twitter-tweet picture,
.twitter-embed-wrapper blockquote.twitter-tweet img[style*="width"],
.twitter-embed-wrapper blockquote.twitter-tweet img[style*="height"] {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 150px !important;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* Specifically target large emoji/graphic images - limit to reasonable size */
.twitter-embed-wrapper blockquote.twitter-tweet p img,
.twitter-embed-wrapper blockquote.twitter-tweet div img,
.twitter-embed-wrapper blockquote.twitter-tweet a img {
    max-width: 120px !important;
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
}

/* Limit emoji size in Twitter embeds - very aggressive */
.twitter-embed-wrapper blockquote.twitter-tweet .emoji,
.twitter-embed-wrapper blockquote.twitter-tweet img[alt*="emoji"],
.twitter-embed-wrapper blockquote.twitter-tweet img[src*="emoji"],
.twitter-embed-wrapper blockquote.twitter-tweet img[alt*="clap"],
.twitter-embed-wrapper blockquote.twitter-tweet img[alt*="hands"] {
    max-width: 48px !important;
    max-height: 48px !important;
    width: 48px !important;
    height: 48px !important;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive video embeds */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 95%;
    width: 100%;
    margin: 25px auto;
    display: block;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    max-width: 100%;
    max-height: 100%;
}

/* Modern Table Styling */
.biography-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    display: table;
}

@media (max-width: 768px) {
    .biography-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.biography-content table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: white;
}

.biography-content table th {
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.biography-content table th:first-child {
    border-top-left-radius: 1rem;
}

.biography-content table th:last-child {
    border-top-right-radius: 1rem;
}

@media (max-width: 768px) {
    .biography-content table th {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

.biography-content table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
    word-wrap: break-word;
    color: #475569;
    font-size: 0.9375rem;
}

.biography-content table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 1rem;
}

.biography-content table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 1rem;
}

@media (max-width: 768px) {
    .biography-content table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

.biography-content table tbody tr {
    transition: background-color 0.2s ease;
}

.biography-content table tbody tr:hover {
    background-color: #f9fafb;
}

.biography-content table tbody tr:last-child td {
    border-bottom: none;
}

.biography-content table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.biography-content table tbody tr:nth-child(even):hover {
    background-color: #f1f5f9;
}

/* Style first column cells that look like headers */
.biography-content table td:first-child strong,
.biography-content table td:first-child b {
    color: var(--primary-color);
    font-weight: 600;
}

/* Modern List Styling */
.biography-content ul,
.biography-content ol,
.biography-content .entry-content ul,
.biography-content .entry-content ol,
.biography-content .wp-block-list ul,
.biography-content .wp-block-list ol {
    margin: 0.875rem 0 !important;
    padding-left: 0 !important;
    line-height: 1.65;
    list-style: none !important;
    text-align: left !important;
}

.biography-content ul,
.biography-content .entry-content ul,
.biography-content .wp-block-list ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.biography-content ul li,
.biography-content .entry-content ul li,
.biography-content .wp-block-list ul li {
    position: relative !important;
    padding: 0.375rem 0 0.375rem 1.5rem !important;
    margin-bottom: 0.25rem !important;
    margin-left: 0 !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    font-size: 1rem !important;
    transition: all 0.2s ease;
    list-style: none !important;
    text-align: left !important;
}

.biography-content ul li:hover,
.biography-content .entry-content ul li:hover,
.biography-content .wp-block-list ul li:hover {
    color: #334155 !important;
    padding-left: 2rem !important;
}

.biography-content ul li::before,
.biography-content .entry-content ul li::before,
.biography-content .wp-block-list ul li::before {
    content: "▸" !important;
    position: absolute !important;
    left: 0.25rem !important;
    top: 0.375rem !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 0.8125rem !important;
    line-height: 1 !important;
    transition: all 0.2s ease;
}

.biography-content ul li:hover::before,
.biography-content .entry-content ul li:hover::before,
.biography-content .wp-block-list ul li:hover::before {
    transform: translateX(2px);
    color: #7c3aed !important;
}

.biography-content ol,
.biography-content .entry-content ol,
.biography-content .wp-block-list ol {
    counter-reset: item !important;
    list-style: none !important;
    padding-left: 0 !important;
}

.biography-content ol li,
.biography-content .entry-content ol li,
.biography-content .wp-block-list ol li {
    counter-increment: item !important;
    position: relative !important;
    padding: 0.375rem 0 0.375rem 2rem !important;
    margin-bottom: 0.25rem !important;
    margin-left: 0 !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    font-size: 1rem !important;
    transition: all 0.2s ease;
    list-style: none !important;
    text-align: left !important;
}

.biography-content ol li:hover,
.biography-content .entry-content ol li:hover,
.biography-content .wp-block-list ol li:hover {
    color: #334155 !important;
    padding-left: 2.5rem !important;
}

.biography-content ol li::before,
.biography-content .entry-content ol li::before,
.biography-content .wp-block-list ol li::before {
    content: counter(item) "." !important;
    position: absolute !important;
    left: 0.25rem !important;
    top: 0.375rem !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    line-height: 1 !important;
    min-width: 1.5rem !important;
    transition: all 0.2s ease;
}

.biography-content ol li:hover::before,
.biography-content .entry-content ol li:hover::before,
.biography-content .wp-block-list ol li:hover::before {
    color: #7c3aed !important;
    transform: scale(1.1);
}

.biography-content li,
.biography-content .entry-content li,
.biography-content .wp-block-list li {
    margin-bottom: 0.25rem !important;
}

.biography-content li strong,
.biography-content .entry-content li strong,
.biography-content .wp-block-list li strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Ensure nested lists also get styled */
.biography-content ul ul,
.biography-content ol ol,
.biography-content ul ol,
.biography-content ol ul {
    margin: 0.625rem 0 0.625rem 1.25rem !important;
}

.biography-content ul ul li,
.biography-content ol ol li,
.biography-content ul ol li,
.biography-content ol ul li {
    padding-left: 1.25rem !important;
    font-size: 0.9375rem !important;
}

/* Blockquote Styling */
.biography-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 0.875rem 1.25rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0 0.625rem 0.625rem 0;
    font-style: italic;
    color: #475569;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    text-align: left !important;
}

.biography-content blockquote::before {
    content: '"';
    position: absolute;
    left: 1.5rem;
    top: 1rem;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.biography-content blockquote p {
    margin-bottom: 0;
}

/* Links */
.biography-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.biography-content a:hover {
    border-bottom-color: var(--primary-color);
    color: #7c3aed;
}

.biography-content a:visited {
    color: #7c3aed;
}

/* Div containers */
.biography-content > div {
    margin: 0.875rem 0;
    text-align: left !important;
}

/* Section spacing */
.biography-content > *:first-child {
    margin-top: 0;
}

.biography-content > *:last-child {
    margin-bottom: 0;
}

/* Personal Life Section */
.biography-personal-life {
    margin: 2rem 0 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: 1.25rem;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.biography-personal-life::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 1.5rem 0;
    color: #1e293b;
    padding-bottom: 0.625rem;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%) 1;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.personal-life-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.personal-life-item {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.personal-life-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleY(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.personal-life-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.personal-life-item:hover::before {
    transform: scaleY(1);
}

.personal-life-item.full-width {
    grid-column: 1 / -1;
}

.personal-life-item strong {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.personal-life-item span {
    display: block;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

/* Social Media Section */
.biography-social-media {
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 1rem;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-media-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: white;
    color: #475569;
    text-decoration: none;
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.social-link.instagram:hover {
    border-color: #E4405F;
    color: #E4405F;
}

.social-link.facebook:hover {
    border-color: #1877F2;
    color: #1877F2;
}

.social-link.twitter:hover {
    border-color: #1DA1F2;
    color: #1DA1F2;
}

.social-link.linkedin:hover {
    border-color: #0A66C2;
    color: #0A66C2;
}

.social-link.youtube:hover {
    border-color: #FF0000;
    color: #FF0000;
}

.social-icon {
    font-size: 1.25rem;
}

/* Relationships & More Section */
.biography-relationships {
    margin: 2rem 0 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: 1.25rem;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.biography-relationships::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.relationship-meta {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.relationship-meta-item {
    background: white;
    padding: 0.9rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    flex: 1 1 260px;
}

.relationship-meta-item strong {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.relationship-meta-item span {
    display: block;
    color: #475569;
    font-size: 1rem;
    font-weight: 600;
}

.relationships-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, min(560px, 100%)));
    gap: 1rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.relationship-card {
    background: white;
    padding: 1.25rem;
    border-radius: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.relationship-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: scaleY(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.relationship-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.relationship-card:hover::before {
    transform: scaleY(1);
}

.relationship-item {
    margin-bottom: 0.625rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #f1f5f9;
}

.relationship-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.relationship-item.full-width {
    grid-column: 1 / -1;
}

.relationship-item strong {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.relationship-item span {
    display: block;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.relationship-subtext {
    display: block;
    margin-top: 0.35rem;
    color: #94a3b8;
    font-size: 0.9375rem;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-current {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-previous {
    background: #fee2e2;
    color: #991b1b;
}

.children-info {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px solid #e2e8f0;
}

/* Family Section */
.biography-family {
    margin: 2rem 0 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border-radius: 1.25rem;
    border-left: 5px solid #10b981;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.biography-family::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.family-item {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.family-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
    transform: scaleY(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.family-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #10b981;
}

.family-item:hover::before {
    transform: scaleY(1);
}

.family-item strong {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.family-item span {
    display: block;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0.25rem;
}

.family-item .family-names {
    margin-top: 0.5rem;
    font-weight: 500;
    color: #334155;
}

/* Siblings Section */
.siblings-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
}

.siblings-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.siblings-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.sibling-card {
    background: white;
    padding: 1.125rem;
    border-radius: 0.625rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.sibling-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.sibling-relationship {
    margin-bottom: 0.5rem;
}

.sibling-relationship strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sibling-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

.sibling-description {
    font-size: 0.95rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.5;
}

/* Family Item with Image */
.family-item-with-image {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
}

.family-item-content {
    flex: 1;
}

.family-item-image {
    flex-shrink: 0;
    width: 120px;
    height: 150px;
    max-width: 120px;
    max-height: 150px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.family-item-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
}

/* Siblings Inline Display */
.siblings-inline {
    margin-top: 0.5rem;
}

.sibling-item-inline {
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.sibling-item-inline:last-child {
    margin-bottom: 0;
}

.sibling-relationship-inline {
    font-weight: 600;
    color: #7c3aed;
    margin-right: 0.5rem;
}

.sibling-name-inline {
    color: #475569;
    font-weight: 500;
}

.sibling-desc-inline {
    color: #64748b;
    font-size: 0.9em;
    font-style: italic;
    margin-left: 0.25rem;
}

/* Children Section in Relationships */
.children-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.children-content {
    flex: 1;
}

.children-content strong {
    display: block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.children-content span {
    display: block;
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.children-image {
    flex-shrink: 0;
    width: 150px;
    height: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.children-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Siblings Image */
.siblings-image {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 300px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.siblings-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .family-item-with-image {
        flex-direction: column;
    }
    
    .family-item-image {
        width: 100%;
        max-width: 200px;
        max-height: 250px;
        height: 250px;
    }
    
    .family-item-image img {
        max-width: 100%;
        max-height: 100%;
    }
    
    .children-section {
        flex-direction: column;
    }
    
    .children-image {
        width: 100%;
        max-width: 250px;
        height: 300px;
    }
    
    .siblings-image {
        max-width: 100%;
    }
}

/* Pagination */
.pagination-wrapper {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 0.625rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 500;
    font-size: 0.9375rem;
    min-width: 44px;
    text-align: center;
    border: 2px solid transparent;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.pagination .current {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.pagination .dots {
    background: transparent;
    box-shadow: none;
    cursor: default;
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .site-main {
        padding: 1.5rem;
    }
    
    .hero-slider {
        margin-bottom: 3rem;
    }
    
    .slider-container {
        height: 380px;
        min-height: 320px;
    }
    
    .slide-wrapper {
        grid-template-columns: 40% 60%;
    }
    
    .slide-content {
        padding: 1.5rem 1.75rem;
        padding-bottom: 3rem;
    }
    
    .slide-inner {
        max-width: 100%;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slider-dots {
        bottom: 0.75rem;
    }
    
    .slide-excerpt {
        font-size: 0.9375rem;
        max-width: 100%;
    }
    
    .slider-prev {
        left: -28px;
    }
    
    .slider-next {
        right: -28px;
    }
    
    .slider-container {
        padding: 0 45px;
    }
    
    .slider-prev {
        left: 5px;
    }
    
    .slider-next {
        right: 5px;
    }
    
    .slider-nav {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        box-sizing: border-box;
    }
    
    .slider-nav svg {
        width: 24px;
        height: 24px;
    }
    
    .slider-dots {
        bottom: 2rem;
        padding: 0.625rem 1rem;
    }
    
    .hero-section {
        padding: 4rem 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .biography-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .movies-shows-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 900px) {
    .slider-container {
        height: 360px;
        min-height: 300px;
    }
    
    .slide-wrapper {
        grid-template-columns: 35% 65%;
    }
    
    .slide-title {
        font-size: 1.75rem;
    }
    
    .slide-content {
        padding: 1.25rem 1.5rem;
        padding-bottom: 3rem;
    }
    
    .slide-excerpt {
        font-size: 0.9375rem;
    }
    
    .slider-container {
        padding: 0 40px;
    }
    
    .slider-prev {
        left: 5px;
    }
    
    .slider-next {
        right: 5px;
    }
    
    .slider-dots {
        bottom: 0.75rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-slider {
        margin-bottom: 3rem;
        border-radius: 1rem;
    }
    
    .slider-container {
        height: 450px;
    }
    
    .slide-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: 45% 55%;
    }
    
    .slide-image-section {
        order: 1;
    }
    
    .slide-content-section {
        order: 2;
    }
    
    .slide-content {
        padding: 1.25rem 1rem;
        align-items: flex-start;
        padding-top: 1.5rem;
        padding-bottom: 3.5rem;
    }
    
    .slider-dots {
        bottom: 0.75rem;
    }
    
    .slide-inner {
        max-width: 100%;
    }
    
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .slide-excerpt {
        font-size: 0.9375rem;
        line-height: 1.65;
        margin-bottom: 1.75rem;
        max-width: 100%;
    }
    
    .slider-nav {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        opacity: 0.85;
        box-sizing: border-box;
    }
    
    .slider-container {
        padding: 0 35px;
    }
    
    .slider-prev {
        left: 5px;
        top: 25%;
    }
    
    .slider-next {
        right: 5px;
        top: 25%;
    }
    
    .slider-dots {
        bottom: 0.75rem;
    }

    .hero-section {
        padding: 3rem 1rem;
        border-radius: 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.125rem;
    }
    
    .featured-section {
        margin-bottom: 3rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-image-wrapper {
        height: 240px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .category-filter {
        padding: 1.5rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }

    .biography-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .movies-shows-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-image-link {
        height: 240px;
    }
    
    .movie-show-card .card-image-link {
        height: 350px;
    }
    
    .movie-show-card-image {
        min-height: 350px !important;
        max-height: 350px !important;
    }
    
    .movie-show-card-content {
        padding: 1.5rem;
    }
    
    .movie-show-card-title {
        font-size: 1.25rem;
    }

    .biography-header {
        grid-template-columns: 1fr;
    }

    .biography-featured-image {
        height: 300px;
        width: 100%;
        max-width: 100%;
    }

    .single-biography {
        padding: 0;
    }
    
    .biography-content p {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    
    .biography-content h2 {
        font-size: 1.375rem;
    }
    
    .biography-content h3 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 0.75rem;
    }
    
    .hero-slider {
        margin-bottom: 2rem;
        border-radius: 0.75rem;
    }
    
    .slider-container {
        height: 450px;
        min-height: 400px;
        padding: 0 30px;
    }
    
    .slider-prev {
        left: 5px;
    }
    
    .slider-next {
        right: 5px;
    }
    
    .slide-wrapper {
        grid-template-rows: 45% 55%;
    }
    
    .slide-content {
        padding: 2rem 1.5rem;
        align-items: flex-start;
        padding-top: 3rem;
    }
    
    .slide-inner {
        max-width: 100%;
    }
    
    .slide-category {
        font-size: 0.75rem;
        padding: 0.5rem 1.125rem;
        margin-bottom: 1.25rem;
        letter-spacing: 0.06em;
    }
    
    .slide-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
        line-height: 1.15;
    }
    
    .slide-meta {
        gap: 0.625rem;
        margin-bottom: 1.25rem;
    }
    
    .slide-meta .meta-item {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
        white-space: normal;
        line-height: 1.4;
    }
    
    .slide-excerpt {
        font-size: 0.9375rem;
        line-height: 1.65;
        margin-bottom: 1.75rem;
        max-width: 100%;
    }
    
    .slide-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .slider-nav {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        opacity: 0.85;
        box-sizing: border-box;
    }
    
    .slider-prev {
        left: -16px;
    }
    
    .slider-next {
        right: -16px;
    }
    
    .slider-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .slider-dots {
        bottom: 1.25rem;
        gap: 0.625rem;
        padding: 0.5rem 0.875rem;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-dot:hover,
    .slider-dot.active {
        transform: scale(1.3);
    }

    .hero-section {
        padding: 2.5rem 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .featured-image-wrapper {
        height: 200px;
    }
    
    .featured-content {
        padding: 1.25rem;
    }
    
    .featured-title {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.375rem;
    }
    
    .category-filter {
        padding: 1.25rem;
    }
    
    .filter-label {
        font-size: 0.9375rem;
    }
    
    .card-image-link {
        height: 200px;
    }
    
    .biography-card-content {
        padding: 1.25rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-width: 40px;
    }
    
    .biography-header {
        padding: 1rem 0.75rem;
        gap: 1rem;
    }
    
    .biography-content {
        padding: 1rem 0.75rem;
    }
    
    .biography-title {
        font-size: 1.75rem;
    }
    
    .biography-featured-image {
        height: auto !important;
        border-radius: 1rem;
        border: 3px solid white;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 250px;
        max-height: 350px;
    }
    
    .biography-featured-image[width],
    .biography-featured-image[height],
    .biography-featured-image[style*="width"],
    .biography-featured-image[style*="height"] {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 250px;
        max-height: 350px;
    }
    
    .biography-personal-life,
    .biography-relationships,
    .biography-family {
        padding: 1rem 0.75rem;
        margin: 1rem 0;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .meta-item {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .personal-life-item,
    .family-item {
        padding: 0.875rem;
    }
    
    .biography-content img,
    .biography-content figure img,
    .biography-content img[width],
    .biography-content img[height],
    .biography-content img[style*="width"],
    .biography-content img[style*="height"] {
        border-radius: 0.5rem;
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }
    
    .biography-card-image {
        height: auto !important;
        min-height: 200px;
        max-height: 300px;
    }
    
    .biography-card-image[width],
    .biography-card-image[height],
    .biography-card-image[style*="width"],
    .biography-card-image[style*="height"] {
        height: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 200px;
        object-fit: cover;
    }
    
    .social-link-header {
        width: 38px;
        height: 38px;
    }
    
    .social-link-header svg {
        width: 18px;
        height: 18px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.filter-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 0.625rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.error-404 .page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.error-404 .button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    margin-top: 1rem;
    transition: var(--transition);
}

.error-404 .button:hover {
    background: var(--primary-dark);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-white);
    border-radius: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.no-results h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.no-results p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}


