/*
Theme Name: WizzIT Theme
Author: Pixel Lantern
Description: Custom theme for WizzIT Computer Services.
Version: 1.0.0
*/

/* --- Keyframes for Animations --- */
@keyframes slide-down-hero {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes slide-in-left-h1 {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-in-content {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}



/* --- General Styles --- */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #212529;
    background-color: #fff;
}

html,
body {
    scroll-behavior: auto;
    /* Ensure native smooth scrolling is disabled for Lenis */
}

#main {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out;
    /* Smooth transition for fade-in */
}

/* --- Utility Classes --- */
.container {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.logo-text {
    font-family: 'Lobster Two', cursive;
    text-transform: lowercase;
    font-size: 2rem;
    font-weight: 600;
}


/* --- Hero Section --- */
.hero-section {
    padding: 60px 0 120px 0;
    /* Increased bottom padding for the angle */
    /*background-image: linear-gradient(to right, #06beb6, #48b1bf); /* Subtle gradient */
    color: #FFFFFF;
    /* Dark text */
    min-height: auto;
    /* Removed direct background and animation, now handled by .hero-angled-bg */
    position: relative;
    /* For positioning .hero-angled-bg */
    overflow: hidden;
    /* Hide skewed parts of .hero-angled-bg */
    z-index: 2;
    /* Ensure hero section is above services section */

    /* Initial state for slide-down animation */
    transform: translateY(-100%);
    animation: slide-down-hero 0.3s ease-out 0s forwards;
}

.hero-angled-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 20px);
    /* Slightly less than full height to show shadow */
    background-color: transparent;
    /* Changed to transparent to allow gradient to show */
    background-image: linear-gradient(to right, #b8085d, #FF6A00);
    /* New gradient as first layer */
    transform-origin: bottom left;
    transform: skewY(-2deg);
    /* Adjust angle as needed */

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    /* Shadow from angled background */
    z-index: 0;
    /* Behind content */
}

.hero-section>.container {
    /* Target container directly inside hero-section */
    position: relative;
    z-index: 1;
    /* Ensure content is above the skewed background */
}

.hero-content-wrapper {
    position: relative;
    /* Ensure content is on top of skewed background */
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;

}

.hero-content {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Reverted to flex-start to left-align text */
}

.hero-logo-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    margin-bottom: 30px;
    opacity: 0;
    /* Initial state for fade-in */
    animation: fade-in-content 0.2s ease-in 0.1s forwards;
}

.hero-image-container {
    opacity: 0;
    /* Initial state for fade-in */
    animation: fade-in-content 0.3s ease-in 0.15s forwards;
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.hero-title {
    font-size: 3.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 10px;
    /* Initial state for slide-in animation */
    transform: translateX(-100%);
    opacity: 0;
    animation: slide-in-left-h1 0.4s ease-out 0.2s forwards;
}

.hero-tagline {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 16px 0 0 12px;
    background: linear-gradient(to right, #c8cdce, #fbfdff, #b0b5b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    /* Initial state for fade-in */
    animation: fade-in-content 0.3s ease-in 0.25s forwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0 0 12px 24px;
    max-width: 500px;
    opacity: 0;
    /* Initial state for fade-in */
    animation: fade-in-content 0.3s ease-in 0.3s forwards;
}

#hero-buttons {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
    margin-left: 24px;

}

@media (max-width: 768px) {
    #hero-buttons {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
    }
}

.hero-button {
    display: inline-flex;
    flex: 1 1 0;
    background: #42047e;
    color: #fff;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 35px;
    min-width: 120px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    /* Initial state for fade-in */
    animation: fade-in-content 0.3s ease-in 0.35s forwards;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* --- Services Section --- */
.services-section {
    padding: 60px 0 150px 0;
    /* Increased bottom padding to accommodate angled cut */
    background-color: #fff;
    /* Solid white background */
    text-align: center;
    color: #212529;
    /* Dark text */
    position: relative;
    z-index: 1;
    /* Ensure it's above elements that might be below it */

    /* Angled divider using clip-path */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 0 100%);
    /* Adjust '50px' for angle depth */
    /* Add a subtle shadow or border here if desired for depth */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    /* Soft shadow for depth */
}



