/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #b7b7b7;
    background-color: #151515;
}

a {
    color: #b7b7b7;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.skip-link:focus {
    left: 0;
    z-index: 100000;
    background: #151515;
    padding: 10px 20px;
}

/* Header Styles */
.site-header {
    background-color: #1a1a1a;
    padding: 20px 0;
    position: relative;
    z-index: 1000;
}

.site-header-main .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    flex: 1;
}

.site-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.site-title a {
    color: #b7b7b7;
}

.site-description {
    font-size: 16px;
    color: #777777;
    font-style: italic;
}

/* Navigation Styles */
.menu-toggle {
    display: none;
    background: #363636;
    border: none;
    color: #b7b7b7;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 4px;
}

.menu-toggle:hover {
    background: #444444;
}

.main-navigation {
    flex: 2;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #b7b7b7;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    display: block;
}

.nav-menu a:hover,
.current-menu-item a {
    color: #ffffff;
}

/* Submenu Styles */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    min-width: 200px;
    list-style: none;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
    display: block;
}

.sub-menu li {
    padding: 0;
}

.sub-menu a {
    padding: 10px 20px;
    display: block;
}

.sub-menu a:hover {
    background: #363636;
}

/* Header Media / Hero Section */
.custom-header {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.custom-header-media {
    width: 100%;
    height: 100%;
}

.wp-custom-header {
    width: 100%;
    height: 100%;
}

.wp-custom-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.custom-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

/* Main Content Area */
.site-content {
    padding: 20px 0 60px 0;
}

/* Section Heading */
.section-heading-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #b7b7b7;
    margin: 15px auto 0;
}

/* Blog Post Grid */
.archive-post-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.post {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.post-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-thumbnail {
    overflow: hidden;
    height: 300px;
    flex-shrink: 0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post:hover .post-thumbnail img {
    transform: scale(1.05);
}

.entry-container {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.entry-header {
    margin-bottom: 15px;
}

.entry-meta {
    font-size: 14px;
    color: #777777;
    margin-bottom: 10px;
}

.cat-links {
    color: #999999;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.entry-title {
    font-size: 24px;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1.3;
}

.entry-title a {
    color: #ffffff;
}

.entry-title a:hover {
    color: #b7b7b7;
}

.posted-on {
    margin-right: 15px;
}

.byline {
    color: #999999;
}

.entry-summary {
    color: #b7b7b7;
    line-height: 1.6;
}

.entry-summary p {
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid #363636;
}

.site-info {
    color: #777777;
    font-size: 14px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .archive-post-wrap {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .site-header-main .wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-toggle {
        display: block;
        margin-top: 15px;
    }

    .main-navigation {
        width: 100%;
        display: none;
    }

    .main-navigation.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-top: 20px;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #363636;
    }

    .nav-menu a {
        padding: 15px 0;
    }

    .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #151515;
        padding-left: 20px;
    }

    .menu-item-has-children.active .sub-menu {
        display: block;
    }

    .site-title {
        font-size: 24px;
    }

    .site-description {
        font-size: 14px;
    }

    .custom-header {
        height: 250px;
    }

    .section-title {
        font-size: 32px;
    }

    .archive-post-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .post-thumbnail {
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .wrapper {
        padding: 0 15px;
    }

    .site-content {
        padding: 15px 0 40px 0;
    }

    .site-title {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .entry-title {
        font-size: 20px;
    }

    .entry-container {
        padding: 20px;
    }
}

/* Single Post Styles */
.post-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-header {
    margin-bottom: 40px;
}

.post-title {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta {
    font-size: 16px;
    color: #777777;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #363636;
}

.post-meta span {
    margin-right: 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #b7b7b7;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

/* Entry Content Typography */
.entry-content h2 {
    font-size: 32px;
    color: #ffffff;
    margin: 40px 0 20px;
}

.entry-content h3 {
    font-size: 24px;
    color: #ffffff;
    margin: 30px 0 15px;
}

.entry-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0 20px 30px;
    line-height: 1.8;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content strong {
    color: #ffffff;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content figure {
    margin: 30px 0;
    text-align: center;
}

.entry-content figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: #999999;
    font-style: italic;
}

.entry-content .wp-block-image {
    margin: 30px 0;
}

/* Image Alignment */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.aligncenter img,
.entry-content figure img {
    margin-left: auto;
    margin-right: auto;
}

/* Post Navigation */
.back-link {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 24px;
    background: #363636;
    color: #b7b7b7;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.back-link:hover {
    background: #444444;
    color: #ffffff;
}

.post-navigation {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #363636;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 45%;
}

.nav-next {
    text-align: right;
    margin-left: auto;
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777777;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.nav-links a:hover .nav-title {
    color: #b7b7b7;
}

@media screen and (max-width: 768px) {
    .post-title {
        font-size: 32px;
    }

    .entry-content h2 {
        font-size: 26px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .nav-previous,
    .nav-next {
        max-width: 100%;
        text-align: center;
    }
}