/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: hsl(210, 10%, 20%); /* Dark grey for readability */
    background-color: hsl(200, 30%, 98%); /* Very light blue background */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: hsl(210, 15%, 25%); /* Slightly darker grey for headings */
}

a {
    color: hsl(200, 70%, 50%); /* Medium blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: hsl(200, 80%, 35%); /* Darker blue on hover */
}

.section-title {
    display: flex;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    
    color: hsl(200, 70%, 50%); /* Medium blue for section titles */
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: hsl(100, 50%, 60%); /* Accent green */
    border-radius: 2px;
}

.text-muted{
    color: unset !important;
}

/* Buttons */
.btn-primary {
    background-color: hsl(200, 70%, 50%);
    border-color: hsl(200, 70%, 50%);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: hsl(200, 80%, 35%);
    border-color: hsl(200, 80%, 35%);
    transform: translateY(-2px);
}

.btn-outline-light {
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: hsl(200, 70%, 50%);
    border-color: white;
}

/* Header Navigation */
.header-nav {
    background-color: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1030;
}

.navbar>.container{
    flex-wrap: wrap;
    justify-content: center;
}

.navbar-brand .footer-logo {
    height: 40px; /* Adjust logo height */
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
}

.navbar-nav .nav-link {
    color: hsl(210, 10%, 20%);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: hsl(200, 70%, 50%);
}

/* Hero Section */
.hero-section {
    background-color: hsl(200, 60%, 70%); /* Light blue background */
    overflow: hidden;
    position: relative;
}

.hero-background-patterns {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Double width for seamless scrolling */
    height: 100%;
    background-image: url('uploads/content/abstract-game-pattern.webp'); /* Use a subtle pattern image */
    background-size: cover; /* Adjust as needed */
    background-repeat: no-repeat;
    opacity: 0.15; /* Subtle overlay */
    /* animation: slideBackground 60s linear infinite; */
}

/* @keyframes slideBackground {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } */
/* } */

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: white;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.custom-btn-hero {
    background-color: hsl(100, 50%, 60%); /* Accent green */
    border-color: hsl(100, 50%, 60%);
    font-weight: 600;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
}

.custom-btn-hero:hover {
    background-color: hsl(100, 60%, 45%);
    border-color: hsl(100, 60%, 45%);
}

/* About Section (Timeline) */
.about-section {
    background-color: #f8f9fa;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* .timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: hsl(200, 60%, 70%);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 0;
} */

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid hsl(200, 70%, 50%);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

.timeline-date {
    position: absolute;
    top: 20px;
    width: 100px;
    text-align: center;
    font-size: 0.9em;
    color: hsl(210, 15%, 25%);
    font-weight: 600;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -120px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -120px;
}

.icon-wrapper {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: hsl(200, 70%, 50%);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 1.5rem;
    top: 10px;
    z-index: 10;
}

.timeline-item:nth-child(odd) .icon-wrapper {
    right: -25px;
}

.timeline-item:nth-child(even) .icon-wrapper {
    left: -25px;
}