.services-section .container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}



.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: #212529;
    /* Explicitly dark */
}

.section-subtitle {
    font-size: 1.25rem;
    color: #495057;
    /* Explicitly dark */
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: left;
}

.service-card {
    border: none;
    border-radius: 12px;
    padding: 40px;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 25px;
    text-align: center;
}

.service-icon img {
    height: 80px;
    width: auto;
    object-fit: contain;

}

.service-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 15px;
    color: #212529;
    text-align: center;
    /* Center the title */
}

.service-description {
    font-size: 1rem;
    color: #495057;
    margin: 0;
}


/* --- Testimonials Section --- */


.testimonials-section {
    padding: 150px 0;
    /* Adjusted padding to accommodate top and bottom angles */
    background: linear-gradient(to right, #642B73, #C6426E);
    /* Crimson Tide gradient */
    text-align: center;
    color: #212529;
    /* Dark text for contrast */
    position: relative;
    z-index: 1;

    /* Angled top and bottom dividers using clip-path */
    clip-path: polygon(0 0, 100% 50px, 100% calc(100% - 50px), 0 100%);
}

.testimonials-section .section-title,
.testimonials-section .section-subtitle {
    color: #ffffff;
    /* Ensure titles are white on gradient background */
}

#testimonials-splide-track {
    padding-top: 40px;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #495057;
    text-align: justify;
}

.testimonial-author {
    font-size: 1.0rem;
    font-weight: 700;
    color: #212529;
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        /* Center children of hero-content */
    }

    .hero-image-container {
        margin-top: 40px;
        display: none;
        /* Hide laptop image */
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 10px 20px;
        justify-content: center;
    }

    .hero-section {
        padding: 120px 20px 100px 20px;
        /* Disable animation on mobile for faster LCP */
        transform: none;
        animation: none;
    }

    .hero-title {
        font-size: 2.8rem;
        /* Disable animation on mobile for faster LCP */
        transform: none;
        opacity: 1;
        animation: none;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Disable all hero animations on mobile for faster LCP */
    .hero-logo-container,
    .hero-tagline,
    .hero-subtitle,
    .hero-button,
    .hero-image-container {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }
}


/* --- Footer --- */
.site-footer {
    background-color: #212529;
    /* Dark background */
    color: #fff;
    padding: 60px 0 20px 0;
    position: relative;
    /* Needed for z-index to work */
    z-index: 2;
    /* Ensure footer is above the testimonials section */
}

.site-footer .container {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-column h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-column p,
.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.8;
}

.footer-column a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-navigation li {
    margin-bottom: 10px;
}

.site-info {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 20px;
}

/* --- Responsive Footer --- */
@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 30px;
    }

    .footer-column:last-child {
        margin-bottom: 0;
    }

    .footer-navigation ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* --- Contact Section --- */
.contact-section {
    padding: 150px 0;
    background-color: #f8f9fa;
    /* Light grey background */
    color: #212529;
    text-align: center;
    position: relative;
    top: -52px;
    /* Pull up to overlap with testimonials section */
    z-index: 0;
    clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: #212529;
    /* Dark text on light background */
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* --- Testimonials Section (Updated for Dynamic Content) --- */
.splide__slide>.testimonial-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    /* Center all content */
    height: 100%;
    /* Ensure cards have equal height in the slide */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Remove hover effect from card if it's inside a link */
.testimonial-link .testimonial-card:hover {
    transform: none;
}

.testimonial-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.testimonial-client-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #495057;
    font-style: italic;
}

.testimonial-author {
    font-size: 1.1rem;
    font-weight: 700;
    color: #212529;
    margin: 0;
}

.testimonial-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 5px 0 0 0;
}

.testimonial-location {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 5px 0 0 0;
}

.testimonial-client-url {
    margin-top: 15px;
}

.testimonial-client-url a {
    color: #0073aa;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.testimonial-client-url a:hover {
    text-decoration: underline;
}

