body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

* {
    box-sizing: border-box;
}

:root {
    --primary-red: #DC3545; /* Bootstrap danger red */
    --light-red: #F8D7DA; /* Light red for backgrounds */
    --dark-red: #A30000; /* Darker red for header/footer */
    --text-dark: #333;
    --text-light: #fff;
}

.bg-light-red {
    background-color: var(--light-red);
}

.bg-dark-red {
    background-color: var(--dark-red) !important;
}

.text-primary-custom {
    color: var(--primary-red) !important;
}

.btn-primary-custom {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: #bd2130;
    border-color: #bd2130;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary-custom {
    background-color: #6c757d;
    border-color: #6c757d;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* General Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-dark);
}

.bg-dark-red h1, .bg-dark-red h2, .bg-dark-red h3, .bg-dark-red h4, .bg-dark-red h5, .bg-dark-red h6,
.bg-light-red h1, .bg-light-red h2, .bg-light-red h3, .bg-light-red h4, .bg-light-red h5, .bg-light-red h6 {
    color: var(--text-light);
}

/* Responsive Headings */
.display-3 {
    font-size: 2.5rem; /* Default for mobile */
}

.display-5 {
    font-size: 2rem; /* Default for mobile */
}

@media (min-width: 768px) {
    .display-3 {
        font-size: 3.5rem; /* Tablet */
    }
    .display-5 {
        font-size: 2.5rem; /* Tablet */
    }
}

@media (min-width: 1024px) {
    .display-3 {
        font-size: 4.5rem; /* Desktop */
    }
    .display-5 {
        font-size: 3.5rem; /* Desktop */
    }
}

.site-logo {
    height: 30px;
    width: auto;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

@media (max-width: 767.98px) {
    .site-logo {
        height: 25px;
    }
    .site-name {
        font-size: 1.1rem;
    }
}

/* Top Disclaimer Bar */
.top-disclaimer-bar {
    position: relative;
    z-index: 1050; /* Above navbar */
    font-size: 0.85rem;
}

/* Header / Navbar */
.fixed-top {
    top: 38px; /* Offset by the disclaimer bar height */
    z-index: 1040;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767.98px) {
    .fixed-top {
        top: 34px; /* Adjust for smaller disclaimer bar on mobile */
    }
    .top-disclaimer-bar {
        font-size: 0.75rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

.navbar-brand .site-logo-footer {
    height: 30px;
    width: auto;
}

.navbar-brand .site-name-footer {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 400;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-red);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.25rem;
}

.offcanvas {
    background-color: var(--dark-red);
}

.offcanvas .btn-close {
    filter: invert(1);
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        display: none !important;
    }
    .navbar-toggler {
        display: block !important;
    }
}

@media (min-width: 1200px) {
    .navbar-toggler {
        display: none !important;
    }
    .offcanvas {
        visibility: hidden !important;
    }
}

/* Hero Section */
.hero-section {
    background-image: url('pictures/media/hero-background_224.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 150px; /* Adjust for fixed header */
    padding-bottom: 150px;
    min-height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-section h1, .hero-section p {
    color: var(--text-light);
}

/* About Us Section */
#about-us img {
    max-height: 400px;
    object-fit: cover;
}

/* Recommended Platforms Grid */
.platform-card {
    background-color: var(--text-light);
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure equal height */
}

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

.platform-image-wrapper {
    flex-shrink: 0;
    width: 100%;
    max-width: 250px; /* Fixed width for image on desktop */
    height: 180px; /* Fixed height for image */
    overflow: hidden;
}

.platform-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.75rem 0 0 0.75rem;
    padding: 0 10px;
}

@media (max-width: 767.98px) {
    .platform-card {
        flex-direction: column;
    }
    .platform-image-wrapper {
        max-width: 100%;
        height: 200px;
    }
    .platform-image-wrapper img {
        border-radius: 0.75rem 0.75rem 0 0;
    }
}

.platform-details {
    padding: 1.5rem;
}

.platform-features li {
    margin-bottom: 0.5rem;
}

.rating-stars i {
    color: #FFC107;
}

.fs-small {
    font-size: 0.85rem;
}

.people-viewing-text {
    font-size: 0.9rem;
}

/* Cards in Newcomers & Safety */
#newcomers-guide .card, #safety-responsibility .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#newcomers-guide .card:hover, #safety-responsibility .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* User Reviews Summary */
.review-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--primary-red);
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1);
}

/* Editor's Official Rating */
.rating-item {
    border-color: rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.progress {
    height: 10px;
}

/* FAQ Section */
.accordion-button {
    border-radius: 0.5rem !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-red) !important;
    color: var(--text-light) !important;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

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

.accordion-button::after {
    filter: invert(1);
}

.accordion-item {
    border: none;
}

.accordion-body {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 0.5rem 0.5rem;
    padding-top: 1rem;
}

/* Contact Form */
#contact-form form {
    background-color: var(--text-light);
}

/* Disclaimer Block */
.disclaimer-block {
    background-color: var(--dark-red);
    color: var(--text-light);
    border-top: 5px solid var(--primary-red);
    border-bottom: 5px solid var(--primary-red);
    padding: 3rem 0;
}

.disclaimer-block p {
    font-size: 0.95rem;
}

.disclaimer-block a {
    font-weight: 600;
}

