/* --- Global Styles and Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5d489f; /* Deep Violet/Indigo for brand */
    --secondary-color: #3f325d; /* Darker tone for text */
    --accent-color: #ffc400; /* Gold/Yellow for highlights */
    --text-dark: #333;
    --text-light: #fff;
    --bg-light: #f7f7f7; 
    --bg-header: #fff;
    --border-color: #e0e0e0;
    --max-width: 1100px; 
    --max-content-width: 900px; 
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ================================
   CONSULT AN ASTROLOGER PAGE
   ================================ */

.consultation-page {
    padding: 50px 0 70px;
}

/* ---------- Typography ---------- */

.consultation-page h2 {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.consultation-page h3 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-top: 28px;
    margin-bottom: 12px;
}

.consultation-page p {
    font-size: 1rem;
    color: #555;
    max-width: 650px;
    margin-bottom: 14px;
}

.consultation-page ul {
    margin-left: 20px;
    max-width: 650px;
}

.consultation-page li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
}

/* ---------- About Me Section ---------- */

.about-me {
    margin-bottom: 60px;
}

.about-me-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.about-me-image {
    flex: 0 0 160px;
}

.about-me-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    filter: grayscale(15%);
}

.about-me-text h2 {
    margin-top: 0;
}

/* ---------- Section Separators ---------- */

.consultation-scope,
.consultation-fit,
.consultation-details,
.booking-section {
    border-top: 1px solid var(--border-color);
    padding-top: 45px;
    margin-top: 45px;
}

/* ---------- Pricing Card ---------- */

.pricing-card {
    background: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 22px 26px;
    max-width: 420px;
}

.pricing-card p {
    margin-bottom: 6px;
}

.pricing-card strong {
    color: var(--secondary-color);
}

/* ---------- Booking Button ---------- */

.booking-section a {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 14px 26px;
    border-radius: 6px;
    text-decoration: none;
}

.booking-section a:hover {
    opacity: 0.9;
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
    .about-me-container {
        flex-direction: column;
        gap: 24px;
    }

    .about-me-image {
        width: 140px;
    }
}

/* ================================
   FIND YOURSELF PAGE
   ================================ */

.find-yourself-page {
    padding: 60px 0 80px;
}

/* ---------- Typography ---------- */

.find-yourself-page h2 {
    font-size: 1.7rem;
    color: var(--secondary-color);
    margin-bottom: 18px;
}

.find-yourself-page p {
    font-size: 1rem;
    color: #555;
    max-width: 720px;
    margin-bottom: 14px;
}

.find-yourself-page ul {
    margin-left: 20px;
    max-width: 720px;
}

.find-yourself-page li {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 8px;
}

/* ---------- Intro & Definition ---------- */

.intro-section,
.profile-definition {
    margin-bottom: 60px;
}

/* ---------- Profiles Section ---------- */

.profiles-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.profile-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 32px;
}

.profile-card h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.profile-card strong {
    color: var(--secondary-color);
}

.profile-card p {
    max-width: none;
}

.profile-tagline {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 18px;
    font-style: italic;
}

/* ---------- Guidance ---------- */

.profile-guidance {
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.profile-guidance p {
    max-width: none;
    font-size: 0.95rem;
    color: #666;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .profiles-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}


/* OPTIONAL: link hover style (subtle) */
a:hover {
  opacity: 0.75;
}
/* --- Utility Class: Constrain Content Width (Adjusted) --- */
.content-wrapper {
    width: 95%;
    max-width: var(--max-content-width); /* Standard content is 900px wide */
    margin: 0 auto;
    padding: 10px 15px;
}
/* Ensure wide sections can utilize the extra space */
.daily-articles-section .content-wrapper,
.two-column-section.content-wrapper {
    max-width: var(--max-width); 
}

/* --- HEADER STYLES (Clean White) --- */
.main-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1.8rem;
}

.sub-title {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin-left: 5px;
}

.main-nav {
    flex-grow: 1; 
    margin-left: 50px; 
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-right: 30px; 
}

.main-nav a {
    color: var(--text-dark);
    padding: 5px 0; 
    font-size: 0.95rem;
    font-weight: 500; 
    border-bottom: 2px solid transparent; 
}

.main-nav a:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.search-icon {
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    margin-left: auto; 
    padding-left: 20px;
}

/* --- HERO SECTION STYLES --- */
.hero-section {
    padding: 60px 0;
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
}

.hero-text {
    flex: 1;
    max-width: 50%;
}

.subscriber-badge {
    background: #ffdbdb;
    color: #c93b3b;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-image-placeholder {
    flex: 1;
    max-width: 45%;
    text-align: right;
}

.hero-image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.cta-form {
    display: flex;
    gap: 10px;
}

.cta-form input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    flex: 1;
    font-size: 1rem;
}

