/* Custom Variables */
:root {
    --primary-red: #B94646;
    --cherry-blossom: #ff746a;
    --dark-blue: #1B3543;
    --off-white: #f4ede5;
    --white: #ffffff;
    --sage-green: #7C8D7B;
    --deep-lavender: #6B6B8D;
    --blue: #0d6efd;
    --dusty-blue: #5B99C2;
}

/* Section Image */
.section-image {
    width: 180px;
    height: 135px;
}


@media (max-width: 768px) {
    .section-image {
        width: 100%;
        max-width: 100px;
        max-height: 75px;
    }
}

/* Base Styles */
body {
    background-color: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--dark-blue);
}

h1,
h2,
h3,
h4,
h5,
h6,
.post-tags a,
#categories {
    font-family: Georgia, Times, "Times New Roman", serif;
}

section h2.h2 {
    font-size: 3.0rem;
    font-weight: 800;
}

h3 {
    margin: 2.0rem 0 0.8rem 0;
}

ul, ol {
    font-size: 1.1rem;         /* Responsive text size */
    line-height: 1.6;        /* Comfortable spacing between lines */
    margin-bottom: 1.5em;    /* Space below the list */
    padding-left: 1.5em;     /* Indent the list items */
  }

li {
    margin-bottom: 0.5em;
}
    




#introduction {
    font-size: 1.1rem;
    color: #333;
}

p.summary em {
    font-size: 1.1rem;
    color: #000;
    background-color: #f9f9f9;
}

