/* Root Variables for Consistent Theming */
:root {
    --primary-color: #0E9294;
    --secondary-color: #085859;
    --text-color: #dbdbdb;
    --border-color: #ccc;
    --hover-filter: grayscale(100%) brightness(0.5);
    --transition-speed: 0.3s;
    --font-family: 'Poppins', sans-serif;
    /* Additional Variables */
    --background-color: #1a1a1a;
    --light-background: #2c2c2c;
    --extended-section-bg: #141414;
    --comparison-bg: #1f1f1f;
    --roi-bg: #1a1a1a;
    --cta-bg: #0E9294;
}

/* Ensure Content Starts Below the Navbar */
.updates {
    padding-top: 100px;
    /* Adjust if necessary */
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ================================
   Updated Tabs Styling
   ================================ */

/* Tabs Container */
.tabs {
    display: flex;
    background-color: var(--light-background);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    margin-bottom: -1px;
    /* Pull tabs into tabcontent border */
}

/* Individual Tab Buttons */
.tablinks {
    flex: 1;
    background-color: var(--light-background);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px 20px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    white-space: nowrap;
    border-right: 1px solid var(--border-color);
}

.tablinks:last-child {
    border-right: none;
}

/* Hover Effect */
.tablinks:hover {
    background-color: var(--extended-section-bg);
    color: var(--primary-color);
}

/* Active Tab */
.tablinks.active {
    background-color: var(--extended-section-bg);
    color: var(--primary-color);
    /* Remove bottom border effect so it looks attached */
    border-bottom: 1px solid var(--extended-section-bg);
}

/* Tab Content Containers */
.tabcontent {
    display: none;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-top: none;
    background-color: var(--extended-section-bg);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn var(--transition-speed) ease-in-out;
}

.tabcontent.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Existing Styles (unchanged)
   ================================ */

/* Headers in the Tab Content */
.tabcontent h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.tabcontent h3 {
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.tabcontent h4 {
    font-family: var(--font-family);
    font-weight: 600;
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.tabcontent p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.8;
}

.tabcontent ul {
    margin-left: 20px;
    list-style: none;
    padding-left: 0;
}

.tabcontent ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.tabcontent ul li::before {
    content: "\2022";
    /* Bullet point */
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Enhanced Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

/* Responsive Design Enhancements */
@media (max-width: 600px) {
    .tabcontent h2 {
        font-size: 1.5rem;
    }

    .tabcontent h3 {
        font-size: 1.25rem;
    }

    .tabcontent h4 {
        font-size: 1.1rem;
    }

    .tabcontent p,
    .tabcontent ul li {
        font-size: 0.95rem;
    }
}

/* Additional Enhancements (Optional) */

/* Scrollbar Styling */
.updates::-webkit-scrollbar {
    height: 8px;
}

.updates::-webkit-scrollbar-track {
    background: var(--extended-section-bg);
}

.updates::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* Transition for Tab Content */
.tabcontent {
    transition: opacity var(--transition-speed) ease-in-out, transform var(--transition-speed) ease-in-out;
}

/* Container for Each Update */
.update {
    background-color: var(--light-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

/* Update Header */
.update h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.75rem;
    position: relative;
    padding-bottom: 10px;
}

.update h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Release Date Styling */
.update p strong {
    color: var(--primary-color);
}

/* Nested Lists Styling */
.update ul {
    margin-left: 20px;
    padding-left: 0;
}

.update ul ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

.update ul li {
    margin-bottom: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .update {
        padding: 15px;
    }

    .update h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .update h3 {
        font-size: 1.3rem;
    }

    .update p,
    .update ul li {
        font-size: 0.95rem;
    }
}

/* Ensure the tabs are directly above the notes container */
.updates .tabs {
    margin-top: 5em;
}