/* ============================================
   PREMIUM LANDING PAGE STYLES
   ============================================ */

/* Import Google Fonts handled in HTML */

/* GENERAL UPDATES */
body {
    font-family: 'Poppins', sans-serif;
    /* Upgrade font globally */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Premium Quote Style */
/* Premium Quote Style */
.premium-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-style: italic;
    color: var(--primary-color);
    /* Saffron Text */
    position: relative;
    padding: 1rem 3rem;
    margin: 3rem auto;
    text-align: center;
    line-height: 1.6;
    max-width: 900px;
}

body.dark-mode .premium-quote {
    color: var(--primary-color);
    /* Keep Saffron in Dark Mode */
}

.premium-quote::before {
    content: "“";
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--secondary-color);
    /* Green Quotes */
    opacity: 0.8;
    /* Increased opacity for visibility */
    position: absolute;
    top: -30px;
    left: 20px;
    line-height: 1;
}

.premium-quote::after {
    content: "”";
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--secondary-color);
    /* Green Quotes */
    opacity: 0.8;
    /* Increased opacity for visibility */
    position: absolute;
    bottom: -50px;
    right: 20px;
    line-height: 1;
}


.highlight-text {
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 103, 31, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
}

.section-heading-small {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.section-heading-large {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-text);
}

body.dark-mode .section-heading-large {
    color: #ffffff;
}

/* PREMIUM HERO SECTION */
.premium-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5%;
    /* Increased side padding */
    gap: 50px;
    min-height: 85vh;
    background: linear-gradient(135deg, rgba(255, 250, 240, 1) 0%, rgba(255, 236, 179, 0.4) 100%);
    position: relative;
    overflow: hidden;
}

body.dark-mode .premium-hero {
    background: linear-gradient(135deg, #1A1A1A 0%, #0d0d0d 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-tagline {
    display: inline-block;
    background: rgba(255, 103, 31, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Increased specificity to override styles2.css */
.hero-content .hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--dark-text);
    font-family: 'Playfair Display', serif;
}

body.dark-mode .hero-content .hero-title {
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

body.dark-mode .hero-subtitle {
    color: #ffffff;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.primary-cta {
    background: var(--primary-color);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(255, 103, 31, 0.3);
    transition: transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 103, 31, 0.4);
}

.secondary-cta {
    background: transparent;
    color: var(--secondary-color);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.secondary-cta:hover {
    background: var(--secondary-color);
    color: white;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 25px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

body.dark-mode .stat-number {
    color: #ffffff;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

body.dark-mode .stat-label {
    color: #ffffff;
}

.premium-image-container {
    flex: 1;
    position: relative;
    max-width: 600px;
}

.premium-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    /* Slightly rounded */
    /* No shadow on the image itself, let it blend or use a subtle one */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
    animation: floatBadge 5s ease-in-out infinite;
}

body.dark-mode .floating-badge {
    background: var(--card-bg);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.badge-1 {
    top: 10%;
    right: -20px;
    left: auto;
    animation-delay: 1s;
}

.badge-2 {
    bottom: 25%;
    right: -20px;
    animation-delay: 2s;
}

@keyframes floatBadge {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* PROBLEM SECTION */
.problem-section {
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #fff9f0 100%);
    /* Subtle warm gradient */
    padding: 80px 20px;
}

body.dark-mode .problem-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, #121212 100%);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.problem-card {
    background: white;
    padding: 50px 35px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

body.dark-mode .problem-card {
    background: #252525;
    border-color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(255, 103, 31, 0.15);
    /* Saffron glow */
    border-color: rgba(255, 103, 31, 0.3);
}

.problem-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(255, 103, 31, 0.08);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.problem-card:hover .problem-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 103, 31, 0.15);
}

.problem-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--dark-text);
}

body.dark-mode .problem-card h4 {
    color: #FF5252;
    /* Bright Red as requested */
}

/* METHOD SECTION */
.method-section {
    background-color: #f7f9fc;
}

body.dark-mode .method-section {
    background-color: #121212;
}

.method-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.method-text {
    flex: 1;
}

.method-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    list-style: none;
    /* Removed default */
    position: relative;
    padding-left: 30px;
    color: #444;
}

body.dark-mode .method-list li {
    color: #ffffff;
}

.method-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.method-image {
    flex: 1;
}

.method-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    /* Clean look */
}

/* EXPLORE PREMIUM */
.explore-section-premium {
    background: white;
}

body.dark-mode .explore-section-premium {
    background: var(--bg-color);
}

