.custom-logo-link {
    width: 40px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
}

.custom-summary-highlight {
    background: #eee;
    padding: 1em;
}

[data-theme=spnc_dark] .custom-summary-highlight {
    background: #333;
}
@media only screen and (max-width: 640px) {
    .site-branding .site-title {
        word-break: break-word;
    }
}

.ast-logo-title-inline .site-logo-img {
    max-width: 52px;
}

.main-header-menu .menu-item:hover>.sub-menu {
    right: 0;
    left: auto;
}

.op300-top-category-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between items */
    padding: 0;
    list-style: none; /* Remove default list styles */
}

.op300-top-category-widget li {
    flex: 1 1 calc(50% - 10px); /* Two items per row with gap adjustment */
    box-sizing: border-box; /* Ensure padding/margins are included in width */
}

.op300-top-category-widget li:first-child {
    flex: 1 1 100%; /* First item takes full width */
}

.op300-top-category-widget li:first-child .wp-block-latest-posts__featured-image {
    text-align: center;
}

/* OP300 Main Page Styles */
.op300-main-page {
    margin: 0 auto;
}

/* Featured Section */
.op300-featured-section {
    position: relative;
}

.op300-featured-section .featured-image {
    flex: 1;
}

.op300-featured-section .featured-image img {
    width: 100%;
    border-radius: 16px;
}

.op300-featured-section .featured-content, .op300-category-featured .featured-content  {
    margin-top: 32px;
}

.op300-featured-section h2, .op300-category-featured h2 {
    font-size: 44px;
    font-weight: 600;
    margin: 12px 0 0;
    color: #000;
}

.op300-featured-section h2 a, .op300-category-featured h2 a {
    color: #000;
}

.op300-featured-section .featured-excerpt {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Ad Block */
.op300-ad-block {
    text-align: center;
    margin: 40px 0;
}

/* Recent Posts */
.op300-recent-posts {
    margin-top: 40px;
}

.recent-posts-grid, .most-viewed-grid, .ast-author-box ~ #main .ast-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 52px 0 0;
}

.recent-post-item, .most-viewed-item {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.recent-post-item .post-thumbnail, .most-viewed-item .post-thumbnail {
    flex: 1;
}

.recent-post-item .post-thumbnail img, .most-viewed-item .post-thumbnail img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 16/9;
}

.recent-post-item .post-content, .most-viewed-item .post-content {
    margin-top: 20px;
    flex: 2.12;
}

.recent-post-item .post-content h3, .most-viewed-item .post-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 12px;
    color: #141517;
}

.recent-post-item .post-content h3 a, .most-viewed-item .post-content h3 a {
    color: #141517;
}

/* Top Categories */
.op300-top-categories {
    margin: 40px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.category-card {
    background: #f8f9fa;
    color: #141517;
    border-radius: 16px;
    padding: 48px 0;
    text-align: center;
}

.category-card:nth-child(1) {
    background: #FFC9C9;
}

.category-card:nth-child(2) {
    background: #FFEC99;
}

.category-card:nth-child(3) {
    background: #B2F2BB;
}

.category-card:nth-child(4) {
    background: #CED7FF;
}

.category-card:nth-child(5) {
    background: #E9ECEF;
}

.category-card a {
    text-decoration: none;
    color: inherit;
}

.category-card h3 {
    font-size: 20px;
}

/* Recommendations */
.op300-recommendations {
    margin: 40px 0 0 0;
}

.recommendations-list {
    display: grid;
    grid-template-columns: 672px 1fr;
    grid-template-rows: repeat(4, 1fr);
    row-gap: 24px;
    column-gap: 32px;
}

.recommendation-item {
    display: flex;
}

.recommendation-item:first-child {
    grid-row: span 4 / span 4;
    flex-direction: column;
}

.recommendation-item:first-child .recommendation-thumbnail img {
    width: 100%;
    max-height: 339px;
}

.recommendation-item:first-child .recommendation-content {
    margin-top: 24px;
}

.recommendation-item:not(:first-child) .recommendation-thumbnail img {
    width: 100%
}

.recommendation-item:not(:first-child) {
    max-height: 118px;
}

.recommendation-item:not(:first-child) .recommendation-thumbnail {
    flex: 1;
}

.recommendation-item:not(:first-child) .recommendation-content {
    margin-top: 0;
    margin-left: 16px;
    flex: 2.63;
}

.recommendation-item .recommendation-thumbnail img {
    border-radius: 16px;
    aspect-ratio: 16/9;
}

.recommendation-item .recommendation-content {
    margin-top: 20px;
}

.recommendation-item .recommendation-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 12px;
    color: #141517;
}

