/*
Theme Name: TheMoneySpace101
Theme URI: https://themoneyspace101.com
Author: TheMoneySpace101
Author URI: https://themoneyspace101.com
Description: Custom theme for TheMoneySpace101 — financial coaching and education platform. Ported from the original static/Django design (hero, membership benefits, courses, blog with member-gated content, contact).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: themoneyspace101
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand palette: Indigo, White, Red */
    --primary: #4338CA;
    --primary-dark: #312E81;
    --secondary: #BF313F;
    --accent: #BF313F;
    --dark: #1A1F36;
    --dark-light: #2D3748;
    --light: #FFFFFF;
    --gray: #A0AEC0;
    --gray-light: #E2E8F0;
    --success: #4338CA;
    --warning: #FFB020;
    --danger: #BF313F;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-text {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: var(--primary);
    padding: 10px 16px;
}

.btn-text:hover {
    background-color: rgba(67, 56, 202, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-register {
    background-color: var(--success);
    color: white;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.btn-login {
    color: var(--dark);
    padding: 8px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    height: 44px;
    width: 44px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.logo .money {
    color: var(--primary);
}

.logo .num {
    color: var(--secondary);
}

/* Nav wordmark: solid navy, no two-tone split (client request) */
.navbar .logo .money,
.navbar .logo .num {
    color: var(--dark);
}

/* Footer wordmark: solid white on the dark footer background */
footer .logo .money,
footer .logo .num {
    color: white;
}

.tagline {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
}

.user-menu {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    min-width: 180px;
    padding: 10px 0;
    z-index: 10;
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--dark);
}

.dropdown a:hover {
    background-color: var(--gray-light);
}

.dropdown .logout {
    color: var(--danger);
    border-top: 1px solid var(--gray-light);
    margin-top: 10px;
    padding-top: 15px;
}

.user-menu:hover .dropdown {
    display: block;
}

.mobile-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-menu .icon-close {
    display: none;
}

.mobile-menu.open .icon-open {
    display: none;
}

.mobile-menu.open .icon-close {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f7edee 100%);
    padding: 80px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--dark-light);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.image-placeholder {
    width: 400px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 50px;
}

.about {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 50px;
}

.avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.about-text {
    flex: 1;
}

/* Course Cards */
.courses-preview {
    padding: 80px 0;
    background-color: #f9fafc;
}

.course-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
}

.course-card.featured {
    border: 2px solid var(--primary);
}

.course-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--accent);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-badge-inline {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--accent);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.course-content {
    padding: 40px;
    flex: 1;
}

.course-content h3 {
    margin-top: 0;
}

.course-description {
    color: var(--dark-light);
    margin-bottom: 25px;
}

.course-features {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature i {
    color: var(--secondary);
}

.course-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.old-price {
    text-decoration: line-through;
    color: var(--gray);
}

.discount {
    background-color: rgba(67, 56, 202, 0.1);
    color: var(--success);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.course-image {
    flex: 0 0 300px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.preview-notice {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(67, 56, 202, 0.1);
    border-radius: var(--border-radius);
    max-width: 800px;
    margin: 30px auto 0;
}

.preview-notice i {
    color: var(--secondary);
    margin-right: 10px;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.testimonial-content {
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--dark-light);
}

/* CTA */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta .btn-primary {
    background-color: white;
    color: var(--primary);
    font-size: 1.1rem;
    padding: 15px 40px;
}

.cta .btn-primary:hover {
    background-color: var(--gray-light);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--gray);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-description {
    color: var(--gray);
    margin-top: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--dark-light);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, #ffffff 0%, #f7edee 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* The theme wraps page content in <main>; on the chrome-free auth pages that
   would break the body-level flex centering above, so it's made to take up
   no box of its own and pass its child straight through. */
.auth-page main {
    display: contents;
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    margin-top: 20px;
    color: var(--dark);
}

.auth-header p {
    color: var(--gray);
}

.auth-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
    color: var(--dark);
    transition: border 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group select:disabled {
    background-color: var(--gray-light);
    color: var(--gray);
    cursor: not-allowed;
}

.phone-input-row {
    display: flex;
    gap: 10px;
}

.phone-input-row select {
    flex: 0 0 auto;
    width: auto;
    max-width: 45%;
}

.phone-input-row input {
    flex: 1;
}

@media (max-width: 576px) {
    .phone-input-row {
        flex-direction: column;
    }

    .phone-input-row select {
        max-width: 100%;
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gray);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    width: auto;
    margin-right: 10px;
}

.forgot-password {
    font-size: 0.9rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--gray);
}

.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--gray-light);
}