.cta-button {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background: var(--secondary-color);
}


/* --- DAILY ARTICLE GRID STYLES (4-column) --- */
.daily-articles-section {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.view-all-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: #666;
    display: flex;
    align-items: center;
}

.daily-article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

.article-card.vertical {
    display: block;
    background: var(--bg-header);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.article-card.vertical:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.article-card.vertical .card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top: 5px solid var(--primary-color); 
    background-color: var(--primary-color); 
}

.article-card.vertical .card-body {
    padding: 15px;
}

.article-card.vertical .date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
}

.article-card.vertical h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.article-card.vertical .summary {
    font-size: 0.9rem;
    color: #666;
}

/* --- REVISED TWO-COLUMN SECTION LISTS --- */
.two-column-section {
    display: flex; /* Ensures side-by-side on desktop */
    gap: 50px;
    padding: 40px 0;
}

.vertical-container {
    flex: 1; /* Ensures both columns are equal width */
    background: var(--bg-light);
    padding: 0;
}

.vertical-container .section-header {
    border-bottom: 2px solid var(--border-color);
}

.vertical-container .section-header h2 {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
}

.vertical-container .section-header i {
    font-size: 1rem;
    margin-left: 10px;
    color: #666;
}

.small-list-card {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    background: var(--bg-light);
    transition: background-color 0.2s;
}

.small-list-card:hover {
    background-color: #f0f0f8;
}

.list-card-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    margin-right: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.list-card-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--secondary-color);
}

.list-card-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 0;
}

.list-card-content .date {
    font-size: 0.8rem;
    color: #999;
}


