/* ============================================
   Successful Blog - Style Replication
   Based on successful-blog.com design
   ============================================ */

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    line-height: 1.625;
    color: #000;
    background-color: #0a1628;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('https://www.successful-blog.com/wp-content/uploads/2026/03/Website_ChicagoNightBackground_Edited22-1024x576-1.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background-color: #333;
    padding: 15px 0;
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.site-title {
    flex-shrink: 0;
    margin-bottom: 0;
}

.site-title a {
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-title a:hover {
    opacity: 1;
    color: #ddd;
}

.header-search {
    flex: 1;
    max-width: 400px;
}

.header-search form {
    display: flex;
    align-items: center;
}

.header-search input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    font-family: 'EB Garamond', serif;
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
    outline: none;
    height: 36px;
}

.header-search input[type="search"]:focus {
    border-color: #0cc4c6;
}

.header-search .search-btn {
    background-color: #0cc4c6;
    color: #fff;
    border: 1px solid #0cc4c6;
    border-left: none;
    border-radius: 0 3px 3px 0;
    padding: 0 14px;
    height: 36px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.header-search .search-btn:hover {
    background-color: #0aa8aa;
}

/* Burger Menu */
.burger-menu {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
}

.burger-menu:hover {
    color: #0cc4c6;
}

/* ============================================
   Navigation
   ============================================ */
.nav-primary {
    background-color: #383838;
    transition: max-height 0.3s ease;
    overflow: hidden;
}

.nav-primary .wrap {
    max-width: 900px;
    margin: 0 auto;
}

.genesis-nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.genesis-nav-menu li a {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    padding: 10px 12px 12px;
    text-decoration: none;
}

.genesis-nav-menu li a:hover {
    color: #0cc4c6;
    opacity: 1;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    text-align: center;
    padding: 80px 20px 60px;
    color: #fff;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
}

.hero-title {
    font-size: 60px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 30px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.4;
}

/* ============================================
   Site Inner / Content Area
   ============================================ */
.site-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-sidebar-wrap {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.content {
    flex: 1;
    max-width: 760px;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* ============================================
   Recent Posts Section
   ============================================ */
.recent-posts-section {
    background-color: #333;
    padding: 40px;
    border-radius: 4px;
}

.section-title {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: '';
    display: inline-block;
    width: 60px;
    height: 1px;
    background-color: #fff;
    vertical-align: middle;
    margin: 0 15px;
}

/* ============================================
   Posts Grid
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.post-card {
    padding: 10px 0;
}

.post-title {
    margin-bottom: 10px;
}

.post-title a {
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.1;
    text-decoration: none;
}

.post-title a:hover {
    opacity: 0.8;
}

.post-excerpt {
    color: #fff;
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 40px;
}

.no-posts {
    color: #fff;
    text-align: center;
    font-size: 18px;
    grid-column: 1 / -1;
}

/* ============================================
   Single Post
   ============================================ */
.single-post {
    background-color: #fff;
    padding: 40px 40px 24px;
    border-radius: 3px;
    color: #000;
    margin-bottom: 40px;
}

.post-header {
    margin-bottom: 30px;
}

.post-title-single {
    font-family: 'Spinnaker', 'EB Garamond', sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: #333;
    margin-bottom: 16px;
    line-height: 36px;
}

.post-meta {
    font-size: 14px;
    color: #000;
    margin-bottom: 20px;
}

.post-meta time,
.post-meta span {
    margin-right: 5px;
}

.post-meta .post-author {
    color: #0cc4c6;
}

.post-meta .post-author:hover {
    opacity: 0.8;
}

.post-featured-image {
    margin-bottom: 30px;
}

.post-featured-image img {
    width: 100%;
    border-radius: 4px;
}

.post-content {
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    line-height: 26px;
    color: #000;
}

.post-content p {
    margin-bottom: 26px;
}

.post-content h2 {
    font-family: 'Spinnaker', 'EB Garamond', sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #000;
    margin-top: 10px;
    margin-bottom: 16px;
}

.post-content h3 {
    font-size: 22px;
    font-weight: 400;
    color: #000;
    margin-top: 10px;
    margin-bottom: 12px;
}

.post-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-top: 10px;
    margin-bottom: 10px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 26px;
    padding-left: 30px;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 8px;
    list-style: disc;
}

.post-content ol li {
    list-style: decimal;
}

.post-content table {
    width: 100%;
    max-width: 660px;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.post-content table td,
.post-content table th {
    padding: 6px 0;
    font-size: 16px;
    color: #000;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.post-content table td:first-child {
    font-weight: 600;
    padding-right: 20px;
}

/* CTA Button */
.cta-button-wrapper {
    display: block;
    text-align: center;
    margin: 40px 0;
}

.cta-button {
    display: inline-block;
    background-color: #0cc4c6;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.cta-button:hover {
    background-color: #0aa8aa;
    opacity: 1;
    color: #fff;
}

/* Filed Under */
.post-categories {
    font-size: 14px;
    color: #000;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-categories a {
    color: #0cc4c6;
    margin-left: 5px;
}

.post-categories a:hover {
    color: #0aa8aa;
    opacity: 1;
}

/* ============================================
   Post Navigation Buttons
   ============================================ */
.post-navigation {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-navigation-bottom {
    margin-top: 20px;
    margin-bottom: 0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #333;
    color: #fff;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.nav-btn:hover {
    background-color: #0cc4c6;
    color: #fff;
    opacity: 1;
}

.nav-btn-home {
    background-color: #0cc4c6;
}

.nav-btn-home:hover {
    background-color: #0aa8aa;
}

/* ============================================
   Sidebar - Recent Posts with Thumbnails
   ============================================ */
.sidebar-widget {
    background-color: #fff;
    padding: 30px;
    border-radius: 3px;
}

.sidebar-recent-posts .widget-title {
    color: #333;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-post-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-post-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-post-link {
    flex-shrink: 0;
}

.sidebar-post-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
}

.sidebar-post-thumb-placeholder {
    width: 80px;
    height: 80px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    color: #999;
    font-size: 24px;
}

.sidebar-post-title {
    flex: 1;
    margin: 0;
}

.sidebar-post-title a {
    color: #333;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
}

.sidebar-post-title a:hover {
    color: #0cc4c6;
    opacity: 1;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background-color: #f5f5f5;
    padding: 24px 0;
    color: #000;
}

.site-footer .wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    margin-bottom: 15px;
}

.footer-nav a {
    color: #000;
    font-size: 14px;
}

.footer-nav a:hover {
    color: #0cc4c6;
}

.social-links {
    margin-bottom: 15px;
}

.social-links a {
    color: #b0b0b0;
    font-size: 22px;
    margin: 0 10px;
    display: inline-block;
}

.social-links a:hover {
    color: #0cc4c6;
    opacity: 1;
}

.copyright {
    font-size: 13px;
    color: #666;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .content-sidebar-wrap {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .header-row {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
        margin-top: 10px;
    }

    .nav-primary {
        max-height: 0;
    }

    .nav-primary.nav-open {
        max-height: 500px;
    }

    .genesis-nav-menu {
        flex-direction: column;
        align-items: center;
    }

    .genesis-nav-menu li a {
        padding: 12px 20px;
        border-bottom: 1px solid #444;
        width: 100%;
        text-align: center;
    }

    .genesis-nav-menu li:last-child a {
        border-bottom: none;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .site-title a {
        font-size: 18px;
    }
}
