/*
Theme Name: R777
Theme URI: R777
Description: R777 Theme
Version: 1.0
Author: SOYO
Author URI: https://r777bet-bd.com
*/

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #e8f6ff; /* Body background color */
    padding-bottom: 80px; /* Padding to prevent footer from overlapping content */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: #001c37; /* Header background color */
    padding: 20px 0;
    position: sticky; /* Make header sticky */
    top: 0; /* Keep header at top of screen */
    z-index: 1000; /* Ensure header stays above other elements */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu {
    display: flex;
    gap: 25px;
    margin-right: 30px;
}

.menu-item {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.menu-item:hover {
    background: #c3394d;
    color: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    z-index: 1100;
}

/* Tablet and Mobile Common Styles */
@media screen and (max-width: 1024px) {
    .header-content {
        position: relative;
        padding: 10px 0;
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
        padding: 10px;
        margin-right: 10px;
    }

    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #001c37;
        flex-direction: column;
        padding: 10px 0;
        margin: 0;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .menu.active {
        display: flex;
    }

    .menu-item {
        text-align: left;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        display: block;
        font-size: 15px;
    }

    .menu-item:hover {
        background: rgba(195, 57, 77, 0.8);
    }

    .btn-login.menu-item {
        background: #c3394d;
        color: #fff;
        text-align: center;
        margin: 10px 15px;
        padding: 12px 20px;
        border-radius: 5px;
        font-size: 15px;
    }

    .btn-login.menu-item:hover {
        background: #6a2631;
    }

    /* Container adjustments */
    .container {
        padding: 15px;
    }

    /* Logo size */
    .logo img {
        height: 35px;
    }
}

/* Mobile First Approach */
@media screen and (max-width: 480px) {
    html {
        font-size: 14px !important;
    }

    body {
        font-size: 14px !important;
    }

    .container {
        padding: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    header {
        padding: 10px 0 !important;
    }

    .header-content {
        padding: 0 !important;
    }

    .btn-login.menu-item {
        margin: 5px !important;
        padding: 12px 25px !important;
        font-size: 14px !important;
        border-radius: 4px !important;
        text-align: center !important;
        display: inline-block !important;
        width: calc(100% - 20px) !important;
    }

    .menu-toggle {
        font-size: 20px !important;
        padding: 8px !important;
    }

    .logo img {
        height: 30px !important;
    }

    .hero-section h1 {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
        padding: 0 15px !important;
    }

    .hero-section p,
    .features-section p,
    .cta-section p {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
        margin-bottom: 25px !important;
        padding: 0 15px !important;
    }

    .features-section h2,
    .cta-section h2 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
        padding: 0 15px !important;
    }

    .features-section h3,
    .cta-section h3 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
        padding: 0 15px !important;
    }

    .features-section h4,
    .cta-section h4 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
        padding: 0 15px !important;
    }

    .slider img {
        width: 100% !important;
        max-width: 400px !important;
        height: auto !important;
        margin: 20px auto !important;
        display: block !important;
        border-radius: 10px !important;
    }

    .menu-item {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding: 0 15px !important;
    }

    .feature-item {
        padding: 25px !important;
        margin-bottom: 0 !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    }

    .feature-item h3 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }

    .feature-item p {
        font-size: 1.2rem !important;
        line-height: 1.4 !important;
    }

    .cta-button {
        font-size: 1.2rem !important;
        padding: 15px 30px !important;
        margin: 20px 0 !important;
        min-width: 200px !important;
        border-radius: 6px !important;
    }

    /* Fix for ul and ol list-style visibility on mobile */
    ul,
    ol {
        list-style-position: inside !important;
        list-style-type: disc !important;
        margin-left: 20px !important;
        color: #000 !important;
    }
}

/* Buttons */
.btn-login,
.btn-signup {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    background: #c3394d;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-login:hover,
.btn-signup:hover {
    background: #6a2631;
}

/* Table of Contents Section */
.toc-section {
    margin: 20px 0;
}

#toc-toggle-btn {
    background-color: #c3394d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

#toc-toggle-btn:hover {
    background-color: #6a2631;
}

#toc-list {
    list-style-type: none;
    padding-left: 0;
}

#toc-list li {
    margin: 5px 0;
}

#toc-list li a {
    color: #534eff;
    text-decoration: none;
}

#toc-list li a:hover {
    text-decoration: underline;
}

/* Tablet Adjustments */
@media screen and (max-width: 768px) {
    /* Content Sections */
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .features-section h2,
    .cta-section h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .features-section h3,
    .cta-section h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .features-section h4,
    .cta-section h4 {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .features-section p,
    .cta-section p {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .features-section ul,
    .cta-section ul {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .features-section ol,
    .cta-section ol {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .cta-button {
        font-size: 1.1rem;
        padding: 12px 25px;
    }

    .btn-login,
    .btn-signup {
        padding: 12px 20px;
        font-size: 15px;
        margin: 5px;
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 20px 0; /* Padding lebih besar untuk efek scroll */
    background: #e9f5ff;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background: #6a2631;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
}

.cta-button:hover {
    background: #c3394d;
}

/* Features Section */
.features-section {
    text-align: left;
    padding: 20px 0;
    background: #c1d3df;
}

.features-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.features-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.features-section ul {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.features-section ol {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    text-align: left;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 5px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    text-align: left;
    padding: 20px 0;
    background: #e9f5ff;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-section ul {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.cta-section ol {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    color: #fff;
    background: #001c37; /* Footer background color matches header */
    padding: 5px 0;
    position: fixed; /* Make footer sticky */
    bottom: 0; /* Keep footer at bottom of screen */
    width: 100%; /* Full width */
    z-index: 1000; /* Ensure footer stays above other elements */
}

@media screen and (min-width: 769px) {
    footer .container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media screen and (min-width: 769px) {
    footer .container .btn-login.menu-item {
        margin-right: 20px;
    }
    footer .container p {
        margin: 0;
        padding-left: 10px;
    }
}

.footer-content nav {
    display: flex;
    gap: 10px;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1100; /* Increased z-index to be above footer */
    font-size: 24px;
    border: none;
    outline: none;
    background-color: #c3394d;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #6a2631;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content nav {
    display: flex;
    gap: 10px;
}

/* Links */
a {
    text-decoration: none;
}

.features-section a,
.cta-section a:not(.cta-button),
.hero-section a:not(.cta-button) {
    color: #534eff;
}

.features-section a:hover,
.cta-section a:not(.cta-button):hover,
.hero-section a:not(.cta-button):hover {
    color: #fff;
}