/* --- FOOTER STYLES --- */
.main-footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 3fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.footer-col h4 {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.footer-col p, .footer-col ul, .footer-col a {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.brand-info p {
    margin: 10px 0;
}

.brand-info .sub-link {
    color: var(--primary-color);
    font-weight: 500;
}

.app-links img {
    display: block;
    width: 130px;
    height: auto;
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
}

.copyright p {
    font-size: 0.75rem;
    color: #999;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1000px) {
    .daily-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* ... Header adjustments ... */
    .header-content {
        flex-wrap: wrap; 
        justify-content: center;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }

    .main-nav {
        flex-grow: 0;
        margin-left: 0;
        width: 80%;
        order: 2;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .main-nav li {
        margin: 0 5px;
    }
    
    .search-icon {
        order: 1;
        margin-left: 10px;
    }

    .logo .sub-title {
        display: none; 
    }
    /* ... End Header adjustments ... */

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text, .hero-image-placeholder {
        max-width: 100%;
    }
    
    .daily-article-grid {
        grid-template-columns: 1fr;
    }
    
    /* CRITICAL FIX: Forces stacking below 768px */
    .two-column-section {
        flex-direction: column; 
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .app-links {
        grid-column: span 2;
        display: flex;
        justify-content: center;
        gap: 20px;
    }
}

@media (min-width: 769px) {
    /* Ensures the two columns are side-by-side on all screens larger than mobile */
    .two-column-section {
        display: flex; 
        flex-direction: row; 
    }
}

/* --- Styles added for Nakshatra/Planets Hub Pages --- */

/* Highlight active page link in navigation */
.main-nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 700;
}

/* Main two-column layout for the hub page content */
.article-hub-layout {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
    /* Use a wider container for the hub page content */
    max-width: 1200px; 
}

.sidebar-left {
    /* Fixed width for the left sidebar/hero area */
    flex: 0 0 300px; 
    padding-right: 20px;
}

.main-content-right {
    /* Takes up the remaining space */
    flex: 1; 
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
}

.stats-box {
    background: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 15px;
}

.stat-text p:first-child {
    font-weight: 700;
    margin-bottom: 2px;
}

.stat-text p:last-child {
    font-size: 0.9rem;
    color: #666;
}

.sub-section-title {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

/* Small image list in the sidebar */
.small-article-list {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
}

.list-card-small-image {
    display: block;
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.2s;
}

.list-card-small-image:hover {
    opacity: 0.8;
}

.list-image {
    width: 100%;
    height: auto;
}

/* Featured Article Grid (Top 3) */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.featured-card {
    display: block;
    background: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.featured-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* Dark purple/starry look from the screenshot */
    background-color: var(--secondary-color);
}

.featured-body {
    padding: 15px;
}

.featured-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 5px;
}

/* Regular Article List below Featured Grid */
.list-heading {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.regular-article-list .list-item {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 0;
}

.list-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.list-details h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.list-details .excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 5px;
}

.list-details .meta {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* --- Mobile Responsiveness for Nakshatra Hub (NEW) --- */
@media (max-width: 900px) {
    .article-hub-layout {
        /* Stacks columns on smaller screens */
        flex-direction: column; 
        gap: 20px;
    }

    .sidebar-left {
        /* Allows sidebar to take full width */
        flex: 1; 
        width: 100%;
        padding-right: 0;
    }
    
    .featured-grid {
        /* 2 columns on tablet/small desktop */
        grid-template-columns: repeat(2, 1fr); 
    }

    .regular-article-list .list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-thumb {
        margin-bottom: 10px;
        /* Image takes full width of the article container */
        width: 100%; 
        height: auto;
    }
}

@media (max-width: 500px) {
    .featured-grid {
        /* 1 column on very small screens */
        grid-template-columns: 1fr; 
    }
}

/* --- New Styles for Simple Planets Grid Layout --- */

.page-content-simple {
    /* Use the standard content width for this page */
    max-width: var(--max-content-width); 
    padding-top: 40px;
    padding-bottom: 40px;
}

.introduction-section {
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-description-large {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.stat-summary {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.stat-summary a {
    font-weight: 700;
    margin-left: 15px;
}

.planets-article-grid {
    display: grid;
    /* 3 columns on desktop for the 9 planets */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Ensure the card styles from index.html are reused for .article-card.vertical */

/* Mobile Responsiveness for Planets Grid */
@media (max-width: 900px) {
    .planets-article-grid {
        /* 2 columns on tablet */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .planets-article-grid {
        /* 1 column on mobile */
        grid-template-columns: 1fr;
    }
    .page-title {
        font-size: 2rem;
    }
}

/* --- New Styles for Zodiac Signs Grid Layout --- */

.zodiac-article-grid {
    display: grid;
    /* 4 columns on desktop for the 12 signs (3 rows of 4) */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Reuses .page-content-simple and its mobile queries from the Planets section */


/* Mobile Responsiveness Override for Zodiac Grid (If needed, to optimize for 12) */
@media (max-width: 1050px) {
    .zodiac-article-grid {
        /* 3 columns on medium screens to keep cards readable (4 rows of 3) */
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 650px) {
    .zodiac-article-grid {
        /* 2 columns on small tablets */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .zodiac-article-grid {
        /* 1 column on smallest mobile screens */
        grid-template-columns: 1fr;
    }
}
/* --- New Styles for Nakshatra Grid Layout (27 Cards) --- */

.nakshatra-article-grid {
    display: grid;
    /* 4 columns on desktop/wide screen (7 rows of 4, plus 1) */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Mobile Responsiveness for Nakshatra Grid */
@media (max-width: 1050px) {
    .nakshatra-article-grid {
        /* 3 columns on medium screens */
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .nakshatra-article-grid {
        /* 2 columns on small tablets */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .nakshatra-article-grid {
        /* 1 column on mobile */
        grid-template-columns: 1fr;
    }
}
/* --- Single Article Page Styles (REVISED) --- */

.article-page-layout-simple {
    /* Use the wider content wrapper for the whole page */
    max-width: 1200px;
    padding-top: 40px;
    padding-bottom: 60px;
}

.article-container-body {
    margin: 0 auto;
    /* Define the comfortable reading width for all main elements */
    max-width: 800px; 
}

/* --- Hero Section --- */
.article-hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.article-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 1.1;
    margin-bottom: 15px;
}

.article-metadata {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 25px;
}

.article-metadata .category-tag {
    display: inline-block;
    padding: 2px 8px;
    font-weight: 700;
    margin-right: 15px;
}

.featured-article-image {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 8px;
    object-position: top;
}

/* --- Reading Content Typography --- */
.article-reading-content {
    /* Ensures all reading content stays centered and within the max-width */
    margin: 0 auto;
}

.article-reading-content ul{
    margin-left:18px;
}

.article-reading-content p, 
.article-reading-content li {
    font-size: 1.125rem; /* 18px text size for main body */
    line-height: 1.65; /* Increased line height for readability */
    color: var(--text-dark);
    margin-bottom: 1.2em;
}

.lead-paragraph {
    font-size: 1.25rem; 
    font-weight: 400;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 40px; /* More spacing after lead */
}

.article-reading-content h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-top: 50px; /* More spacing before h2 */
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
}

.article-reading-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 10px;
}

.article-reading-content h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-top: 20px;
    font-weight: 700;
}

/* Blockquotes */
.article-reading-content blockquote {
    font-style: italic;
    margin: 30px 0;
    padding: 20px;
    border-left: 5px solid var(--primary-color);
    background: #fcfcfc;
}

/* --- Author Bio Section (Below Content) --- */
.author-bio-section {
    max-width: 800px;
    margin: 60px auto; /* Generous spacing above and below */
    padding: 30px;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.author-details h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 5px;
}

.author-details p {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* --- Related Articles Section (At the Bottom) --- */
.related-articles-section {
    max-width: 1000px; /* Wider section for the cards */
    margin: 40px auto;
}

.related-article-grid {
    display: grid;
    /* 3 cards side-by-side */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

/* Mobile Adjustments */
@media (max-width: 850px) {
    .article-container-body, .author-bio-section, .related-articles-section {
        /* Reduce max-width for smaller screens */
        max-width: 90%; 
    }
}

@media (max-width: 700px) {
    .article-title {
        font-size: 2.2rem;
    }
    .related-article-grid {
        /* Stack to 2 columns */
        grid-template-columns: repeat(2, 1fr); 
    }
    .author-box {
        /* Stack author image and text */
        flex-direction: column;
        text-align: center;
    }
    .author-details {
        margin-top: 10px;
    }
}

@media (max-width: 500px) {
    .related-article-grid {
        /* Stack to 1 column */
        grid-template-columns: 1fr;
    }
}

/* --- New Styles for Vertical Blog Index Grid --- */

.vertical-blog-grid {
    display: grid;
    /* 3 columns is a good standard for a vertical blog listing */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Reusing the .article-card.vertical styles from planets/nakshatras */
.article-card.vertical {
    display: block; /* Ensure it behaves like a block element */
    height: auto; /* Allow height to adjust based on 9:16 content */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--card-background);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Ensure the image is tall and covers the top part */
.article-card.vertical .card-image {
    width: 100%;
    height: 250px; /* Specific height for the vertical card image (approx. 9:16 aspect ratio is visual) */
    object-fit: cover;
    border-bottom: 0;
    /* Added colored border on top to visually categorize */
    border-top: 5px solid var(--primary-color); 
    border-radius: 0;
}

.article-card.vertical .card-body {
    padding: 20px;
}

.article-card.vertical h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-top: 5px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.article-card.vertical .summary {
    font-size: 0.95rem;
    color: #666;
}

/* Media Queries for Responsiveness */
@media (max-width: 950px) {
    .vertical-blog-grid {
        /* Reduce to 2 columns on medium screens */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .vertical-blog-grid {
        /* Stack to 1 column on mobile */
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .about-me-container {
        flex-direction: column;
    }

    .about-me-image {
        width: 140px;
    }
}
