/*--------------------------------------------------------------
# 1. Main Content Sections & Components
--------------------------------------------------------------*/
.info-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.info-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.info-card__label {
    display: block;
    font-size: 12px;
    color: var(--color-secondary);
    margin-bottom: 4px;
}
.info-card__value {
    display: block;
    font-weight: bold;
    font-size: 16px;
    color: var(--color-dark);
}
.info-card__meta {
    display: block;
    font-size: 10px;
    color: var(--color-secondary);
    margin-top: 4px;
    height: 12px;
}

.content-section {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 24px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px; 
    border-bottom: 1px solid #e0e0e0;
}
.section-title {
    margin: 0;
    font-size: 24px;
}
.section-toggle-btn {
    background-color: var(--color-light);
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    line-height: 25px;
}

.celebrity-page-wrapper .section-title,
.celebrity-page-wrapper .table-subtitle,
.celebrity-page-wrapper .data-table th, 
.celebrity-page-wrapper .data-table td strong {
    font-family: var(--font-secondary);
    font-weight: 600;
}

.section-content { padding: 24px; }
.section-content.is-always-visible { border-bottom: 1px solid #e0e0e0; }
.content-section:last-of-type .section-content.is-always-visible { border-bottom: none; }
.section-content-collapsible {
    display: none;
    padding: 24px;
}
.section-description {
    padding: 0 24px 16px;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: var(--color-secondary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-family: var(--font-primary);
    font-size: 16px;
}
.data-table th, .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}
.data-table th, .data-table td strong {
    font-family: var(--font-secondary);
    font-weight: 800;
}
.data-table th {
    background-color: var(--color-light);
}
.table-image {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}
.table-image.is-circle {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
}
.table-subtitle {
    margin-top: 24px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}
.table-subtitle:first-child { margin-top: 0; }
.graph-placeholder {
    background-color: var(--color-light);
    border: 1px dashed #ccc;
    padding: 40px;
    text-align: center;
    margin-top: 16px;
    border-radius: 8px;
}

/* --- Professional Gallery Styles --- */
.photo-gallery-grid {
    display: grid;
    gap: 16px;
    /* Mobile-first: 3 columns by default */
    grid-template-columns: repeat(3, 1fr);
}

/* Media Query for tablets and desktops (screens wider than 768px) */
@media (min-width: 768px) {
    .photo-gallery-grid {
        /* 4 columns for larger screens */
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
}
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item::before {
    content: '\f00e'; /* Make sure you have Font Awesome linked */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: #fff;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}
.gallery-item:hover::after,
.gallery-item:hover::before {
    opacity: 1;
}
.gallery-item:hover::before {
    transform: translate(-50%, -50%) scale(1);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Professional FAQ Styles --- */
.content-section-transparent { margin-bottom: 24px; }
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
}
.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: color 0.2s ease;
}
.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
}
.faq-question.is-active {
    color: var(--color-brand);
}
.faq-question.is-active .faq-icon {
    background-color: var(--color-brand);
    color: #fff;
    border-color: var(--color-brand);
    transform: rotate(180deg);
}
.faq-answer {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid #e9ecef;
    color: #555;
    line-height: 1.7;
}
.faq-answer p { margin: 0; padding-top: 16px; }

/* --- Net Worth Graph --- */
.graph-container {
    position: relative;
    height: 300px;
    margin-top: 24px;
}

/* --- FINAL & CORRECTED STYLING WITH STRETCHED-LINK --- */
.related-carousel-section .swiper {
    padding: 10px 5px;
    margin: 0 -5px;
}

.related-carousel-section .swiper-slide {
    height: auto;
}

.related-card {
    position: relative; /* This is crucial for the stretched link */
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.related-card-image {
    aspect-ratio: 1 / 1;
    background-color: #f8f9fa;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-info {
    padding: 15px 10px;
    text-align: center;
    min-height: 75px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-card-name {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
}

.related-card-name a {
    color: var(--color-dark);
    text-decoration: none;
}

/* ==========================================================================
   Filmography & Discography Sections
   ========================================================================== */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    padding-top: 15px;
}

.media-item-card {
    background-color: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.media-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.media-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.media-item-poster {
    width: 100%;
    aspect-ratio: 2 / 3; /* Classic movie poster aspect ratio */
    background-color: #e9e9e9;
}

.media-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-item-details {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.media-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.1;
    color: #111;
}

.media-item-meta {
    font-size: 0.55rem;
    color: #555;
    margin: 0;
    line-height: 1.1;
}

.media-item-year {
    display: block;
}

.media-item-role {
    display: block;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }

    .media-item-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* This is the magic for the stretched link */
.related-card__stretched-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1; /* Makes the entire card area clickable */
}

.related-card-meta {
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-secondary);
    position: relative; /* To ensure it's clickable */
    z-index: 2; /* To put it "above" the stretched link so its own links work */
}

.related-card-meta a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
}