.auth-divider span {
    padding: 0 15px;
}

.btn-google {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    background-color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    background-color: #f8f9fa;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--gray-light);
    color: var(--gray);
}

.auth-courses, .login-benefits {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
}

.auth-courses h3, .login-benefits h3 {
    margin-bottom: 20px;
    color: var(--dark);
}

.auth-courses ul, .login-benefits ul {
    list-style: none;
}

.auth-courses li, .login-benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.auth-courses i, .login-benefits i {
    color: var(--success);
    margin-top: 3px;
}

/* Dashboard */
.dashboard-container {
    padding: 40px 0 80px;
}

.dashboard-header {
    margin-bottom: 40px;
}

.dashboard-header h1 {
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(67, 56, 202, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.stat-info p {
    color: var(--gray);
    margin-bottom: 0;
}

.dashboard-section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card .course-progress {
    margin-bottom: 20px;
}

.progress-bar {
    height: 8px;
    background-color: var(--gray-light);
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--success);
    border-radius: 4px;
}

.recommended-courses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-preview {
    display: flex;
    gap: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    align-items: center;
}

.course-preview .course-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.course-details {
    flex: 1;
}

.activity-feed {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-light);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(67, 56, 202, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-content p {
    margin-bottom: 5px;
}

.activity-time {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Courses Page */
.courses-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f7edee 100%);
}

.courses-header h1 {
    text-align: center;
    margin-bottom: 20px;
}

.courses-header p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--dark-light);
}

/* .courses-header p above otherwise beats .hero-tagline's color on specificity */
.courses-header p.hero-tagline {
    color: var(--secondary);
}

.courses-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background-color: white;
    border: 1px solid var(--gray-light);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.courses-grid-full {
    padding: 50px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.course-card-full {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--success);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.course-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.course-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.instructor {
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-light);
}

.course-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.pricing-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
}

.banner-content h2 {
    color: white;
    margin-bottom: 15px;
}

.banner-content p {
    max-width: 600px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.banner-icon {
    font-size: 5rem;
    opacity: 0.2;
}

/* Course Detail Page */
.course-hero {
    background: linear-gradient(135deg, #1A1F36 0%, #2D3748 100%);
    color: white;
    padding: 60px 0;
}

.course-hero .container {
    display: flex;
    gap: 50px;
}

.course-hero-content {
    flex: 2;
}

.course-hero-sidebar {
    flex: 1;
}

.course-hero h1 {
    color: white;
    margin-top: 0;
}

.course-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.course-meta-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-item i {
    color: var(--secondary);
}

.course-progress-hero {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.course-price-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    color: var(--dark);
    position: sticky;
    top: 100px;
}

.price-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-light);
}

.price-header .price {
    font-size: 2.5rem;
    font-weight: 700;
}

.price-features {
    margin-bottom: 30px;
}

.price-features .feature {
    margin-bottom: 15px;
}

.price-features i {
    color: var(--success);
}

.price-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.money-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: rgba(67, 56, 202, 0.1);
    border-radius: var(--border-radius);
    color: var(--success);
    font-weight: 600;
}

.course-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 50px 0 80px;
}

.course-modules h2 {
    margin-bottom: 30px;
}

