/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #111827;
    color: #FFFFFF;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: #FFD700;
    font-weight: 700;
}

p {
    color: #D1D5DB;
}

/* Header/Navbar */
header {
    background-color: #1F2937;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active-link {
    color: #FFD700;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    margin: 3px 0;
    transition: 0.3s;
}

/* Footer */
footer {
    background-color: #1F2937;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content h3 {
    color: #FFD700;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 1rem;
}

.footer-links li {
    margin: 0 1rem;
}

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
}

.footer-links a:hover {
    color: #FFD700;
}

.footer-info p {
    color: #D1D5DB;
}

/* Buttons */
.btn-gold {
    background-color: #FFD700;
    color: #111827;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-gold:hover {
    background-color: #E6C200;
}

.btn-outline {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: #FFD700;
    color: #111827;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero .btn-gold {
    font-size: 1.25rem;
    padding: 1rem 2rem;
}

/* Sections */
.section {
    margin-bottom: 4rem;
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.section p {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

/* Cards */
.cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.card {
    background-color: #1F2937;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    flex: 1 1 300px;
    max-width: 400px;
}

.card h3 {
    margin-bottom: 1rem;
}

.card p {
    color: #D1D5DB;
}

/* Plans Specific */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.plan-card {
    background-color: #1F2937;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.plan-card h3 {
    margin-bottom: 1rem;
}

.plan-card .amount {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 1rem;
}

/* Help Network */
.help-network {
    margin-top: 2rem;
}

.stage {
    background-color: #1F2937;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.stage h4 {
    color: #FFD700;
    margin-bottom: 0.5rem;
}

/* Reward Table */
.reward-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.reward-table th, .reward-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #D1D5DB;
}

.reward-table th {
    background-color: #1F2937;
    color: #FFD700;
}

/* Certificates Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: 15% auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #FFFFFF;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.form-group {
    flex: 1 1 45%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #FFD700;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #1F2937;
    border: 1px solid #D1D5DB;
    color: #FFFFFF;
    border-radius: 4px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-info {
    flex: 1 1 45%;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Login/Join Forms */
.form-container {
    max-width: 400px;
    margin: 4rem auto;
    background-color: #1F2937;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.form-container h2 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background-color: #111827;
    border: 1px solid #D1D5DB;
    color: #FFFFFF;
    border-radius: 4px;
}

.form-container .btn-gold {
    width: 100%;
    margin-top: 1rem;
}

.form-container a {
    color: #FFD700;
    text-decoration: none;
    display: block;
    margin-top: 1rem;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1F2937;
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
        text-align: center;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }

    .contact-form {
        flex-direction: column;
    }
}

/* Tree Structure Styles */
.stage-tree-container {
    margin-bottom: 3rem;
    text-align: center;
}

.stage-title {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.tree {
    padding: 1rem 0;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
}
.tree ul {
    padding-left: 0;
    position: relative;
    list-style-type: none;
    display: block;
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
}
.tree ul ul {
    margin-left: 0;
    padding-left: 20px;
    position: relative;
}
.tree li {
    display: block;
    text-align: center;
    position: relative;
    padding: 20px 0 0 0;
}
.tree li::before, .tree li::after {
    content: '';
    position: absolute;
    left: 50%;
    box-sizing: border-box;
}
.tree li::before {
    border-left: 2px solid #FFD700;
    height: 20px;
    top: 0;
    width: 0;
    z-index: 1;
}
.tree li::after {
    border-left: 2px solid #FFD700;
    height: 20px;
    top: 20px;
    width: 0;
    z-index: 1;
}
.tree li:only-child::after, .tree li:only-child::before {
    display: none;
}
.tree li a {
    border: 2px solid #FFD700;
    padding: 10px 15px;
    text-decoration: none;
    color: #FFD700;
    font-weight: 700;
    border-radius: 50%;
    background-color: #1F2937;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    vertical-align: middle;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    max-width: 100%;
    max-height: 100%;
}
.tree li a:hover, .tree li a:focus {
    background-color: #FFD700;
    color: #111827;
}
.node-icon {
    font-size: 24px;
    margin-bottom: 5px;
    display: block;
}
.node-label {
    font-size: 14px;
    display: block;
}

/* Stage Summary */
.stage-summary {
    background-color: #1F2937;
    color: #FFD700;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.stage-summary p {
    margin: 0.25rem 0;
}

.stage-summary .net-profit {
    font-weight: 700;
    color: #FFFFFF;
}

/* Direct Income Card Styles */
.direct-income-card {
    background-color: #1F2937;
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.3s;
}

.direct-income-card:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.direct-income-icon {
    color: #FFD700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.direct-income-title {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.direct-income-value {
    color: #FFD700;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.bonanza-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 1rem;
}

.direct-income-desc {
    color: #D1D5DB;
    font-size: 0.9rem;
}

/* Income Summary Section */
.income-summary-section {
    text-align: center;
    margin: 2rem auto 4rem;
    max-width: 28rem; /* approx max-w-md */
}

.income-summary-section h2 {
    color: #FFD700;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.income-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.income-item {
    background-color: #1F2937;
    border-left: 4px solid #FFD700;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    width: 100%;
    max-width: 28rem;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
    transition: filter 0.3s;
    text-align: left;
}

.income-item:hover {
    filter: brightness(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tree ul {
        padding-left: 10px;
    }

    .tree li {
        padding: 10px 0 0 0;
    }

    .tree li a {
        width: 50px;
        height: 50px;
        line-height: 50px;
        padding: 0;
        font-size: 12px;
    }

    .node-icon {
        font-size: 16px;
        margin-bottom: 0;
    }

    .node-label {
        font-size: 12px;
    }

    .stage-summary {
        max-width: 100%;
        text-align: center;
    }
}

/* Responsive About Us Page Styles */
.responsive-section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.responsive-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .responsive-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .responsive-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.responsive-card {
    background-color: #1f2937;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.responsive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.5);
}

.responsive-card h3 {
    margin-top: 0;
    color: #facc15; /* Gold color */
}

.responsive-card p {
    color: #d1d5db; /* Light gray */
    line-height: 1.5;
}

/* Bonanza Cards Styles */
.bonanza-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .bonanza-cards {
        flex-direction: row;
        justify-content: center;
    }
}

.bonanza-card {
    background-color: #1F2937;
    border: 2px solid #FFD700;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: box-shadow 0.3s;
    flex: 1 1 300px;
    max-width: 400px;
}

.bonanza-card:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.bonanza-icon {
    color: #FFD700;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.bonanza-card h3 {
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 0;
}

/* Responsive Income Cards Container */
.income-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .income-cards-container {
        flex-direction: row;
        justify-content: center;
    }
}

