/*
Theme Name: WP Infinity Cine
Theme URI: https://wpinfinity.com
Author: Hernane Cardoso
Author URI: https://example.com
Description: Uma versão moderna e de alto desempenho do WP Infinity com layout focado em cinema, filmes e conteúdo geek/blog.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wp-infinity-cine
Tags: blog, news, magazine, cinema, movies, custom-logo, featured-images, full-width-template, post-formats, sticky-post, theme-options, translation-ready
*/

/* ================================================================================
   DESIGN SYSTEM – TOKENS
   ================================================================================ */
:root {
    --primary-color: #0047AB;
    --accent-color:  #E31E24;
    --text-dark:     #1A1A1A;
    --text-light:    #666666;
    --bg-light:      #FFFFFF;
    --bg-gray:       #F5F5F5;
    --border-color:  #E8E8E8;
    --font-main:     'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --border-radius: 5px;
    --container-width: 1220px;
    --transition:    all 0.25s ease;
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.06);
    --shadow-md:     0 4px 20px rgba(0,0,0,0.10);
    --header-height: 60px;
}

/* ================================================================================
   BASE RESET
   ================================================================================ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width:100%; height:auto; display:block; }
a   { text-decoration:none; color:inherit; transition: var(--transition); }
ul  { list-style:none; }
h1, h2, h3, h4, h5, h6 { font-weight:700; line-height:1.2; }

/* ================================================================================
   LAYOUT
   ================================================================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.flex-between { display:flex; justify-content:space-between; align-items:center; }

/* Grid System */
.grid                  { display:grid; gap:28px; }
.grid-2                { grid-template-columns: repeat(2,1fr); }
.grid-3                { grid-template-columns: repeat(3,1fr); }
.grid-4                { grid-template-columns: repeat(4,1fr); }
.grid-sidebar          { grid-template-columns: minmax(0,2fr) 300px; gap:40px; }

.grid-2-col-sections   { grid-template-columns: 1fr 1fr; }

/* Sidebar position variants (via body class) */
.sidebar-left  .grid-sidebar { grid-template-columns: 300px minmax(0,2fr); }
.sidebar-left  #secondary    { order:-1; }
.sidebar-none  .grid-sidebar { grid-template-columns: 1fr; }
.sidebar-none  #secondary    { display:none; }

/* ================================================================================
   TOP BAR
   ================================================================================ */
.top-bar {
    background: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 0;
}

.top-bar-nav #top-menu { display:flex; gap:24px; }
.top-bar-nav #top-menu a { color:#fff; opacity:0.85; }
.top-bar-nav #top-menu a:hover { opacity:1; }

.search-toggle {
    background:none; border:none; cursor:pointer;
    color:#fff; display:flex; align-items:center; opacity:0.85;
}
.search-toggle:hover { opacity:1; }
.hide-desktop-search { display: none !important; }

@media (max-width: 900px) {
    .hide-desktop-search { display: flex !important; }
    .hide-mobile-search { display: none !important; }
}

/* ================================================================================
   BRANDING
   ================================================================================ */
.header-branding {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.site-name-link { display:inline-block; }
.site-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}
.site-tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ================================================================================
   STICKY HEADER / NAVIGATION
   ================================================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary-color);
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Logo compacto no sticky (oculto por padrão) */
.sticky-logo { display:none; color:#fff; font-weight:800; font-size:1.2rem; }

.site-header.header-scrolled .sticky-logo { display:block; }
/* Desktop Nav Grid */
.site-header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    width: 100%;
}

.header-col {
    display: flex;
    align-items: center;
    min-height: var(--header-height);
}

/* Col 1: logo sempre à esquerda */
.header-col-1 {
    justify-content: flex-start;
}

/* Col 2: nav ocupa toda a coluna e o menu fica alinhado à direita */
.header-col-2 {
    justify-content: flex-end;
    width: 100%;
}
.header-col-2 .main-navigation {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}
.header-col-2 .main-navigation #primary-menu {
    justify-content: flex-end;
}

/* Col 3: lupa e hambúrguer à direita */
.header-col-3 {
    justify-content: flex-end;
}


.site-logo img {
    max-height: 80px;
    width: auto;
    display: block;
    transition: var(--transition);
}

@media (max-width: 600px) {
    .site-logo img { max-height: 55px; }
}