.modules-list {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.module-item {
    display: flex;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--gray-light);
    gap: 20px;
}

.module-item:last-child {
    border-bottom: none;
}

.module-item.completed {
    background-color: rgba(67, 56, 202, 0.05);
}

.module-item.current {
    background-color: rgba(67, 56, 202, 0.05);
    border-left: 4px solid var(--primary);
}

.module-status {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.module-item.completed .module-status {
    background-color: var(--success);
    color: white;
}

.module-item.current .module-status {
    background-color: var(--primary);
    color: white;
}

.module-item .module-status i.fa-lock {
    color: var(--gray);
}

.module-content {
    flex: 1;
}

.module-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.module-meta {
    display: flex;
    gap: 20px;
    color: var(--gray);
    font-size: 0.9rem;
}

.module-item a.btn-primary {
    white-space: nowrap;
}

/* Course Sidebar */
.course-sidebar > div {
    margin-bottom: 30px;
}

.instructor-card, .resources-card, .related-courses {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
}

.instructor-card h3, .resources-card h3, .related-courses h3 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-light);
}

.instructor-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.instructor-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.instructor-details h4 {
    margin-bottom: 5px;
}

.instructor-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.instructor-bio {
    margin-bottom: 20px;
    color: var(--dark-light);
}

.instructor-stats {
    display: flex;
    justify-content: space-between;
}

.instructor-stats .stat {
    text-align: center;
}

.instructor-stats .stat strong {
    display: block;
    font-size: 1.5rem;
    color: var(--dark);
}

.instructor-stats .stat span {
    font-size: 0.9rem;
    color: var(--gray);
}

.resource-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
    gap: 15px;
}

.resource-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.resource-item i {
    color: var(--secondary);
    font-size: 1.5rem;
}

.resource-info {
    flex: 1;
}

.resource-info h4 {
    margin-bottom: 5px;
}

.resource-info span {
    color: var(--gray);
    font-size: 0.9rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: all 0.3s;
}

.btn-icon:hover {
    background-color: var(--primary);
    color: white;
}

.related-course {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
    gap: 15px;
}

.related-course:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-course-image {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.related-course-info {
    flex: 1;
}

.related-course-info h4 {
    margin-bottom: 5px;
}

.related-course-price {
    color: var(--primary);
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container,
    .about-content,
    .course-hero .container,
    .course-content-grid {
        flex-direction: column;
    }
    
    .hero-image,
    .course-hero-sidebar {
        margin-top: 40px;
    }
    
    .courses-grid-full {
        grid-template-columns: 1fr;
    }
    
    .course-card {
        flex-direction: column;
    }
    
    .course-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .navbar .container {
        flex-wrap: wrap;
        padding: 12px 20px;
    }

    .logo h1 {
        font-size: 1.3rem;
    }

    .logo-img {
        height: 36px;
        width: 36px;
    }

    .mobile-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        order: 3;
        margin-top: 12px;
        padding-top: 4px;
        border-top: 1px solid var(--gray-light);
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        margin-left: 0;
        width: 100%;
    }

    .nav-links li:not(:last-child) {
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-links a {
        display: block;
        padding: 16px 4px;
        font-size: 1.05rem;
    }

    .nav-links .btn-login,
    .nav-links .btn-register {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 4px;
    }

    .nav-links form {
        width: 100%;
    }

    .nav-links form .btn-login {
        text-align: left;
    }

    .nav-user {
        margin-left: 0;
        padding: 16px 4px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .course-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .course-meta-hero {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .pricing-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .auth-card {
        padding: 30px 20px;
    }

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

    .module-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .module-item a {
        align-self: flex-end;
    }
}

/* Blog */
.blog-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f7edee 100%);
    text-align: center;
}

.blog-header p {
    color: var(--dark-light);
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    padding: 60px 0 80px;
}

.blog-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-banner {
    height: 160px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    overflow: hidden;
}

.blog-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 12px;
}