/* Navbar */
.navbar {
    background-color: var(--off-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding-top: 0;
    padding-bottom: 0;
}

.navbar h5.logo_text {
    margin: 0;
}

.navbar a {
    color: var(--dark-blue) !important;
    text-decoration: none;
}

.nav-item {
    margin-top: 0;
    margin-bottom: 0;
}

span.logo_emoji {
    font-size: 3rem;
    margin-right: 0.5rem;
}

.navbar-brand {
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
}

.navbar-brand strong {
    font-size: 1.35rem;
}

.navbar-brand small {
    font-size: 0.9rem;
}

a.nav-link.dropdown-toggle {
    font-size: 1.25rem;
    font-weight: 500;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
}

.navbar-brand,
.nav-link {
    color: var(--dark-blue) !important;
    font-weight: 500;
}

.dropdown-item {
    font-size: 1.2rem;
    font-weight: 300;
}

.nav_emoji {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.dropdown-divider {
    border-color: #ddd;
    margin: 0.5rem 0;
}

/* Logo Text Container */
.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Desktop mode: Align text to the left */
@media (min-width: 992px) {
    .logo-text-container {
        text-align: center;
    }

    /* Ensure the logo text and subtitle are properly spaced */
    .logo_text {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }


}

/* Mobile mode: Center the text */
@media (max-width: 991.98px) {
    .logo-text-container {
        text-align: center;
        margin: 0 auto;
    }

    /* Ensure the logo text and subtitle are properly spaced */
    .logo_text {
        font-size: 1.0rem;
        margin-bottom: 0.25rem;
    }




}


.text-muted {
    font-size: 0.9rem;
}

/* Navigation Links and Dropdown */
.navbar-nav .nav-item {
    margin-left: 1rem;
}

.navbar-nav .dropdown-menu {
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.navbar-nav .dropdown-item .nav_emoji {
    margin-right: 0.5rem;
}

/* Search Bar */
.form-control-sm {
    width: 200px;
}

@media (max-width: 768px) {
    .navbar-nav {
        margin-top: 1rem;
    }

    .form-control-sm {
        width: 100%;
    }
}

/* Tags Link */
a.nav_tags_link {
    text-decoration: none;
    color: var(--dark-blue);
}

a.nav_tags_link:hover {
    color: var(--blue);
}

/* Make all tables inside <main> look nice */
main table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
  }
  
  main table th,
  main table td {
    padding: 10px;
    border: 1px solid #ddd;
  }
  
  main table th {
    background-color: #f8f9fa;
    font-weight: bold;
  }
  
  main table tr:nth-child(even) {
    background-color: #f2f2f2;
  }
  
  main table tr:hover {
    background-color: #f1f1f1;
  }


.key-takeaways {
    background: #f5f5f5;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.8; 
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.section-summary {
    border-radius: 0.5rem 2.0rem 2.0rem 2.0rem;
    box-shadow: 3px 3px 9px rgba(3, 3, 3, 0.1);
    color: #333;
    background-color: #BFF6C3;
    padding: 1.0rem 2.0rem;
    font-style: italic;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.0rem;
}

.conclusion-summary {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.3;
}

.conclusion-summary ul {
    padding-left: 1.4rem;
}

.conclusion-summary ul li {
    font-size: 1.5rem;
    padding: 0.3rem;
}

  
/* Key Points */
.key-points-container {
    background-color: #f8f9fa;
    border-left: 2px solid var(--blue);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.key-points-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.key-points-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.key-points-list li:last-child {
    margin-bottom: 0;
}

.key-points-list li:before {
    content: "•";
    color: var(--blue);
    font-size: 1.5rem;
    position: absolute;
    left: 0.5rem;
    top: -0.25rem;
}

.key-points-list strong {
    color: var(--blue);
    display: block;
    margin-bottom: 0.25rem;
}

/* Blockquotes */
blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 1rem;


    background-color: rgba(201, 233, 210, 0.3);
    border-left: 5px solid #28a745;
    color: #333;
    font-size: 1.25rem;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

blockquote p {
    margin: 0;
    font-style: italic;
    font-weight: 600;
    color: var(--dark-blue);
}

blockquote.takeaway {
    background-color: rgba(201, 233, 210, 0.3);
    border-left: 5px solid #28a745;
    color: #333;
    font-size: 1.25rem;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

blockquote.takeaway h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

blockquote.quote {
    background-color: #f8f9fa;
    border-left: 3px solid #6c757d;
    font-style: italic;
    color: #343a40;
    font-size: 1.1rem;
    quotes: "“" "”" "‘" "’";
}

blockquote.quote::before {
    content: open-quote;
    font-size: 2rem;
    line-height: 0;
    vertical-align: -0.4rem;
    color: #6c757d;
    margin-right: 5px;
}

blockquote.quote::after {
    content: close-quote;
    font-size: 2rem;
    line-height: 0;
    vertical-align: -0.4rem;
    color: #6c757d;
    margin-left: 5px;
}

/* CTA */
.cta {
    background-color: rgba(90, 155, 212, 0.2);
    margin: 0.2rem 0;
    padding: 1rem;
    border-radius: 10px;
    color: var(--dark-blue);
    font-size: 1.1rem;
    text-align: left;
    position: relative;
}

/* Promotion Label */
.promotion-label {
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(0, 0, 0, 0.2);
    font-size: 0.7rem;
}



/* Accessibility: Skip Link */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    z-index: 9999;
}

/* Reading Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}

.progress-bar {
    height: 4px;
    background: var(--accent-color);
    width: 0%;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 5.5rem;
}

/* Table of Contents */
.toc {
    background: var(--light-bg);
    padding: 2rem 1rem 1rem 1rem;
    border-radius: 0.5rem;
}

.toc ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.toc ul li {
    padding: 0.2rem 0;
}

.toc-link {
    font-size: 0.9rem;
    padding-left: 0.3rem;
}

.toc-link.active {
    border-left: 2px solid #28a745;
    color: var(--accent-color);
    font-weight: bold;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: none;
}

@media (max-width: 768px) {
    .fab {
        display: block;
    }
}

/* Post Header & Meta */
.post-header {
    margin-bottom: 2.5rem;
}

.post-title {
    margin-bottom: 1.2rem;
    color: var(--dark-blue);
}

.post-subtitle {
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem 1.2rem;
    margin: 1.5rem 0;
    color: var(--dark-blue);
    opacity: 0.8;
}

.post-tags {
    margin-top: 0;
    display: flex;
    gap: 0.1rem 0.5rem;
    flex-wrap: wrap;
}

.post-tags a.tag_text {
    display: inline-flex;
    padding: 0.3rem 0.8rem;
    background-color: var(--off-white);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--dark-blue);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.post-tags a.tag_text:hover {
    background-color: #e9e4dc;
}

/* Tag Cloud */
div#tag-cloud {
    text-align: center;
}

div#tag-cloud a {
    color: var(--dusty-blue);
}

div#tag-cloud a:hover {
    color: var(--blue);
}

/* Quick Summary Card */
.quick-summary {
    background: var(--light-bg);
    border-left: 4px solid var(--accent-color);
    margin: 2rem 0;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-buttons .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toc-icon {
    height: 32px;
    width: auto;
    max-width: 42px;
    object-fit: cover;
    border-radius: 50%;
}

/* Accordion */
.accordion-button {
    background-color: #f0f8ff;
    color: #333;
    border-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
    background-color: #f0f8ff;
    color: #333;
    border-color: #f8f9fa;
}

.accordion-body {
    background-color: #f8f9fa;
    color: #333;
    border-top: 1px solid #dee2e6;
}

.accordion-body li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.accordion-body li a {
    font-size: 0.9rem;
}

.accordion-body li p {
    font-size: 0.7rem;
}

/* Aside Elements */
aside {
    background-color: #f9f9f9;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin: 20px 0;
    font-style: italic;
    font-size: 0.95rem;
    color: #333;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

aside.important {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    font-style: normal;
    color: #856404;
}

aside.resources {
    background-color: #e9f7f9;
    border-left-color: #17a2b8;
    font-size: 0.9rem;
    color: #0c5460;
}

/* Conclusion Section */
.conclusion-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.conclusion-highlights {
    margin-bottom: 20px;
}

.conclusion-highlights h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.list-highlight li {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333;
}

.list-highlight li i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #28a745;
}

.conclusion-summary p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.conclusion-next-steps h4 {
    font-size: 1.2rem;
    margin-top: 20px;
    color: #007bff;
}

.conclusion-next-steps p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.promotion_note {
    margin: 15px;
    color: #777;
    font-size: 0.7rem;
}

/* Category Cards */
.category-card {
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: scale(1.03);
}

.featured-post {
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.featured-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.featured-post-content {
    position: relative;
    z-index: 1;
}

.featured-post .text-muted {
    font-size: 0.9rem;
    display: inline-block;
}

.featured-post-content h2 {
    margin-top: 10rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-shadow: 2px 2px 5px black;
    height: 6rem;
}

.category-post {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.category-post img {
    width: 100%;
    height: auto;
}

.category-post .badge {
    position: absolute;
    top: 0;
    left: 0;
    margin: 8px;
    z-index: 10;
}

.cat_description {
    min-height: 3.6em;
    line-height: 1.8;
    overflow: hidden;
}