/* Cookie Consent Banner */
.cookie-banner {
    z-index: 1060; /* Higher than modals */
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.cookie-banner .btn {
    min-width: 90px;
}

/* Cookie Settings Modal */
#cookieSettingsModal .modal-content {
    background-color: var(--dark-red);
}

#cookieSettingsModal .modal-title {
    color: var(--text-light);
}

#cookieSettingsModal .form-check-label {
    color: var(--text-light);
}

#cookieSettingsModal .btn-close-white {
    filter: invert(1);
}

/* Footer */
footer {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-red) !important;
}

.footer-org-logos {
    gap: 1rem;
}

.footer-logo {
    max-width: 120px; /* Adjust based on number of logos */
    height: auto;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
}

.footer-logo:hover {
    filter: brightness(1) contrast(1.2);
}

.site-logo-footer {
    height: 35px;
    width: auto;
}

.site-name-footer {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
}

/* 18+ Age Verification Modal */
#ageVerificationModal .modal-content {
    background-color: var(--dark-red);
    color: var(--text-light);
}

#ageVerificationModal .modal-title {
    color: var(--text-light);
}

#ageVerificationModal .btn-primary-custom {
    min-width: 120px;
}

#ageVerificationModal .btn-secondary-custom {
    min-width: 120px;
}

/* Animations */
.animate__fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate__fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate__fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate__fade-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate__scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate__scale-in.animated {
    opacity: 1;
    transform: scale(1);
}

.animate__delay-1s {
    transition-delay: 0.2s;
}
.animate__delay-2s {
    transition-delay: 0.4s;
}
.animate__delay-3s {
    transition-delay: 0.6s;
}
.animate__delay-4s {
    transition-delay: 0.8s;
}

/* Utility classes for buttons */
.whitespace-normal {
    white-space: normal;
}

.break-words {
    word-break: break-word;
}

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

.word-break-all {
    word-break: break-all;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 120px;
        padding-bottom: 80px;
    }
    .site-name {
        font-size: 1.1rem;
    }
    .site-logo {
        height: 25px;
    }
    .display-3 {
        font-size: 1.8rem;
    }
    .display-5 {
        font-size: 1.5rem;
    }
    .lead {
        font-size: 1rem;
    }
    .platform-details {
        padding: 1rem;
    }
    .footer-org-logos {
        justify-content: center;
    }
    .footer-logo {
        max-width: 100px;
    }
    .cookie-banner p {
        text-align: center;
    }
    .cookie-banner .d-flex.gap-2 {
        width: 100%;
        justify-content: center;
    }
    .cookie-banner .btn {
        flex: 1;
    }
}
/* Main container for the secure terms content */
.secureTermsHub {
    padding: 20px 20px 40px; /* Top, side, and bottom padding for the content area */
    /* You might want to add max-width and margin: 0 auto; here for better readability on large screens */
    /* max-width: 960px; */
    /* margin: 0 auto; */
}

/* Heading 1 styles */
.secureTermsHub h1 {
    font-size: 2rem; /* Moderate font size for the main heading */
    line-height: 1.2; /* Tighter line height for headings */
    margin-top: 1.5em; /* Space above the heading */
    margin-bottom: 0.8em; /* Space below the heading */
    font-weight: bold; /* Ensure it's bold */
}

/* Heading 2 styles */
.secureTermsHub h2 {
    font-size: 1.6rem; /* Smaller than h1 */
    line-height: 1.3;
    margin-top: 1.2em;
    margin-bottom: 0.7em;
    font-weight: bold;
}

/* Heading 3 styles */
.secureTermsHub h3 {
    font-size: 1.4rem; /* Smaller than h2 */
    line-height: 1.4;
    margin-top: 1em;
    margin-bottom: 0.6em;
    font-weight: bold;
}

/* Heading 4 styles */
.secureTermsHub h4 {
    font-size: 1.2rem; /* Smaller than h3 */
    line-height: 1.5;
    margin-top: 0.8em;
    margin-bottom: 0.5em;
    font-weight: bold;
}

/* Heading 5 styles */
.secureTermsHub h5 {
    font-size: 1.1rem; /* Smallest heading, distinct from paragraph */
    line-height: 1.6;
    margin-top: 0.7em;
    margin-bottom: 0.4em;
    font-weight: bold;
}

/* Paragraph styles */
.secureTermsHub p {
    font-size: 1rem; /* Base font size for paragraphs */
    line-height: 1.6; /* Good line height for readability */
    margin-bottom: 1em; /* Space between paragraphs */
}

/* Unordered list styles */
.secureTermsHub ul {
    list-style-type: disc; /* Default bullet points */
    padding-left: 25px; /* Indent for bullet points */
    margin-top: 1em; /* Space above the list */
    margin-bottom: 1em; /* Space below the list */
}

/* List item styles */
.secureTermsHub li {
    font-size: 1rem; /* Inherit or explicitly set for consistency */
    line-height: 1.6; /* Consistent line height */
    margin-bottom: 0.5em; /* Space between list items */
}

.carousel-control-next, .carousel-control-prev{
    top: 140px;
}

@media(max-width: 767px){
    .carousel-control-next, .carousel-control-prev{
        top: 240px;
    }
}

.nChilds{
    width: 75px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.offcanvas.offcanvas-end{
    top: 103px;
}

#recommended-platforms, #newcomers-guide, #safety-responsibility, #user-reviews, #editors-rating{
    overflow: hidden !important;
}