:root {
    --red-primary: #d43934;
    --red-dark: #991b1b;
    --red-light: #fee2e2;
}

/* Navigation */
.navbar-custom {
    border-bottom: 1px solid #e5e7eb;
    background-color: white;
}

.back-link {
    color: #6b7280;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--red-primary);
}

/* Hero Image */
.hero-image-section {
    position: relative;
    height: 60vh;
    background-color: #1f2937;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    padding-bottom: 3rem;
}

.project-badge-hero {
    background-color: var(--red-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--red-light);
    margin-left: 1rem;
    margin-right: 1rem;
}

.btn.btn-white:before, .btn.btn-white:after {
    background: transparent;
}

.btn.btn-white {
    border: 0;
    margin: 0 1rem;
    background: var(--red-light);
    border-radius: 150px;
}

.btn.btn-white:hover {
    background: var(--red-dark);
    color: var(--red-light);
    border: 0;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Content Sections */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.content-section p {
    color: #374151;
    line-height: 1.8;
}

/* Services List */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.service-item i {
    color: var(--red-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Outcomes */
.outcome-item {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.outcome-item i {
    color: #16a34a;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Sidebar */
.sidebar-info {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 2rem;
    position: sticky;
    top: 2rem;
}

.sidebar-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.info-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.info-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.info-value {
    color: #111827;
    font-weight: 500;
}

.sidebar-cta {
    padding-top: 1rem;
    margin-top: 2rem;
}

.sidebar-cta h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sidebar-cta p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.btn-red {
    background-color: var(--red-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.btn-red:hover {
    background-color: var(--red-dark);
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to bottom right, var(--red-primary), var(--red-dark));
    color: white;
    padding: 4rem 0;
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--red-light);
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.btn-white {
    background-color: white;
    color: var(--red-primary);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-white:hover {
    background-color: #f3f4f6;
    color: var(--red-primary);
}

.btn-outline-white {
    background-color: transparent;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: 2px solid white;
    line-height: 3rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-outline-white:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

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

    .hero-image-section {
        height: 50vh;
    }

    .sidebar-info {
        margin-top: 2rem;
    }
}


.single-project div#content {
    padding-top: 0;
    padding-bottom: 0;
}

#content {
    padding-top: 15rem;
}

div#ct-header > .container {
    max-width: 90% !important;
}




/* Hero Section */
.hero-section {
    background: transparent;
    color: var(--red-dark);
    padding: 6rem 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--red-primary);
}

.hero-section p {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 800px;
}

/* Project Card */
.project-card {
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.project-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    aspect-ratio: 4/3;
    margin-bottom: 1rem;
    background-color: #f3f4f6;
    background-position: center;
    background-size: 80%;
    background-repeat: no-repeat;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    color: white;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay .view-project {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.project-badge {
    background-color: var(--red-light);
    color: var(--red-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

.project-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.project-card:hover h3 {
    color: var(--red-primary);
}

.project-location {
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.project-description {
    color: #374151;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* CTA Section */
.cta-section {
    background-color: #f9fafb;
    padding: 4rem 0;
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.btn-red {
    background-color: var(--red-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-red:hover {
    background-color: var(--red-dark);
    color: white;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 4rem 0;
    }
}


body.archive.post-type-archive.post-type-archive-project #content {
    padding-top: 3rem;
    padding-bottom: 0;
}

.text-muted {
    margin: 0 1rem;
}


h2.sptp-section-title {
    display: none;
}

.sptp-member-avatar .sptp-member-avatar-img.zoom_in:hover img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

span.sptp-member-avatar-img {
    transition: all 0.5s ease-in-out;
}

@media screen and (min-width: 1200px){
    .ct-main-menu > li {
        margin: 0 9px !important;
    }

}

div#ct-header > .container > .row {
    display: flex !important;
    flex-flow: row;
}


section.hero-image-section {
    background: var(--red-light);
    background-size: 55%;
    background-repeat: no-repeat;
    background-position: center;
}

.post-type-archive-project section.cta-section p.text-muted.mb-4 {
    color: var(--red-light) !important;
}

.post-type-archive-project section.cta-section button.btn.btn-red {
    width: auto !important;
}

nav.trp-language-switcher.trp-floating-switcher {
    display: none;
}


/* =========================================================
 * Courses Archive & Single Course Styles
 * =======================================================*/

/* Archive Courses hero */
.courses-hero {
    background: radial-gradient(circle at top left, var(--red-light), #ffffff);
    border-bottom: 1px solid #e5e7eb;
}

.courses-hero h1 {
    color: var(--red-primary);
}

.courses-hero p {
    color: #4b5563;
}

/* Course Cards */
.course-card {
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0.75rem;
    background-color: #ffffff;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
    padding: 0 0 1.5rem 0;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    border: 1px solid #e5e7eb;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    border-color: var(--red-light);
}

.course-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem 0.75rem 0 0;
    aspect-ratio: 16/9;
    margin-bottom: 1.25rem;
    background-color: #f3f4f6;
    background-position: center;
    background-size: 80%;
    background-repeat: no-repeat;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image {
    transform: scale(1.05);
}

.course-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    color: white;
}

.course-card:hover .course-overlay {
    opacity: 1;
}

.view-course {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.view-course i {
    font-size: 1.1rem;
}

.course-title-link h3,
.course-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    min-height: 3.5rem;
    transition: color 0.3s ease;
}

.course-image-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.course-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin: 0 1.25rem 0.75rem 1.25rem;
}

.course-title-link:hover h3 {
    color: var(--red-primary);
}

.course-price-enroll {
    margin: 1rem 1.25rem 0 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-top: auto;
    align-items: center;
    justify-content: space-between;
}

.btn-enroll-now {
    width: auto;
}

.course-price-wrapper {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red-primary);
}

.course-price-wrapper .woocommerce-Price-amount {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--red-primary);
}

.course-price-wrapper del {
    font-size: 1.1rem;
    font-weight: 500;
    color: #9ca3af;
    margin-right: 0.5rem;
}

.course-price-wrapper ins {
    text-decoration: none;
}

.course-price-free {
    font-size: 1.25rem;
    font-weight: 600;
    color: #16a34a;
}

.btn-enroll-now {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-enroll-now:hover {
    background-color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 57, 52, 0.3);
}

.course-meta-small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 1.25rem 0.75rem 1.25rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.course-meta-small span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.course-meta-small i {
    font-size: 0.9rem;
}

.course-badge-level,
.course-badge-format {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-badge-level {
    background-color: var(--red-light);
    color: var(--red-primary);
}

.course-badge-format {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.courses-archive .page-numbers {
    border-radius: 999px;
}

/* Single Course: hero refinements */
.single-course-wrapper .hero-image-section.course-hero-image {
    background-size: 50%;
    background-position: center;
}

.single-course-wrapper .hero-content h1 {
    color: var(--red-light);
    margin-left: 0;
    margin-right: 0;
}

.single-course-wrapper .hero-meta-item i {
    color: var(--red-light);
}

.single-course-wrapper .hero-meta-item span {
    font-size: 0.95rem;
}

/* Single Course: content layout */
.single-course-wrapper .course-main-description p {
    color: #374151;
    line-height: 1.8;
}

.course-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.course-outcome-item {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
}

.course-outcome-item i {
    color: #16a34a;
    margin-top: 0.15rem;
}

.course-curriculum {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

/* Course Sidebar */
.course-sidebar {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.course-sidebar-intro {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.course-sidebar-note {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.course-enroll-button {
    margin-bottom: 1rem;
}

.course-enroll-button .ld-course-status,
.course-enroll-button .ld-progress,
.course-enroll-button .ld-button,
.course-enroll-button .ld-course-resume {
    width: 100%;
}

.course-enroll-button .ld-button {
    background-color: var(--red-primary) !important;
    border-radius: 0.5rem !important;
}

.course-enroll-button .ld-button:hover {
    background-color: var(--red-dark) !important;
}

@media (max-width: 768px) {
    .courses-filter-bar {
        padding: 1rem;
    }

    .course-card {
        border-radius: 0.75rem;
    }

    .course-image-wrapper {
        border-radius: 0.75rem 0.75rem 0 0;
    }

    .course-curriculum {
        padding: 1.25rem;
    }
}

/* Courses filter bar */
.courses-filter-bar {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border: 1px solid #e5e7eb;
}

.courses-filter-bar .form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #374151;
}

.courses-filter-bar .form-select {
    border-radius: 999px;
    border-color: #e5e7eb;
    font-size: 0.9rem;
}

.courses-filter-bar .btn-outline-secondary {
    border-radius: 999px;
}


body.archive.post-type-archive.post-type-archive-sfwd-courses div#content {
    padding-top: 5rem;
}

a.course-card {
    z-index: 0;
    position: relative;
}

.academy-page-courses .e-con.e-child {
    min-height: 500px;
    justify-content: space-between;
}

.academy-page-courses .e-con.e-child img {
    width: 16rem;
}

.academy-page-courses .e-con.e-child {
    min-height: 500px;
    justify-content: space-between;
    background: #ffffff;
    background: linear-gradient(192deg, rgba(255, 255, 255, 1) 0%, rgb(163 73 69 / 40%) 100%);
    border-radius: 30px;
    border: 5px solid #fbfafa;
    padding-bottom: 2rem;
    padding-top: 2rem;
}

.courses-filter-bar {
    z-index: 1;
    position: relative;
}

body.wp-singular.sfwd-courses-template-default.single.single-sfwd-courses div#content {
    padding-top: 0;
}

a.user-login span {
    display: none;
}

a.user-login span.link-icon {
    display: initial !important;
}

a.user-login span.link-icon i {
    color: #fff;
    border: 1px solid #fff;
    padding: 10px;
    border-radius: 100px;
    width: 35px;
    height: 35px;
}

a.user-login:hover span.link-icon i {
    background: #fff;
    color: var(--red-primary);
}

.learndash-wrapper.learndash-widget .ld-progress .ld-progress-heading {
    width: 100%;
}

.learndash-wrapper .ld-progress .ld-progress-heading .ld-progress-stats {
    justify-content: space-between;
}

.course-sidebar-meta{
    display: none;
}

.course-single-card{
    margin-bottom: 2rem;
}