.blog-card-meta i {
    color: var(--secondary);
}

.blog-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: var(--dark-light);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--dark-light);
}

.blog-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
}

/* Blog Detail */
.blog-detail-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f7edee 100%);
}

.blog-detail-header .blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.blog-detail-header .blog-meta i {
    color: var(--secondary);
    margin-right: 5px;
}

.blog-detail-header h1 {
    color: var(--dark);
    max-width: 800px;
}

.blog-detail-image {
    max-width: 800px;
    margin: 40px auto 0;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.blog-detail-image img {
    width: 100%;
    display: block;
}

.blog-detail-body {
    padding: 50px 0 80px;
    max-width: 800px;
    margin: 0 auto;
}

.blog-detail-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-light);
    margin-bottom: 1.5rem;
}

.blog-detail-body h2, .blog-detail-body h3 {
    margin-top: 2rem;
    color: var(--dark);
}

.blog-detail-body ul, .blog-detail-body ol {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--dark-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-detail-body blockquote {
    margin: 0 0 1.5rem;
    padding: 15px 25px;
    border-left: 4px solid var(--primary);
    background-color: rgba(67, 56, 202, 0.05);
    color: var(--dark-light);
    font-style: italic;
}

.blog-detail-body img {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.blog-detail-body a {
    text-decoration: underline;
}

/* Blog tags */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background-color: var(--gray-light);
    color: var(--dark-light);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

.tag-pill:hover {
    background-color: var(--primary);
    color: white;
}

.tag-pill.active {
    background-color: var(--primary);
    color: white;
}

.tag-pill.small {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.blog-tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: -20px;
    margin-bottom: 40px;
}

.blog-gate {
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f7edee 100%);
    border-radius: var(--border-radius-lg);
    border: 1px solid #eed4d7;
    text-align: center;
}

.blog-gate-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.blog-gate h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.blog-gate p {
    color: var(--gray);
    max-width: 480px;
    margin: 0 auto 30px;
}

.blog-gate-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}

.blog-empty i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--gray-light);
}

/* Nav auth links */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
    color: var(--dark);
    font-weight: 500;
}

/* Form errors */
.form-errors {
    background-color: rgba(191, 49, 63, 0.1);
    border: 1px solid var(--danger);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 20px;
    color: var(--danger);
    font-size: 0.9rem;
}

.form-errors ul {
    list-style: none;
    margin: 0;
}

.form-errors li {
    margin-bottom: 5px;
}

.form-errors li:last-child {
    margin-bottom: 0;
}

/* Django messages */
.alert {
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin: 20px 0;
    font-size: 0.95rem;
}

.alert-success {
    background-color: rgba(67, 56, 202, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary-dark);
}

.alert-error, .alert-danger {
    background-color: rgba(191, 49, 63, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-gate {
        padding: 30px 20px;
    }

    .blog-gate-actions {
        flex-direction: column;
        align-items: center;
    }
}
/* Wealth Journey Intro */
.journey {
    padding: 80px 0 60px;
    text-align: center;
}

.journey-note {
    max-width: 700px;
    margin: 0 auto;
    color: var(--dark-light);
    font-weight: 600;
}

/* Membership Benefits */
.benefits {
    padding: 80px 0;
    background-color: #f9fafc;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.benefit-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.benefit-card p {
    color: var(--dark-light);
    font-size: 0.95rem;
}

/* Why Join */
.why-join {
    padding: 80px 0;
    text-align: center;
}

.why-join-list {
    list-style: none;
    max-width: 520px;
    margin: 40px auto;
    text-align: left;
}

.why-join-list li {
    padding: 10px 0;
    font-size: 1.05rem;
    color: var(--dark-light);
}

.why-join-list i {
    color: var(--success);
    margin-right: 12px;
}

.why-join-note {
    max-width: 700px;
    margin: 0 auto;
    font-weight: 600;
}

/* Membership Pricing */
.membership {
    padding: 80px 0;
    background-color: #f9fafc;
}

.pricing-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 520px;
    margin: 50px auto 0;
    text-align: center;
    border-top: 5px solid var(--primary);
}