.recommendation-content {
    flex: 1;
}

.recommendation-content h4 {
    margin-bottom: 5px;
    font-size: 1.1em;
}

.recommendation-item .recommendation-content h4 a {
    color: #141517;
}

.recommendation-date {
    color: #666;
    font-size: 0.9em;
}

/* Section Titles */
.section-title, .comments-title {
    font-size: 38px;
    margin: 0 0 32px;
    color: #000;
    font-weight: 600;
    word-break: break-word;
}

.op300-category-all-posts .section-title {
    margin-bottom: 24px;
}

/* Custom Footer Styles */
.op300-custom-footer {
    background-color: #000;
    color: #fff;
    padding: 52px 0 24px 0;
    text-align: center;
}

.op300-custom-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Navigation */
.footer-navigation {
    margin-bottom: 30px;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.footer-menu a:hover {
    color: #3498db;
}

/* Site Info */
.site-info {
    font-size: 15px;
    color: #fff;
    margin-top: 168px;
}

/* Category Page Styles */
.op300-category-page {
    margin: 0 auto;
}

.op300-category-page .page-header {
    margin-bottom: 52px;
    text-align: center;
}

.op300-category-page .page-title {
    font-size: 44px;
    font-weight: 600;
    color: #000;
    margin-bottom: 0;
}

.category-description {
    font-size: 1.1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Category Featured Post */
.op300-category-featured {
    position: relative;
}

.op300-category-featured .featured-image {
    flex: 1;
}

.op300-category-featured .featured-image img {
    width: 100%;
    border-radius: 16px;
}

.op300-category-featured .featured-undercover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 36.99%, rgba(0, 0, 0, 0.64) 100%);
    border-radius: 16px;
}

.op300-category-featured .featured-excerpt {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Most Viewed Posts */
.op300-category-most-viewed {
    margin: 60px 0;
}

/* All Posts Section - Using Astra's layout with smaller cards */
.op300-category-all-posts {
    margin: 50px 0;
}

.op300-category-all-posts .ast-blog-entries {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.op300-category-all-posts .ast-article-post {
    overflow: hidden;
    padding: 0;
}

.op300-category-all-posts .post-thumb-img-content {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
}

.op300-category-all-posts .post-thumb-img-content img {
    width: 100%;
    border-radius: 16px;
}

.op300-category-all-posts .post-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 12px;
    color: #141517;
}

.op300-category-all-posts .post-content h2 a {
    color: #141517;
}

.op300-category-all-posts .ast-post-meta {
    margin-bottom: 8px;
    font-size: 0.85em;
    color: #666;
    order: 3;
}

.op300-category-all-posts .ast-post-meta span {
    margin-right: 12px;
}

.op300-category-all-posts .entry-header {
    order: 1;
    margin-top: 24px;
}

.op300-category-all-posts .entry-title {
    font-size: 1.3em;
    margin: 0;
    line-height: 1.3;
}

.op300-category-all-posts .entry-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.op300-category-all-posts .entry-content {
    order: 2;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #555;
    font-size: 0.95em;
}

.op300-category-all-posts .read-more {
    color: #007cba;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.ast-container {
    min-height: 98px;
}

.main-header-menu .menu-item {
    font-size: 16px;
    font-weight: 600;
    color: #141517;
    text-align: center;
}

.op300-categories-dropdown .sub-menu .menu-link {
    width: 80%;
    margin: 0 auto;
    border-radius: 12px;
}

.main-header-menu .sub-menu .menu-item:hover .menu-link {
    background: #F1F3F5;
    color: #141517 !important;
}

.ast-builder-menu .main-navigation > ul > li:last-child a {
    margin-right: auto;
}

.op300-categories-dropdown .sub-menu {
    border-top: none;
}

.main-header-bar {
    border: none;
}

.ast-plain-container.ast-no-sidebar #primary {
    margin-top: 0;
}

.ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
    fill: #323232;
}

.ast-header-break-point .ast-primary-header-bar {
    border: none;
}

.op300-post-categories, .op300-category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.op300-post-category, .op300-category-badge {
    font-size: 16px;
    font-weight: 600;
    padding: 0 16px;
    border: 1px solid #CED7FF;
    border-radius: 12px;
}

.op300-post-category a, .op300-category-badge a {
    color: #141517;
}

.ast-container .content-area .ast-author-box {
    padding: 0;
    max-width: fit-content;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    margin: 32px auto 0;
    gap: 16px;
    text-align: center;
}

.ast-author-box .ast-author-avatar {
    margin: 0;
}

.ast-author-box img.avatar {
    width: 120px;
    height: 120px;
}

.ast-container .content-area .ast-author-bio h1 {
    font-size: 44px;
    font-weight: 600;
    line-height: 52px;
    margin: 0;
    color: #000;
}

.ast-container .content-area .ast-author-bio p {
    font-size: 18px;
    font-weight: 400;
    color: #868E96;
    margin-top: 16px;
    max-width: 800px;
}

/* Single Post Template Styles */
.ast-separate-container .ast-article-single {
    margin: 0 auto 52px;
}
.op300-single-post .op300-article-single {
    max-width: 1000px;
    padding: 0;
    margin: 0 auto 52px;
}

.op300-featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.op300-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.op300-post-content-wrapper {
    padding: 40px;
}

/* Single Post Categories */
.op300-single-categories {
    margin-bottom: 12px;
}

.op300-single-categories .op300-post-category {
    font-size: 16px;
    font-weight: 600;
    padding: 0 16px;
    border: 1px solid #CED7FF;
    border-radius: 12px;
}

.op300-single-categories .op300-post-category a {
    color: #141517;
}

/* Entry Title */
.op300-article-single .entry-title {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 30px 0;
    color: #2c3e50;
}

/* Author Section */
.op300-author-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    width: 56px;
    height: 56px;
    object-fit: cover;
    box-shadow: none;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 20px;
    font-weight: 600;
}

.author-name a {
    color: #141517;
    text-decoration: none;
}

.author-description {
    font-size: 14px;
    font-weight: 400;
    color: #868E96;
}

.author-job-title {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
    margin-bottom: 4px;
}

.post-date {
    font-size: 0.85em;
    color: #888;
}

/* Entry Content */

.op300-article-single .entry-content p {
    margin-bottom: 1.5em;
}

.op300-article-single .entry-content h1,
.op300-article-single .entry-content h2,
.op300-article-single .entry-content h3,
.op300-article-single .entry-content h4,
.op300-article-single .entry-content h5,
.op300-article-single .entry-content h6 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #2c3e50;
}

.op300-article-single .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.op300-article-single .entry-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    border-radius: 4px;
}

