/*
Theme Name: My-Theme
Author: Sang Ah Lee
Description: Custom WordPress theme built from scratch
Version: 1.0
Text Domain: my-theme
*/

/* -------------------- RESET -------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* -------------------- BODY & LAYOUT -------------------- */

html {
  scroll-behavior: smooth;
}

body {
  color: #000;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", Times, serif;
  overflow-x: hidden;
}

.site-header,
.footer,
.content,
.desktop-menu {
  width: 100%;
  padding: 0 15px;
}

/* -------------------- TOP BAR -------------------- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 5px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #ddd;
    box-sizing: border-box;
}

.top-bar-left {
    text-align: left;
    font-family: Arial, serif;
}

.top-bar-center {
    text-align: center;
    font-weight: normal;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.top-bar-right {
    text-align: right;
    font-family: Arial, serif;
}

.top-bar-right .header-button {
    display: inline-block;
    padding: 4px 8px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #000;
}

.top-bar-right .header-button:hover {
    background-color: #f0f0f0;
}

/* -------------------- SITE TITLE + DATE STACK -------------------- */
.site-title-wrapper {
    display: flex;
    align-items: flex-start;       /* align top of children */
    justify-content: center;       /* center site title */
    position: relative;
    width: 100%;
    padding: 20px 0;               /* top and bottom space for wrapper */
    min-height: 80px;              /* ensure wrapper height includes all children */
    box-sizing: border-box;
}

.date-stack {
    position: absolute;
    left: 0;
    top: 20px;                     /* top space matches wrapper padding */
    line-height: 1.2;
    font-size: 14px;
    text-align: left;
}

.site-title {
    display: inline-block;
    text-align: center;
    margin: 0;
    padding-top: 20px;             /* add top space to align with date-stack */
}

.site-title-main {
    font-size: 32px;
    color: #000;
    font-weight: bold;
}

.site-title a,
.site-title a:hover,
.site-title a:focus,
.site-title a:active {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* -------------------- ABOVE PAGE/POST TITLE -------------------- */
.kicker a {
    font-size: 13px;
    font-family: Arial, serif;
}

/* -------------------- SEPARATOR -------------------- */
.post-separator {
    border-top: 1px solid #a3a3a3;
    margin: 50px 0; 
    width: 100%;
}

/* -------------------- CONTENT -------------------- */

.content {
  flex: 1;
  text-align: left;
    margin: 0 auto;
}

.home .content img {
    width: 100%;       
    max-width: 100%;  
    height: auto;
    display: block;
    margin: 0 auto;
}

.content h2,
.content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.7em;
}

.content p {
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.8;
}


