/* Applying the style guide with CSS variables for easy management */
:root {
    --primary-blue: #2C3E91;
    --secondary-orange: #E67E22;
    --neutral-beige: #F5F5DC;
    --neutral-gray: #BDC3C7;
    --accent-green: #1ABC9C;
    --dark-overlay: rgba(10, 20, 40, 0.7);
}

.font-brand { font-family: 'Montserrat', sans-serif; }
.font-body { font-family: 'Open Sans', sans-serif; }

/* ===== NAVIGATION ACTIVE STATE ===== */
.nav-link.active {
    background-color: var(--secondary-orange);
}
.nav-link:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* === PAGE BACKGROUNDS === */
.hero-section {
    background-image: linear-gradient(var(--dark-overlay), var(--dark-overlay)), url('https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.products-hero {
    background-image: linear-gradient(rgba(10, 20, 40, 0.6), rgba(10, 20, 40, 0.6)), url('https://images.unsplash.com/photo-1566073771259-6a8506099945?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

#solutions-view {
    background-image: linear-gradient(
            to bottom,
            rgba(232, 229, 220, 0.85),
            rgba(232, 229, 220, 0.85)
    ), url('https://images.unsplash.com/photo-1568229988520-4bc288da81f7?q=80&w=735&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.solutions-hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
    text-align: center;
}

/* MODIFIED: Solution card background color adjusted */
.solution-card {
    background-color: rgba(245, 245, 220, 0.85); /* neutral-beige with 85% opacity */
    backdrop-filter: blur(2px); /* Slightly less blur to emphasize the color */
    border-radius: 1rem; /* Consistent border radius */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between text and image */
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) { /* md breakpoint */
    .solution-card {
        flex-direction: row; /* Horizontal layout on medium screens and up */
        padding: 2.5rem;
    }
    .solution-card.reverse-layout { /* For alternating image/text */
        flex-direction: row-reverse;
    }
}


/* NEW: Specific styling for solution card images */
.solution-card img {
    height: auto; /* Allow height to adjust naturally */
    max-height: 180px; /* Limit max height for smaller screens, adjust as needed */
    object-fit: cover; /* Ensures images cover the area without distortion */
    width: 100%; /* Ensure images take full width */
    border-radius: 0.75rem; /* Rounded corners for images */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Adjust image height for larger screens if necessary */
@media (min-width: 768px) { /* md breakpoint */
    .solution-card img {
        max-height: 200px; /* Slightly taller on desktop */
    }
}
@media (min-width: 1024px) { /* lg breakpoint */
    .solution-card img {
        max-height: 250px; /* Even taller on large desktops */
    }
}

/* === GENERAL STYLING === */
.cta-button {
    background-color: var(--secondary-orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3);
}

.feature-card {
    background-color: var(--primary-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(44, 62, 145, 0.2);
}

.team-member-card img { transition: transform 0.3s ease; }
.team-member-card:hover img { transform: scale(1.05); }

.testimonial-blob { clip-path: polygon(41% 5%, 83% 10%, 100% 50%, 79% 94%, 34% 97%, 0% 63%); }

/* === PRICING PAGE STYLING === */
.pricing-hero {
    background-image: linear-gradient(var(--dark-overlay), var(--dark-overlay)), url('https://images.unsplash.com/photo-1678912128919-b69e9e855c00?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
}

.pricing-table-container {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* To keep the rounded corners */
}

.pricing-table-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .pricing-table-grid {
        /* On small screens, show only Category and Plan Plus */
        grid-template-columns: 1fr 1fr;
    }
    .hide-on-mobile {
        display: none;
    }
}

.pricing-cell {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(200, 200, 200, 0.5);
    display: flex;
    align-items: center;
}

.pricing-table-grid .pricing-cell:not(:last-child) {
    border-right: 1px solid rgba(200, 200, 200, 0.5);
}

.pricing-header .pricing-cell {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: bold;
    color: var(--primary-blue);
}

.category-cell {
    font-weight: bold;
    color: var(--primary-blue);
    grid-row: span 3; /* Default span, adjust as needed */
}

.plan-plus-col {
    background-color: rgba(26, 188, 156, 0.1); /* Light green tint */
}

.checkmark-icon {
    color: var(--primary-blue);
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.feature-description {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
    display: block;
}

/* === SUCCESS STORIES PAGE STYLING === */
.success-hero {
    background-image: linear-gradient(rgba(245, 245, 220, 0.8), rgba(245, 245, 220, 0.8)), url('https://images.unsplash.com/photo-1549294413-26f195200c16?q=80&w=1964&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.story-card {
    background-color: var(--primary-blue);
    border-radius: 1rem;
    padding: 2.5rem;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.story-logo {
    max-height: 50px; /* Adjust as needed */
    margin: 1rem auto;
}

.main-testimonial {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--neutral-gray);
}

.main-testimonial-author {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: right;
}

.guest-testimonial {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.guest-testimonial-bubble {
    position: relative;
    background-color: #e0e0e0;
    color: #333;
    padding: 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-style: italic;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* Creates the speech bubble triangle */
.guest-testimonial-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent #e0e0e0 transparent transparent;
}

/* === RESOURCES PAGE STYLING === */
/* --- Hero Sections --- */
.resources-hero {
    background-image: linear-gradient(rgba(10, 20, 40, 0.7), rgba(10, 20, 40, 0.7)), url('https://images.unsplash.com/photo-1690266503084-8ec336397478?q=80&w=1074&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- MODIFIED --- */
.blogs-hero {
    /* Updated to use the hotel entrance background image with an overlay */
    background-image: linear-gradient(rgba(44, 62, 145, 0.7), rgba(44, 62, 145, 0.7)), url('https://images.unsplash.com/photo-1701893470169-4b08c8d25ccd?q=80&w=736&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
}

/* --- Card Styling (Documentation & Blog) --- */
.doc-card {
    background-color: var(--primary-blue);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    width: 320px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.doc-card .cta-button {
    background-color: var(--secondary-orange);
    color: white;
    margin-top: 1rem; /* Added margin for spacing */
    align-self: flex-start;
}

.blog-card {
    background-color: var(--accent-green);
    color: white;
    border-radius: 1rem;
    width: 350px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

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

.blog-card .p-6 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-card .blog-button {
    background-color: white;
    color: var(--accent-green);
    font-weight: bold;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    margin-top: 1rem; /* Added margin for spacing */
    align-self: flex-start;
    transition: all 0.3s ease;
}

.blog-card .blog-button:hover {
    background-color: var(--neutral-beige);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Carousel System --- */
.carousel-wrapper {
    position: relative;
    padding: 0 48px; /* Provides space on the sides for the arrows */
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto; /* Allows manual scroll as a fallback */
    scroll-behavior: smooth;
    padding: 1rem;
    margin: 0 -1rem; /* Compensates for padding to align cards to the edge */
    /* Hide scrollbar */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10;
    color: var(--primary-blue);
    transition: all 0.2s ease-in-out;
}
.carousel-arrow:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}
.carousel-arrow.left {
    left: 0;
}
.carousel-arrow.right {
    right: 0;
}

/* --- Video Player --- */
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0; /* Arrows will overlay content on mobile */
    }
    .carousel-arrow.left {
        left: 8px;
    }
    .carousel-arrow.right {
        right: 8px;
    }
}