/* Post Tags */
.op300-post-tags {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.tags-label {
    font-weight: 700;
    color: #141517;
    font-size: 20px;
}

.op300-post-tag {
    display: inline-block;
    background: #e9ecef;
    padding: 3px 20px;
    border-radius: 12px;
}

.op300-post-tag a {
    color: #141517;
    border-radius: 16px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.op300-post-tag a:hover {
    background: #007cba;
    color: #fff;
    transform: translateY(-1px);
}

/* Post Navigation */
.post-navigation {
    margin: 40px 0;
    padding: 0 40px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.post-navigation .nav-title {
    display: block;
    font-weight: 600;
    color: #2c3e50;
}

.post-navigation a {
    text-decoration: none;
    color: inherit;
}

/* Page Links */
.page-links {
    margin: 20px 0;
    text-align: center;
}

.page-links .page-link {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #007cba;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.page-links .page-link:hover {
    background: #005a87;
}

#page .site-content {
    background: #fff;
}

.ast-narrow-container .site-content > .ast-container {
    max-width: fit-content;
}

.ast-separate-container #primary {
    margin-top: 24px;
    padding: 0;
}

.op300-single-post article {
    padding: 0 !important;
}

.op300-single-post .op300-featured-image img {
    border-radius: 16px;
}

.op300-single-post .op300-post-content-wrapper {
    padding: 0;
    margin-top: 24px;
}

.op300-single-post .op300-article-single .entry-title {
    font-size: 44px;
    color: #000;
}

.op300-article-single .entry-content p {
    font-size: 16px;
    color: #141517;
    margin-bottom: 32px;
}


.ast-author-box ~ #main .ast-row .ast-article-post {
    padding: 0;
    width: auto;
    border: none;
    margin: 0;
}

.ast-author-box ~ #main .ast-row .ast-article-post .ast-article-inner {
    box-shadow: none;
    border: none;
    padding: 0;
}

.ast-author-box ~ #main .ast-row .ast-article-post .ast-article-inner .post-thumb {
    margin: 0 0 20px;
}

.ast-author-box ~ #main .ast-row .ast-article-post .ast-article-inner .post-thumb img{
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 16/9;
}

.ast-author-box ~ #main .ast-row .ast-article-post .ast-article-inner .cat-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ast-author-box ~ #main .ast-row .ast-article-post .ast-article-inner .cat-links a {
    font-size: 16px;
    font-weight: 600;
    padding: 0 16px;
    border: 1px solid #CED7FF;
    border-radius: 12px;
    color: #141517;
}

.ast-author-box ~ #main .ast-row .ast-article-post .ast-article-inner .entry-title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 12px;
    color: #141517;
}

.ast-author-box ~ #main .ast-row .ast-article-post .ast-article-inner .entry-title a {
    color: #141517;
    text-decoration: none;
}

.ast-plain-container.ast-no-sidebar #primary {
    margin-bottom: 100px
}

.ast-separate-container .comments-title, .ast-narrow-container .comments-title, .ast-separate-container .ast-comment-list li.depth-1, .ast-narrow-container .ast-comment-list li.depth-1 {
    padding: 0;
}

header.ast-comment-meta {
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
}

.ast-comment-cite-wrap {
    margin-left: 0;
}

.ast-comment-cite-wrap cite {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.ast-comment-time {
    margin-left: 0;
    font-weight: 400;
    font-size: 12px;
    color: #868E96;
}

section.ast-comment-content.comment {
    padding-left: 0;
}

.ast-comment-content.comment p {
    font-size: 16px;
    font-weight: 400;
    color: #141517;
}

.comment-respond {
    max-width: 1000px;
    margin: 52px auto 0;
    border: 1px solid #E9ECEF;
    border-radius: 16px;
    padding: 32px;
    background: #fff;
}

.comment-reply-title {
    margin-bottom: 4px;
    font-weight: 700;
}

.comments-area .comment-notes, .ast-comment-formwrap .ast-grid-common-col {
    margin-bottom: 20px;
}

.comment-respond label {
    overflow: auto;
    position: relative;
    width: auto;
    clip-path: none;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 400;
    color: #141517;
}

.comment-respond input, .comment-respond textarea {
    border-color: #E9ECEF;
    border-radius: 8px;
    box-shadow: none;
}

.comment-form-cookies-consent {
    display: flex;
    margin-bottom: 20px;
}

.comment-form-cookies-consent label {
    font-size: 13px;
    font-weight: 400;
    color: #868E96;
}

.comment-form-cookies-consent .checkbox {
    margin-right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border-color: #E9ECEF;
}

.comment-respond .form-submit input#submit {
    border-radius: 100px;
    font-size: 14px;
    font-weight: 400;
    padding: 16px 65px;
    height: 52px;
}

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

