/* 
 * Main Styles
 * --------------------
 */

/* Logo */
.custom-logo {
    max-width: 180px !important;
    width: 100%;
    height: auto;
}

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

/* Main Menu */
.main-menu .menu {
    list-style: none;
    display: flex;
    align-items: center;
}
/* .main-menu .menu-item {
    position: relative;
} */
.main-menu .menu a {
    text-decoration: none;
    color: #fff;
    padding: 2rem 1rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.mobile-menu .menu a:hover,
.mobile-menu .menu a:active,
.main-menu .menu a:hover,
.main-menu .menu a:active {
    opacity: 1;
}
.main-menu .sub-menu {
    list-style: none;
    display: none;
    flex-direction: column;
    background-color: var(--color-3);
    border-radius: 0.25rem;
    /* width: 200px; */
    position: absolute;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.main-menu .sub-menu a {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: var(--color-4);
    width: 100%;
    transition: all 0.2s ease;
}
.main-menu .sub-menu a:hover {
    color: var(--color-3);
    background-color: var(--color-2);
}
.main-menu .sub-menu:before {
    content: "";
    display: block;
    position: absolute;
    top: -20px;
    left: 35px;
    width: 20px;
    height: 20px;
    clip-path: polygon(50% 25%, 0% 100%, 100% 100%);
    background-color: var(--color-3);
    pointer-events: none;
}
.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mobile-menu .menu a {
    text-decoration: none;
    color: var(--color-4);
    padding: 0.5rem 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    width: 100%;
}
.mobile-menu .sub-menu {
    display: none;
}

/* 
 * Testimonials Section
 * --------------------
 */
.testimonial-bg {
    transform: rotate(-7deg) translate(26px, 60px);
    width: 94% !important;
    min-height: 210px;
}

.testimonial-pagination .swiper-pagination-bullet {
    background-color: transparent;
    display: grid;
    padding: 4px;
    border-radius: 50%;
    outline: 1px dashed #ffffff;
    width: auto !important;
    height: auto !important;
}

.testimonial-pagination .swiper-pagination-bullet::after {
    content: "";
    display: block;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    background-color: #fff;
}

.testimonial-pagination .swiper-pagination-bullet-active {
    background-color: #fff;
}

.testimonial-pagination .swiper-pagination-bullet-active::after {
    background-color: var(--color-1);
}

/* 
 * Newsletter Section
 * --------------------
 */
.newsletter-wrapper > p {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: flex;
}

.newsletter-wrapper br {
    display: none;
}

span:has(.newsletter-email) {
    width: 100%;
}

.newsletter-email {
    width: 100%;
    background-color: #fff;
    border-radius: 50px;
    padding: 0.9rem 2rem;
    font-size: 0.875rem;
}

.newsletter-submit {
    background-color: var(--color-1);
    color: var(--color-3);
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 50px;
    padding: 0.9rem 2rem;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.875rem;
}

.newsletter-wrapper .wpcf7-spinner {
    margin: 13px 4px 0 0;
}

.newsletter-wrapper .wpcf7-not-valid-tip {
    margin-top: 0.5rem;
}

form:has(.newsletter-wrapper) .wpcf7-response-output {
    max-width: 650px;
    margin: 1rem auto 0 auto !important;
    background: #fff;
}

/* 
 * Footer
 * --------------------
 */
#footer .menu {
    list-style: none;
    display: flex;
    flex-direction: column;
}

#footer .menu a {
    width: 100%;
    text-decoration: none;
    color: #fff;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

#footer .menu a:hover {
    opacity: 1;
}

/* 
 * FAQ Section
 * --------------------
 */
#faq h2[aria-expanded="true"] .accordion-icon {
    transform: rotate(45deg);
}

/* 
 * Portfolio Table
 * --------------------
 */

/* Sortable table headers */
.sortable {
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sortable:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Sort icon */
.sort-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 0.7;
}

.sort-icon span {
    display: block;
    font-size: 10px;
    line-height: 1;
    margin: 1px 0;
}

.sort-icon span:not(.opacity-50) {
    color: #fff;
    font-weight: bold;
}

/* Table cells spacing */
.padding-y-12 {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Loading state */
#table-body.loading {
    position: relative;
    min-height: 100px;
}

#table-body.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

#table-body.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

/* Search functionality */
.search-container {
    margin-bottom: 1.5rem;
}