/* --- Testimonial Modal --- */
.read-more-link {
    display: inline;
    /* Changed from inline-block */
    margin-left: 5px;
    /* Added for spacing */
    color: #0073aa;
    /* WordPress blue */
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.read-more-link:hover {
    text-decoration: underline;
}

.testimonial-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-modal-overlay.is-visible {
    display: flex;
    /* Use flex to center */
    opacity: 1;
}

.testimonial-modal-content {
    background: #fff;
    margin: 0 32px;
    padding: 40px;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.testimonial-modal-overlay.is-visible .testimonial-modal-content {
    transform: scale(1);
}

.testimonial-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.testimonial-modal-close:hover {
    color: #333;
}

.testimonial-modal-body .testimonial-client-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 4px solid #f0f0f0;
}

.testimonial-modal-body .testimonial-text {
    font-style: normal;
}

.testimonial-modal-body .testimonial-author {
    margin-top: 20px;
}

/* --- Blog Section --- */
.blog-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.category-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    color: inherit;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
}

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

.category-card p {
    font-size: 1rem;
    color: #6c757d;
    margin: 0 0 20px;
}

.category-link {
    font-weight: 700;
    color: #0073aa;
    text-decoration: none;
}

.category-post-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    flex-grow: 1;
}

.category-post-list a {
    text-decoration: none;
    color: #495057;
    border-bottom: 1px solid #EFEFEF;
}

.category-post-list a:hover {
    text-decoration: underline;
    color: #0073aa;
}

.category-post-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.category-link-bottom-right {
    margin-top: auto;
    align-self: flex-end;
}

/* --- Category & Single Post Pages --- */
.page-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.page-title {
    font-size: 2.8rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 0.3fr));
    gap: 30px;
    margin-bottom: 60px;
    /* Space before pagination */
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }
}

.post-card {
    display: block;
    background-color: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    /* Ensures border-radius applies to image */
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.post-card-thumbnail {
    width: 100%;
    height: 200px;
    /* Fixed height for thumbnails */
    overflow: hidden;
    margin-bottom: 20px;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the area, cropping as needed */
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

.post-card-content {
    padding: 0 30px 30px;
    /* Padding for text content */
}

.post-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #212529;
}

.post-card-excerpt {
    font-size: 1rem;
    color: #6c757d;
    margin: 0 0 20px;
}

.post-card .read-more {
    font-weight: 700;
    color: #0073aa;
}

.entry-title a {
    text-decoration: none;
    color: #212529;
}

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

.entry-summary {
    margin-bottom: 20px;
}

.read-more {
    font-weight: 700;
    text-decoration: none;
    color: #0073aa;
}

.entry-content a {
    color: #0073aa;
    text-decoration: underline;
}

.entry-content {
    margin-bottom: 150px;
    max-width: 45ch;
    /* Optimal readability: ~75 characters per line */
    margin-left: auto;
    margin-right: auto;
}

/* Featured image in single posts */
.post-featured-image {
    float: right;
    max-width: 40%;
    margin: 0 0 1.5rem 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    /* Ensure image respects container on mobile */
    height: auto;
    border-radius: 8px;
}

/* Mobile: stack featured image above content */
@media (max-width: 768px) {
    .post-featured-image {
        float: none;
        max-width: 100%;
        margin: 0 0 1.5rem 0;
    }

    .entry-content {
        max-width: 100%;
        /* Full width on mobile */
    }
}

.entry-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.entry-footer .cat-links {
    display: block;
    margin-top: 30px;
}

.comments-area {
    margin-top: 60px;
}

.the-posts-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.the-posts-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #0073aa;
    transition: background-color 0.3s ease;
}

.the-posts-pagination .page-numbers:hover,
.the-posts-pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* --- Minimal Header --- */
.site-header-minimal {
    padding: 20px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.site-header-minimal .site-branding a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #212529;
}

