body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 80px;
    /* Space for fixed navbar */
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    width: 40px;
    height: 40px;
}

.navbar-nav .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #000 !important;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

/* Hover effect */
.navbar-nav .nav-link:hover {
    color: #b20000 !important;
}

.navbar-nav .nav-link::after {
    content: "";
    display: block;
    height: 2px;
    background: #b20000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

/* Active link */
.navbar-nav .nav-link.active {
    color: #b20000 !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

#userDropdown::after,
#userDropdown:hover::after,
#userDropdown.active::after {
    display: none !important;
    transform: none !important;
}


#userDropdown:hover,
#userDropdown:focus {
    text-decoration: none !important;
}

/* Main Section */
.main-section {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.main-section img {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.main-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.main-section h1 span {
    color: #b20000;
}

.main-section p {
    max-width: 650px;
    margin: 20px auto;
    font-size: 1.1rem;
    color: #333;
}

.content-section {
    min-height: calc(100vh - 120px);
    position: relative;
    padding-top: 50px;
}

.section-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

.ck-editor__editable {
    min-height: 400px;
}

.enter-btn {
    background-color: #28a745;
    color: #fff;
    font-size: 1rem;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.enter-btn:hover {
    background-color: #218838;
    color: #fff;
}

.content-section h2 {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.content-section p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.content-section ul {
    margin-top: 10px;
    margin-left: 20px;
}

.content-section li {
    margin-bottom: 12px;
    color: #333;
}

/* Next Button */
.btn-next {
    background-color: #0d6efd;
    color: #fff;
    font-weight: 500;
    border-radius: 8px;
    float: right;
    padding: 8px 22px;
}

.btn-next:hover {
    background-color: #0b5ed7;
    color: #fff;
}

/* OVERVIEW OF THE 5 PRE-SET PROJECT TYPES */
.project-types {
    font-family: Arial, sans-serif;
}

.project-card {
    flex: 1;
    min-width: 220px;
}

.card-box {
    background-color: #f4f8ff;
    border: 2px solid #dcdcdc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    background-color: #f7e8b5;
    padding: 10px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    color: #b20000;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.card-text {
    font-size: 14px;
    color: #333;
    text-align: left;
    flex-grow: 1;
}

.card-buttons {
    margin-top: 15px;
}

.learn-btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    border-radius: 20px;
    padding: 6px 16px;
    text-decoration: none;
    margin-bottom: 5px;
}

.launch-btn {
    display: inline-block;
    background-color: #ffb400;
    color: #fff;
    font-weight: bold;
    border-radius: 12px;
    padding: 6px 10px;
    text-decoration: none;
    border: 1px solid #000000;
}

.learn-btn:hover,
.launch-btn:hover {
    opacity: 0.8;
    text-decoration: none;
    border: 1px solid #b20000;
}

/* Ensure Shared Objectives */
.business-section {
    background-color: #f8f9fa;
}

h5 {
    margin-bottom: 20px;
}

.business-heading {
    color: #b20000 !important;
}

.business-img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Learn More page */
.nav-tabs {
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

.nav-tabs .nav-item {
    flex: 1 1 auto;
    text-align: center;
}

.nav-tabs .nav-link {
    white-space: normal !important;
    word-break: break-word;
    padding: 10px 12px;
    height: 100%;
    font-weight: 300;
    color: #555;
}

.nav-tabs .nav-link.active {
    background-color: #d4edda;
    border-color: #c3e6cb #c3e6cb #fff;
    font-weight: 400;
    color: #000;
}

/* Login Button */
.login-btn {
    background: #0dcaf0;
    color: #fff;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.login-btn:hover {
    background: #fff;
    color: #b20000;
    border: 2px solid #b20000;
    transform: scale(1.05);
}

.modal-content {
    border-radius: 12px;
}

.btn-primary {
    background-color: #4B49AC;
    border: none;
}

.btn-primary:hover {
    background-color: #3a3891;
}

.learn-more-tab-ul {
    margin: 0 !important;
}

.learn-more-tab-ul li {
    margin-bottom: 5px !important;
}

.info-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    background-color: #fff;
    margin-top: 5px;
}

/* Vertical Toggle Tree */
/* .tree-container {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 20px;
}

.tree-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 200px;
}

.tree-box {
    background-color: #f7e8b5;
    border: 1px solid #b20000;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #b20000;
    position: relative;
}

.tree-box:hover {
    background-color: #e9ecef;
}

.tree-box.active {
    background-color: #2aa744;
    color: white;
    font-weight: 500;
} */
/* Vertical Toggle Tree */

.tree-container {
    padding: 30px;
}

/* Each level = one horizontal row */

.tree-level {
    display: flex;
    flex-direction: row;
    gap: 20px;

    justify-content: center;
    /* Center row horizontally */
    align-items: center;

    overflow-x: auto;
    overflow-y: hidden;

    flex-wrap: nowrap;
    /* One row only */
    white-space: nowrap;
    /* Prevent wrapping */

    padding: 10px 0;
}

/* Improve button look */
/* .tree-node {
    padding: 12px 20px;
    background: #f7e8b5;
    border: 1px solid #b20000;
    border-radius: 12px;
    cursor: pointer;
    display: inline-block;

    font-size: 15px;
    line-height: 1.3;
    white-space: normal;
    max-width: 260px;
    text-align: center;
} */

.tree-node {
    width: 280px;
    min-height: 70px;
    padding: 12px 18px;
    background: #fdf4c9;
    border: 1px solid #b20000;
    border-radius: 12px;
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;

    white-space: normal;
    /* allow line breaks */
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
}

/* Prevent text overflow */
.tree-node {
    overflow-wrap: break-word;
}

/* Active button styling */
.tree-node.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.node-text {
    cursor: pointer;
}

/* prettier scrollbar */
.tree-level::-webkit-scrollbar {
    height: 8px;
}

.tree-level::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 4px;
}

.tree-level::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 4px;
}


.fc-count {
    position: absolute;
    right: -7px;
    top: -16px;
    z-index: 1;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    background-color: #f7e8b5 !important;
    color: #333 !important;
    font-size: 12px;
    border: 1px solid #b20000;
    font-style: italic;
    font-weight: bold;
}

.node-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    background: #f7e8b5;
    border: 1px solid #b20000;
    border-radius: 50%;
    color: #333;
    font-size: 12px;
    font-weight: bold;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.my-project-section .project-block {
    background: #fff;
}

.status-grid {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.status-box {
    width: 12px;
    height: 12px;
    border: 1px solid #333;
}

.status-box.green {
    background: #00a651;
}

.status-box.gray {
    background: #e0e0e0;
}


@media (max-width: 768px) {
    .tree-container {
        flex-direction: column;
    }

    .tree-column {
        flex-direction: row;
        overflow-x: auto;
    }
}

/* Footer */
footer {
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    text-align: center;
    padding: 15px 10px;
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 10px;
}

footer a {
    color: #6c757d;
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    text-decoration: underline;
}