:root {
    --primary-gold: #FFD700; /* Gold */
    --secondary-red: #DC143C; /* Crimson Red */
    --emerald-green: #50C878; /* Emerald Green */
    --dark-grey: #343a40;
    --light-grey: #f8f9fa;
    --white: #ffffff;
    --dark-bg-custom: #1a1a1a; /* Darker background for header/footer */
    --red-dark-bg: #8B0000; /* Darker red for disclaimer */
    --text-color: #333;
    --text-color-light: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-grey);
}

.gold-text {
    color: var(--primary-gold);
}

.emerald-green-bg {
    background-color: var(--emerald-green);
}

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

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

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

/* Custom Buttons */
.btn-primary {
    background-color: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--dark-grey);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important; /* Remove underline */
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-gold), #FFC107); /* Lighter gold gradient */
    border-color: #FFC107;
    color: var(--dark-grey);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background-color: var(--emerald-green);
    border-color: var(--emerald-green);
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important; /* Remove underline */
}

.btn-success:hover {
    background: linear-gradient(45deg, var(--emerald-green), #4CAF50); /* Lighter green gradient */
    border-color: #4CAF50;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    color: var(--white);
    border-color: var(--white);
    text-decoration: none !important; /* Remove underline */
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--dark-grey);
}

.btn-danger {
    background-color: var(--secondary-red);
    border-color: var(--secondary-red);
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

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

/* Top Info Bar */
.top-info-bar {
    background-color: var(--secondary-red);
    color: var(--white);
    font-size: 0.85rem;
}

/* Header */
.navbar-brand .logo-img {
    height: 40px;
    width: auto;
}

.navbar-brand .site-name {
    color: var(--primary-gold);
    font-size: 1.75rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
}

.navbar-toggler {
    border-color: var(--primary-gold);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFD700' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background-image: url('img/graphics/casino-hero-background_22.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-section p.lead {
    font-size: 1.25rem;
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p.lead {
        font-size: 1rem;
    }
    .hero-section {
        min-height: 400px;
        padding: 60px 0;
    }
}

/* Animations */
.animate-fade-slide-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-slide-up.delay-1 {
    transition-delay: 0.2s;
}

.animate-fade-slide-up.delay-2 {
    transition-delay: 0.4s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    color: var(--dark-grey);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
}
@media screen and (width < 576px) {
    .section-title {
    font-size: 2rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-gold);
    border-radius: 2px;
}

/* Featured Casinos - Custom Card Layout */
.casino-card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%; /* Ensure equal height */
}

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

.casino-logo-wrapper {
    padding: 20px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px; /* Fixed width for logo area */
    max-width: 180px;
    height: 180px;
    border-right: 1px solid #e0e0e0; /* Separator for desktop */
}

.casino-logo {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.casino-details {
    padding: 20px;
    flex-grow: 1;
}

.casino-name {
    color: var(--dark-grey);
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

.casino-bonus {
    color: var(--secondary-red);
    font-size: 1.1rem;
}

.casino-description {
    font-size: 0.95rem;
    color: #6c757d;
}

.casino-rating i {
    color: var(--emerald-green);
    font-size: 1.3rem;
    margin-right: 2px;
}

.casino-actions {
    padding: 20px;
    border-left: 1px solid #e0e0e0; /* Separator for desktop */
    min-width: 220px; /* Fixed width for action area */
    max-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.casino-actions .btn {
    width: 100%;
    max-width: 180px;
}

.casino-actions p.small {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 10px;
}

@media (max-width: 767.98px) {
    .casino-card {
        flex-direction: column;
        text-align: center;
    }
    .casino-logo-wrapper {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        width: 100%;
        max-width: 100%;
        height: 150px;
        min-width: unset;
    }
    .casino-actions {
        border-left: none;
        border-top: 1px solid #e0e0e0;
        width: 100%;
        max-width: 100%;
        min-width: unset;
    }
    .casino-actions .btn {
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* How We Rate Section */
.rating-criteria h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.progress {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--emerald-green);
    transition: width 1s ease-out; /* Animation for progress bar */
}

/* Our Recommendations Section */
.recommendation-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.recommendation-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.recommendation-card .card-body {
    padding: 1.5rem;
}

.recommendation-card .card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table th, .comparison-table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.comparison-table thead th {
    background-color: var(--dark-grey);
    color: var(--white);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.comparison-table thead th i {
    margin-left: 5px;
    font-size: 0.8rem;
    vertical-align: middle;
}

.comparison-table tbody tr:nth-of-type(odd) {
    background-color: #f3f3f3;
}

.comparison-table tbody tr:hover {
    background-color: #e9ecef;
}

.comparison-table .table-logo {
    height: 30px;
    width: auto;
    margin-right: 8px;
    vertical-align: middle;
}

.comparison-table i.bi-check-lg {
    color: var(--emerald-green);
    font-size: 1.1rem;
}

.comparison-table i.bi-x-lg {
    color: var(--secondary-red);
    font-size: 1.1rem;
}

/* User Reviews */
.review-card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

.review-card .avatar-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
}

.review-card .review-rating i {
    color: var(--emerald-green);
    font-size: 1.1rem;
}

.review-text {
    max-height: 70px; /* Truncate text */
    overflow: hidden;
    position: relative;
    line-height: 1.5;
}

.review-text.expanded {
    max-height: none;
}

.review-text.expanded + .read-more-btn::before {
    content: 'Recolher';
}

.read-more-btn {
    color: var(--primary-gold);
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none !important;
    display: block;
    text-align: left;
    margin-top: 10px;
}

.read-more-btn:hover {
    text-decoration: underline !important;
}

.read-more-btn::before {
    content: 'Ler mais';
}

/* Disclaimer Block */
#disclaimer-block {
    background-color: var(--secondary-red); /* Strong red background */
    color: var(--white);
    padding: 60px 0;
}

.disclaimer-content {
    background-color: var(--red-dark-bg); /* Darker red for inner content */
    border: 2px solid var(--primary-gold); /* Gold border */
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

#disclaimer-block h3 {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#disclaimer-block h4 {
    color: var(--primary-gold);
    font-size: 1.3rem;
    margin-top: 1.5rem;
}

#disclaimer-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

#disclaimer-block ul {
    padding-left: 20px;
}

#disclaimer-block ul li {
    margin-bottom: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#disclaimer-block ul li i {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-right: 8px;
}

#disclaimer-block a {
    color: var(--white);
    text-decoration: underline;
    transition: color 0.3s ease;
    word-break: break-all;
}

#disclaimer-block a:hover {
    color: var(--primary-gold);
}