.main-navigation #primary-menu {
    display: flex;
    gap: 5px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation #primary-menu > li > a {
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .site-header { min-height: 70px; }
    .site-header-grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header-col-2 { display: none !important; }
}

.main-navigation #primary-menu > li > a {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.main-navigation #primary-menu > li > a:hover,
.main-navigation #primary-menu > li.current-menu-item > a {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Dropdown */
.main-navigation .menu-item-has-children { position: relative; display: flex; align-items: center; }

.main-navigation .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    list-style: none;
    padding: 6px 0;
}

.main-navigation .menu-item-has-children:hover .sub-menu,
.main-navigation .menu-item-has-children.is-open .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.main-navigation .sub-menu li:last-child a { border-bottom: none; }
.main-navigation .sub-menu li a:hover { background: var(--bg-gray); color: var(--primary-color); padding-left: 24px; }

/* Dropdown Toggle Button */
.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 3px;
    transition: var(--transition);
    margin-left: 2px;
}
.dropdown-toggle:hover { background: rgba(255,255,255,0.15); color: #fff; }
.dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.dropdown-toggle svg { transition: transform 0.2s ease; }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #fff;
}

@media (max-width: 991px) {
    .menu-toggle { display: flex; }
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.is-active .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 0;
    overflow-y: auto;
    background: #fff;
    z-index: 9999;
    box-shadow: var(--shadow-md);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open { max-height: 100vh; }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.mobile-logo img {
    max-width: 150px;
    height: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-inner { padding: 10px 20px 40px; }

.mobile-menu #mobile-nav-menu { list-style: none; margin: 0; padding: 0; }
.mobile-menu #mobile-nav-menu > li { border-bottom: 1px solid var(--border-color); }
.mobile-menu #mobile-nav-menu > li > a {
    display: block;
    padding: 16px 0;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
}
.mobile-menu #mobile-nav-menu > li > a:hover { color: var(--primary-color); }

/* Prevent scroll when menu open */
body.menu-open { overflow: hidden; }

/* ================================================================================
   SEARCH OVERLAY
   ================================================================================ */
.search-bar-overlay {
    background: rgba(0,0,0,0.95);
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-bar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.search-bar-overlay .container { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    width: 100%; 
    max-width: 800px;
    padding: 0 20px;
    flex-wrap: wrap;
    position: relative;
}
.search-bar-overlay .search-form { flex:1; margin:0; position:relative; }
.search-bar-overlay .search-field {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 15px 0;
    font-size: 2rem;
    border-radius: 0;
    width: 100%;
    outline: none;
    box-shadow: none;
}
.search-bar-overlay .search-field:focus { border-bottom-color: var(--accent-color); }
.search-bar-overlay .search-field::placeholder { color: rgba(255,255,255,0.3); }
.search-bar-overlay .search-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--accent-color);
    padding: 10px;
    font-size: 1.5rem;
    border: none;
    box-shadow: none;
}
.search-bar-overlay .search-submit:hover { color: #fff; background: transparent; }

.search-close-btn {
    position: absolute;
    top: -60px;
    right: 20px;
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.6); 
    display: flex; align-items: center;
    padding: 10px;
}
.search-close-btn svg { width: 32px; height: 32px; }
.search-close-btn:hover { color:#fff; transform: scale(1.1); }

/* ================================================================================
   SECTION TITLES
   ================================================================================ */
.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
    color: var(--text-dark);
}

.section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border-color);
}
.section-title-wrap .section-title { margin:0; }

.see-all-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 1.5px solid var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    transition: var(--transition);
}
.see-all-link:hover { background: var(--primary-color); color: #fff; }

/* ================================================================================
   POST CARDS
   ================================================================================ */
.post-card {
    background: #fff;
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.post-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}
.post-thumbnail img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-thumbnail img { transform: scale(1.05); }

.post-category {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--accent-color);
    color: #fff;
    padding: 3px 10px;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 3px;
    letter-spacing: 0.05em;
    z-index: 2;
}

.post-content { padding: 16px; }
.post-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-title a:hover { color: var(--primary-color); }
.post-meta { font-size: 0.75rem; color: var(--text-light); display:flex; gap:10px; flex-wrap:wrap; }

/* ================================================================================
   SCREEN READER TEXT (Hides the skip-link)
   ================================================================================ */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0,0,0,0.6);
    clip: auto !important; clip-path: none; color: #21759b; display: block;
    font-size: 14px; font-weight: bold; height: auto; left: 5px; line-height: normal;
    padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000;
}