.content-box {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.content-box:hover {
    transform: translateY(-5px);
}

.content-box h3 {
    color: hsl(200, 70%, 50%);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Services Section */
.services-section {
    background-image: linear-gradient(135deg, hsl(200, 60%, 70%) 0%, hsl(200, 70%, 50%) 100%);
    color: white;
}

.services-section .section-title {
    color: white;
}

.services-section .section-title::after {
    background-color: hsl(100, 50%, 60%);
}

.service-item .card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.service-item .card-body {
    padding: 2.5rem;
}

.problem-block h3 {
    color: hsl(210, 15%, 25%);
    font-size: 1.3rem;
}

.problem-block p {
    color: hsl(210, 10%, 30%);
}

.solution-block h3 {
    color: hsl(200, 70%, 50%);
    font-size: 1.3rem;
}

.solution-block p {
    color: hsl(210, 10%, 25%);
}

/* Features Section */
.features-section {
    background-color: hsl(200, 30%, 98%);
}

.feature-card.mobile-card {
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card.mobile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-card .card-header {
    background-color: hsl(200, 60%, 70%);
    color: white;
    padding: 1.5rem;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
}

.feature-card .icon-large {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.feature-card .card-body {
    padding: 2rem;
}

.feature-card .card-body img {
    max-height: 200px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* How It Works Section */
.how-it-works-section {
    background-color: #f0f8ff;
}

.process-step {
    padding: 2rem;
    position: relative;
}

.process-step .icon-large {
    font-size: 4rem;
    color: hsl(200, 70%, 50%);
    margin-bottom: 1rem;
}

.process-step h3 {
    color: hsl(210, 15%, 25%);
    margin-bottom: 0.8rem;
}

.step-number {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    background-color: hsl(100, 50%, 60%);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.process-step:not(:last-child)::after {
    content: '\2192'; /* Right arrow */
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: hsl(200, 60%, 70%);
    font-weight: 300;
    z-index: 0;
}

@media (max-width: 767.98px) {
    .process-step:not(:last-child)::after {
        content: '\2193'; /* Down arrow */
        right: 50%;
        bottom: -40px;
        top: auto;
        transform: translateX(50%);
    }
    .process-step {
        padding-bottom: 60px;
    }
}

/* Industries Section (Nos Engagements) */
.industries-section {
    background-color: #e6f7ff; /* Lighter blue */
}

.industry-card .card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-card .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.industry-card .icon-medium {
    font-size: 3rem;
    color: hsl(200, 70%, 50%);
}

.stats-list span {
    display: block;
    line-height: 1;
}

.stats-list .stat-number {
    color: hsl(200, 70%, 50%);
}

.stats-list .stat-label {
    font-size: 1rem;
    color: hsl(210, 10%, 40%);
    font-weight: 500;
}

/* Team Section */
.team-section {
    background-color: #f8f9fa;
}

.founder-spotlight {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.founder-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 5px solid hsl(200, 60%, 70%);
    box-shadow: 0 0 0 8px rgba(200, 220, 240, 0.5);
}

.founder-spotlight h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.founder-spotlight p.lead {
    font-size: 1.1rem;
    color: hsl(210, 10%, 30%);
}

.team-member-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.team-member-card .team-img {
    height: 250px;
    object-fit: cover;
    border-bottom: 4px solid hsl(200, 60%, 70%);
}

.team-member-card .card-body {
    padding: 1.5rem;
}

.team-member-card h4 {
    color: hsl(200, 70%, 50%);
    font-size: 1.3rem;
}

.team-member-card .social-media-links a {
    color: hsl(210, 10%, 40%);
    font-size: 1.5rem;
}

.team-member-card .social-media-links a:hover {
    color: hsl(200, 70%, 50%);
}

/* Testimonials Section */
.testimonials-section {
    background-image: url('uploads/content/board-game-night-bg.jpg'); /* Image with dark overlay */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.testimonials-section .container, .testimonials-section .section-title {
    position: relative;
    z-index: 1;
    color: white;
}

.testimonials-section .section-title::after {
    background-color: hsl(100, 50%, 60%);
}

.testimonial-card .card {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    color: hsl(210, 10%, 20%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.testimonial-card .avatar-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid hsl(200, 60%, 70%);
}

.thumbnail-image {
    cursor: pointer;
    display: inline-block;
}

.thumbnail-image .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    color: rgba(200, 220, 240, 0.8);
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 0.2em;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.thumbnail-image:hover .play-icon {
    color: hsl(100, 50%, 60%);
    background-color: rgba(0, 0, 0, 0.6);
}

.testimonial-card .small-review {
    font-style: italic;
    font-size: 0.95rem;
}

/* Testimonial Modal */
.modal-body .avatar-img-lg {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid hsl(200, 60%, 70%);
}

.modal-body .lead {
    font-size: 1.15rem;
    margin-top: 1.5rem;
    color: hsl(210, 10%, 25%);
}

/* FAQ Section */
.faq-section {
    background-color: #f0f8ff;
}

.accordion-item {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.accordion-button {
    background-color: white;
    color: hsl(210, 15%, 25%);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: hsl(200, 70%, 50%);
    background-color: hsl(200, 30%, 95%);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    background-color: #fdfdfe;
    color: hsl(210, 10%, 30%);
    padding: 1.5rem;
}

.icon-accordion {
    font-size: 1.5rem;
    color: hsl(200, 70%, 50%);
}

.accordion-button:not(.collapsed) .icon-accordion {
    color: hsl(100, 50%, 60%);
}

/* Contact Section */
.contact-section {
    background-image: url('uploads/content/game-table-contact.jpg'); /* Image with dark overlay */
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 0;
}

.contact-section .container, .contact-section .section-title {
    position: relative;
    z-index: 1;
    color: white;
}

.contact-section .section-title::after {
    background-color: hsl(100, 50%, 60%);
}

.contact-form .form-floating label {
    color: hsl(210, 10%, 40%);
    white-space: normal;

}

.contact-form .form-control:focus {
    border-color: hsl(200, 70%, 50%);
    box-shadow: 0 0 0 0.25rem rgba(hsl(200, 70%, 50%), 0.25);
}

.form-control::placeholder{
    white-space: normal;
}

.contact-form .form-control.is-invalid {
    border-color: #dc3545;
}

.contact-form .invalid-feedback {
    color: #dc3545;
}

.custom-btn-form {
    background-color: hsl(100, 50%, 60%);
    border-color: hsl(100, 50%, 60%);
    font-weight: 600;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
}

.custom-btn-form:hover {
    background-color: hsl(100, 60%, 45%);
    border-color: hsl(100, 60%, 45%);
}

/* Footer */
.footer-section {
    background-color: hsl(210, 15%, 15%); /* Darker grey-blue */
    color: rgba(255, 255, 255, 0.8);
}

.footer-section .footer-logo {
    height: 50px;
    filter: brightness(0) invert(1); /* Make logo white */
}

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

.footer-section .social-media-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-section .social-media-links a:hover {
    color: hsl(200, 60%, 70%);
    transform: translateY(-3px);
}

.footer-policy-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-policy-links a:hover {
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    background-color: hsl(210, 15%, 25%); /* Dark blue-grey */
    color: white;
    z-index: 1040; /* Above modals */
    display: none; /* Hidden by default, shown by JS */
}

.cookie-banner p a {
    color: white;
}

.cookie-banner .btn-success {
    background-color: hsl(100, 50%, 60%);
    border-color: hsl(100, 50%, 60%);
}

.cookie-banner .btn-success:hover {
    background-color: hsl(100, 60%, 45%);
    border-color: hsl(100, 60%, 45%);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: 8px;
        margin-top: 10px;
        padding: 10px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem;
        text-align: center;
    }

    .navbar>.container{
    flex-wrap: wrap;
    justify-content: space-between;
}
    /* .timeline-container::after {
        left: 31px;
    } */
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
    }
    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        left: 15px;
    }
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 70px;
        right: unset;
        top: -10px;
        width: auto;
        text-align: left;
    }
    .timeline-item:nth-child(odd) .icon-wrapper,
    .timeline-item:nth-child(even) .icon-wrapper {
        left: 6px;
    }
    .founder-spotlight .founder-img {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .custom-btn-hero {
        padding: 0.6rem 2rem;
        font-size: 1rem;
    }
    .cookie-banner .container {
        flex-direction: column;
    }
    .cookie-banner .d-flex.gap-2 {
        width: 100%;
        justify-content: center;
    }
    .cookie-banner .d-flex.gap-2 button {
        flex: 1;
    }
}
/* New styles for .termsCaveBox and its children */

.termsCaveBox {
    /* Padding for the content area */
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    /* Max width to improve readability on large screens */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    /* Optional: background color for the content box, or leave transparent */
    background-color: white;
    /* Optional: subtle shadow or border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.termsCaveBox h1 {
    /* Heading 1 styles */
    font-size: 2rem; /* Moderate size for main section titles within the box */
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    color: hsl(210, 15%, 25%); /* Dark grey for headings */
}

.termsCaveBox h2 {
    /* Heading 2 styles */
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    color: hsl(210, 15%, 25%);
}

.termsCaveBox h3 {
    /* Heading 3 styles */
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    color: hsl(210, 15%, 25%);
}

.termsCaveBox h4 {
    /* Heading 4 styles */
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: hsl(210, 15%, 25%);
}

.termsCaveBox h5 {
    /* Heading 5 styles */
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    color: hsl(210, 15%, 25%);
}

.termsCaveBox p {
    /* Paragraph styles */
    font-size: 1rem; /* Standard paragraph font size */
    line-height: 1.7; /* Good line height for readability */
    margin-bottom: 1rem; /* Space between paragraphs */
    color: hsl(210, 10%, 20%); /* Dark grey for text */
}

.termsCaveBox ul {
    /* Unordered list styles */
    list-style-type: disc; /* Default disc for bullet points */
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem; /* Indentation for list items */
    color: hsl(210, 10%, 20%);
}

.termsCaveBox ol {
    /* Ordered list styles */
    list-style-type: decimal; /* Default numbers for ordered lists */
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem; /* Indentation for list items */
    color: hsl(210, 10%, 20%);
}

.termsCaveBox li {
    /* List item styles */
    margin-bottom: 0.5rem; /* Space between list items */
    line-height: 1.6;
}

.termsCaveBox a {
    /* Link styles within the content box */
    color: hsl(200, 70%, 50%); /* Medium blue for links */
    text-decoration: underline; /* Underline links for clarity */
    transition: color 0.3s ease;
}

.termsCaveBox a:hover {
    /* Link hover styles */
    color: hsl(200, 80%, 35%); /* Darker blue on hover */
    text-decoration: none;
}

/* Responsive adjustments for termsCaveBox */
@media (max-width: 767.98px) {
    .termsCaveBox {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .termsCaveBox h1 {
        font-size: 1.8rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    .termsCaveBox h2 {
        font-size: 1.5rem;
        margin-top: 1.8rem;
        margin-bottom: 1rem;
    }
    .termsCaveBox h3 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }
    .termsCaveBox h4 {
        font-size: 1.1rem;
        margin-top: 1.2rem;
        margin-bottom: 0.6rem;
    }
    .termsCaveBox h5 {
        font-size: 1rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
    .termsCaveBox p, .termsCaveBox li {
        font-size: 0.95rem;
    }
    .termsCaveBox ul, .termsCaveBox ol {
        padding-left: 1.2rem;
    }

    .contact-form .form-floating label{
        font-size: 13px;
    }
}
