.langster-stats-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 20px 0;
    font-family: inherit;
}

.langster-stat-item {
    text-align: center;
}

.langster-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
}

.langster-stat-label {
    display: block;
    font-size: 14px;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.langster-leaderboard-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin: 20px 0;
}

.langster-leaderboard-table th {
    text-align: left;
    padding: 12px 16px;
    color: #636e72;
    font-weight: 600;
}

.langster-leaderboard-table tr {
    background: #f8f9fa;
    transition: transform 0.2s;
}

.langster-leaderboard-table tr:hover {
    transform: translateY(-2px);
    background: #f1f2f6;
}

.langster-leaderboard-table td {
    padding: 16px;
}

.langster-leaderboard-table td:first-child {
    border-radius: 8px 0 0 8px;
    font-weight: bold;
}

.langster-leaderboard-table td:last-child {
    border-radius: 0 8px 8px 0;
}

.langster-rank-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: #dfe6e9;
    border-radius: 50%;
    font-size: 14px;
}

.langster-rank-1 {
    background: #ffeaa7;
    color: #d6a312;
}

.langster-rank-2 {
    background: #f1f2f6;
    color: #a4b0be;
}

.langster-rank-3 {
    background: #fab1a0;
    color: #e17055;
}

/* Dashboard Styles */
.langster-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .langster-dashboard-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.langster-dashboard-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.langster-dashboard-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f1f2f6;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.langster-level-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 10px;
}

.langster-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.langster-activity-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f2f6;
    display: flex;
    justify-content: space-between;
}

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

.langster-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.langster-btn-primary {
    background: #007bff;
    color: #fff;
}

.langster-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.langster-resume-section {
    text-align: center;
    padding: 30px;
    background: #f0f7ff;
    border-radius: 12px;
    margin-top: 20px;
}

/* Landing Page Styling */
.langster-landing {
    margin: -30px -15px;
    /* Compacting into the standard WP page container if needed */
    font-family: 'Inter', -apple-system, sans-serif;
}

.langster-landing-hero {
    background: linear-gradient(135deg, #0984e3 0%, #6c5ce7 100%);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 60px;
}

.langster-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.langster-hero-brand {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 10px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 15px;
    display: block;
    line-height: 1;
}

.langster-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: #fff;
}

.langster-hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.langster-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 30px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.langster-hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.langster-hero-btns .langster-btn-primary {
    background: #fff;
    color: #6c5ce7;
    border: none;
}

.langster-hero-btns .langster-btn-primary:hover {
    background: #f1f2f6;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.langster-hero-btns .langster-btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.langster-hero-btns .langster-btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.langster-landing-features {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.langster-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.langster-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

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

.langster-feature-card {
    background: #fff;
    padding: 40px;
    border-radius: 25px;
    border: 1px solid #f1f2f6;
    text-align: center;
    transition: all 0.3s ease;
}

.langster-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.langster-feature-icon {
    font-size: 50px;
    margin-bottom: 25px;
}

.langster-feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.langster-landing-cta {
    padding: 80px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.langster-cta-box {
    background: #2d3436;
    color: #fff;
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.langster-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, transparent 70%);
}

.langster-cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.langster-cta-box p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.8;
    position: relative;
}

@media (max-width: 768px) {
    .langster-hero-content h1 {
        font-size: 2.5rem;
    }

    .langster-hero-btns {
        flex-direction: column;
    }
}

.langster-dashboard-header {
    margin-bottom: 40px;
    text-align: center;
}

.langster-dashboard-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

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

.langster-stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #f1f2f6;
}

.langster-stat-icon {
    font-size: 40px;
    background: #f8f9fa;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
}

.langster-stat-info {
    display: flex;
    flex-direction: column;
}

.langster-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2d3436;
}

.langster-stat-label {
    color: #636e72;
    font-size: 0.9rem;
    font-weight: 500;
}

.langster-dashboard-section h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: #2d3436;
}

.langster-course-progress-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.langster-course-progress-item {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #f1f2f6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s;
}

.langster-course-progress-item:hover {
    transform: translateY(-5px);
}

.langster-cp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.langster-cp-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.langster-cp-header span {
    font-size: 0.85rem;
    color: #b2bec3;
    font-weight: 600;
}

.langster-cp-link {
    display: inline-block;
    margin-top: 15px;
    color: #0984e3;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Course Grid */
.langster-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.langster-course-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #f1f2f6;
}

.langster-course-card:hover {
    transform: translateY(-5px);
}

.langster-course-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.langster-card-progress-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #00b894;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 184, 148, 0.3);
}

.langster-meta-progress {
    color: #00b894;
    font-weight: bold;
    margin-left: 10px;
}

.langster-course-content {
    padding: 20px;
}

.langster-course-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
}

.langster-course-meta {
    font-size: 0.9rem;
    color: #636e72;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f2f6;
}