/* -------------------- PAGE WIDTH -------------------- */
.page .top-bar,
.page .content,
.page .site-header,
.page .site-title-wrapper,
.page .desktop-menu-wrapper,
.page .sub-menu-section,
.page .footer {
  max-width: 90%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.top-bar,
.content,
.site-header,
.site-title-wrapper,
.desktop-menu-wrapper,
.sub-menu-section,
.footer {
  max-width: 90%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* -------------------- POST WIDTH -------------------- */
.single .top-bar,
.single .content,
.single .site-header,
.single .site-title-wrapper,
.single .desktop-menu-wrapper,
.single .sub-menu-section,
.single .footer {
  max-width: 90%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* -------------------- PAGE ID ‼️ -------------------- */
.single .page-wrapper, /* Single Post */
.page-id-1803 .page-wrapper, /* ? */
.page-id-3655 .page-wrapper, /* Field Notes */
.page-id-45 .page-wrapper, /* Home */
.page-id-12 .page-wrapper, /* About */
.page-id-2464 .page-wrapper, /* Meditations */
.page-id-2724 .page-wrapper, /* TBR List */
.page-template-page-country .page-wrapper, /* Page Country Template */
.page-id-384 .page-wrapper, /* Around the World */
.page-id-2458 .page-wrapper, /* The Latest */
.page-id-2640 .page-wrapper, /* Culture */
.page-id-2610 .page-wrapper, /* Arts */
.page-id-2564 .page-wrapper { /* Reader's Log */
  display: flex;          
  gap: 5%;              
  max-width: 90%;       
  margin: 0 auto;     
  box-sizing: border-box;
}

/* Left content column (Content) */
.single .page-wrapper .content, /* Single Post */
.page-id-1803 .page-wrapper .content, /* ? */
.page-id-3655 .page-wrapper .content, /* Field Notes */
.page-id-45 .page-wrapper .content, /* Home */
.page-id-12 .page-wrapper .content, /* About */
.page-id-2464 .page-wrapper .content, /* Meditations */
.page-id-2724 .page-wrapper .content, /* TBR List */
.page-template-page-country .page-wrapper .content, /* Page Country Template */
.page-id-384 .page-wrapper .content, /* Around the World */
.page-id-2458 .page-wrapper .content, /* The Latest */
.page-id-2640 .page-wrapper .content, /* Culture */
.page-id-2610 .page-wrapper .content, /* Arts */
.page-id-2564 .page-wrapper .content { /* Reader's Log */
  flex: 0 0 60%;       
  margin: 0;          
  box-sizing: border-box;
}

/* Right column (ads, info) */
.single .page-wrapper .right-column, /* Single Post */
.page-id-1803 .page-wrapper .right-column, /* ? */
.page-id-3655 .page-wrapper .right-column, /* Field Notes */
.page-id-45 .page-wrapper .right-column, /* Home */
.page-id-12 .page-wrapper .right-column, /* About */
.page-id-2464 .page-wrapper .right-column, /* Meditations */
.page-id-2724 .page-wrapper .right-column, /* TBR List */
.page-template-page-country .page-wrapper .right-column, /* Page Country Template */
.page-id-384 .page-wrapper .right-column, /* Around the World */
.page-id-2458 .page-wrapper .right-column, /* The Latest */
.page-id-2640 .page-wrapper .right-column, /* Culture */
.page-id-2610 .page-wrapper .right-column, /* Arts */
.page-id-2564 .page-wrapper .right-column {  /* Reader's Log */
  flex: 1;              
  margin: 0;
  box-sizing: border-box;
  position: sticky;
  top: 20px;      
  align-self: flex-start; 
}

body.page-template-page-country .content {
    font-family: Arial, serif;
}

body.page-id-3655 .content {
    font-family: Arial, serif;
}

/* -------------------- DESKTOP MENU -------------------- */
.desktop-menu-wrapper {
    position: relative;
}

.desktop-menu {
    width: 100%;
    font-family: Arial, serif;
    border-bottom: 3px double black;
}

.desktop-menu .menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-menu .menu > li {
    position: relative;
}

/* Main menu links */
.desktop-menu .menu > li > a {
    display: block;
    padding: 0 15px 15px 15px;
    color: #000;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.desktop-menu .menu > li > a:hover {
    text-decoration: underline;
}

/* -------------------- SUBMENU (HOVER) -------------------- */
.menu li.menu-item-has-children {
    position: relative;
}

.menu li.menu-item-has-children > ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    list-style: none;
    z-index: 200;
    white-space: nowrap;
    flex-wrap: wrap;
}

.menu li.menu-item-has-children:hover > ul.sub-menu {
    display: block;
    flex-direction: column;  
    gap: 5px;            
}

.menu li.menu-item-has-children ul.sub-menu li {
    position: relative;
}

/* Submenu links */
.menu li.menu-item-has-children ul.sub-menu li a {
    display: block;
    color: #000;
    text-decoration: none;
    padding: 3px 0;     
    font-size: 13px;    
    line-height: 1.3;   
}

.menu li.menu-item-has-children ul.sub-menu li a:hover {
    text-decoration: underline;
}

/* -------------------- NESTED SUBMENUS -------------------- */
.menu li.menu-item-has-children ul.sub-menu li.menu-item-has-children > ul.sub-menu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    white-space: nowrap;
    flex-direction: column;
}

.menu li.menu-item-has-children ul.sub-menu li.menu-item-has-children:hover > ul.sub-menu {
    display: block;
}

/* -------------------- COLUMN CLASS FOR SPECIFIC SUBMENU -------------------- */
.menu-column > ul.sub-menu {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.menu-column ul.sub-menu li {
    display: block;
    margin: 0;
}

/* Make child submenus inside menu-column appear normally */
.menu-column ul.sub-menu li.menu-item-has-children > ul.sub-menu {
    top: 0;
    left: 100%;
    display: none;
    position: absolute;
}

.menu-column ul.sub-menu li.menu-item-has-children:hover > ul.sub-menu {
    display: block;
}

/* -------------------- OPTIONAL STYLING -------------------- */
.header-button {
    padding: 5px 10px;
    margin-left: 10px;
    border: 1px solid #000;
    text-decoration: none;
    color: #000;
    font-size: 13px;
    transition: all 0.2s ease;
}

.header-button:hover {
    background: #000;
    color: #fff;
}

.menu-amb > a::first-letter {
    color: #3692e2;
}

.menu-bold > a {
    font-weight: bold;
}

/* Make the submenu a grid */
.columns .sub-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 0;
    margin: 0;
}

.columns .sub-menu li a {
    display: block;
    padding: 5px 10px;
}

/* -------------------- FOOTER -------------------- */
.footer {
    padding: 20px;
    font-family: Georgia, "Times New Roman", Times, serif;
    border-top: 3px double black;
}

.footer a {
    text-decoration: none;
}

.footer-sns {
    margin: 20px 0;
}

.footer-divider {
    height: 1px;
    margin: 20px 0;
}

.footer-links {
    display: flex;
    justify-content: flex-start;
    gap: 50px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 13px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    font-weight: normal;
    text-transform: none;
    margin-bottom: 6px;
    font-size: 13px;
}

.footer-bottom {
    text-align: center;
    margin: 10px 0;
    font-size: 13px;
    border-top: 1px solid black;
}

/* -------------------- POST HEADER -------------------- */

.post-title {
    margin-bottom: 0.5em;
}

.standfirst {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    font-style: italic;
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    margin-top: 0;
}

.post-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: #000;
}