.related-card-meta a:hover {
    text-decoration: underline;
    color: var(--color-brand);
}

.entry-meta-dates {
    font-size: 0.6rem;
    color: #52525b; 
    padding-block-start: 10px;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    font-style: italic;
}
.entry-meta-dates .separator {
    margin: 0 8px;
    color: #d4d4d8;
}
.entry-meta-dates strong {
    color: #18181b; /* Make the 'Last updated' text slightly darker */
}

/* Styling for Swiper Navigation Arrows */
.related-carousel-section .swiper-button-next,
.related-carousel-section .swiper-button-prev {
    color: var(--color-brand);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    top: 35%;
}
.related-carousel-section .swiper-button-next::after,
.related-carousel-section .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}
@media (max-width: 767px) {
    .related-carousel-section .swiper-button-next,
    .related-carousel-section .swiper-button-prev {
        display: none;
    }
}

/* ==========================================================================
   Trivia Box Styling (Favorites Section)
   ========================================================================== */

.trivia-box {
    background-color: #f8f9fa; 
    border-left: 5px solid #ff396a;
    padding: 25px 30px;
    margin-top: 10px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.trivia-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem; /* Slightly larger for emphasis */
    font-weight: 700;
    color: #1d2327;
    margin-top: 0;
    margin-bottom: 20px;
}

.trivia-icon {
    font-size: 2rem; /* Larger, more prominent icon */
    margin-right: 15px;
    line-height: 1; /* Prevents extra vertical space */
    color: #f0b400; /* A warm yellow for the lightbulb */
}

.trivia-ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.trivia-ul li {
    padding-left: 30px; /* Indent the text to align with the custom bullet */
    position: relative;
    font-size: 1rem;
    line-height: 1.7; /* More readable line spacing */
    color: #3c434a;
}

.trivia-ul li:not(:last-child) {
    margin-bottom: 12px; /* Space between list items */
}

/* Custom bullet point for a cleaner look */
.trivia-ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 1px;
    color: #ff396a; /* Matches the border color for consistency */
    font-weight: bold;
    font-size: 1.1rem;
}

/* ==========================================================================
   Favorites & Trivia Table Link Styling
   ========================================================================== */

/* 
 * Target links specifically inside the favorites section's data table.
 * This high-specificity selector ensures our styles override browser defaults.
*/
.content-section#favorites .data-table a {
    color: #ff396a; /* Aapka brand color */
    text-decoration: none; /* Underline ko hatata hai */
    font-weight: 600; /* Link ko thora sa prominent banata hai */
    transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out; /* Smooth hover effect */
}

/* 
 * Style for visited links to ensure they also use the brand color,
 * overriding the default purple.
*/
.content-section#favorites .data-table a:visited {
    color: #ff396a;
}

/* 
 * Add a hover effect for better user experience.
 * The underline appears on hover, which is a modern and accessible practice.
*/
.content-section#favorites .data-table a:hover,
.content-section#favorites .data-table a:focus {
    color: #e02b57; /* Hover par thora sa gehra color */
    text-decoration: underline; /* Hover par underline wapas dikhata hai */
}