/* Course Single Page */
.langster-course-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.langster-course-hero {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.langster-course-banner {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.langster-course-title-wrap {
    padding: 30px;
}

.langster-course-title-wrap h1 {
    margin: 0 0 15px 0;
    font-size: 2.5rem;
}

.langster-course-stats {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.langster-course-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.langster-progress-label {
    font-weight: bold;
    color: #2d3436;
}

.langster-progress-value {
    font-weight: 800;
    color: #00b894;
}

.langster-course-stats .langster-progress-bar-wrapper {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.langster-course-stats .langster-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b894, #55efc4);
    transition: width 0.5s ease;
}

.langster-progress-text {
    font-size: 0.85rem;
    color: #636e72;
    margin: 0;
}

.langster-lesson-row {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid #f1f2f6;
    transition: all 0.2s ease;
}

.langster-lesson-row:hover {
    border-color: #0984e3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.langster-lesson-number {
    width: 40px;
    height: 40px;
    background: #f1f2f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    color: #636e72;
}

.langster-lesson-info {
    flex-grow: 1;
}

.langster-lesson-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.langster-lesson-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
}

.langster-tag {
    background: #e1f5fe;
    color: #0288d1;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: bold;
}

.langster-meta-text {
    color: #b2bec3;
}

.langster-btn-outline {
    background: transparent;
    border: 2px solid #0984e3;
    color: #0984e3;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.langster-btn-outline:hover {
    background: #0984e3;
    color: #fff;
}

/* Completed Lesson Styling */
.langster-lesson-row.is-completed {
    border-left: 5px solid #00b894;
    background: #f9fdfc;
}

.langster-lesson-row.is-completed .langster-check-icon {
    color: #fff;
    background: #00b894;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.langster-lesson-row.is-completed .langster-lesson-number {
    background: #00b894;
    color: #fff;
}

.langster-lesson-row.is-completed h3 {
    color: #2d3436;
}

.langster-btn-sm {
    padding: 5px 15px;
    font-size: 0.85rem;
}

/* Login Notice Card */
.langster-login-notice-card {
    background: linear-gradient(135deg, #f0f6fb 0%, #e1f5fe 100%);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    border: 1px solid #b3e5fc;
}

.langster-notice-icon {
    font-size: 50px;
    background: #fff;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.langster-notice-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    color: #2d3436;
}

.langster-notice-content p {
    margin: 0 0 25px 0;
    color: #636e72;
    line-height: 1.6;
}

.langster-notice-btns {
    display: flex;
    gap: 15px;
}

.langster-lessons-list.is-locked .langster-lesson-row {
    opacity: 0.6;
    pointer-events: none;
}

.langster-lessons-list.is-locked .langster-lesson-action {
    pointer-events: auto;
}

@media (max-width: 768px) {
    .langster-login-notice-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .langster-notice-btns {
        justify-content: center;
    }
}


/* Course Welcome Screen */
.langster-welcome-box {
    background: #fff;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f2f6;
    margin-top: 40px;
}

.langster-benefit-item {
    transition: transform 0.3s ease;
    border: 1px solid transparent;
}

.langster-benefit-item:hover {
    transform: translateY(-5px);
    background: #fff !important;
    border-color: #6c5ce7;
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.1);
}

.langster-auth-actions .langster-btn {
    min-width: 250px;
}

@media (max-width: 768px) {
    .langster-auth-actions {
        flex-direction: column;
    }

    .langster-auth-actions .langster-btn {
        width: 100%;
    }

    .langster-welcome-box {
        padding: 30px 20px;
    }
}


/* Auth Forms Styling */
.langster-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    min-height: 80vh;
}

.langster-auth-card {
    background: #fff;
    max-width: 450px;
    width: 100%;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f2f6;
    text-align: center;
}

.langster-auth-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0984e3 0%, #6c5ce7 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    border-radius: 18px;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.langster-auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2d3436;
}

.langster-auth-header p {
    color: #636e72;
    margin-bottom: 35px;
}

.langster-auth-form {
    text-align: left;
}

.langster-form-group {
    margin-bottom: 20px;
}

.langster-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3436;
    font-size: 0.9rem;
}

.langster-form-group input {
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    border: 2px solid #f1f2f6;
    font-family: inherit;
    transition: all 0.2s;
}

.langster-form-group input:focus {
    border-color: #6c5ce7;
    outline: none;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.langster-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: #636e72;
}

.langster-forgot-link {
    color: #0984e3;
    text-decoration: none;
}

.langster-btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.langster-auth-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f1f2f6;
    font-size: 0.9rem;
    color: #636e72;
}

.langster-auth-footer a {
    color: #6c5ce7;
    font-weight: 700;
    text-decoration: none;
}

.langster-auth-msg {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
}

.langster-auth-msg.error {
    display: block;
    background: #fff5f5;
    color: #e74c3c;
    border: 1px solid #ffcdd2;
}

.langster-auth-msg.success {
    display: block;
    background: #f0fff4;
    color: #27ae60;
    border: 1px solid #c6f6d5;
}

.langster-btn.is-loading {
    opacity: 0.8;
    cursor: wait;
}


