/*
Theme Name: SafeJourney Guide
Template: generatepress
Version: 1.0
Description: GeneratePress child theme modelled on travelsafe-abroad.com single posts, with a blog-grid homepage.
*/

/* ---- Base: white page, system font, large readable body ---- */
body { background-color: #ffffff; color: #3c3d3d; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif; font-size: 20px; line-height: 1.6; }
a { color: #1155cc; }
a:hover, a:focus { color: #0b3d91; }

/* ---- Header: slim white bar, icon + uppercase site name left, bold nav right ---- */
.site-header { background-color: #ffffff; border-bottom: 1px solid #eee; }
.inside-header { padding: 8px 24px; max-width: 1340px; }
.main-title { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.main-title a, .main-title a:hover { color: #444; }
.site-logo img { height: 50px; width: auto; }
.main-navigation { background-color: #ffffff; }
.main-navigation .main-nav ul li a { color: #3c3d3d; font-weight: 700; font-size: 14px; line-height: 60px; padding: 0 11px; white-space: nowrap; }
.inside-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; }
#site-navigation { flex-shrink: 0; }
.site-branding { flex-shrink: 0; margin-right: 24px; }
.main-navigation .main-nav ul li:hover > a, .main-navigation .main-nav ul li[class*="current-menu-"] > a { color: #169e5f; background-color: #ffffff; }
.main-navigation ul ul { background-color: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.main-navigation ul ul li a { color: #3c3d3d; font-weight: 600; }
#mobile-header, #mobile-header .menu-toggle { background-color: #ffffff; }
#mobile-header .navigation-branding .main-title { font-size: 15px; text-transform: uppercase; }
#mobile-header .navigation-branding .main-title a, #mobile-header .menu-toggle, #mobile-header .menu-toggle:hover { color: #444; }
.slideout-navigation.main-navigation { background-color: #ffffff; }
.slideout-navigation.main-navigation .main-nav ul li a { color: #3c3d3d; font-size: 18px; font-weight: 700; padding: 14px 20px; }
.slideout-navigation .slideout-exit { color: #3c3d3d; }

/* ---- Layout: 1070px container, 728px content + 300px sidebar (model proportions) ---- */
.separate-containers .inside-article, .separate-containers .page-header, .separate-containers .paging-navigation { background-color: #ffffff; }
.sidebar .widget { background-color: #ffffff; padding: 0 0 20px 0; }

/* ---- Single post typography (model: h1 40/700, h2 26/700, h3 22/700, p 20/32) ---- */
h1.entry-title { font-size: 40px; font-weight: 700; line-height: 1.2; color: #3c3d3d; margin-bottom: 20px; }
.entry-content h2 { font-size: 26px; font-weight: 700; color: #3c3d3d; margin: 1.2em 0 .8em; }
.entry-content h3 { font-size: 22px; font-weight: 700; color: #3c3d3d; margin: 1em 0 .7em; }
.entry-content p, .entry-content li { font-size: 20px; line-height: 1.6; }
.entry-content p { margin-bottom: 22px; }
.entry-content a { color: #1155cc; text-decoration: underline; }
.entry-content figure.wp-block-image { margin: 0 0 28px; }
.entry-content figure.wp-block-image img { width: 100%; height: auto; border-radius: 4px; }
.entry-content figcaption { font-size: 12px; color: #666; text-align: center; margin-top: 6px; }
.entry-meta { display: none; }

/* Tables (TablePress look) */
.entry-content table { border-collapse: collapse; width: 100%; font-size: 16px; margin-bottom: 1.5em; }
.entry-content th { background: #169e5f; color: #fff; text-align: left; }
.entry-content th, .entry-content td { border: 1px solid #e3e3e3; padding: 8px 10px; }
.entry-content tr:nth-child(even) td { background: #f7f9f8; }
.entry-content figure.wp-block-table { overflow-x: auto; }

/* Table of contents box (model: "Contents [show]") */
.sj-toc { display: table; border: 1px solid #e5e5e5; background: #f9f9f9; padding: 12px 18px; margin: 0 0 28px; font-size: 16px; }
.sj-toc p.sj-toc-title { font-weight: 700; margin: 0 0 6px; text-align: center; }
.sj-toc ul { list-style: none; margin: 0; padding: 0; }
.sj-toc li { margin: 4px 0; }
.sj-toc a { color: #1155cc; text-decoration: none; }

/* ---- Sidebar: 16px bold titles with green underline, dotted list rows (model) ---- */
.sidebar .widget h2, .sidebar .widget-title { font-size: 16px; font-weight: 700; color: #010101; border-bottom: 2px solid #169e5f; padding-bottom: 10px; margin-bottom: 10px; }
.sidebar .widget ul li { border-bottom: 1px dotted #ddd; padding: 5px 2px; font-size: 16px; }
.sidebar .widget ul li a { color: #3c3d3d; text-decoration: none; }
.sidebar .widget ul li a:hover { color: #169e5f; }
.sidebar .wp-block-search__button { background: #169e5f; color: #fff; border: 0; font-weight: 700; }

/* ---- Blog / category listing: 2-column card grid like the sample blog page ---- */
.blog .inside-article, .archive .inside-article, .search .inside-article { padding: 0 0 24px; }
.blog .post-image, .archive .post-image { margin: 0 0 14px; }
.blog .post-image img, .archive .post-image img { width: 100%; height: 220px; object-fit: cover; border-radius: 4px; }
h2.entry-title { font-size: 24px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
h2.entry-title a { color: #3c3d3d; text-decoration: none; }
h2.entry-title a:hover { color: #169e5f; }
.blog .entry-summary p, .archive .entry-summary p { font-size: 17px; line-height: 1.55; color: #555; }
.read-more, a.button { display: inline-block; background: #169e5f; color: #fff !important; padding: 10px 20px; font-weight: 700; font-size: 15px; text-decoration: none !important; border-radius: 3px; }
.read-more:hover, a.button:hover { background: #117a49; }
.read-more-container { margin: 12px 0 0; }
.page-header h1 { font-size: 30px; }

/* ---- Footer: centred, page links above copyright (model: "© year Copyright by …") ---- */
.site-info { background-color: #ffffff; border-top: 1px solid #eee; font-size: 15px; color: #3c3d3d; }
.site-info .copyright-bar { display: flex; flex-direction: column-reverse; align-items: center; text-align: center; gap: 8px; }
.footer-links { font-size: 14px; }
.footer-links a { color: #404040; margin: 0 10px; text-decoration: none; }
.footer-links a:hover { color: #169e5f; }

@media (max-width: 768px) {
  body, .entry-content p, .entry-content li { font-size: 18px; }
  h1.entry-title { font-size: 30px; }
  .entry-content h2 { font-size: 23px; }
  h2.entry-title { font-size: 21px; }
}