.post-date {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 30px;
}

/* -------------------- BOOK REVIEW -------------------- */
.book-review {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 700px;
  margin: 40px 0;
  background-color: #f5f5f5;
  color: inherit;
  font-family: Arial, serif;
  padding: 15px;
  gap: 15px;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.book-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-info .table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.book-info table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, serif;
  color: inherit;
  border: none;
}

.book-info th {
  font-weight: bold;
  white-space: nowrap;
  text-align: left;
  vertical-align: top;
  padding: 0 6px 0 0;
  border: none;
}

.book-info td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  padding: 0 6px 0 0;
  vertical-align: top;
  border: none;
}

.book-info td:first-child {
  padding-right: 10px;
}

.book-info .book-summary {
  margin-top: 1em;
}

.image-caption {
  margin-top: 6px;
  color: #555;
  text-align: center;
}

/* -------------------- BOOK REVIEW WITH LABEL -------------------- */
.book-review.has-label {
    background-color: #fff9c4; /* yellowish */
}

.book-label-banner {
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 10px 0;
    color: #d4a500;
    margin-bottom: 10px; /* space from content row */
}

.book-review-content {
    display: flex;
    flex-wrap: wrap; /* image left, info right */
    gap: 15px;
}

.book-label-banner .label-link {
    color: #d4a500;       
    font-weight: bold;
    text-decoration: none;
}

.book-label-banner .label-link:hover {
    color: #f3d157;      
}