/* Level Income Detailed Section */
#level-income-detailed {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

#level-income-detailed h2,
#level-income-detailed h3 {
    color: #FFD700;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

#level-income-detailed p,
#level-income-detailed ul {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #D1D5DB;
    font-size: 1rem;
    line-height: 1.5;
}

#level-income-detailed ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

/* Tree Diagram Styles */
.tree {
    text-align: center;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.tree ul {
    padding-left: 0;
    position: relative;
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.tree ul ul {
    margin-left: 0;
    padding-left: 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.tree li {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0;
}

.tree li::before,
.tree li::after {
    content: '';
    position: absolute;
    border-color: #FFD700;
    border-style: solid;
}

.tree li::before {
    border-width: 0 2px 2px 0;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translateX(-50%) rotate(45deg);
}

.tree li::after {
    border-width: 2px 2px 0 0;
    top: 20px;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translateX(-50%) rotate(-45deg);
}

.tree li:only-child::before,
.tree li:only-child::after {
    display: none;
}

.tree li a {
    border: 2px solid #FFD700;
    padding: 10px 15px;
    text-decoration: none;
    color: #FFD700;
    font-weight: 700;
    border-radius: 50%;
    background-color: #1F2937;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    height: 80px;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.tree li a:hover,
.tree li a:focus {
    background-color: #FFD700;
    color: #111827;
}

.node-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.node-label {
    font-size: 14px;
}

/* Level Income Table Styles */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.level-income-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    color: #D1D5DB;
}

.level-income-table thead {
    background-color: #1F2937;
    color: #FFFFFF;
    font-weight: 700;
}

.level-income-table th,
.level-income-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #444c56;
    text-align: center;
}

.level-income-table tbody tr:nth-child(odd) {
    background-color: #2d3748;
}

.level-income-table tbody tr:nth-child(even) {
    background-color: #1a202c;
}

.level-income-table td:last-child {
    font-weight: 700;
    color: #FFD700;
}

/* Total Summary Box */
.total-summary-box {
    max-width: 400px;
    margin: 1rem auto 3rem;
    padding: 1rem 2rem;
    background-color: #FFD700;
    color: #111827;
    font-weight: 700;
    font-size: 1.25rem;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

/* Reward Income Detailed Section */
#reward-income-detailed {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

#reward-income-detailed h2,
#reward-income-detailed h3 {
    color: #FFD700;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

#reward-income-detailed p {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #D1D5DB;
    font-size: 1rem;
    line-height: 1.5;
}

/* Reward Visual Concept */
.reward-visual-concept {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.team-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFD700;
    font-weight: 700;
}

.team-side i {
    margin-bottom: 0.5rem;
}

.center-point {
    width: 4rem;
    height: 4rem;
    border: 2px solid #FFD700;
    border-radius: 50%;
    position: relative;
}

.center-point::before,
.center-point::after {
    content: '';
    position: absolute;
    background-color: #FFD700;
}

.center-point::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.center-point::after {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

/* Reward Income Table Styles */
.reward-income-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    color: #D1D5DB;
}

.reward-income-table thead {
    background-color: #1F2937;
    color: #FFFFFF;
    font-weight: 700;
}

.reward-income-table th,
.reward-income-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #444c56;
    text-align: center;
}

.reward-income-table tbody tr:nth-child(odd) {
    background-color: #2d3748;
}

.reward-income-table tbody tr:nth-child(even) {
    background-color: #1a202c;
}

.reward-income-table td:last-child {
    font-weight: 700;
    color: #FFD700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tree ul {
        padding-left: 10px;
    }

    .tree li {
        padding: 10px 0 0 0;
    }

    .tree li a {
        width: 50px;
        height: 50px;
        line-height: 50px;
        padding: 0;
        font-size: 12px;
    }

    .node-icon {
        font-size: 16px;
        margin-bottom: 0;
    }

    .node-label {
        font-size: 12px;
    }

    .stage-summary {
        max-width: 100%;
        text-align: center;
    }
}
