/*
Theme Name: ScourNomad
Theme URI: https://scournomad.com/
Author: AI Developer
Author URI: https://scournomad.com/
Description: Custom WordPress theme for ScourNomad
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scournomad
*/

:root {
    --primary-color: #8552b3;
    --primary-color-light: #aa86ca;
    --primary-color-dark: #5d387f;
    --secondary-color: #222;
    --text-color: #222;
    --link-hover: #c2a8d9;
    --background-color: #f0f0f0;
    --white: #ffffff;
    --primary-color-almost-transparent: #f4dcf4;
    --primary-color-almost-transparent-hover: #ecc3ec;
    --light-gray: #e0e0e0;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure footer stays at the bottom */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Full viewport height */
}

#page {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Make the main content area grow to fill available space */
main.site-main {
    flex: 1 0 auto; /* This will push the footer down */
}

/* Footer should not flex or grow */
footer#colophon.site-footer {
    flex-shrink: 0; /* Prevent footer from shrinking */
}

/* Add minimum height to specific templates if needed */
/* Adjust min-height as needed */
/* .home main.site-main,
.blog main.site-main,
.single main.site-main {
    min-height: 70vh;
} */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--link-hover);
}

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

li::marker {
    color: var(--primary-color);
}

section {
    padding: 50px 0;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--background-color);
}

.btn-secondary.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
}