/* Footer */
footer {
    background-color: var(--dark-bg-custom);
    color: var(--white);
}

footer .logo-img {
    height: 45px;
    width: auto;
}

footer .site-name {
    color: var(--primary-gold);
    font-size: 1.8rem;
    font-weight: 700;
}

footer a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-gold);
}

footer ul.list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer-responsible-gaming-logos {
    gap: 20px; /* Space between logos */
}

.footer-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px; /* Ensure consistent height for alignment */
}

.footer-img {
    max-width: 140px; /* Max width for logos */
    height: auto; /* Maintain aspect ratio */
    max-height: 50px; /* Limit height to prevent large logos */
    object-fit: contain;
    filter: brightness(0.8) contrast(1.2); /* Slightly dim and contrast to blend with dark background */
    transition: filter 0.3s ease;
}

.footer-img:hover {
    filter: brightness(1) contrast(1.4); /* Brighter on hover */
}

/* Cookie Banner */
.cookie-banner {
    background-color: var(--dark-grey); /* Dark background */
    color: var(--white);
    z-index: 1070; /* Above modals */
    font-size: 0.9rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    animation: slideDown 0.5s ease-out forwards;
}

@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-100%); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.cookie-banner p {
    margin-right: 15px;
}

.cookie-banner .btn-success {
    background-color: var(--emerald-green);
    border-color: var(--emerald-green);
}

.cookie-banner .btn-outline-light {
    border-color: var(--white);
    color: var(--white);
}

/* Age Verification Modal */
.age-modal-content {
    background-color: var(--dark-bg-custom);
    color: var(--white);
    border-radius: 15px;
    border: 2px solid var(--primary-gold);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

.age-modal-content .modal-header {
    border-bottom: none;
}

.age-modal-content .modal-title {
    color: var(--primary-gold);
    font-weight: 700;
}

.age-modal-content .lead {
    color: var(--light-grey);
}

.age-modal-content .btn-success {
    background-color: var(--emerald-green);
    border-color: var(--emerald-green);
}

.age-modal-content .btn-danger {
    background-color: var(--secondary-red);
    border-color: var(--secondary-red);
}

/* Ensure all blocks/cards have equal height in grids */
.row.g-4 > div > .card {
    display: flex;
    flex-direction: column;
}

.row.g-4 > div > .card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.row.g-4 > div > .card .mt-auto {
    margin-top: auto !important;
}
/* Styles for the privacyNestZone container */
.privacyNestZone {
    padding: 60px 20px; /* Top/bottom padding for section, left/right padding for mobile */
    max-width: 1200px; /* Max width to keep content readable */
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color); /* Inherit general text color */
}

@media (min-width: 768px) {
    .privacyNestZone {
        padding: 80px 40px; /* More padding for larger screens */
    }
}

/* Heading styles within privacyNestZone */
.privacyNestZone h1 {
    font-size: 2.2rem; /* Moderate size for main section title */
    margin-bottom: 1.5rem;
    color: var(--dark-grey);
    font-weight: 700;
}

.privacyNestZone h2 {
    font-size: 1.8rem; /* Sub-section title */
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    color: var(--dark-grey);
    font-weight: 600;
}

.privacyNestZone h3 {
    font-size: 1.5rem; /* Smaller sub-heading */
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-grey);
    font-weight: 600;
}

.privacyNestZone h4 {
    font-size: 1.3rem; /* Even smaller heading */
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--dark-grey);
    font-weight: 500;
}

.privacyNestZone h5 {
    font-size: 1.1rem; /* Smallest heading */
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--dark-grey);
    font-weight: 500;
}

/* Paragraph styles within privacyNestZone */
.privacyNestZone p {
    font-size: 1rem; /* Standard paragraph text size */
    line-height: 1.7; /* Comfortable line height for readability */
    margin-bottom: 1rem; /* Spacing between paragraphs */
    color: var(--text-color);
}

/* Unordered list styles within privacyNestZone */
.privacyNestZone ul {
    list-style: disc; /* Default disc bullet points */
    padding-left: 25px; /* Indentation for list items */
    margin-bottom: 1rem; /* Spacing after the list */
    color: var(--text-color);
}

/* List item styles within privacyNestZone */
.privacyNestZone li {
    font-size: 1rem; /* Standard list item text size */
    line-height: 1.6; /* Line height for list items */
    margin-bottom: 0.5rem; /* Spacing between list items */
    color: var(--text-color);
}

/* Anchor links within privacyNestZone for better visibility */
.privacyNestZone a {
    color: var(--primary-gold); /* Gold color for links */
    text-decoration: underline; /* Underline for clarity */
    transition: color 0.3s ease;
}

.privacyNestZone a:hover {
    color: var(--secondary-red); /* Red on hover */
}
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        flex-wrap: wrap;
    }
}