.pricing-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.pricing-amount {
    margin-bottom: 25px;
}

.pricing-amount .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.pricing-amount .per {
    color: var(--gray);
    font-size: 1rem;
    margin-left: 8px;
}

.pricing-intro {
    font-weight: 600;
    margin-bottom: 15px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 30px;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--dark-light);
}

.pricing-features i {
    color: var(--success);
    margin-right: 12px;
}

.pricing-note {
    margin-top: 15px;
    color: var(--gray);
    font-size: 0.9rem;
}

.value-stack {
    max-width: 520px;
    margin: 40px auto 0;
}

.value-stack ul {
    list-style: none;
}

.value-stack li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-light);
    color: var(--dark-light);
}

.value-stack .value {
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

.value-total {
    text-align: center;
    margin-top: 20px;
    font-size: 1.05rem;
}

.value-total strong {
    color: var(--primary);
}

/* FAQ */
.faq {
    padding: 80px 0;
    background-color: #f9fafc;
}

.faq-list {
    max-width: 720px;
    margin: 50px auto 0;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    font-weight: 600;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    color: var(--primary);
    transition: transform 0.2s ease;
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 25px 20px;
    color: var(--dark-light);
}

/* Mission & Values (About page) */
.mission {
    padding: 80px 0;
    background-color: #f9fafc;
}

.mission-text {
    max-width: 800px;
    margin: 40px auto 0;
}

.mission-text p {
    margin-bottom: 20px;
    color: var(--dark-light);
}

.values {
    padding: 80px 0;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 50px auto;
}

.value-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px 15px;
}

.value-card i {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 12px;
}

.value-card h3 {
    font-size: 1rem;
}

.values-note {
    max-width: 700px;
    margin: 0 auto;
    color: var(--dark-light);
}

/* Hero tagline */
.hero-tagline {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--dark-light);
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-info-item h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.contact-info-item p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.contact-form-card {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   WordPress core compatibility (block editor / classic editor content)
   ========================================================================== */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999999;
    background: var(--dark);
    color: white;
    padding: 12px 20px;
    border-radius: 0 0 var(--border-radius) 0;
}

.skip-link:focus {
    left: 0;
    color: white;
}

.alignwide {
    max-width: 1000px;
}

.alignfull {
    max-width: 100%;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.wp-caption,
.blog-detail-body .wp-caption {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.wp-caption img {
    display: block;
    width: 100%;
    border-radius: var(--border-radius);
}

.wp-caption-text,
.blog-detail-body figcaption {
    text-align: center;
    color: var(--gray);
    font-size: 0.85rem;
    padding-top: 8px;
}

.blog-detail-body figure {
    margin: 0 0 1.5rem;
}

.blog-detail-body .wp-block-quote,
.blog-detail-body blockquote.wp-block-quote {
    margin: 0 0 1.5rem;
    padding: 15px 25px;
    border-left: 4px solid var(--primary);
    background-color: rgba(67, 56, 202, 0.05);
    color: var(--dark-light);
    font-style: italic;
}

.blog-detail-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.blog-detail-body table th,
.blog-detail-body table td {
    padding: 10px 15px;
    border: 1px solid var(--gray-light);
    text-align: left;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.gallery img {
    width: 100%;
    border-radius: var(--border-radius);
}

/* Pagination (blog list) */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0 60px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 18px;
    border-radius: var(--border-radius);
    background-color: white;
    box-shadow: var(--shadow);
    color: var(--dark-light);
    font-weight: 600;
}

.pagination a:hover {
    background-color: var(--primary);
    color: white;
}

.pagination .current {
    background-color: var(--primary);
    color: white;
}

/* Admin bar spacing so the sticky nav doesn't collide with it */
.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar {
        top: 46px;
    }
}