#sites-search {
    border-color: #dee2e6;
    width: 220px;
    transition: all 0.3s ease;
}

#sites-search:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

.search-highlight {
    background-color: rgba(255, 255, 0, 0.3);
    padding: 0 2px;
    border-radius: 2px;
}

.no-results {
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Table controls */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Sites per page selector */
#sites-number {
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#sites-number:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Pagination styles */
#pagination-info {
    font-size: 14px;
    color: #6c757d;
    margin: 0.5rem 0;
}

/* Pagination controls */
#pagination-controls,
#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    gap: 5px;
}

#pagination-controls button,
#pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: var(--color-4);
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

#pagination .page-link {
    text-decoration: none;
    color: #007bff;
}

#pagination-controls button.pagination-prev,
#pagination-controls button.pagination-next,
#pagination .prev,
#pagination .next {
    min-width: 80px;
}

#pagination-controls button:hover:not(.active):not(.disabled),
#pagination .page-link:hover:not(.active):not(.disabled) {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #0056b3;
    z-index: 2;
}

#pagination-controls button.active,
#pagination .page-link.active {
    z-index: 3;
    color: #fff;
    background-color: var(--color-2);
    border-color: var(--color-2);
}

#pagination-controls button.disabled,
#pagination .page-link.disabled {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
    opacity: 0.65;
}

#pagination-controls .pagination-ellipsis,
#pagination .page-ellipsis {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* Text animation */
.text-animation-container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: left;
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

.animated-text {
    font-weight: bold;
    color: #0073aa; /* WordPress blue */
    position: relative;
}

.animated-cursor {
    display: inline-block;
    width: 6px;
    height: 3.5rem;
    background-color: #fff;
    margin-left: 6px;
    animation: blink 1s infinite;
    transform: translateY(-4px);
}

/* 
 * Animations
 * --------------------
 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* 
 * Contact Form
 * --------------------
 */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form input:not([type="submit"]),
.contact-form textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #333;
    background-color: #fff;
}
.contact-form input:not([type="submit"]):focus,
.contact-form textarea:focus {
    border-color: var(--color-2);
}
.contact-form input[type="submit"] {
    background-color: var(--color-2);
    color: var(--color-3);
    border: none;
    border-radius: 4px;
    padding: 0.85rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-form input[type="submit"]:hover {
    background-color: var(--color-1);
}
.wpcf7-not-valid-tip {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}
.wpcf7-response-output {
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 
 * WooCommerce Pages
 * --------------------
 */
.custom-woocommerce-archive .woocommerce-ordering select {
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    padding: 2px;
}
.custom-woocommerce-archive .woocommerce-ordering {
    position: relative;
}
.custom-woocommerce-archive .woocommerce-ordering::after {
    content: "";
    display: block;
    position: absolute;
    right: 4px;
    top: 7px;
    background-image: url(../icons/up-black.svg);
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(180deg);
    width: 12px;
    height: 12px;
}
.custom-woocommerce-single ul.products li,
.custom-woocommerce-archive ul.products li {
    border: 1px solid #ebebeb;
    text-align: center;
    padding-bottom: 1.5rem !important;
}
.custom-woocommerce-single .woocommerce-loop-product__title,
.custom-woocommerce-archive .woocommerce-loop-product__title {
    color: var(--color-4);
    font-weight: 600;
}
.custom-woocommerce-single ul.products li.product .price,
.custom-woocommerce-archive ul.products li.product .price {
    color: var(--color-2);
    font-weight: 500;
}
.custom-woocommerce-single ul.products li.product .button,
.custom-woocommerce-archive ul.products li.product .button {
    background-color: var(--color-1);
    color: var(--color-3);
    font-weight: 600;
    border-radius: 4px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    max-width: 205px;
    width: 100%;
    display: block;
}
.custom-woocommerce-single ul.products li.product .button:hover,
.custom-woocommerce-archive ul.products li.product .button:hover {
    background-color: var(--color-2);
}
.custom-woocommerce-single div.product .product_title {
    font-size: 1.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme))
    .custom-woocommerce-single
    div.product
    p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme))
    .custom-woocommerce-single
    div.product
    span.price {
    color: var(--color-2);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.single_add_to_cart_button {
    font-weight: 600 !important;
    background-color: var(--color-2) !important;
}
.single_add_to_cart_button:hover {
    background-color: var(--color-4) !important;
}

/*
 *
 * Block Package Editor
 * --------------------
 */
.card-editor h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.card-editor ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.card-editor li {
    font-size: 0.95rem;
    opacity: 0.75;
    line-height: 1.8em;
}

/* Editor */
#block-editor > *:first-child {
    margin-top: 0 !important;
}
#block-editor h2 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-4);
    line-height: 1.25em;
}
#block-editor h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-4);
    line-height: 1.25em;
}
#block-editor p {
    font-size: 1rem;
    line-height: 1.6em;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--color-5);
}

