/*
Theme Name: Pendo Admin
Theme URI: https://example.com/pendo-admin-theme
Author: Your Name
Author URI: https://example.com
Description: A modern WordPress theme for Fractional Pendo Admin Services
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pendo-admin
*/

/* Balboa-inspired Design - Clean, Professional, Minimalist */

/* Color Palette - Refined and Modern */
:root {
    --primary-blue: #0A7CFF;
    --secondary-blue: #0056B3;
    --accent-blue: #5EADFF;
    --dark-gray: #1D2B3A;
    --medium-gray: #4A5C70;
    --light-gray: #F0F4F8;
    --white: #FFFFFF;
    --accent-orange: #FF7A45;
    --subtle-shadow: 0 4px 12px rgba(0,0,0,0.05);
    --card-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--medium-gray);
    background-color: var(--light-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Styles */
h1, h2, h3, h4 {
    color: var(--dark-gray);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

p {
    font-size: 1rem; /* Reduced font size */
    line-height: 1.7;
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

/* Navigation */
nav {
    background-color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none; /* Remove bullets from menu items */
}

.nav-links a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 10rem 0 6rem;
    margin-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.hero-content .subtitle, .hero-content p {
    color: var(--dark-gray);
    font-weight: 500;
}

.hero-content .highlight {
    color: var(--primary-blue);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    flex-direction: row; /* Ensure horizontal layout by default */
    gap: 1rem; /* Space between buttons */
    margin-top: 2rem; /* Add some top margin */
    justify-content: center; /* Center buttons if hero-content is centered */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.hero-card-deck {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

.hero-card-deck .carousel-track {
    display: flex;
    width: 400%; /* 100% for each of the 4 images */
    height: 100%;
    animation: carousel-slide 20s infinite linear;
}

.hero-card-deck img {
    width: 25%; /* Each image takes up 1/4 of the track */
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    opacity: 0.6; /* Slightly opaque */
    padding: 0 20px; /* Spacing between images */
}

@keyframes carousel-slide {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-75%); /* Slide through the 3 images */
    }
}

/* Adjustments for mobile view to ensure animations are not too jarring */
@media (max-width: 768px) {
    .hero-card-deck img {
        width: 220px;
        height: 140px;
    }
    
    @keyframes fade-in-out-1 {
        0%, 100% { opacity: 0; transform: scale(0.9); }
        12.5% { opacity: 1; transform: scale(1); }
        37.5% { opacity: 1; transform: scale(1); }
        50% { opacity: 0; transform: scale(0.9); }
    }
    
    @keyframes fade-in-out-2 {
        0%, 100% { opacity: 0; transform: scale(0.9); }
        25% { opacity: 1; transform: scale(1); }
        50% { opacity: 1; transform: scale(1); }
        75% { opacity: 0; transform: scale(0.9); }
    }
    
    @keyframes fade-in-out-3 {
        0%, 100% { opacity: 0; transform: scale(0.9); }
        37.5% { opacity: 1; transform: scale(1); }
        62.5% { opacity: 1; transform: scale(1); }
        75% { opacity: 0; transform: scale(0.9); }
    }
    
    @keyframes fade-in-out-4 {
        0%, 100% { opacity: 0; transform: scale(0.9); }
        50% { opacity: 1; transform: scale(1); }
        75% { opacity: 1; transform: scale(1); }
        100% { opacity: 0; transform: scale(0.9); }
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-image: linear-gradient(to right, var(--primary-blue), var(--accent-blue));
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-image: none;
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

/* Sections */
section {
    padding: 6rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Value Proposition Section */
.value-prop {
    background-color: var(--white);
}

.value-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Add padding on left and right */
}

.value-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Add padding on left and right */
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.value-card {
    text-align: center;
    padding: 2.5rem;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: 1.2rem; /* Further reduced font size */
}

/* Services Section */
.services {
    background-color: var(--light-gray);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; /* Add padding on left and right */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Display 4 inline cards */
    gap: 2rem; /* Adjusted gap for 4 columns */
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.6rem; /* Further reduced margin */
    font-size: 1.2rem; /* Further reduced font size */
}

.service-card p {
    font-size: 0.95rem; /* Further reduced font size */
}

.service-card ul {
    list-style: none;
    margin-top: 0.6rem; /* Further reduced margin */
}

.service-card ul li {
    padding: 0.15rem 0; /* Further reduced padding */
    color: var(--medium-gray);
    font-size: 0.85rem; /* Further reduced font size */
    line-height: 1.4; /* Adjusted line height */
}

.service-card ul li:before {
    content: "✓";
    color: var(--primary-blue);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Testimonial Section */
.testimonial {
    background-color: var(--light-gray);
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.testimonial-blockquote {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-blockquote:before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-blue);
    position: absolute;
    top: 1rem;
    left: 2rem;
    opacity: 0.2;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--dark-gray);
}

.testimonial-author {
    font-weight: 600;
    color: var(--medium-gray);
}

/* Showcase Section */
.showcase {
    background-color: var(--white);
}

.showcase-flow-card {
    background: linear-gradient(145deg, var(--light-gray) 0%, var(--white) 100%);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-top: 3rem;
}

.showcase-flow-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.showcase-flow-header h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.showcase-flow-header p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

.showcase-flow-content {
    padding: 2.5rem;
}

.showcase-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.step-image {
    height: 180px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

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

.step-card:hover .step-image img {
    transform: scale(1.05);
}

.step-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.step-content {
    padding: 1.5rem;
}

.step-content h3 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--medium-gray);
    margin-bottom: 0;
    font-size: 1rem;
}

.features-section {
    margin-top: 3rem;
}

.features-section h3 {
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
}

.feature-item i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.1rem;
}

.feature-item span {
    color: var(--medium-gray);
    font-size: 1rem;
}

.feature-item span strong {
    color: var(--dark-gray);
    display: block;
    margin-bottom: 0.25rem;
}

/* Image Modal/Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 50px;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 1.1rem;
}

.close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.close:hover,
.close:focus {
    color: var(--primary-blue);
    text-decoration: none;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.modal-nav:hover {
    color: var(--primary-blue);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Contact Section */
.contact {
    background-color: var(--white);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.contact-card {
    background-color: var(--light-gray);
    padding: 4rem 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    margin-top: 3rem;
}

.contact-card h2 {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.contact-card p {
    color: var(--medium-gray);
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    min-width: 250px;
}

/* CTA Section */
.cta {
    background-color: var(--primary-blue);
    color: var(--white);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta p {
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta .btn {
    background-image: none;
    background-color: var(--white);
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta .btn:hover {
    background-color: var(--light-gray);
    color: var(--secondary-blue);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 1.5rem 0; /* Reduced padding */
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Flexible columns */
    gap: 2rem;
    margin-bottom: 2rem;
    justify-items: center; /* Center grid items */
}

.footer-section {
    text-align: center; /* Center content within each section */
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.5rem 0;
}

.footer-section ul li a {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-section .social-links {
    display: flex;
    flex-direction: row; /* Ensure horizontal layout for social links */
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-section .social-links li {
    padding: 0; /* Remove default padding from li */
}

.footer-section .social-links a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section .social-links a:hover {
    opacity: 1;
    color: var(--accent-blue); /* Highlight on hover */
}

.footer-section .quick-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-section .quick-links-row li {
    padding: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* Blog Post Styles */
.post-header {
    margin-bottom: 3rem;
}

.post-thumbnail {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.post-category {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    margin-top: 3rem;
}

.sidebar-widget {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.sidebar-posts {
    list-style: none;
}

.sidebar-posts li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-posts li:last-child {
    border-bottom: none;
}

.sidebar-posts a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sidebar-posts a:hover {
    color: var(--primary-blue);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.post-nav-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.post-nav-card:hover {
    transform: translateY(-5px);
}

.post-nav-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.post-nav-content {
    padding: 1.5rem;
}

.post-nav-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.post-nav-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.faq-question {
    background-color: var(--light-gray);
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--dark-gray);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-question.active:after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    background-color: var(--white);
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 1.25rem;
    max-height: 500px;
}

/* Latest Posts Section */
.latest-posts {
    background-color: var(--light-gray);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.post-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.post-card-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-card-meta {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

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

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        height: 350px;
        transform: translateX(0);
    }
    
    .hero-card-deck {
        width: 300px;
        height: 250px;
    }
    
    .hero-card-deck img {
        width: 220px;
        height: 140px;
    }
    
    @keyframes shuffle1 {
        0%, 100% {
            transform: translateX(0px) translateY(0px) rotateZ(0deg) scale(1);
            z-index: 4;
        }
        25% {
            transform: translateX(-60px) translateY(-45px) rotateZ(-12deg) scale(0.85);
            z-index: 1;
        }
        50% {
            transform: translateX(-30px) translateY(-22px) rotateZ(-8deg) scale(0.9);
            z-index: 2;
        }
        75% {
            transform: translateX(-15px) translateY(-11px) rotateZ(-4deg) scale(0.95);
            z-index: 3;
        }
    }
    
    @keyframes shuffle2 {
        0%, 100% {
            transform: translateX(-15px) translateY(-11px) rotateZ(-4deg) scale(0.95);
            z-index: 3;
        }
        25% {
            transform: translateX(0px) translateY(0px) rotateZ(0deg) scale(1);
            z-index: 4;
        }
        50% {
            transform: translateX(-60px) translateY(-45px) rotateZ(-12deg) scale(0.85);
            z-index: 1;
        }
        75% {
            transform: translateX(-30px) translateY(-22px) rotateZ(-8deg) scale(0.9);
            z-index: 2;
        }
    }
    
    @keyframes shuffle3 {
        0%, 100% {
            transform: translateX(-30px) translateY(-22px) rotateZ(-8deg) scale(0.9);
            z-index: 2;
        }
        25% {
            transform: translateX(-15px) translateY(-11px) rotateZ(-4deg) scale(0.95);
            z-index: 3;
        }
        50% {
            transform: translateX(0px) translateY(0px) rotateZ(0deg) scale(1);
            z-index: 4;
        }
        75% {
            transform: translateX(-60px) translateY(-45px) rotateZ(-12deg) scale(0.85);
            z-index: 1;
        }
    }
    
    @keyframes shuffle4 {
        0%, 100% {
            transform: translateX(-45px) translateY(-33px) rotateZ(-12deg) scale(0.85);
            z-index: 1;
        }
        25% {
            transform: translateX(-30px) translateY(-22px) rotateZ(-8deg) scale(0.9);
            z-index: 2;
        }
        50% {
            transform: translateX(-15px) translateY(-11px) rotateZ(-4deg) scale(0.95);
            z-index: 3;
        }
        75% {
            transform: translateX(0px) translateY(0px) rotateZ(0deg) scale(1);
            z-index: 4;
        }
    }
    
    .showcase-steps {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85%;
        margin-top: 30px;
    }
    
    .modal-nav {
        font-size: 30px;
        padding: 15px;
    }
    
    .close {
        font-size: 30px;
        top: 15px;
        right: 25px;
    }
    
    .value-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons { /* Add hero-buttons to stack on small screens */
        flex-direction: column;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .testimonial-author-container {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author-container img {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
} /* Added missing closing brace for 768px media query */

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .value-card,
    .service-card {
        padding: 1.5rem;
    }
    
    .testimonial-blockquote {
        padding: 2rem;
    }
    
    .contact-card {
        padding: 3rem 2rem;
    }
}