/* -------------------- YEAR REVIEW -------------------- */
.year-review {
  display: flex;
  flex-direction: column;   
  align-items: center;  
  width: 100%;
  max-width: 650px;
  margin: 40px auto;         
  background-color: #ffffff;
  color: #222;
  box-shadow: 3px 3px 12px rgba(0,0,0,0.12);
  padding: 25px 20px;
  border-radius: 12px;
  text-align: center;   
  gap: 20px;                   
}

.year-review .info-section {
  width: 100%;
}

.year-review h5 {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 600;
  color: #222;
}

.year-review p {
  margin: 0;
  font-size: 16px;
  color: rgba(0,0,0,0.6);
}

.year-review .year-total-books {
  font-size: 60px;
  font-weight: 700;
  color: rgba(0,0,0,0.408);
  margin: 5px 0;
}

.year-review .inline-list {
  display: inline;
}

.year-review .inline-list span,
.year-review .inline-list a {
  display: inline;
  margin-right: 5px;
}

.year-review a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.year-review a:hover {
  text-decoration: underline;
}

/* -------------------- BOOK BOX -------------------- */
.book-box {
  background: none;
  border: 2px solid rgba(0, 7, 133, 0.216);
  border-radius: 20px;
  padding: 20px;
  margin-top: 60px;
}


/* -------------------- MENTIONED IN BOX -------------------- */
.mentioned-in-box {
    background: #f4f8ff;
    border: 1px solid #d6e6ff;
    padding: 16px;
    margin: 30px 0;
    border-radius: 6px;
    font-family: Arial, serif;
}

.mentioned-in-box h4 {
    margin-bottom: 10px;
    color: #2a5db0;
    font-size: 0.95rem;
}

.mentioned-in-box ul {
    padding-left: 18px;
    margin: 0;
}

.mentioned-in-box li {
    margin-bottom: 6px;
}

.mentioned-in-box a {
    color: #2a5db0;
    text-decoration: none;
}

.mentioned-in-box a:hover {
    text-decoration: underline;
}

/* -------------------- FEED (Books) -------------------- */

.feed {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 0 10px;
    box-sizing: border-box;
}

.feed a,
.feed a:hover,
.feed a:focus,
.feed a:active,
.feed-item,
.feed-item:hover,
.feed-item:focus,
.feed-item:active {
    text-decoration: none;
    color: inherit;
}

.feed-item {
    display: block;
    overflow: hidden;
    background: transparent;
    transition: transform 0.3s ease;
}

.feed-item:hover {
    transform: translateY(-3px);
}

.feed-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.feed-item:hover img {
    opacity: 0.9;
}

.feed-author-box {
    width: 100%; 
    background-color: #dcefff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-sizing: border-box;
}

.feed-author-name {
    font-weight: bold;
    font-family: Arial, serif;
    margin-top: 15px;
    margin-bottom: 20px;
}

.feed-author-box .feed-author-posts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.feed-title-box {
    width: 100%; 
    background-color: #f2f2f2; 
    padding: 5px 5px 10px 5px; 
    margin-bottom: 10px;
    border-radius: 4px;
    box-sizing: border-box;
}

.feed-title-heading {
    font-weight: bold;
    margin-bottom: 5px;
}

.feed-title-posts {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.feed-post-info {
    padding: 5px 5px 10px 5px;
}

.feed-genre-country,
.feed-book-author,
.feed-post-date {
    font-size: 13px;
    font-family: Arial, serif;
    color: #666;
    margin: 2px 0;
}

.feed-custom-field-title {
    font-size: 16px;
    color: #3692e2;
    margin: 2px 0;
}

.feed-acf-field-group { 
    margin-left: 20px; 
    border-left: 2px solid #eee; 
    padding-left: 10px; 
}

.feed-acf-field { 
    margin-bottom: 5px; 
}

/* -------------------- FEEDSTACK (The Reader) -------------------- */

.feedstack {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    box-sizing: border-box;
}

/* LINK + TEXT RESET */
.feedstack a,
.feedstack a:hover,
.feedstack a:focus,
.feedstack a:active,
.feedstack-item,
.feedstack-item:hover,
.feedstack-item:focus,
.feedstack-item:active {
    text-decoration: none;
    color: inherit;
}

/* ITEM */
.feedstack-item {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;

    height: 180px;
    overflow: hidden;
    background: transparent;

    padding: 20px 0;
    border-bottom: 1px solid #ddd;

    transition: none;
}

/* TEXT SIDE */
.feedstack-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 240px - 20px);
}