/*
 * WooCommerce Pages
 */
/* Custom Cart Styling with Bootstrap Integration */
.custom-cart-container {
    padding: 40px 0;
}

.cart-title {
    font-weight: 600;
}

/* Custom Bootstrap color class for the purple header */
.bg-purple {
    background-color: #7f3f98; /* Purple color from your image */
}

.btn-purple {
    background-color: #7f3f98;
    color: white;
    border-color: #7f3f98;
}

.btn-purple:hover,
.btn-purple:focus {
    background-color: #6a3080;
    color: white;
    border-color: #6a3080;
}

/* Override some Bootstrap defaults */
.custom-cart-table th {
    font-weight: 600;
    color: white;
}

.custom-cart-table td {
    vertical-align: middle;
}

.custom-cart-table .product-remove {
    width: 40px;
    text-align: center;
}

.custom-cart-table .product-remove a {
    color: #dc3545;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 22px;
}

.custom-cart-table .product-remove a:hover {
    color: #c82333;
}

.custom-cart-table .product-name a {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
}

.custom-cart-table .product-name a:hover {
    color: #7f3f98;
}

.custom-cart-table .product-price,
.custom-cart-table .product-subtotal {
    font-weight: 500;
}

.custom-cart-table .product-quantity input.qty {
    max-width: 70px;
}

/* WooCommerce cart totals styling */
.cart_totals h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cart_totals table {
    width: 100%;
}

.cart_totals th {
    text-align: left;
    padding: 0.75rem;
    font-weight: 500;
    border-top: 1px solid #dee2e6;
}

.cart_totals td {
    text-align: right;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-weight: 700;
}

.wc-proceed-to-checkout {
    margin-top: 1.5rem;
}

.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    background-color: #7f3f98 !important;
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    text-align: center;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.3s;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background-color: #6a3080 !important;
    color: white !important;
}

.woocommerce-MyAccount-navigation-link.is-active a {
    background-color: var(--color-1) !important;
    color: var(--color-3) !important;
}
.woocommerce-MyAccount-navigation-link:hover a {
    background-color: var(--color-1) !important;
    color: var(--color-3) !important;
}

#custom-account .woocommerce-Address {
    width: 100%;
    margin-top: 1.5rem;
}
#custom-account .woocommerce-Address-title h2 {
    margin-bottom: 1rem;
}
#custom-account .woocommerce-form-row {
    margin-bottom: 1rem;
}
#custom-account .woocommerce-Input--password,
#custom-account .woocommerce-Input--text,
#custom-account .woocommerce-Input--email {
    border: 1px solid #ebebeb;
    padding: 0.75rem 0.85rem;
    border-radius: 4px;
}
#custom-account .woocommerce-form-row label {
    color: var(--color-5);
}
#custom-account .woocommerce-form-row label span {
    color: var(--color-1);
    font-size: 1.4rem;
}
#custom-account .woocommerce-form-row #account_display_name_description {
    margin-bottom: 0.5rem;
    opacity: 0.875;
    font-size: 0.825rem;
}
#custom-account fieldset legend {
    margin-bottom: 1rem;
}
#custom-account .woocommerce-Button[name="save_account_details"] {
    padding: 1rem 1.5rem;
    background-color: var(--color-2);
    color: var(--color-3);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
}
#custom-account .woocommerce-Button[name="save_account_details"]:hover {
    background-color: var(--color-4);
}