/* Universal Page Hero Section */
.langster-page-hero,
.langster-courses-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: linear-gradient(135deg, #0984e3 0%, #6c5ce7 100%);
    padding: 40px 20px;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.langster-page-hero::before,
.langster-courses-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.langster-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.langster-page-hero h1.langster-page-title,
.langster-courses-hero h1.langster-page-title {
    font-size: 3.5rem;
    font-weight: 850;
    margin: 0 0 15px 0;
    color: #fff !important;
    letter-spacing: -1px;
    line-height: 1.1;
}

.langster-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 500;
    margin: 0;
}

.langster-courses-grid,
.langster-leaderboard-table,
.langster-dashboard {
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

/* Courses Filter */
.langster-courses-filter-wrap {
    margin: -30px auto 50px auto;
    text-align: center;
    max-width: 1200px;
    position: relative;
    z-index: 10;
}

.langster-courses-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.langster-filter-btn {
    background: #fff;
    border: 2px solid #f1f2f6;
    width: 180px;
    height: 180px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    padding: 20px;
}

.langster-filter-btn:hover {
    border-color: #0984e3;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.langster-filter-btn.active {
    border-color: #0984e3;
    background: #f0f7ff;
    box-shadow: 0 15px 40px rgba(9, 132, 227, 0.2);
}

.langster-flag-icon {
    font-size: 5rem;
    line-height: 1;
}

.langster-lang-name {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    color: #2d3436;
    line-height: 1.2;
}

.langster-filter-btn.active .langster-lang-name {
    color: #0984e3;
}

.langster-filter-reset {
    margin-top: 15px;
}

.langster-reset-link {
    color: #636e72;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    display: inline-block;
}

.langster-reset-link:hover {
    color: #0984e3;
    background: rgba(9, 132, 227, 0.05);
}

.langster-reset-link.active {
    display: none; /* Hide if all are already shown */
}

/* Filter Navigation & Back Button */
.langster-filter-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    animation: fadeInDown 0.4s ease-out;
}

.langster-back-btn {
    background: #f1f2f6;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    color: #2d3436;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.langster-back-btn:hover {
    background: #dfe6e9;
    transform: translateX(-5px);
}

.langster-back-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.langster-active-filter-indicator {
    font-size: 1.1rem;
    color: #636e72;
}

#langster-active-lang-name {
    color: #0984e3;
    font-weight: 700;
}

.langster-language-selection-wrap {
    animation: fadeIn 0.5s ease-in;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.langster-course-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 768px) {
    .langster-page-hero,
    .langster-courses-hero {
        padding: 30px 20px;
    }

    .langster-page-hero h1.langster-page-title,
    .langster-courses-hero h1.langster-page-title {
        font-size: 2.5rem;
    }

    .langster-hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Custom Template Styles */
.page-template-langster-template-php header:not(.langster-header-bar),
.page-template-langster-template-php [role="banner"],
.page-template-langster-template-php .wp-block-template-part-header,
.page-template-langster-template-php .site-header,
.page-template-langster-template-php #masthead,
.page-template-langster-template-php .wp-site-blocks > div:first-child:not(.langster-template-wrapper) {
    display: none !important;
}

/* Ensure our header remains visible */
.page-template-langster-template-php .langster-header-bar {
    display: block !important;
}

/* Ensure no ghost margins from hidden header */
.page-template-langster-template-php .wp-site-blocks {
    padding-top: 0 !important;
}

.langster-template-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
}

.langster-header-bar {
    background: transparent; /* Move background to inner */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 30px;
}

.langster-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
}

.langster-site-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #2d3436;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.langster-main-content {
    padding-bottom: 80px;
}

.langster-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 25px;
}

.langster-courses-list-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Ensure hero doesn't overflow */
.langster-page-hero {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .langster-header-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
.langster-interface-switcher {
    display: inline-flex;
    background: #fff;
    padding: 6px;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #f1f2f6;
    gap: 5px;
}

.langster-lang-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 30px;
    text-decoration: none;
    color: #636e72;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.2s;
}

.langster-lang-link:hover {
    background: #f8f9fa;
    color: #2d3436;
}

.langster-lang-link.active {
    background: #0984e3;
    color: #fff;
    box-shadow: 0 4px 10px rgba(9, 132, 227, 0.3);
}

.langster-interface-flag {
    font-size: 1.2rem;
    line-height: 1;
}

.langster-interface-slug {
    letter-spacing: 0.5px;
}

/* Main Navigation Menu */
.langster-nav-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.langster-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
    align-items: center;
}

.langster-nav-link {
    text-decoration: none;
    color: #2d3436;
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
    transition: all 0.2s;
    line-height: 1.2;
    display: block;
}

.langster-nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0984e3;
    transition: width 0.3s;
}

.langster-nav-link:hover {
    color: #0984e3;
}

.langster-nav-link:hover:after {
    width: 100%;
}

.langster-nav-item.active .langster-nav-link {
    color: #0984e3;
    font-weight: 700;
}

.langster-nav-item.active .langster-nav-link:after {
    width: 100%;
}

@media (max-width: 768px) {
    .langster-nav-list {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Custom Footer */
.langster-site-footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
    width: 100%;
}

.langster-footer-slogan {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.langster-footer-copy {
    font-size: 0.9rem;
    color: #636e72;
}