/* EXACT TYPOGRAPHY FROM BOOKS */
.feedstack-section,
.feedstack-date {
    font-size: 13px;
    font-family: Arial, serif;
    color: #666;
    margin: 2px 0;
}

/* TITLE */
.feedstack-title {
    font-size: 22px;
    color: #3692e2;
    margin: 2px 0;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    transition: color 0.3s ease;
}

/* EXCERPT  */
.feedstack-excerpt {
    font-size: 16px;
    color: #666;
    margin: 2px 0;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* IMAGE*/
.feedstack-image {
    height: 100%;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
}

.feedstack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: none;
}

/* HOVER */
.feedstack-item:hover .feedstack-title {
    color: #89B8E0;
}

.feedstack-item:hover .feedstack-section,
.feedstack-item:hover .feedstack-date,
.feedstack-item:hover .feedstack-excerpt,
.feedstack-item:hover .feedstack-image img {
    opacity: 0.8;
}

/* -------------------- LINK -------------------- */
a {
    text-decoration: none;
    color: #3692e2;
}

a:hover {
    text-decoration: underline;
}

.secret-bird,
.secret-bird:hover,
.secret-bird:focus,
.secret-bird:active {
    color: inherit;
    text-decoration: none;
}

/* Remove rounding from feed items and images */
.feed-item,
.feed-item img {
    border-radius: 0;
}

/* -------------------- BLOCK BUTTON -------------------- */
.block-button {
  display: block;
  width: 100%;
  border: 1px solid #bfbfbf;
  background-color: #f2f2f2; 
  font-size: 18px;
  font-weight: bold;
  padding: 25px 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.block-button:hover {
  background-color: #e6e6e6;  
}

.block-button a {
  color: #000;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* -------------------- TOC -------------------- */

/* TOC box */
.toc-box {
  background-color: #f0f0f0;
  padding: 15px;
  border-radius: 8px;
  margin: 10px 0;
}

/* Remove bullets from all levels */
.toc-list,
.toc-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Indentation for nested levels */
.toc-list > li {
  margin: 6px 0;
}

.toc-list > li > ul {
  padding-left: 20px;   /* Level 2 indent */
}

.toc-list > li > ul > li > ul {
  padding-left: 20px;   /* Level 3 indent */
}

/* Links */
.toc-list a {
  text-decoration: none;
  color: #555;
}

.toc-list a:hover {
  font-weight: bold;
  color: #000;
}

/* -------------------- LISTS -------------------- */
.content ul,
.content ol {
  margin: 0 0 1em 0;      
  padding-left: 1.5em;  
}

.content ul ul,
.content ol ol {
  margin: 0 0 1em 0;
  padding-left: 2.5em;    
}

.content ul ul ul,
.content ol ol ol {
  margin: 0 0 1em 0;
  padding-left: 3.5em;    
}

ul,
ol {
  margin: 0 0 1em 0;      
  padding-left: 1.5em;  
}

ul ul,
ol ol {
  margin: 0 0 1em 0;
  padding-left: 2.5em;
}

ul ul ul,
ol ol ol {
  margin: 0 0 1em 0;
  padding-left: 3.5em;
}

.dash-list {
  list-style: none;
  padding-left: 1.5em;
  margin: 0;
}

.dash-list > li {
  position: relative;
  padding-left: 0;
}

.dash-list > li::before {
  content: "- ";
  position: absolute;
  left: -1em;
}

.dash-list ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 0;
}

.dash-list ul li::before {
  content: none;
}

/* -------------------- MONTH & YEAR ROW (Independent) -------------------- */
.dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto 20px;
    padding: 5px 0;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
}