/* Responsive tables helper */
/* @media (max-width: 767.98px) {
    .custom-cart-table th {
        display: none;
    }

    .custom-cart-table td {
        display: block;
        text-align: right;
        position: relative;
        padding-left: 50%;
        border-bottom: none;
    }

    .custom-cart-table td:before {
        content: attr(data-title);
        position: absolute;
        left: 12px;
        font-weight: 600;
    }

    .custom-cart-table td.product-remove {
        text-align: center;
        padding-left: 0;
    }

    .custom-cart-table td.product-remove:before {
        display: none;
    }

    .custom-cart-table td.product-name {
        text-align: left;
        padding-left: 12px;
    }

    .custom-cart-table td.product-name:before {
        display: none;
    }

    .custom-cart-table td.product-quantity input {
        max-width: 80px;
    }

    .custom-cart-table tr:last-child td:last-child {
        border-bottom: 1px solid #dee2e6;
    }
} */

/* Empty cart styling */
.empty-cart-message {
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

/* Fix for WooCommerce quantity inputs */
.quantity .qty {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

/* Cross sells styling */
.cross-sells {
    margin-bottom: 2rem;
}

.cross-sells h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.wp-block-woocommerce-checkout {
    max-width: 1320px;
    margin: 5rem auto !important;
    padding: 0 1rem !important;
}
.wc-block-components-checkout-place-order-button {
    background-color: var(--color-2) !important;
    color: var(--color-3) !important;
    font-weight: 600 !important;
    border-radius: 4px;
}
.wc-block-components-checkout-place-order-button:hover {
    background-color: var(--color-4) !important;
}
.custom-woocommerce-single .woocommerce-product-details__short-description {
    margin-bottom: 1.5rem;
}
.custom-woocommerce-single .woocommerce-Tabs-panel--description h2 {
    display: none !important;
}
.custom-woocommerce-single .woocommerce-Tabs-panel--description h4,
.custom-woocommerce-single .woocommerce-product-details__short-description h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.custom-woocommerce-single .woocommerce-Tabs-panel--description ul,
.custom-woocommerce-single .woocommerce-product-details__short-description ul {
    list-style: none;
    font-size: 14px;
    color: var(--color-5);
    line-height: 1.6em;
}
.custom-woocommerce-single .related.products h2 {
    margin-bottom: 1rem;
}
#custom-account .woocommerce-form-register p,
#custom-account .woocommerce-privacy-policy-text {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    color: var(--color-5);
}
.woocommerce-lost-password #custom-account .woocommerce-Button,
#custom-account .woocommerce-form-register__submit,
#custom-account .woocommerce-form-login__submit {
    background-color: var(--color-2);
    font-weight: 600;
    color: var(--color-3);
}
.woocommerce-lost-password #custom-account .woocommerce-Button:hover,
#custom-account .woocommerce-form-register__submit:hover,
#custom-account .woocommerce-form-login__submit:hover {
    background-color: var(--color-4);
}
#custom-account .form-row:has(.woocommerce-form__label-for-checkbox) {
    display: flex;
    flex-direction: row-reverse;
    justify-content: left;
    flex-wrap: wrap;
    float: none;
    margin-bottom: 1rem;
}
#custom-account .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#custom-account .woocommerce-form__input-checkbox {
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--color-5);
    border-radius: 2px;
    appearance: auto;
    accent-color: currentColor;
}
#custom-account .lost_reset_password {
    max-width: 600px;
    margin: 0 auto;
}
#custom-account .lost_reset_password p {
    width: 100%;
}

/* 
* Single Post Styles
* Author: Haroon Yamin
* Author URL: https://www.linkedin.com/in/haroon-webdev/
*/

/* Main Container */
.single-post-container {
    background-color: #ffffff;
}

/* Post Header */
.post-header {
    margin-bottom: 2.5rem;
}

/* Post Categories */
.post-categories {
    margin-bottom: 1rem;
}

.post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 3px;
    background-color: #f5f5f5;
    color: #444;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-category:hover {
    background-color: #3d7bff;
    color: #fff;
}

/* Post Title */
.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    margin-bottom: 1.5rem;
}

/* Post Meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.post-author,
.post-date,
.post-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-author-avatar img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.post-date-icon svg,
.post-time-icon svg {
    width: 16px;
    height: 16px;
    fill: #666;
}

/* Featured Image */
.post-featured-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #222;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h2 {
    font-size: 1.8rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.3rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content a {
    color: #3d7bff;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: #2656c7;
}

.post-content blockquote {
    border-left: 4px solid #3d7bff;
    padding-left: 1.5rem;
    font-style: italic;
    margin: 1.5rem 0;
    color: #555;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1.5rem 0;
}

