/* ========================
   ✅ Home Page & Category Page Styling
   ======================== */

/* ✅ General Layout */
.content-area {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.site-main {
    flex: 1;
    max-width: 72%;
}
.sidebar {
    flex: 0 0 26%;
    max-width: 26%;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* ✅ Front Page Specific */
body.home .content-area {
    display: flex !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}
body.home .content-area .site-main {
    flex: 1 !important;
    max-width: 63% !important;
}
body.home .content-area .sidebar,
body.home .content-area .widget-area,
body.home .content-area .secondary {
    flex: 0 0 35% !important;
    width: 35% !important;
    max-width: 35% !important;
    min-width: 320px !important;
    box-sizing: border-box !important;
}

/* ✅ Archive Specific */
body.archive .container {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 20px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}
body.archive .container .site-main {
    flex: 1 !important;
    max-width: 72% !important;
}
body.archive .container .sidebar,
body.archive .container .widget-area,
body.archive .container .secondary {
    flex: 0 0 26% !important;
    width: 26% !important;
    max-width: 26% !important;
    box-sizing: border-box !important;
}
body.archive .sidebar .widget-area,
body.archive .sidebar .secondary,
body.archive .sidebar .widget-area *,
body.archive .sidebar .secondary * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* ✅ Grid Layout for Blog Posts */
.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
body.home .post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ✅ Single Post Item */
.post-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}
.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}
.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.post-title {
    font-size: 1.5rem;
    margin-top: 15px;
}
.post-title a {
    text-decoration: none;
    color: #333;
}
.post-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}
.post-excerpt {
    font-size: 1rem;
    color: #555;
}
.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #1DA1F2;
    font-weight: bold;
    text-decoration: none;
}
.read-more:hover {
    text-decoration: underline;
}
.pagination {
    margin-top: 30px;
    text-align: center;
}

/* ✅ Single Post Layout */
.single .content-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.single .site-main {
    flex: 1;
    max-width: 72%;
}
.single .sidebar {
    flex: 0 0 28%;
    max-width: 28%;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* ✅ Single Post Custom Styling */
.custom-quote {
    position: relative;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-left: 4px solid #1DA1F2;
    border-radius: 4px;
}
.custom-quote .quote-label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #777;
    margin-bottom: 10px;
}
.custom-quote .open-quote,
.custom-quote .close-quote {
    font-size: 2rem;
    color: #ccc;
    position: absolute;
}
.custom-quote .open-quote {
    top: 0;
    left: 0;
}
.custom-quote .close-quote {
    bottom: 0;
    right: 0;
}
.custom-quote p {
    margin: 0;
    font-style: italic;
    color: #333;
}
.tweet-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: #e6f0fa;
    border-radius: 8px;
    gap: 10px;
}
.tweet-icon-container {
    flex: 0 0 auto;
}
.tweet-icon {
    width: 24px;
    height: 24px;
}
.tweet-text-box {
    flex: 1;
    font-size: 1rem;
    color: #1DA1F2;
    text-decoration: none;
}
.tweet-text-box:hover {
    text-decoration: underline;
}
.tweet-now-link {
    font-size: 0.9rem;
    color: #fff;
    background: #1DA1F2;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
}
.tweet-now-link:hover {
    background: #0d8ddb;
}
.follow-button {
    font-size: 0.9rem;
    color: #1DA1F2;
    border: 1px solid #1DA1F2;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
}
.follow-button:hover {
    background: #e6f0fa;
}
.key-takeaways {
    margin: 20px 0;
    padding: 15px;
    background: #f4f4f4;
    border-radius: 8px;
}
.key-takeaways h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: #333;
}
.takeaway-item {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
}
.takeaway-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #1DA1F2;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}
.takeaway-item p {
    margin: 0;
    color: #555;
}

/* Second Image */
.second-image {
    margin: 20px 0;
}
.second-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Second Image */
.second-image {
    margin: 20px 0;
}
.second-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ✅ Responsive Adjustments */
@media (max-width: 992px) {
    .content-area,
    body.home .content-area,
    body.archive .container,
    .single .content-wrapper {
        flex-direction: column !important;
    }
    .site-main,
    .sidebar,
    body.home .site-main,
    body.home .sidebar,
    body.archive .site-main,
    body.archive .sidebar,
    .single .site-main,
    .single .sidebar {
        max-width: 100% !important;
        width: 100% !important;
    }
    .post-grid,
    body.home .post-grid {
        grid-template-columns: 1fr !important;
    }
}

.content-wrapper {
    width: 100%;
}

.container {
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto;
    padding: 20px;
}

.content-area {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.site-main {
    flex: 2;
    min-width: 0;
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

@media (max-width: 768px) {
    .content-area {
        flex-direction: column;
    }
    
    .site-main,
    .sidebar {
        flex: 1;
        width: 100%;
    }
}