.premium-grid-explore {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.explore-card-premium {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Very subtle */
    border: 1px solid #eee;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

body.dark-mode .explore-card-premium {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.explore-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.explore-card-premium img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    transition: transform 0.3s ease;
}

.explore-card-premium:hover img {
    transform: scale(1.1);
}

.explore-card-premium span {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 15px;
}

.highlight-card {
    background: linear-gradient(135deg, #FFF8E1, #FFFFFF);
    border-color: var(--primary-color);
}

/* COMMUNITY SECTION */
.community-section {
    display: flex;
    align-items: center;
    gap: 60px;
    /* Reverse order */
    flex-direction: row-reverse;
}

.community-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* COFFEE SECTION PREMIUM */

.coffee-section-premium {
    text-align: center;
    background: linear-gradient(135deg, #FFF8E1, #FFECB3);
    padding: 80px 20px;
    border-radius: 30px;
    margin: 40px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

body.dark-mode .coffee-section-premium {
    background: linear-gradient(135deg, #3E2723, #4E342E);
    color: #D7CCC8;
}

.coffee-section-premium h2 {
    color: #5D4037;
    margin-bottom: 10px;
    /* Add icon via CSS or in HTML */
}

body.dark-mode .coffee-section-premium h2 {
    color: #D7CCC8;
}

.secure-text {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ANIMATIONS FOR HERO IMAGE */
.animated-hero {
    animation: breatheAndFloat 8s ease-in-out infinite alternate;
    transform-origin: center bottom;
}

@keyframes breatheAndFloat {
    0% {
        transform: translateY(0) scale(1.0);
        filter: brightness(100%);
    }

    100% {
        transform: translateY(-10px) scale(1.03);
        filter: brightness(108%);
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .premium-hero {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
        min-height: auto;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .method-content {
        flex-direction: column-reverse;
    }

    .community-section {
        flex-direction: column;
        text-align: center;
    }

    /* Fix Badge Styling on Mobile */
    .floating-badge {
        font-size: 0.75rem;
        padding: 8px 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .badge-1 {
        left: 0;
        right: auto;
        /* crucial to prevent stretching */
        top: 5%;
    }

    .badge-2 {
        right: 0;
        left: auto;
        bottom: 10%;
    }
}

/* ============================================
   PREMIUM GLOBAL THEME EXTENSIONS
   ============================================ */

/* 1. Global Typography Enforcement */
body,
button,
input,
textarea,
select {
    font-family: 'Poppins', sans-serif !important;
}

/* 2. Text Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Letter-by-letter animation effect (simulated with CSS for headlines) */
@keyframes tracking-in-expand {
    0% {
        letter-spacing: -0.5em;
        opacity: 0;
    }

    40% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.animate-text-reveal {
    animation: tracking-in-expand 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

/* 3. Common Premium Components */

/* Page Headers */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    /* Reduced from 40px */
    padding-top: 0;
    margin-top: 0;
    /* Ensure no top margin */
}

.page-title {
    font-size: 2.2rem;
    /* Reduced from 3rem */
    font-weight: 700;
    color: var(--primary-color);
    /* Saffron Color */
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Premium Card (Generic) */
.premium-card-generic {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-card-generic:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Premium Primary Button (Global) */
.btn-premium {
    background: var(--primary-color);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 103, 31, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 103, 31, 0.4);
    background: #e65100;
    /* Slightly darker orange */
}

/* Input Fields Premium Style */
.input-premium {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    background: #f9f9f9;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-premium:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 103, 31, 0.1);
}

/* Dark Mode Overrides */
body.dark-mode .page-title {
    color: var(--primary-color);
    /* Correctly keep saffron in dark mode */
}

body.dark-mode .hero-subtitle {
    color: #ffffff;
}

body.dark-mode .page-subtitle {
    color: #ffffff;
}

body.dark-mode .premium-card-generic {
    background: var(--card-bg);
    border-color: #333;
}

body.dark-mode .input-premium {
    background: #333;
    border-color: #444;
    color: white;
}

body.dark-mode .premium-card-generic p,
body.dark-mode .premium-card-generic .editable-text {
    color: #ffffff !important;
    /* Force bright white in dark mode */
}

body.dark-mode .input-premium:focus {
    border-color: var(--primary-color);
    background: #222;
}

/* ============================================
   POSSIBILITIES PAGE STYLES
   ============================================ */

/* Utility */
.text-center {
    text-align: center;
}

.premium-feature-row {
    display: flex;
    align-items: flex-start;
    /* Aligns text to top of image to remove gap */
    gap: 80px;
    margin-bottom: 80px;
    /* Reduced from 120px for tighter layout */
    text-align: left;
    position: relative;
}

.reverse-layout {
    flex-direction: row-reverse;
}

.feature-image-wrapper {
    flex: 1;
    position: relative;
}

.premium-image-static {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
    filter: brightness(0.95) contrast(1.05);
}

.premium-image-static:hover {
    transform: scale(1.03);
    filter: brightness(1);
}

.feature-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Watermark Number */
.watermark-number {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 15rem;
    font-weight: 700;
    color: rgba(255, 103, 31, 0.05);
    line-height: 1;
    top: -80px;
    left: -40px;
    z-index: -1;
    user-select: none;
    transition: transform 0.5s ease;
}

.premium-feature-row:hover .watermark-number {
    transform: translateY(-20px);
}

.reverse-layout .watermark-number {
    left: auto;
    right: -40px;
}

body.dark-mode .watermark-number {
    color: rgba(255, 255, 255, 0.03);
}

/* CTA Highlight Section */
.cta-highlight {
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
    color: white;
    padding: 80px 40px;
    border-radius: 40px;
    text-align: center;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.cta-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 103, 31, 0.2), transparent 60%);
    z-index: 0;
}

.cta-highlight h3,
.cta-highlight a {
    position: relative;
    z-index: 1;
}

.cta-highlight h3 {
    color: white;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .premium-feature-row {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        margin-bottom: 80px;
    }

    .reverse-layout {
        flex-direction: column;
        text-align: center;
    }

    .watermark-number {
        font-size: 8rem;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
    }

    .reverse-layout .watermark-number {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .premium-feature-row:hover .watermark-number {
        transform: translate(-50%, -10px);
    }
}

/* ============================================
   LIVE CALCULATOR REPLICA STYLES
   ============================================ */
.calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.calculator-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
}

.calculator-main {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.input-section {
    padding: 40px;
    border-left: 5px solid var(--primary-color);
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.label-with-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.unit-toggle {
    display: flex;
    background: #eee;
    padding: 2px;
    border-radius: 20px;
}

.unit-toggle input[type="radio"] {
    display: none;
}

.unit-toggle label {
    padding: 2px 10px;
    font-size: 0.8rem;
    margin: 0;
    cursor: pointer;
    border-radius: 20px;
    color: #666;
    transition: all 0.3s;
}

.unit-toggle input[type="radio"]:checked+label {
    background: var(--primary-color);
    color: white;
}

.ft-in-group {
    display: flex;
    gap: 10px;
}

.calc-button {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.calc-button:hover {
    background: #004d40;
}

/* Results */
.results-section {
    padding: 40px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    animation: fadeIn 0.5s;
}

.result-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    flex: 1;
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-color);
}

.result-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.result-category {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 5px;
}

.tdee-conditions h4 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.condition-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.condition-box h5 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #555;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.condition-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Dark Mode Support */
body.dark-mode .calculator-main,
body.dark-mode .input-section,
body.dark-mode .results-section,
body.dark-mode .condition-box,
body.dark-mode .result-card {
    background: #2D2D2D;
    color: white;
    border-color: #444;
}

body.dark-mode .input-group input,
body.dark-mode .input-group select {
    background: #333;
    border-color: #444;
    color: white;
}

body.dark-mode .calculator-header h2 {
    color: var(--primary-color);
}

body.dark-mode .input-group label {
    color: #ffffff;
}

body.dark-mode .condition-box h5 {
    color: #ffffff;
}

/* BMI Breakdown Table */
.bmi-table-container {
    overflow-x: auto;
    margin-top: 15px;
}

.bmi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.bmi-table th {
    background-color: #f1f1f1;
    color: #333;
    padding: 10px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

body.dark-mode .bmi-table th {
    background-color: #444;
    color: #fff;
    border-color: #555;
}

body.dark-mode .bmi-table td {
    color: #ffffff;
    border-color: #444;
}

.bmi-breakdown-section h4 {
    color: var(--secondary-color);
}

body.dark-mode .bmi-breakdown-section h4 {
    color: var(--secondary-color);
}

@media (max-width: 600px) {
    .bmi-table {
        font-size: 0.8rem;
    }

    .bmi-table th,
    .bmi-table td {
        padding: 8px 5px;
    }
}

/* PREMIUM BOOK COVER STYLES */
.book-cover-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    /* Ensure scaling doesn't overflow */
    border-radius: 20px;
    height: 100%;
    /* Default for desktop equal height */
}

.book-cover-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* Fill the container */
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.book-cover-img:hover {
    transform: scale(1.05);
    /* Subtle zoom on hover */
    box-shadow: 0 30px 60px rgba(255, 103, 31, 0.2);
}

body.dark-mode .book-cover-img {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

body.dark-mode .book-cover-img:hover {
    box-shadow: 0 30px 60px rgba(255, 103, 31, 0.1);
}

/* Mobile Specific Adjustments for Book */
@media (max-width: 768px) {

    .book-image-wrapper,
    .book-cover-container {
        height: auto !important;
        /* Let image determine height on mobile */
        min-height: 400px;
        /* Ensure it's substantial */
    }

    .book-cover-img {
        height: auto !important;
        /* Maintain aspect ratio */
        transform: scale(1.2);
        /* Zoom in to remove empty space */
        margin: 20px 0;
        /* Adjust spacing */
    }
}