@media (min-width: 922px) {
    .ast-container {
        max-width: 1440px;
        padding: 0 32px;
    }

    .section-title, .comments-title {
        font-size: 38px;
    }
}

/* Responsive Design for smaller cards */
@media (max-width: 768px) {
    .ast-container {
        padding: 0 24px;
    }

    .op300-featured-section h2, .op300-category-featured h2 {
        font-size: 26px;
        padding-right: 20px;
    }

    .op300-category-all-posts .ast-article-post {
        flex-direction: column;
        gap: 15px;
        margin: 0;
    }

    .op300-category-all-posts .post-thumb-img-content {
        width: 100%;
    }

    .op300-category-all-posts .entry-title {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .ast-container {
        padding: 0 12px;
    }

    .op300-category-all-posts .entry-title {
        font-size: 1.1em;
    }

    .op300-category-all-posts .ast-post-meta {
        font-size: 0.8em;
    }

    .section-title, .comments-title {
        font-size: 24px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ast-container .content-area .ast-author-bio h1 {
        font-size: 32px;
    }

    .recommendations-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 120px;
    }

    .recommendation-item:first-child {
        margin-bottom: 8px;
    }

    .recommendation-item:first-child .recommendation-thumbnail img {
        max-height: max-content;
    }

    .footer-navigation {
        margin-bottom: 0;
    }

    .footer-menu {
        flex-direction: column;
        gap: 19px;
    }

    .site-info {
        margin-top: 154px;
    }

    .ast-plain-container.ast-no-sidebar #primary {
        margin-bottom: 120px
    }
}

@media (max-width: 768px) {
    .op300-single-post .op300-article-single .entry-title {
        font-size: 40px;
    }

    .op300-featured-section .featured-content {
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: 20px;
    }

    .op300-category-featured .featured-content {
        bottom: 20px;
        left: 20px;
    }

    .op300-featured-section .featured-undercover {
        display: none;
    }

    .op300-featured-section .featured-content .op300-post-category a, .op300-featured-section h2 a {
        color: #141517;
    }

    .op300-post-content-wrapper {
        padding: 20px;
    }

    .op300-article-single .entry-title {
        font-size: 2em;
    }

    .op300-featured-image {
        height: 250px;
    }

    .op300-author-section {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .post-navigation .nav-links {
        flex-direction: column;
    }

    .recommendations-list {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 650px) {
    .recent-posts-grid, .recommendations-list, .most-viewed-grid, .op300-category-all-posts .ast-blog-entries, .ast-author-box ~ #main .ast-row {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .op300-post-content-wrapper {
        padding: 15px;
    }

    .op300-article-single .entry-title {
        font-size: 1.6em;
    }

    .op300-featured-image {
        height: 200px;
    }

    .recommendation-item:first-child {
        margin-bottom: 0;
    }

    .recommendation-item:not(:first-child) {
        flex-direction: column;
        max-height: fit-content;
        width: 100%;
    }

    .recommendation-item:not(:first-child) .recommendation-content {
        margin-top: 16px;
        margin-left: 0;
    }

    .recommendation-item:not(:first-child) .recommendation-thumbnail img {
        max-height: fit-content;
        width: 100%;
    }

    .ast-plain-container.ast-no-sidebar #primary {
        margin-bottom: 60px
    }
}