* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6b8e6f;
    --light-green: #b8d4c8;
    --accent-gold: #f4d47a;
    --secondary-color: #f5f5f0;
    --text-dark: #333;
    --text-light: #666;
    --border-light: #e0e0e0;
    --tag-bg: #b8d4c8;
    --tag-bg-cursus: #b8d4c8;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f0;
    --bg-tertiary: #f5faf5;
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary-color: #8dab91;
    --light-green: #6b9a7a;
    --accent-gold: #ffd966;
    --text-dark: #e0e0e0;
    --text-light: #a0a0a0;
    --border-light: #3a3a3a;
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-tertiary: #2d2d2d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-secondary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
.header {
    background-color: var(--bg-tertiary);
    padding: 0.3rem 2rem;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-buttons {
    display: flex;
    align-items: center;
    margin: 0 auto;
    background-color: #e8e8e8;
    border-radius: 25px;
    overflow: hidden;
    padding: 4px;
}

.header-btn {
    padding: 0.5rem 1.2rem;
    background-color: transparent;
    color: var(--text-dark);
    border: none;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.header-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.header-btn:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.greeting {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
}

.settings-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.settings-btn:hover {
    color: var(--primary-color);
    transform: rotate(10deg);
}

.admin-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.admin-btn:hover {
    color: var(--primary-color);
}

.coach-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(4px);
    transition: color 0.3s ease;
}

.coach-btn:hover {
    color: var(--primary-color);
}

.hamburger-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    margin-right: 1rem;
}

/* Navigation Sidebar */
.nav-sidebar {
    position: fixed;
    left: -600px;
    top: 0;
    width: 600px;
    height: 100vh;
    background-color: var(--bg-secondary);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 200;
    transition: left 0.3s ease, background-color 0.3s ease;
    overflow-y: auto;
}

.nav-sidebar.open {
    left: 0;
}

.nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    color: var(--text-dark);
    align-self: flex-end;
}

.nav-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    min-height: 100%;
    grid-auto-rows: max-content;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 16px;
    overflow: visible;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.nav-item:hover {
    transform: scale(1.05);
}

.nav-item-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    position: relative;
    border: 1px solid var(--accent-gold);
    transition: all 0.3s ease;
    overflow: visible;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 200px;
    background: radial-gradient(ellipse 80% 100% at center bottom, rgba(244, 212, 122, 1), rgba(244, 212, 122, 0.4) 40%, transparent 70%);
    pointer-events: none;
    filter: blur(25px);
    transform: translateX(-50%) translateY(100%);
    border-radius: 12px;
    z-index: -1;
}

.nav-item:hover .nav-item-image {
    outline-color: #f4d47a;
    box-shadow: 0 0 10px #f4d47a,
                0 0 20px rgba(244, 212, 122, 0.7),
                0 0 35px rgba(244, 212, 122, 0.4);
}

.nav-item:hover::after {
    animation: glowRise 0.4s ease-out forwards;
}

@keyframes glowRise {
    from {
        transform: translateX(-50%) translateY(100%);
    }
    to {
        transform: translateX(-50%) translateY(-50%);
    }
}

.nav-item span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Logout Button */
.logout-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    color: var(--accent-gold);
}

.logout-btn:active {
    transform: scale(0.95);
}

/* Profile Avatar */
.profile-menu-container {
    position: relative;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.profile-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(107, 142, 111, 0.3);
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    margin-top: 0.8rem;
    display: none;
    flex-direction: column;
    z-index: 1000;
    animation: dropdownFadeIn 0.2s ease-out;
    overflow: hidden;
}

.profile-dropdown.open {
    display: flex;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-menu-item {
    padding: 0.75rem 1.25rem;
    border: none;
    background: none;
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.profile-menu-item:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.profile-menu-item.logout-item {
    border-top: 1px solid var(--border-light);
    color: var(--text-dark);
}

.profile-menu-item.logout-item:hover {
    background-color: rgba(244, 212, 122, 0.1);
    color: var(--accent-gold);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
}

.profile-initials {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

/* Settings Modal */
#settingsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.settings-modal-content {
    background-color: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
    transition: background-color 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.settings-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.close-settings-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    transition: color 0.3s ease;
}

.close-settings-btn:hover {
    color: var(--text-dark);
}

.settings-group {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.settings-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.settings-label-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settings-label-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.settings-label-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-light);
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Logout Button in Sidebar */
.nav-menu .logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-green) 100%);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 1rem;
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 1rem;
}

.nav-menu .logout-btn:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f0c955 100%);
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 142, 111, 0.2);
}

.nav-menu .logout-btn:active {
    transform: translateY(0);
}

/* Banner */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    align-items: center;
    z-index: 10;
}

.banner-content {
    padding-left: 60px;
    color: white;
}

.banner-content h2 {
    font-size: 8rem;
    font-weight: 800;
    margin-bottom: -3.5rem;
    letter-spacing: -1px;
}

.banner-content p {
    font-size: 6rem;
    font-style: italic;
    font-weight: 400;
    font-family: Georgia, 'Times New Roman', serif;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Content Columns Layout */
.content-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* News Section */
.news-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

/* Podcast Section */
.podcast-section {
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podcast-card {
    background: linear-gradient(135deg, var(--light-green) 0%, var(--primary-color) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(107, 142, 111, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    width: 100%;
}

.podcast-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(107, 142, 111, 0.3);
}

.podcast-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.podcast-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.95;
}

.podcast-icon {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.podcast-icon svg {
    width: 60px;
    height: 60px;
    stroke: white;
    transition: transform 0.3s ease;
}

.podcast-card:hover .podcast-icon svg {
    transform: scale(1.1);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-item {
    background-color: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-tag {
    display: inline-block;
    background-color: var(--tag-bg);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 1.2rem;
}

.news-tag.cursus-tag {
    background-color: var(--tag-bg-cursus);
    color: #4a7ba7;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-description {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-weight: 500;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.read-more {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color);
}

.news-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 4rem;
    transition: background-color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-sidebar {
        width: 500px;
        left: -500px;
    }
}

@media (max-width: 768px) {
    .nav-sidebar {
        width: 100%;
        left: -100%;
    }

    .nav-menu {
        grid-template-columns: 1fr;
    }

    .header-content {
        padding: 0;
    }
    .header-content {
        padding: 0 1rem;
    }

    .banner-content {
        padding-left: 30px;
    }

    .banner-content h2 {
        font-size: 4rem;
    }

    .banner-content p {
        font-size: 3rem;
    }

    .content-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 0 1rem;
    }

    .news-section {
        padding: 2rem 0;
    }

    .podcast-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .greeting {
        font-size: 0.85rem;
    }

    .banner {
        height: 350px;
    }

    .banner-content h2 {
        font-size: 3rem;
    }

    .banner-content p {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .news-item {
        padding: 1.5rem;
    }
}

/* Remove golden glow from in-development nav items */
.nav-item-in-development .nav-item-image {
    border-color: transparent;
}

.nav-item-in-development:hover .nav-item-image {
    box-shadow: none;
    outline: none;
}

.nav-item-in-development::after {
    display: none;
}

.nav-item-in-development:hover::after {
    display: none;
}