.navbar ul {
    list-style: none;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo-container {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 10px;
}

.navbar-menu ul {
    display: flex;
    gap: 24px;
}

.navbar-menu a {
    font-weight: 500;
    position: relative;
    color: var(--secondary-color);
}

.navbar-menu a:hover {
    color: var(--primary-color);
}

.navbar-menu a.active {
    color: var(--primary-color);
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.navbar-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-cta {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    color: var(--secondary-color);
    font-size: 1.4rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 5px;
}

.social-icon:hover {
    color: var(--primary-color);
}

.icon-text {
    display: none;
    font-size: 0.85rem;
    margin-left: 5px;
}

/* Hide mobile social links in desktop view */
.nav-social-item {
    display: none;
}

/* Update navbar media queries */
@media (max-width: 1100px) {
    .navbar-menu ul {
        gap: 16px;
    }

    .navbar-cta {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .navbar .container {
        padding: 10px;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
    }

    .navbar-menu.active {
        display: block;
    }

    .navbar-menu ul {
        flex-direction: column;
        align-items: center;
    }

    .navbar-menu ul li {
        margin: 10px 0;
    }

    .navbar-toggle {
        padding: 10px;
        display: flex;
    }

    /* Show mobile social links in mobile view */
    .nav-social-item {
        display: block;
        margin-top: 10px;
    }

    /* Show text next to icons in mobile view */
    .nav-social-item .icon-text {
        display: inline-block;
    }

    /* Hide desktop social icons in mobile view */
    .social-icons {
        display: none;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-image {
        width: 80%;
    }

    .hero .btn {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .brand-name {
        display: none;
    }

    .navbar-actions {
        gap: 8px;
    }

    .navbar-cta {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .logo-placeholder {
        width: 32px;
        height: 32px;
    }

    .hero-image {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

/* Social toggle for mobile */
.social-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .social-toggle {
        display: block;
    }
}


/* Hero section */
.hero {
    position: relative;
    padding: 150px 0;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-small-screens {
    display: none;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: transparent;
    border-radius: var(--border-radius);
}

/* Hexagon Pattern */
/* Updated Hexagon Pattern for proper beehive structure */
.hexagon-pattern {
    position: absolute;
    top: 0;
    left: 0;
    /* width: 100%; */
    /* Hexagon width fix */
    height: 100%;
    opacity: 0.25;
    /* TODO: Add back and adjust */
    z-index: -1;
    background-color: var(--white);
    overflow: hidden;
}

.hex-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    /* No grid here, we'll position manually */
}

.hex-row {
    display: flex;
    margin-top: -30px;
    /* Negative margin to create the interlocking effect */
}

.hex-row.even {
    margin-left: -50px;
    /* Offset even rows to create proper hexagonal pattern */
}

.hex {
    color: black !important;
    position: relative;
    width: 64px;
    height: 60px;
    margin-left: 36px;
    margin-top: 2px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: opacity 2s ease, background-color 0.5s ease;
}

/* Page Header */
.page-header {
    position: relative;
    padding: 140px 0 60px;
    text-align: center;
    background-color: rgba(123, 38, 121, 0.05);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

article.page {
    min-height: 0.5vh;
    margin-bottom: 100px;
}

/* Unique Selling Proposition Section */
.usp-section {
    background-color: var(--white);
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 40px;
}

.usp-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.usp-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 280px;
    width: 30%;

    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    line-height: 1.8;
}

.usp-tabs {
    flex: 1;
    position: relative;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    line-height: 1.8;
}

.usp-tab {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
}

.usp-tab.active {
    display: block;
    animation: tabFadeIn 0.4s forwards;
}

.usp-tab-content p {
    color: var(--text-color);
    font-size: 1.1rem;
}

#investors-tab p {
    margin-bottom: 20px;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .usp-content {
        gap: 30px;
    }

    .usp-buttons {
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .usp-content {
        flex-direction: column;
    }

    .hero .hero-image {
        display: none;
    }

    .hero-image-small-screens {
        display: block;
    }

    .usp-buttons {
        width: 100%;
        margin-bottom: 20px;
    }

    .usp-button {
        text-align: center;
        padding: 12px 16px;
    }

    .usp-tab-content {
        padding: 20px;
    }

    .usp-tab-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .usp-button {
        font-size: 0.9rem;
    }
}

/* Features Stats Section */
.features-section {
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.features-header {
    margin-bottom: 60px;
}

.features-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

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

.stat-icon {
    margin-bottom: 20px;
}

.stat-icon .icon-placeholder {
    width: 80px;
    height: 80px;
    transition: var(--transition);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
    line-height: 1.1;
}

.stat-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.stat-description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .features-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .features-stats {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .features-section {
        padding: 60px 0;
    }

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

    .stat-card {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 2.25rem;
    }
}

/* Our Solution - Added Value Section */
.solution-section {
    background-color: var(--white);
    position: relative;
    /* For overlay positioning */
}

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

.solution-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.solution-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 280px;
    width: 25%;

    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    line-height: 1.8;
}

.solution-tabs {
    flex: 1;
    position: relative;
    width: 78%;
}

.solution-tab {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
}

.solution-tab.active {
    display: block;
    animation: tabFadeIn 0.4s forwards;
}

.solution-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-feature {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    /* position: relative; */
    /* Removing this is a manual fix for popovers being hidden by neighbouring cards on button hover */
    /* For popover positioning */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* This ensures button goes to bottom */
    height: 100%;
    /* Ensure all cards are the same height */
}

.solution-feature:hover {
    z-index: 0;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-content {
    flex: 1;
    /* Takes up all available space above button */
}

.feature-icon {
    margin-bottom: 16px;
}

.icon-placeholder {
    width: 80px;
    height: 80px;
    transition: var(--transition);
    margin-left: auto;
    margin-right: auto;
}

.solution-feature h3 {
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--text-color);
    text-align: center;
}

/* Popover Button Styles */
.popover-button {
    background-color: var(--primary-color-light);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    /* Add some space above the button */
}

.popover-button:hover {
    background-color: var(--primary-color);
}

/* Popover Content Styles */
.popover-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    /* Made wider */
    max-width: 90vw;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: left;
    /* Ensure text is left-aligned */
}

.popover-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.popover-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    text-align: left;
    /* Ensure text is left-aligned */
}

/* Show popover on hover */
.popover-button:hover .popover-content,
.popover-button:focus .popover-content,
.popover-button.active .popover-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
    pointer-events: auto;
}

/* Overlay for closing popovers on touch devices */
.popover-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 5;
}

.popover-overlay.active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .solution-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .popover-content {
        width: 320px;
    }
}

@media (max-width: 992px) {
    .solution-content {
        gap: 30px;
    }

    .solution-buttons {
        min-width: 200px;
    }

    .solution-feature {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .solution-content {
        flex-direction: column;
    }

    .solution-buttons {
        width: 100%;
        margin-bottom: 20px;
    }

    .solution-tabs {
        width: 100%;
    }

    .solution-button {
        text-align: center;
        padding: 12px 16px;
    }

    .solution-features {
        grid-template-columns: 1fr;
    }

    .solution-feature {
        padding: 20px;
    }

    .solution-feature h3 {
        font-size: 1.1rem;
    }

    /* Position popovers differently on mobile */
    .popover-content {
        width: calc(100% - 40px);
        left: 50%;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }

    .solution-button {
        font-size: 0.9rem;
    }

    /* Make sure popovers don't go beyond screen edges on small devices */
    .popover-content {
        width: calc(100vw - 40px);
        left: 50%;
    }
}

/* Image Gallery Section */
.gallery-section {
    background-color: var(--white);
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Gallery item container */
.gallery-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 100px;
}

.gallery-item:last-child {
    margin-bottom: 0;
}

.gallery-item.reversed {
    flex-direction: row-reverse;
}

/* Gallery content area with text */
.gallery-content {
    flex: 1;
    max-width: 500px;
}

.gallery-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.gallery-content ul {
    padding-left: 20px;
}

.gallery-content li {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.gallery-content li::marker {
    color: var(--primary-color);
}

/* Gallery images area */
.gallery-images {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    aspect-ratio: 16/9;
    background-color: #f0f0f0;
}

.gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
    pointer-events: none;
}

.gallery-image.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Zoom effect on hover */
.gallery-image:hover img {
    transform: scale(1.05);
}

/* Overlay with zoom icon */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image:hover .gallery-overlay {
    opacity: 1;
}

.zoom-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.zoom-icon:hover {
    background: var(--white);
    transform: scale(1.1);
}

/* Gallery navigation dots */
.gallery-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 0;
    margin-top: 5px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gallery-dot.active {
    background-color: var(--primary-color);
}

/* Fullscreen Gallery Modal */
.fullscreen-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-gallery.active {
    opacity: 1;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.fullscreen-close:hover {
    color: var(--primary-color-light);
}

.fullscreen-navigation {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10000;
}

.fullscreen-prev,
.fullscreen-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--white);
    transition: all 0.3s ease;
}

.fullscreen-prev:hover,
.fullscreen-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.fullscreen-container {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

/* Fullscreen Gallery Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(50px);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

.fullscreen-image {
    max-width: 100%;
    max-height: 90vh;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-image.active {
    display: block;
    opacity: 1;
    z-index: 2;
}

.fullscreen-image.slide-in-right {
    animation: slideInRight 0.4s ease forwards;
}

.fullscreen-image.slide-in-left {
    animation: slideInLeft 0.4s ease forwards;
}

.fullscreen-image.slide-out-right {
    display: block;
    z-index: 1;
    animation: slideOutRight 0.4s ease forwards;
}

.fullscreen-image.slide-out-left {
    display: block;
    z-index: 1;
    animation: slideOutLeft 0.4s ease forwards;
}

.fullscreen-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
}

/* Responsive styles */
@media (max-width: 992px) {
    .gallery-item {
        gap: 40px;
    }

    .gallery-content h3 {
        font-size: 1.6rem;
    }

    .gallery-content li {
        font-size: 1rem;
    }

    .fullscreen-container {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0;
    }

    .gallery-item,
    .gallery-item.reversed {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 70px;
    }

    .gallery-content {
        max-width: 100%;
    }

    .fullscreen-navigation {
        padding: 0 15px;
    }

    .fullscreen-prev,
    .fullscreen-next {
        width: 40px;
        height: 40px;
    }

    .zoom-icon {
        width: 40px;
        height: 40px;
    }

    .fullscreen-container {
        max-width: 100%;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideOutRight {
        from {
            opacity: 1;
            transform: translateX(0);
        }

        to {
            opacity: 0;
            transform: translateX(30px);
        }
    }

    @keyframes slideOutLeft {
        from {
            opacity: 1;
            transform: translateX(0);
        }

        to {
            opacity: 0;
            transform: translateX(-30px);
        }
    }
}

@media (max-width: 576px) {
    .gallery-section {
        padding: 40px 0;
    }

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

    .gallery-content h3 {
        font-size: 1.4rem;
    }

    .gallery-content li {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .fullscreen-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .fullscreen-prev,
    .fullscreen-next {
        width: 36px;
        height: 36px;
    }

    .zoom-icon {
        width: 36px;
        height: 36px;
    }

    .fullscreen-counter {
        font-size: 14px;
        padding: 6px 12px;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(20px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes slideOutRight {
        from {
            opacity: 1;
            transform: translateX(0);
        }

        to {
            opacity: 0;
            transform: translateX(20px);
        }
    }

    @keyframes slideOutLeft {
        from {
            opacity: 1;
            transform: translateX(0);
        }

        to {
            opacity: 0;
            transform: translateX(-20px);
        }
    }
}

/* Additional enhancement for visual feedback on interaction */
.gallery-dot:hover {
    background-color: var(--primary-color-light);
    transform: scale(1.2);
}

.fullscreen-prev:active,
.fullscreen-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Focus styles for accessibility */
.gallery-dot:focus,
.fullscreen-prev:focus,
.fullscreen-next:focus,
.fullscreen-close:focus {
    outline: 2px solid var(--primary-color-light);
    outline-offset: 2px;
}

/* Prevent text selection on navigation elements */
.fullscreen-prev,
.fullscreen-next,
.fullscreen-close,
.gallery-dot {
    user-select: none;
    -webkit-user-select: none;
}

/* Testimonials Section */
.testimonials-section {
    position: relative;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 40px;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.7s ease;
    margin: 0 auto;
}

/* Testimonial Card */
.testimonial-card {
    flex: 0 0 auto;
    width: 70%;
    padding: 0 20px;
    transition: opacity 0.7s ease, transform 0.7s ease;
    opacity: 0.5;
    transform: scale(0.9);
    margin: 0 auto;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.testimonial-inner {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    height: 100%;
}

.testimonial-card.active .testimonial-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Quote Icon */
.quote-icon {
    position: absolute;
    top: 25px;
    left: 30px;
    font-size: 60px;
    line-height: 1;
    font-family: Georgia, serif;
    color: var(--primary-color);
    opacity: 0.3;
}

/* Testimonial Content */
.testimonial-content {
    position: relative;
    margin-top: 20px;
    margin-bottom: 25px;
    z-index: 1;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-color);
}

/* Author Section */
.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.image-placeholder {
    width: 100%;
    height: 100%;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--primary-color);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 5px;
}

.source-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.source-link:hover {
    text-decoration: underline;
}

/* Navigation */
.testimonials-navigation {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
}

/* Single testimonial handling */
.testimonials-carousel.single .testimonial-card {
    width: 80%;
    margin: 0 auto;
    opacity: 1;
}

.testimonials-carousel.single .testimonials-navigation {
    display: none;
}

/* Testimonial Progress Bar */
.testimonial-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    /* Slim progress bar */
    background-color: transparent;
    overflow: hidden;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.testimonial-progress {
    height: 100%;
    width: 0;
    /* Will be controlled by JS */
    background-color: var(--primary-color);
    transition: width 0.1s linear;
    /* Smooth transition for the progress */
}

/* Only show progress bar on active testimonial */
.testimonial-card:not(.active) .testimonial-progress-container {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .testimonial-card {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 90%;
    }

    .testimonial-inner {
        padding: 30px;
    }

    .quote-icon {
        font-size: 50px;
        top: 20px;
        left: 25px;
    }

    .testimonial-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .testimonials-section {
        padding: 60px 0;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .testimonial-card {
        width: 95%;
    }

    .testimonial-inner {
        padding: 25px 20px;
    }

    .quote-icon {
        font-size: 40px;
        top: 15px;
        left: 20px;
    }

    .testimonial-content p {
        font-size: 0.95rem;
    }

    .author-image {
        width: 50px;
        height: 50px;
    }

    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
    }

    .author-image {
        margin-bottom: 10px;
    }
}

/* CTA Section */
.cta-section {
    padding: 200px 0 0 0;
    /* lighter shade of primary color */
    position: relative;
    overflow: hidden;
}

.cta-section .hexagon-pattern {
    padding-top: 30px;
}

.cta-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

.cta-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-subheading {
    font-size: 1.3rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.cta-action {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 600;
    padding: 18px 48px;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(123, 38, 121, 0.3);
    border: none;
    cursor: pointer;
    text-align: center;
    margin-bottom: 20px;
}

.btn-cta:hover {
    background-color: var(--primary-color-dark);
    box-shadow: 0 8px 16px rgba(123, 38, 121, 0.4);
    transform: translateY(-2px);
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(123, 38, 121, 0.3);
}

.cta-note {
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.95;
    max-width: 500px;
    line-height: 1.5;
    margin-bottom: 100px;
}

.cta-note li {
    display: inline flow-root list-item;
    list-style-position: inside;
}
/*
.cta-note li::marker {
    color: var(--text-color) !important;
}
*/
.hexagon-pattern-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill='%237b2679' fill-opacity='1'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Responsive styles for CTA section */
@media (max-width: 992px) {
    .cta-header h2 {
        font-size: 2.5rem;
    }

    .cta-subheading {
        font-size: 1.2rem;
    }

    .btn-cta {
        font-size: 1.2rem;
        padding: 16px 42px;
    }
}

@media (max-width: 768px) {
    .cta-section {
        padding: 80px 0 0 0;
    }

    .cta-header h2 {
        font-size: 2rem;
    }

    .cta-subheading {
        font-size: 1.1rem;
    }

    .btn-cta {
        width: 100%;
        max-width: 320px;
        padding: 16px 24px;
    }
}

@media (max-width: 576px) {
    .cta-section {
        padding: 60px 0 0 0;
    }

    .cta-header h2 {
        font-size: 1.8rem;
    }

    .cta-subheading {
        font-size: 1rem;
    }

    .cta-note {
        font-size: 0.9rem;
    }
}








footer#colophon {
    background-color: var(--secondary-color);
    padding: 60px 0 30px;
    color: var(--white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    padding: 0 20px;
}

.menu-column,
.left-column {
    flex: 1;
}

.partners-column {
    flex: 2;
}

.footer-menu h4,
.partners-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary-color-light);
}

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

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-size: 0.95rem;
}

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

.footer-menu ul:first-of-type {
    margin-left: 30px;
}

/* Partners section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    justify-items: center;
}

.partner-esif {
    font-family: HelveticaNeue-Light, Helvetica Neue Light, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;
    font-size: 6px;
    text-align: justify;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .left-column {
        display: none;
    }
}

@media (max-width: 768px) {
    footer#colophon {
        padding: 40px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .footer-column {
        padding: 0;
    }

    .footer-content h4,
    .footer-content li {
        text-align: center;
    }

    .footer-column:first-child {
        order: 1;
    }

    .partners-column {
        order: 2;
    }

    .footer-column:last-child {
        order: 3;
    }

    .partners-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .partner-cell img {
        max-width: 150px;
    }

    .partner-esif span {
        display: block;
        max-width: 150px;
    }

    .footer-menu h4,
    .partners-column h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-social {
        gap: 12px;
    }

    .footer-social .social-icon {
        font-size: 1.3rem;
    }
}

/* Contact us */
.contact-us p,
.contact-us ul,
.contact-us ol {
    margin-bottom: 15px;
}

.contact-us ul,
.contact-us ol {
    padding: 0 20px;
}

.contact-us li {
    display: inline flow-root list-item;
    list-style-position: inside;
}

.contact-us b {
    color: var(--primary-color);
}

/**************** Blog ********************/

/* Blog Layout Styles */
.blog-container {
    padding: 120px 0 0 0;
    flex: 1;
    position: relative;
    display: inline-grid;
}

.blog-content-area {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.blog-posts {
    flex: 1;
    min-width: 0; /* Ensures content doesn't overflow */
}

.blog-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.blog-sidebar {
    width: 320px;
    flex-shrink: 0;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 100px;
}

.blog-listing-separator {
    margin-bottom: 100px;
}

/* Search Bar Styles */
.blog-search-container {
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color-light);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.search-submit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-submit:hover {
    color: var(--primary-color);
}

/* Blog Grid Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Blog Card Styles */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background-color: var(--primary-color)
}

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

/* Category Badge */
.blog-category-badge {
    display: inline-block;
    background-color: var(--primary-color-almost-transparent);
    color: var(--primary-color);
    padding: 5px 12px;
    margin-bottom: 15px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.blog-category-badge:hover {
    background-color: var(--primary-color-almost-transparent-hover);
    color: var(--primary-color);
}

/* Card Content */
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Make content area fill available space */
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 15px;
}

.blog-date {
    display: inline-block;
}

.blog-card-excerpt {
    color: #555;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1; /* Make excerpt fill available space */
}

.blog-card-footer {
    margin-top: auto; /* Push footer to bottom of card */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* Blog Tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-bottom: 30px;
}

.blog-tag {
    padding: 4px 12px;
    background-color: #f0f0f0;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background-color: #e0e0e0;
    color: #444;
}

/* Read More Button */
.blog-read-more {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    margin-left: auto;
}

/* Pagination */
.blog-pagination {
    margin-top: 50px;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 5px;
    margin: 0 3px;
    border-radius: 4px;
    background-color: white;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers.current {
    background-color: var(--primary-color);
    color: white;
}

.blog-pagination .page-numbers:hover:not(.current) {
    background-color: #f0f0f0;
}

/* Sidebar Styles */
.sidebar-widget {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.widget-title {
    position: relative;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.widget-title:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #f0f0f0;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-list a:hover {
    color: var(--primary-color);
}

.category-count {
    background-color: #f0f0f0;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.75rem;
    color: #666;
}

/* No Results */
.no-results {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
}

.no-results h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-content-area {
        flex-direction: column;
    }

    .blog-sidebar {

    }

    .sidebar-widget {
        margin-bottom: 0;
    }
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .blog-container {
        padding: 100px 0 0 0;
    }

    .blog-title {
        font-size: 2.2rem;
    }

    .blog-sidebar {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-content-area {
        gap: 30px;
    }

    .blog-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    /* Ensure tags and read more fit well on smaller screens */
    .blog-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .blog-read-more {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-container {
        padding: 80px 0 0 0;
    }

    .blog-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-card-image img {
        height: 180px;
    }
}

/* Animation for cards on page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

/* Staggered animation delay for cards */
.blog-grid .blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-grid .blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-grid .blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-grid .blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-grid .blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-grid .blog-card:nth-child(6) { animation-delay: 0.6s; }
.blog-grid .blog-card:nth-child(n+7) { animation-delay: 0.7s; }








/*************** Single post ******************/

/* Post Reading Progress Bar */
.post-reading-progress {
    position: fixed;
    top: 76.8px;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
    background-color: rgba(0,0,0,0.05);
}

.post-reading-progress .progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--primary-color, #8552b3);
    transition: width 0.1s linear;
}

/* Post Header */
.post-header {
    padding: 120px 0 60px;
    text-align: center;
    background-color: transparent;  width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.hexes-container {
    display: block;
    position: absolute;
    height: 600px;
}

.post-categories {
    margin-bottom: 20px;
}

.post-categories a {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 5px;
    border-radius: 20px;
    background-color: var(--primary-color, #8552b3);
    color: white;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-categories a:hover {
    background-color: var(--primary-color-dark, #5d387f);
    transform: translateY(-2px);
}

.post-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color, #8552b3);
    line-height: 1.2;
}

.post-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--primary-color, #8552b3);
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
}

.post-meta-container {
    background-color: white;
    flex-direction: row;
    display: flex;
    padding: 3px;
    border-radius: 15px;
}

.post-meta span {
    margin: 0 15px;
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 6px;
    color: var(--primary-color, #8552b3);
}

.post-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-meta a:hover {
    color: var(--primary-color, #8552b3);
}

/* Featured Container */
.featured-container-wrapper {
    width: 140%;
    margin: 0 -20%;
    margin-bottom: 40px;
    overflow: hidden;
}

.featured-container {
    width: calc(100% - 16px);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    font-size: 20px;
}

.featured-container figure {
    width: calc(100% - 24px);
    margin: auto;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.featured-container:hover figure {
    transform: scale(1.02);
}

.featured-container img {
    margin: 24px;
    width: 100% !important;
}


/* Post Content Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-content,
.post-content {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* Typography in Post and Page */
.page-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.page-content h2,
.post-content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: var(--primary-color, #8552b3);
}

.page-content h3,
.post-content h3 {
    font-size: 1.6rem;
    margin: 35px 0 18px;
    color: var(--primary-color, #8552b3);
}

.page-content h4,
.post-content h4 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
}

.page-content p,
.post-content p {
    margin-bottom: 20px;
}

.page-content img,
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.page-content ul,
.page-content ol,
.post-content ul,
.post-content ol {
    padding-top: 0;
    padding-left: 40px;
    margin-bottom: 25px;
}

.page-content li,
.post-content li {
    margin-bottom: 12px;
}

.page-content blockquote,
.post-content blockquote {
    border-left: 5px solid var(--primary-color, #8552b3);
    padding: 20px;
    margin: 30px 0;
    background-color: rgba(123, 38, 121, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.page-content blockquote p:last-child,
.post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Modern Gallery */
.post-gallery-wrapper {
    margin: 40px 0;
}

.modern-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 0;
}

.modern-gallery .gallery-item {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 8px;
}

.modern-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
    margin: 0;
    border: none !important;
}

.modern-gallery .gallery-item:hover img {
    transform: scale(1.05);
}

.modern-gallery .gallery-item .gallery-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
}

.modern-gallery .gallery-item:hover .gallery-hover-effect {
    opacity: 1;
}

.modern-gallery .gallery-caption {
    display: none;
}

/* Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1;
}

.gallery-modal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.gallery-caption {
    color: white;
    margin-top: 20px;
    text-align: center;
    font-size: 1rem;
    max-width: 80%;
    line-height: 1.5;
}

.gallery-counter {
    position: absolute;
    bottom: 30px;
    color: white;
    font-size: 0.9rem;
    background-color: rgba(0,0,0,0.6);
    padding: 6px 15px;
    border-radius: 20px;
}

.gallery-close,
.gallery-prev,
.gallery-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 2rem;
    padding: 10px;
    transition: all 0.3s ease;
    z-index: 3;
}

.gallery-close {
    top: 20px;
    right: 20px;
}

.gallery-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover {
    color: var(--primary-color, #8552b3);
    transform: scale(1.1);
}

.gallery-prev:hover,
.gallery-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Code Block Styling */
.code-block {
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2d2d2d;
    padding: 12px 15px;
    color: #ccc;
}

.code-language {
    font-family: monospace;
    font-size: 0.9rem;
}

.copy-code {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-code:hover {
    color: white;
}

.wp-block-code {
    margin: 0;
    background-color: #2d2d2d;
    border: none;
    color: #ccc;
    padding: 20px;
    overflow: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Post Navigation */
.post-navigation {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-bottom: 50px;
}

.post-navigation-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.post-navigation-prev,
.post-navigation-next {
    flex: 0 0 48%;
    max-width: 48%;
}

.post-navigation-next {
    text-align: right;
}

.post-navigation a {
    display: block;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.post-navigation-label {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color, #8552b3);
    margin-bottom: 5px;
}

.post-navigation-title {
    display: block;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

#respond {
    margin-bottom: 50px;
}

/* Post Sidebar */
.post-sidebar {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 30px;
    border-radius: 8px;
    background-color: transparent;
}

.post-author-bio {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.author-avatar {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-details h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color, #8552b3);
}

.author-details p {
    margin: 0;
    font-size: 0.95rem;
}

.post-tags-list {
    display: flex;
    align-content: baseline;
    justify-content: space-between;
    margin: 30px 0;
}

.post-tags-list h3,
.related-posts h3 {
    color: var(--primary-color, #8552b3);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.post-tags-list ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.post-tags-list li {
    margin-right: 10px;
    margin-bottom: 10px;
    display: inline-block;
    padding: 6px 12px;
    background-color: #eee;
    color: var(--primary-color);
    border-radius: 26px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.post-tags-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.post-tags-list a {
    color: var(--text-color);
}

.post-tags-list a:hover {
}

.related-posts ul {
    list-style: none;
    padding: 0;
}

.related-posts li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.related-posts li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-posts a {
    display: block;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 5px;
}

.related-posts a:hover {
    color: var(--primary-color, #8552b3);
}

.related-date {
    display: block;
    font-size: 0.85rem;
    color: #777;
}

/* Comments Section */
.commentlist {
    list-style: none;
}

.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.comments-title {
    font-size: 1.6rem;
    color: var(--primary-color, #8552b3);
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 30px;
}

.comment-body {
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f8f8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.comment-meta {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.comment-author {
    display: flex;
    align-items: center;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.comment-metadata {
    font-size: 0.85rem;
    color: #777;
    margin-left: 15px;
}

.comment-content {
    margin-bottom: 15px;
    line-height: 1.6;
}

.reply a {
    display: inline-block;
    padding: 5px 12px;
    background-color: #eee;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    color: #333;
    transition: all 0.3s ease;
}

.reply a:hover {
    background-color: var(--primary-color-light, #aa86ca);
    color: white;
}

.comment-respond {
    margin-top: 40px;
}

h3#comments,
.comment-reply-title {
    font-size: 1.4rem;
    color: var(--primary-color, #8552b3);
    margin-bottom: 20px;
}

.comment-notes {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 15px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: inherit;
    font-size: 1rem;
}

.comment-form input[type="submit"] {
    background-color: var(--primary-color, #8552b3);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.comment-form input[type="submit"]:hover {
    background-color: var(--primary-color-dark, #5d387f);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .post-title {
        font-size: 2.4rem;
    }

    .post-content {
        padding: 30px 0 50px;
    }

    .post-navigation-prev,
    .post-navigation-next {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    .post-navigation-next {
        text-align: left;
    }

    .gallery-close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .post-header {
        padding: 100px 0 40px;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-meta {
        flex-direction: column;
        align-items: center;
    }

    .post-meta span {
        margin: 5px 0;
    }

    .page-content,
    .post-content {
        font-size: 1rem;
    }

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

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

    .featured-container:hover figure {
        transform: none;
    }

    .gallery-prev,
    .gallery-next {
        font-size: 1.5rem;
    }

    .modern-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

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

    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .post-header {
        padding: 80px 0 30px;
    }

    .post-title {
        font-size: 1.6rem;
    }

    .page-content h2,
    .post-content h2 {
        font-size: 1.5rem;
    }

    .page-content h3,
    .post-content h3 {
        font-size: 1.3rem;
    }

    .code-block {
        margin: 20px 0;
    }

    .gallery-close {
        top: 5px;
        right: 5px;
        font-size: 1.5rem;
    }

    .gallery-prev,
    .gallery-next {
        font-size: 1.2rem;
    }

    .gallery-caption {
        font-size: 0.9rem;
    }

    .modern-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-content > *,
.post-content > * {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.page-content > *:nth-child(1) { animation-delay: 0.1s; }
.page-content > *:nth-child(2) { animation-delay: 0.2s; }
.page-content > *:nth-child(3) { animation-delay: 0.3s; }
.page-content > *:nth-child(4) { animation-delay: 0.4s; }
.page-content > *:nth-child(5) { animation-delay: 0.5s; }
.page-content > *:nth-child(6) { animation-delay: 0.6s; }
.page-content > *:nth-child(7) { animation-delay: 0.7s; }
.page-content > *:nth-child(8) { animation-delay: 0.8s; }
.page-content > *:nth-child(9) { animation-delay: 0.9s; }
.page-content > *:nth-child(n+10) { animation-delay: 1s; }

.post-content > *:nth-child(1) { animation-delay: 0.1s; }
.post-content > *:nth-child(2) { animation-delay: 0.2s; }
.post-content > *:nth-child(3) { animation-delay: 0.3s; }
.post-content > *:nth-child(4) { animation-delay: 0.4s; }
.post-content > *:nth-child(5) { animation-delay: 0.5s; }
.post-content > *:nth-child(6) { animation-delay: 0.6s; }
.post-content > *:nth-child(7) { animation-delay: 0.7s; }
.post-content > *:nth-child(8) { animation-delay: 0.8s; }
.post-content > *:nth-child(9) { animation-delay: 0.9s; }
.post-content > *:nth-child(n+10) { animation-delay: 1s; }

@keyframes float {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0); }
}

/* Code Block Enhancements */
.code-block {
    position: relative;
}

.code-block:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color, #8552b3);
    opacity: 0.1;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    z-index: -1;
}

/* Post Footer Section */

.post-footer {
    background-color: rgba(123, 38, 121, 0.05);
    padding: 40px 0;
    margin-top: 60px;
}

.post-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.post-share {
    display: flex;
    align-items: center;
}

.post-share span {
    font-weight: 600;
    margin-right: 15px;
}

.post-share-links {
    display: flex;
    gap: 10px;
}

.post-share-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #F0F0F0;
    transition: all 0.3s ease;
}

.twitter {
    background-color: #08A0E9;
}

.facebook {
    background-color: #1877F2;
}

.linkedin {
    background-color: #0a66c2;
}

.email {
    background-color: #333;
}

.pld-common-wrap {
    background-color: red;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 18px;
    color: #F0F0F0;
    transition: all 0.3s ease;
}

.pld-count-wrap {
    margin: 0 10px 0 0 !important;
}

.pld-common-wrap:hover,
.post-share-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3) !important;
}

.post-share-links .pld-common-wrap:hover a:hover {
    /* Prevent double hover effects */
    transform: none !important;
    box-shadow: none !important;
}

.post-like {
    display: flex;
    align-items: center;
    gap: 10px;
}

.like-button {
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-button i {
    color: #ff5a5a;
}

.like-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.like-button:hover i {
    transform: scale(1.2);
}

.like-count {
    font-weight: 600;
}

/* Post Author Card (enhanced) */
.post-author-card {
    margin: 60px 0;
    padding: 30px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.post-author-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color, #8552b3), var(--primary-color-light, #aa86ca));
}

.author-card-inner {
    display: flex;
    gap: 30px;
}

.author-card-avatar {
    flex: 0 0 100px;
}

.author-card-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.author-card-content {
    flex: 1;
}

.author-card-name {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color, #8552b3);
    font-size: 1.4rem;
}

.author-card-bio {
    margin-bottom: 15px;
    line-height: 1.6;
}

.author-card-social {
    display: flex;
    gap: 12px;
}

.author-card-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    transition: all 0.3s ease;
}

.author-card-social a:hover {
    background-color: var(--primary-color, #8552b3);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .post-footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .post-share {
        justify-content: center;
    }

    .post-like {
        justify-content: center;
    }

    .author-card-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .author-card-avatar {
        display: flex;
        justify-content: center;
    }

    .author-card-social {
        justify-content: center;
    }
}

/* Related Posts Grid (enhanced) */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.related-post-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.related-post-thumb {
    position: relative;
    overflow: hidden;
    height: 160px;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.related-post-content {
    padding: 20px;
    background-color: white;
}

.related-post-title {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 10px;
}

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

.related-post-title a:hover {
    color: var(--primary-color, #8552b3);
}

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

@media (max-width: 992px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Reading Time Indicator */
.reading-time {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    font-size: 0.9rem;
}

.reading-time i {
    margin-right: 6px;
    color: var(--primary-color, #8552b3);
}

/* Table of Contents */
.post-toc {
    margin: 40px 0;
    padding: 25px;
    border-radius: 8px;
    background-color: rgba(123, 38, 121, 0.05);
    position: relative;
}

.post-toc:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color, #8552b3);
    border-radius: 5px 0 0 5px;
}

.toc-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color, #8552b3);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.toc-title i {
    margin-right: 10px;
}

.toc-list {
    margin: 0;
    padding-left: 20px;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.toc-list a:hover {
    color: var(--primary-color, #8552b3);
    transform: translateX(5px);
}

/* Back to Top Button */
.back-to-top {
    border: 0;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color, #8552b3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 0.9;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color-dark, #5d387f);
    transform: translateY(-5px);
    opacity: 1;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Style for highlighted text in search results */
.search-highlight {
    background-color: rgba(123, 38, 121, 0.2);
    padding: 2px 0;
}

/* Print Styles */
@media print {
    .post-reading-progress,
    .back-to-top,
    .post-navigation,
    .comments-area,
    .post-footer,
    .copy-code {
        display: none !important;
    }

    .post-header {
        padding: 20px 0;
        background-color: transparent;
    }

    .post-title {
        font-size: 24pt;
        color: black;
    }

    .post-meta {
        color: #555;
    }

    .page-content,
    .post-content {
        font-size: 12pt;
    }

    .page-content a,
    .post-content a {
        text-decoration: underline;
        color: #333;
    }

    .page-content h2,
    .page-content h3,
    .page-content h4,
    .post-content h2,
    .post-content h3,
    .post-content h4 {
        color: black;
        break-after: avoid;
    }

    .page-content,
    .post-content img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    .code-block {
        border: 1px solid #ddd;
        margin: 20px 0;
        page-break-inside: avoid;
    }

    .post-sidebar {
        background-color: transparent;
        box-shadow: none;
        border-top: 1px solid #ddd;
        padding-top: 20px;
    }
}

/* WPForms - general tyling, submit form margins between javascript-inserted content */

#wpforms-67-field_11,
.wpforms-description-above p,
.wpforms-description-above {
    margin-bottom: 15px !important;
}

.wpforms-container {
    max-width: 800px !important;
}

.wpforms-submit {
    display: inline-block !important;
    padding: 12px 24px !important;
    border-radius: var(--border-radius) !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border: 2px solid var(--primary-color) !important;
    line-height: 0 !important;
}

.wpforms-submit:hover {
    background-color: var(--primary-color-dark) !important;
    border-color: var(--primary-color-dark) !important;
}

.wpforms-submit:focus::after {
    border: none !important;
}

/* Pushing content below the wp-admin-bar */

@media (max-width: 800px) {
    #wpadminbar ~ #page .navbar,
    #wpadminbar ~ #page .site-main .post-reading-progress {
        margin-top: 46px;
    }
}

#wpadminbar ~ #page .navbar,
#wpadminbar ~ #page .site-main .post-reading-progress {
    margin-top: 30px;
}