.post-content figure {
    margin: 2rem 0;
}

.post-content figcaption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

.post-content code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.post-content pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Post Tags */
.post-tags {
    margin: 2.5rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.post-tags-title {
    font-weight: 600;
    color: #444;
}

.post-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f5f5f5;
    color: #444;
    border-radius: 3px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background-color: #3d7bff;
    color: #fff;
}

/* Post Share */
.post-share {
    margin: 2.5rem 0;
    text-align: center;
}

.post-share-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1rem;
}

.post-share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.post-share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.post-share-button svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.post-share-button.facebook {
    background-color: #3b5998;
}

.post-share-button.twitter {
    background-color: #1da1f2;
}

.post-share-button.linkedin {
    background-color: #0077b5;
}

.post-share-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Author Bio */
.post-author-bio {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 2.5rem 0;
}

.post-author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.post-author-details {
    flex: 1;
}

.post-author-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
}

.post-author-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.post-author-social {
    display: flex;
    gap: 0.75rem;
}

.author-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #eee;
    transition: all 0.3s ease;
}

.author-social-link svg {
    width: 16px;
    height: 16px;
    fill: #444;
}

.author-social-link:hover {
    background-color: #3d7bff;
}

.author-social-link:hover svg {
    fill: #fff;
}

/* Post Navigation */
.post-navigation {
    margin: 2.5rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.post-nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.post-nav-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-nav-prev {
    align-items: flex-start;
}

.post-nav-next {
    align-items: flex-end;
    text-align: right;
}

.post-nav-direction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 0.5rem;
}

.post-nav-direction svg {
    width: 16px;
    height: 16px;
    fill: #666;
}

.post-nav-title {
    font-weight: 600;
    color: #222;
}

.post-nav-link:hover .post-nav-title {
    color: #3d7bff;
}

/* Related Posts */
.related-posts {
    margin: 3rem 0;
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1.5rem;
    text-align: center;
}

.related-post {
    margin-bottom: 1.5rem;
}

.related-post-image {
    display: block;
    margin-bottom: 0.75rem;
    border-radius: 5px;
    overflow: hidden;
}

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

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

.related-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.related-post-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #3d7bff;
}

.related-post-date {
    font-size: 0.85rem;
    color: #666;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .post-title {
        font-size: 2rem;
    }

    .post-meta {
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .post-title {
        font-size: 1.8rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .post-author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .post-nav-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .post-nav-next {
        align-items: flex-start;
        text-align: left;
    }

    .related-post-image img {
        height: 160px;
    }
}

/* 
 * Media Queries
 * --------------------
 */
@media screen and (max-width: 1200px) {
    .testimonial-bg {
        transform: rotate(-7deg) translate(16px, 60px);
    }
}

@media screen and (max-width: 992px) {
    #sites-table tr:not(.table-not) > *:nth-last-child(1),
    #sites-table tr:not(.table-not) > *:nth-last-child(2),
    #sites-table tr:not(.table-not) > *:nth-last-child(3),
    #sites-table tr:not(.table-not) > *:nth-last-child(4) {
        display: none !important;
    }
}

@media screen and (max-width: 576px) {
    /* Newsletter adjustments */
    .newsletter-email,
    .newsletter-submit {
        padding: 0.9rem 1rem;
    }

    /* Table controls adjustments */
    .table-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Pagination adjustments */
    #pagination-controls button,
    #pagination .page-link {
        min-width: 35px;
        height: 35px;
        padding: 0.25rem 0.5rem;
        font-size: 12px;
    }

    #pagination-controls button.pagination-prev,
    #pagination-controls button.pagination-next,
    #pagination .prev,
    #pagination .next {
        min-width: 70px;
    }

    #pagination .page-ellipsis {
        min-width: 25px;
        height: 35px;
        padding: 0.25rem;
        font-size: 12px;
    }

    /* Hide additional table columns on very small screens */
    #sites-table tr:not(.table-not) > *:nth-last-child(5),
    #sites-table tr:not(.table-not) > *:nth-last-child(6) {
        display: none !important;
    }
    #block-editor h2 {
        font-size: 1.5rem;
    }
    #block-editor h3 {
        font-size: 1.25rem;
    }
    .woocommerce-cart-form table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    #custom-account .form-row-last,
    #custom-account .form-row-first {
        width: 100%;
    }
}