/* ================================================================================
   MAGAZINE HERO
   ================================================================================ */
.featured-grid-magazine { margin-bottom: 60px; }

.hero-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 420px 240px;
    gap: 20px;
}

.hero-masonry-post {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hero-masonry-post.post-1 {
    grid-column: span 2;
    grid-row: span 1;
}

.hero-thumb-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-link-mask {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.hero-masonry-post:hover .hero-img {
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px 25px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: #fff;
    z-index: 2;
    pointer-events: none;
}

.hero-overlay * { pointer-events: auto; }

.hero-cat {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
}

.hero-cat a { color: #fff; }

.hero-title {
    font-size: 1.25rem;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.3;
    font-weight: 800;
}

.hero-masonry-post.post-1 .hero-title {
    font-size: 1.8rem;
    max-width: 90%;
}

.hero-title a:hover {
    color: var(--accent-color);
}

.hero-masonry-post .post-meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    display: flex;
    gap: 15px;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* ================================================================================
   BREADCRUMBS
   ================================================================================ */
.breadcrumbs {
    padding: 10px 0;
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 5px;
}
.breadcrumbs ol, .breadcrumbs ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 10px;
}
.breadcrumbs li { display: flex; align-items: center; gap: 10px; }
.breadcrumbs li:not(:last-child)::after {
    content: '>';
    font-size: 0.7rem;
    opacity: 0.5;
}
.breadcrumbs a { color: var(--primary-color); font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ================================================================================
   VEJA TAMBÉM (Call-to-action)
   ================================================================================ */
.veja-tambem-box {
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    padding: 18px 22px;
    margin: 30px 0;
    border-radius: 4px;
    font-size: 1.05rem;
    transition: var(--transition);
}
.veja-tambem-box:hover {
    box-shadow: var(--shadow-sm);
    background: #fff;
    transform: translateX(4px);
}
.veja-tambem-box strong {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-right: 10px;
}
.veja-tambem-box a {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
}
.veja-tambem-box a:hover {
    color: var(--primary-color);
}

/* Category block */
.home-dynamic-sections { margin-top: 20px; }
.category-block { margin-bottom: 80px; }

.section-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 1200px) {
    .section-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .section-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 1024px) {
    .hero-masonry-grid { grid-template-rows: 350px 200px; }
}

@media (max-width: 768px) {
    .hero-masonry-grid { 
        grid-template-columns: 1fr; 
        grid-template-rows: auto; 
        gap: 15px;
    }
    .hero-masonry-post.post-1 { grid-column: span 1; }
    .hero-masonry-post { height: 320px; }
    .hero-masonry-post.post-1 .hero-title { font-size: 1.4rem; }
    .hero-title { font-size: 1.1rem; }
    .hero-overlay { padding: 40px 15px 15px; }
}

@media (max-width: 600px) {
    .section-grid { grid-template-columns: 1fr; gap: 20px; }
    .category-block { margin-bottom: 50px; }
    .section-title { font-size: 1.2rem; }
}

.section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    margin: 0;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.latest-posts-section { margin-top: 10px; }

/* ================================================================================
   SITE MAIN & CONTENT
   ================================================================================ */
.site-main { padding: 15px 0 40px; }
.site-content-wrapper { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* Single Post */
.single-post-entry .entry-header { margin-bottom: 28px; }
.single-post-entry .post-category { position: relative; top: auto; left: auto; display: inline-block; margin-bottom: 15px; }
.single-post-entry .entry-title  { font-size: 2.2rem; line-height: 1.2; margin: 10px 0 14px; }
.post-excerpt-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #444;
    margin: 15px 0 25px;
}
.single-author-share-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}
.author-meta-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}
.author-avatar { flex-shrink: 0; }
.author-avatar img {
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    display: block;
}
.written-by {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 5px;
}
.written-by strong { color: var(--primary-color); }
.meta-details {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #777;
}
.meta-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.share-buttons-wrap {
    display: flex;
    gap: 10px;
}
.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover {
    background: var(--primary-color);
    color: #fff;
}
.single-post-entry .post-thumbnail { margin-bottom: 32px; aspect-ratio: auto; border-radius: var(--border-radius); overflow:hidden; }
.single-post-entry .entry-content { font-size: 1.05rem; line-height: 1.85; color: #333; }
.single-post-entry .entry-content p  { margin-bottom: 1.4rem; }
.single-post-entry .entry-content h2 { 
    font-size: 1.65rem; 
    margin: 2.5rem 0 1.2rem; 
    line-height: 1.3;
}
.single-post-entry .entry-content h3 { 
    font-size: 1.4rem; 
    margin: 2rem 0 1rem; 
    line-height: 1.35;
}
.single-post-entry .entry-content h4 {
    font-size: 1.2rem;
    margin: 1.8rem 0 0.8rem;
    line-height: 1.4;
}
.single-post-entry .entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 16px 24px;
    background: var(--bg-gray);
    margin: 2.5rem 0;
    font-style: italic;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
.single-post-entry .entry-footer { margin-top: 40px; padding-top: 25px; border-top: 1px solid var(--border-color); }
.tags-links { margin-bottom: 20px; font-size: 0.95rem; }
.tags-links a { color: var(--text-light); border: 1px solid var(--border-color); padding: 2px 10px; border-radius: 20px; font-size: 0.85rem; margin-left: 5px; transition: var(--transition); }
.tags-links a:hover { background: var(--bg-gray); color: var(--primary-color); }

/* Author Bio Box */
.post-author-bio-box {
    background: var(--bg-gray);
    padding: 35px;
    border-radius: 12px;
    margin: 50px 0;
    border: 1px solid var(--border-color);
}

.bio-category-tag {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.tag-badge {
    background: var(--accent-color);
    color: #fff;
    padding: 3px 12px;
    border-radius: 4px;
    margin-left: 8px;
}

.bio-main-wrap {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.bio-avatar img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid #fff;
    box-shadow: var(--shadow-sm);
}

.bio-info { flex: 1; }

.bio-name {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.bio-name strong a:hover { color: var(--primary-color); }

.bio-role {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 2px solid var(--border-color);
}

.bio-description {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.bio-social {
    display: flex;
    gap: 12px;
}

.bio-social a {
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.bio-social a:hover { color: var(--primary-color); transform: translateY(-2px); }

@media (max-width: 600px) {
    .bio-main-wrap { flex-direction: column; align-items: center; text-align: center; }
    .bio-role { display: block; border: none; margin: 5px 0 0; padding: 0; }
    .bio-social { justify-content: center; }
}

/* Related Posts */
.related-posts { margin-top: 50px; padding-top: 40px; border-top: 2px solid var(--border-color); }

/* ================================================================================
   SIDEBAR & WIDGETS
   ================================================================================ */
.widget-area { }
.widget { margin-bottom: 40px; }
.widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: capitalize;
    margin-bottom: 25px;
    color: var(--text-dark);
    line-height: 1.2;
    position: relative;
    padding-bottom: 15px;
    border-left: none;
    padding-left: 0;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}
/* Widgets styling moved to css/sidebar.css */

/* ================================================================================
   COMMENTS
   ================================================================================ */
.comments-area { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--border-color); }
.comments-title { font-size: 1.4rem; margin-bottom: 30px; }
.comment-list { margin-bottom: 40px; }
.comment-list .comment { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-color); }
.comment-list .comment:last-child { border-bottom: none; }

/* Comment Form */
.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 0.95rem;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}
.comment-form-comment textarea:focus,
.comment-form input:focus { border-color: var(--primary-color); outline: none; }

/* ================================================================================
   FOOTER STRUCTURE
   ================================================================================ */
.site-footer {
    background: #111827;
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

.footer-widgets { padding-bottom: 60px; }

.footer-column h3.widget-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    border-left-color: var(--accent-color);
}

.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-column ul li a { color: rgba(255,255,255,0.6); }
.footer-column ul li a:hover { color: #fff; padding-left: 5px; }

.footer-disclaimer-box {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-custom-logo img {
    max-width: 180px;
    height: auto;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-link-footer {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: var(--transition);
}

.social-link-footer svg {
    width: 18px;
    height: 18px;
}

.social-link-footer:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-copyright {
    font-size: 0.85rem;
    margin: 0;
    text-align: center;
}

.text-center { text-align: center !important; }


.footer-copyright a { color: #fff; font-weight: 600; }

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.archive .site-main, .category .site-main { padding-top: 10px; }
.archive-title { margin-bottom: 20px; }
.archive-description {
    font-size: 1rem;
    color: var(--text-light);
    margin: -10px 0 30px;
    line-height: 1.6;
}

/* Institutional styles moved to css/components.css */

/* Author and Pagination styles moved to css/components.css */