.site-header-minimal .site-logo {
    margin-right: 15px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.site-title-container {
    display: flex;
    flex-direction: row;
    align-items: left;
    align-items: center;
    color: #777;
}

.site-title-container>.logo-text {
    font-size: 3rem;
    line-height: 0.9;
    color: #EE0979;
    background: linear-gradient(to right, #EE0979, #FF6A00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-header-minimal .site-title-text {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    color: #7a7a7a;
    padding: 8px 0 0 8px;
}

.minimal-header-page #main {
    opacity: 1;
    visibility: visible;
}

/* -----------------------------------------
   Navigation wrapper
----------------------------------------- */

.site-navigation {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* desktop: menu to the left */
    gap: 1rem;
}

/* -----------------------------------------
   Desktop menu layout
----------------------------------------- */

.menu--primary {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    gap: 0.75rem;
    align-items: center;
    text-align: left;
}

.menu--primary>li {
    position: relative;
}

.menu--primary>li>a {
    display: inline-block;
    padding: 0.45rem 0.9rem;

    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 999px;

    color: #111827;
    text-decoration: none;

    transition: background-color 0.15s ease, color 0.15s ease;
}

.menu--primary>li>a:visited {
    color: #111827;
}

.menu--primary>li>a:hover,
.menu--primary>li>a:focus-visible {
    background-color: #f3f4f6;
    color: #111827;
}

/* -----------------------------------------
   Dropdown styling – desktop
----------------------------------------- */

.menu--primary li.menu-item-has-children>a::after {
    content: " \25BE";
    /* ▼ */
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

.menu--primary .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;

    margin: 0.4rem 0 0;
    padding: 0.4rem;

    list-style: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);

    transition:
        opacity 0.15s ease,
        visibility 0.15s ease,
        transform 0.15s ease;
    z-index: 50;
}

.menu--primary li.menu-item-has-children:hover>.sub-menu,
.menu--primary li.menu-item-has-children:focus-within>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li>a {
    display: block;
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 6px;

    color: #111827;
    text-decoration: none;
}

.sub-menu li>a:hover {
    background: #f3f4f6;
}

/* -----------------------------------------
   Toggle button (hidden on desktop)
----------------------------------------- */

.nav-toggle {
    display: none;
    /* hidden on desktop */
    border: none;
    background: transparent;
    padding: 0.4rem;
    cursor: pointer;
    border-radius: 999px;
}

.nav-toggle:focus-visible {
    outline: 2px solid #4b5563;
    outline-offset: 2px;
}

/* Both icons share the same visual style */
.nav-toggle__icon {
    width: 24px;
    height: 24px;
    display: block;
    z-index: 10;
}

.nav-toggle__icon line {
    stroke: #111827;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Default: hamburger visible, X hidden */
.nav-toggle__icon--menu {
    display: block;
}

.nav-toggle__icon--close {
    display: none;
}

/* -----------------------------------------
   Mobile behaviour
----------------------------------------- */

@media (max-width: 768px) {

    .nav-inner {
        justify-content: center;
        /* centre the toggle button */
    }

    .nav-toggle {
        display: inline-flex;
        /* show toggle on mobile */
        align-items: center;
        justify-content: center;
    }

    .menu--primary {
        position: fixed;
        top: 64px;
        /* match your header height if different */
        left: 0;
        right: 0;

        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;

        display: none;
        /* hidden until .is-open is added */
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem 0;

        text-align: left;
    }

    .menu--primary.is-open {
        display: flex;
    }

    .menu--primary>li {
        width: 100%;
        margin: 0;
    }

    .menu--primary>li>a {
        width: 100%;
        padding: 1rem 1.25rem;
        border-radius: 0;
    }

    /* Submenus inline, indented */
    .menu--primary .sub-menu {
        position: static;
        min-width: 0;
        margin: 0;
        padding: 0;

        border: 0;
        border-radius: 0;
        box-shadow: none;

        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .menu--primary .sub-menu li>a {
        padding-left: 2.25rem;
    }
}

/* -----------------------------------------
   Swap icons when menu is open (X visible)
----------------------------------------- */

.nav-toggle[aria-expanded="true"] .nav-toggle__icon--menu {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close {
    display: block;
}








/* --- Post Navigation & Category Links --- */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.post-navigation a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #212529;
    font-weight: 600;
}

.post-navigation .nav-arrow {
    font-size: 1.5rem;
}

.category-navigation {
    text-align: center;
    margin-bottom: 40px;
}

.category-navigation h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.category-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-navigation li a {
    text-decoration: none;
    background-color: #f0f0f0;
    color: #212529;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.category-navigation li a:hover {
    background-color: #0073aa;
    color: #fff;
}