.dropdown select {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.month-row td {
    text-align: center;
    font-weight: bold;
    background-color: #eee;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.year-row td {
    font-weight: bold;
    background: #4169E1;
    color: #fff;
    padding: 10px;
    text-align: center;
    text-transform: uppercase;
}

/* -------------------- RIGHT COLUMN : WORLD -------------------- */
/* Container background */
.world-field {
    background-color: #ddd;
    border: 1px solid black;
}

/* Each row */
.world-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid black;
}

/* Remove last border to avoid double line */
.world-row:last-child {
    border-bottom: none;
}

/* Label styling */
.world-label {
    font-weight: 600;
    margin-right: 10px;
}

/* Value styling */
.world-value {
    text-align: right;
}

/* -------------------- HUMANITIES TABLE -------------------- */

/* Scrollable container for timeline table */
.table-container {
  overflow-x: auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Timeline table basic */
.timeline-table {
  border-collapse: collapse;
  table-layout: auto;
  text-align: center;
  min-width: 1000px;
}

/* All cells styling */
.timeline-table th,
.timeline-table td {
  border: 1px solid #000;
  padding: 4px;
  white-space: nowrap;
}

/* Region sticky column */
.timeline-table th.sticky,
.timeline-table td.sticky {
  position: sticky;
  left: 0;
  z-index: 3;
  border: 1px solid #000;
}

/* Country sticky column */
.timeline-table th.country-sticky,
.timeline-table td.country-sticky {
  position: sticky;
  left: 100px;
  z-index: 2;
  border: 1px solid #000;
}

/* Year columns width */
.timeline-table th.year,
.timeline-table td.year {
  width: 50px;
}

/* Clickable cells */
.timeline-table td a,
.timeline-table th a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Region colors */
.region-east-asia { background: #f3c6c6; }
.region-south-asia { background: #f3dec6; }
.region-central-asia { background: #e6d3a3; }
.region-middle-east { background: #f6f4d0; }
.region-east-europe { background: #c1dec1; }
.region-west-europe { background: #a6cbf3; }
.region-north-europe { background: #8fb6e8; }
.region-north-america { background: #ead8f2; }
.region-latin-america { background: #efefef; }
.region-africa { background: #e4cdb3; }

/* Hover effect: change to region color */
.timeline-table td.region-east-asia:hover,
.timeline-table th.region-east-asia:hover { background-color: #f3c6c6; cursor: pointer; }
.timeline-table td.region-south-asia:hover,
.timeline-table th.region-south-asia:hover { background-color: #f3dec6; cursor: pointer; }
.timeline-table td.region-central-asia:hover,
.timeline-table th.region-central-asia:hover { background-color: #e6d3a3; cursor: pointer; }
.timeline-table td.region-middle-east:hover,
.timeline-table th.region-middle-east:hover { background-color: #f6f4d0; cursor: pointer; }
.timeline-table td.region-east-europe:hover,
.timeline-table th.region-east-europe:hover { background-color: #c1dec1; cursor: pointer; }
.timeline-table td.region-west-europe:hover,
.timeline-table th.region-west-europe:hover { background-color: #a6cbf3; cursor: pointer; }
.timeline-table td.region-north-europe:hover,
.timeline-table th.region-north-europe:hover { background-color: #8fb6e8; cursor: pointer; }
.timeline-table td.region-north-america:hover,
.timeline-table th.region-north-america:hover { background-color: #ead8f2; cursor: pointer; }
.timeline-table td.region-latin-america:hover,
.timeline-table th.region-latin-america:hover { background-color: #efefef; cursor: pointer; }
.timeline-table td.region-africa:hover,
.timeline-table th.region-africa:hover { background-color: #e4cdb3; cursor: pointer; }

/* -------------------- TABLE -------------------- */
table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
}

td,
th {
  border: 1px solid black;
  vertical-align: top; 
}

/* -------------------- WORLD TABLE -------------------- */
.world-table {
  table-layout: fixed;
  border-collapse: collapse;
}

.world-table td {
  border: none;
  background: none;
}

.world-table td:first-child {
  width: 135px;
  white-space: nowrap;
  font-weight: bold;
}

/* -------------------- IMAGE CAPTION -------------------- */
/* Classic editor captions */
.wp-caption .wp-caption-text {
    font-size: 13px;
    font-family: Arial, serif;
    text-align: center;
}

/* Gutenberg image block captions */
.wp-block-image figcaption {
    font-size: 13px;
    font-family: Arial, serif;
    text-align: center;
}

/* -------------------- IMAGE CAPTION -------------------- */

/* Classic editor captions */
.wp-caption .wp-caption-text {
    font-size: 13px;
    font-family: Arial, serif;
    text-align: center;
}

/* Gutenberg single image captions */
.wp-block-image figcaption {
    font-size: 13px;
    font-family: Arial, serif;
    text-align: center;
}

/* Gutenberg gallery captions */
.wp-block-gallery figcaption {
    font-size: 13px;
    font-family: Arial, serif;
    text-align: center;
}

/* -------------------- BEST QUOTE (LETTER STYLE) -------------------- */
.best-quote {
  position: relative;

  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 2; 

  margin: 60px auto;
  padding: 40px 36px;

  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #fdfbf7; /* paper tone */
  color: #333;

  border: 1px solid #e5e0d8; /* subtle paper edge */
  border-radius: 6px; /* very slight softness */

  box-shadow: 0 6px 20px rgba(0,0,0,0.06); /* gentle lift */

  font-family: "Georgia", "Times New Roman", serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

/* quotation mark – subtle, not decorative */
.best-quote::before {
  content: "“";
  position: absolute;
  top: 12px;
  left: 18px;

  font-size: 48px;
  line-height: 1;

  color: rgba(0, 0, 0, 0.15);
  font-family: Georgia, serif;
}

/* -------------------- MOBILE MODE -------------------- */
@media screen and (max-width: 768px) {

  /* book-review */
  .book-review {
    flex-direction: column;
    padding: 15px;
    gap: 10px;
  }

  .book-image {
    width: 100%;
    margin-bottom: 0;
  }

  .book-image img {
    height: auto;
  }

  .book-info {
    width: 100%;
  }

  .book-info table {
    width: 100%;
  }

  /* year-review */
  .year-review {
    padding: 15px;
    gap: 15px;
  }

  .year-review p {
    font-size: 20px;
  }

  .year-review .year-total-books {
    font-size: 48px;
  }

  /* layout stacking */
  .single .page-wrapper,
  .page-id-1803 .page-wrapper,
  .page-id-3655 .page-wrapper,
  .page-id-45 .page-wrapper,
  .page-id-12 .page-wrapper,
  .page-id-2464 .page-wrapper,
  .page-id-2724 .page-wrapper,
  .page-template-page-country .page-wrapper,
  .page-id-384 .page-wrapper,
  .page-id-2458 .page-wrapper,
  .page-id-2640 .page-wrapper,
  .page-id-2610 .page-wrapper,
  .page-id-2564 .page-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .page-wrapper .content,
  .page-wrapper .right-column {
    width: 100%;
    flex: none;
  }

  .page-wrapper .right-column {
    position: static;
    top: auto;
  }
}

/* -------------------- ‼️ NO SPACE: <span class="no-space">■</span> ‼️ -------------------- */
.no-space {
    display: block;     
    margin-top: -0.5em;
    margin-bottom: 0;   
}

/* -------------------- ‼️ IMAGE FULL WIDTH: Aditional CSS Class(es) ‼️ -------------------- */
.full-width {
    width: 100vw;                       
    max-width: 100vw;
    position: relative;                
    left: 50%;                         
    right: 50%;
    margin-left: -50vw;               
    margin-right: -50vw;
    display: block;
    height: auto;
}