/* ============================================================
   PROFESSIONAL TABLE OF CONTENTS (TOC) STYLING - 2026
   ============================================================ */

.pg-toc-section .section-header {
    cursor: pointer; /* Poore header ko clickable banata hai */
}

.pg-toc-section .section-content-collapsible {
    padding: 10px 24px 24px 24px; /* Top padding kam ki gayi hai */
}

.pg-toc-list,
.pg-toc-list ol {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
    counter-reset: toc-counter;
}

.pg-toc-list > li {
    counter-increment: toc-counter; /* Main items ka number barhata hai */
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
}

.pg-toc-list > li::before {
    content: counter(toc-counter) ". "; /* Number display karta hai (e.g., "1. ") */
    color: var(--color-brand, #ff396a);
    font-weight: 700;
}

.pg-toc-list ol {
    padding-left: 30px; /* Sub-items ko aage karta hai */
    margin-top: 10px;
    list-style-type: lower-alpha; /* Sub-items ke liye a, b, c istemal karta hai */
}

.pg-toc-list ol li {
    margin-bottom: 8px;
    font-weight: 400;
    color: #555;
}

.pg-toc-list a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.pg-toc-list a:hover {
    color: var(--color-brand, #ff396a);
    text-decoration: underline;
}

/* ============================================================
   TRIVIA BOX STYLING (NEW PROFESSIONAL LOOK)
   ============================================================ */

/* Main container for the trivia content */
.trivia-box {
    background-color: #f8f9fa; /* Light grey background */
    border-left: 4px solid #ff396a; /* Brand color border */
    padding: 25px 30px;
    margin-top: 10px;
    border-radius: 0 8px 8px 0;
}

/* The list itself */
.trivia-box .trivia-list {
    list-style-type: none; /* Default black dots hatayein */
    padding-left: 0;
    margin: 0;
}

/* Each fact/point in the list */
.trivia-box .trivia-list li {
    padding-left: 30px; /* Custom bullet ke liye jagah banayein */
    position: relative;
    font-size: 16px;
    line-height: 1.7;
    color: #3c434a; /* Dark grey text for readability */
}

/* Spacing between facts */
.trivia-box .trivia-list li:not(:last-child) {
    margin-bottom: 15px;
}

/* The custom bullet point (check mark) */
.trivia-box .trivia-list li::before {
    content: '✓'; /* Checkmark icon */
    position: absolute;
    left: 0;
    top: 1px;
    color: #ff396a; /* Brand color */
    font-weight: bold;
    font-size: 18px;
}

/* Styling for links inside the trivia box */
.trivia-box .trivia-list li a {
    color: #ff396a;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #ffdde5;
}

.trivia-box .trivia-list li a:hover {
    border-bottom-color: #ff396a;
}

/* ============================================================
   CONTENT PARAGRAPH LINK STYLING (COMPETITOR LINKS)
   ============================================================ */

/* Target links inside the main paragraph areas of any content section */
.content-section .is-always-visible p a,
.content-section .section-content-collapsible p a {
    color: #ff396a;             /* Aapka brand color */
    text-decoration: none;      /* Underline ko hamesha ke liye hatata hai */
    border-bottom: none;        /* Agar border-bottom se underline aa raha hai, to usay bhi hatayein */
    font-weight: 600;           /* Link ko thora sa prominent banata hai */
    transition: color 0.2s ease; /* Hover par color change smooth hoga */
}

/* Ensure visited links also use the brand color */
.content-section .is-always-visible p a:visited,
.content-section .section-content-collapsible p a:visited {
    color: #ff396a;
}

/* Hover state: No underline, and color remains the same */
.content-section .is-always-visible p a:hover,
.content-section .section-content-collapsible p a:hover {
    color: #ff396a; /* Hover par color change na ho */
    text-decoration: none; /* Ensure no underline appears on hover */
}

/* ============================================================
   TYPOGRAPHY READABILITY FIX
   ============================================================ */

/* General Paragraphs */
.section-content p,
.section-content-collapsible p {
    font-size: 17px;
    line-height: 1.6;
    color: #333; /* Thora darker text */
}

/* FAQ Styling */
.faq-question {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 16px;
}

.faq-answer {
    font-size: 16px;
    line-height: 1.7;
}

/* ============================================================
   DISCLOSURE BOX STYLING (NO JAVASCRIPT)
   ============================================================ */

.pg-disclaimer-box-wrapper {
    margin: 40px 0 20px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pg-disclaimer-details {
    background-color: #f8f9fa; /* Light grey background */
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.pg-disclaimer-summary {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    outline: none; /* Click par aane wala border hatayega */
    transition: background-color 0.2s ease;
}

.pg-disclaimer-summary::-webkit-details-marker {
    display: none; /* Default arrow ko Chrome/Safari mein hatayega */
}

.pg-disclaimer-summary:hover {
    background-color: #f1f5f9;
}

.summary-icon {
    font-size: 16px;
    color: #6c757d;
    margin-right: 12px;
}

.summary-text {
    font-size: 15px;
    font-weight: 600;
    color: #343a40;
}

/* Custom Arrow Icon */
.summary-arrow {
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-style: solid;
    border-color: #6c757d;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* Jab box khula ho */
.pg-disclaimer-details[open] > .pg-disclaimer-summary {
    border-bottom: 1px solid #e9ecef;
}

.pg-disclaimer-details[open] .summary-arrow {
    transform: rotate(-135deg);
    margin-top: -5px;
}

/* Disclaimer ka content */
.pg-disclaimer-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
}
.pg-disclaimer-content p {
    margin: 0;
}
.pg-disclaimer-content strong {
    color: #1e293b;
}

/* ============================================================
   MOBILE TYPOGRAPHY ADJUSTMENTS
   ============================================================ */

/* Yeh rules sirf tab apply honge jab screen size 768px se kam ho (Mobile/Tablet) */
@media (max-width: 768px) {

    /* 1. Global Headings (H1, H2, H3) Adjustments */
    h1 {
        font-size: 24px; /* Desktop par bada hota hai, mobile par 24px theek hai */
        line-height: 1.3;
    }

    h2 {
        font-size: 22px; /* H2 thora chhota */
        line-height: 1.3;
    }

    h3 {
        font-size: 19px; /* H3 usse chhota */
        line-height: 1.4;
    }

    /* 2. Section Titles (Jo box ke upar likha hota hai) */
    .section-title {
        font-size: 18px; /* Aapne desktop par 20px rakha tha */
    }

    /* 3. Paragraph Text (Body Content) */
    /* Mobile par 18px bohot bada lagta hai, 16px standard hai */
    .section-content p,
    .section-content-collapsible p,
    .pg-disclaimer-content {
        font-size: 16px; 
        line-height: 1.6; /* Thora gap kam kiya taaki text bikhra na lage */
    }

    /* 4. Data Tables (Table ka text) */
    /* Table mobile par toot sakti hai agar font bada ho */
    .data-table {
        font-size: 13px; 
    }
    
    .data-table th, 
    .data-table td {
        padding: 10px 8px; /* Padding kam ki taaki content fit aaye */
    }

    /* 5. FAQ Questions */
    .faq-question {
        font-size: 15px; /* Sawal ka font size adjust kiya */
        padding: 12px 15px;
    }

    /* 6. Info Cards (Top grid boxes) */
    .info-card__value {
        font-size: 16px; /* Numbers ko thora chhota kiya */
    }
    
    .info-card__label {
        font-size: 11px;
    }
}

/* --- TOC SPECIFIC FIX --- */
.pg-toc-container {
    height: auto !important;
    min-height: 0 !important;
    display: block !important; /* Flexbox hatane ke liye */
    padding-bottom: 0 !important;
}

.pg-toc-content {
    display: none; /* Default hidden */
}

/* Jab open ho tabhi display block ho */
.pg-toc-container.is-open .pg-toc-content {
    display: block;
}