:root {
    --primary-blue: #0A6BEF;
    --primary-red: #E84D63;
    --secondary-teal: #00BFB3;
    --progress-bar-color: #00BFB3;
    --border-color: #e5e7eb;
    --selected-bg: #e6fffb;
    --dark-text: #1f2937;
    --muted: #6b7280;
    --bg: #f3f4f6;
    --card-bg: #ffffff;
    --success-green: #16a34a;
    --primary-color: #38761d;
    --text-color: #1f2937;
    --light-border: #d1d5db;
    --background-color: #ffffff;
    --container-bg: #f9fafb;
    --primary-orange: #ff5722;
    --primary-orange-dark: #e64a19;
    --light-bg: #f9fafb;
    --text-dark: #1f2937;
    --muted: #6b7280;
    --card-border: #f3f4f6;
    --card-bg: #ffffff;
    --shadow-1: 0 12px 30px rgba(2, 6, 23, 0.06);
    --success-green: #10b981;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1200');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 20px;
    text-align: left;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
}

/* Free Skills Section */
.free-skills {
    background: #0f3d4f;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 16px;
}


.free-skills {
    cursor: pointer;
    transition: background 0.3s;
}

.free-skills:hover {
    background: #0d3340;
}

.steps .container {
    max-width: 1200px;
    margin: 0 auto;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s;
}

.modal-header {
    background: #1e5a8e;
    color: white;
    padding: 25px 30px;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.modal-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e5a8e;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    font-size: 14px;
}

.submit-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #e55a25;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* About RPL Section */
.about-rpl {
    background: #0f3d4f;
    color: white;
    padding: 60px 20px;
}

.about-rpl .container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-rpl h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.about-rpl p {
    margin-bottom: 20px;
    line-height: 1.8;
}


/* Process Section */
.process {
    padding: 60px 20px;
    background: white;
}

.process .container {
    max-width: 1200px;
    margin: 0 auto;
}

.process h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #1e5a8e;
}

/* Flex Grid */
.process-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
}

/* Card sizing for 2 per row on desktop */
.process-card {
    background: #e6f3ff;
    padding: 30px;
    border-radius: 15px;
    flex: 0 1 calc(50% - 15px); /* 2 items per row with gap compensation */
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeUpScale 0.8s forwards cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

/* Hover effect */
.process-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: #d8ecff;
}

/* Center last item if alone in row */
.process-card:last-child:nth-child(odd) {
    margin-left: auto;
    margin-right: auto;
}

/* Adjust paragraph margin for centered card */
.process-card:last-child:nth-child(odd) p {
    margin-left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .process-card {
        flex: 0 1 100%; /* 1 item per row on mobile */
    }

    /* Paragraph center on mobile for all cards */
    .process-card p {
        margin-left: 0;
        text-align: left;
    }
}

/* Card content */
.process-card h3 {
    color: #1e5a8e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    flex-wrap: wrap; /* wrap title if needed */
}

.process-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Process Icon */
.process-icon {
    background: #1e5a8e;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

/* Fade Up + Scale Animation */
@keyframes fadeUpScale {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stagger animation delay for each card */
.process-card:nth-child(1) { animation-delay: 0s; }
.process-card:nth-child(2) { animation-delay: 0.1s; }
.process-card:nth-child(3) { animation-delay: 0.2s; }
.process-card:nth-child(4) { animation-delay: 0.3s; }
.process-card:nth-child(5) { animation-delay: 0.4s; }


/* Benefits Section */

/* Benefits Section */
.benefits {
    padding: 60px 20px;
    background: #f9f9f9;
}

.benefits .container {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #1e5a8e;
}

/* Flex Grid */
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
}

/* Card sizing for 2 per row on desktop */
.benefit-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 0 1 calc(50% - 15px); /* 2 per row */
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
    animation: fadeInSlideLeft 0.8s forwards cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

/* Hover effect */
.benefit-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: #e6f3ff;
}

/* Center last card if odd number */
.benefit-card:last-child:nth-child(odd) {
    margin-left: auto;
    margin-right: auto;
}

/* Adjust paragraph margin for centered card */
.benefit-card:last-child:nth-child(odd) p {
    margin-left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .benefit-card {
        flex: 0 1 100%; /* 1 per row on mobile */
    }

    /* Paragraph left aligned for mobile */
    .benefit-card p {
        margin-left: 0;
        text-align: left;
    }
}

/* Card content */
.benefit-card h3 {
    color: #1e5a8e;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    flex-wrap: wrap;
}

.benefit-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Benefit Icon */
.benefit-icon {
    background: #1e5a8e;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

/* Fade In + Slide Left Animation */
@keyframes fadeInSlideLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Stagger animation delay for each card */
.benefit-card:nth-child(1) { animation-delay: 0s; }
.benefit-card:nth-child(2) { animation-delay: 0.1s; }
.benefit-card:nth-child(3) { animation-delay: 0.2s; }
.benefit-card:nth-child(4) { animation-delay: 0.3s; }



.apply-now-btn {
    text-align: center;
    margin-top: 40px;
}

.apply-now-btn a {
    background: #ff6b35;
    color: white;
    padding: 15px 50px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}

/* FAQ Section */
.faq {
    padding: 60px 20px;
    background: white;
}

.faq .container {
    max-width: 900px;
    margin: 0 auto;
}

.faq h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #1e5a8e;
}

.faq-item {
    background: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.faq-answer {
    padding: 0 20px 20px;
    display: none;
    line-height: 1.8;
}

/* CTA Section */
.cta {
    background: #1e5a8e;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.cta h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color:#fff;
}

.cta a {
    background: white;
    color: #1e5a8e;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}


/* Tab Styles */
.tab-container {
    margin-top: 30px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: white;
    border: 2px solid #1e5a8e;
    color: #1e5a8e;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #e6f3ff;
}

.tab-btn.active {
    background: #1e5a8e;
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #1e5a8e;
    margin-bottom: 15px;
}

.tab-content p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.sidebar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
    color: #1e5a8e;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar ul li a {
    color: #333;
    text-decoration: none;
}

.two-column {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .search-input-group {
        flex-direction: column;
    }

    .search-input-group button {
        width: 100%;
    }
}




/* Centered Button for Modal */
/* ---------- Utility-like custom classes used by JS ---------- */
.is-hidden {
    display: none !important;
}

.is-flex {
    display: flex !important;
}

.is-hidden-step {
    display: none !important;
}

/* ---------- Centering page container ---------- */
.page-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

/* ---------- Primary CTA button ---------- */
.open-modal-btn {
    background: var(--primary-blue);
    color: #fff;
    border: 0;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(10, 107, 239, 0.14);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.open-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(10, 107, 239, 0.18);
}

/* ---------- Modal overlay & content ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    pointer-events: auto;
    transition: opacity .25s ease;
    z-index: 1000;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    width: 95%;
    max-width: 720px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.18);
    padding: 20px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, opacity .25s ease;
    transform: translateY(-20px);
}

.modal-content.enter {
    transform: translateY(0);
}

/* close button */
.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: 0;
    font-size: 22px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #111827;
}

/* ---------- scroll / content container ---------- */
.form-scroll {
    overflow-y: auto;
    padding-right: 8px;
    padding-bottom: 6px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

/* ---------- Progress bar ---------- */
.progress-container {
    position: relative;
    height: 34px;
    background: var(--border-color);
    border-radius: 9999px;
    margin-bottom: 22px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--progress-bar-color);
    border-radius: 9999px;
    transition: width .4s ease-in-out;
    position: relative;
}

#progressText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark-text);
    font-size: 0.92rem;
    font-weight: 700;
    z-index: 10;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* ---------- Headings & text ---------- */
.form-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 18px 0;
    color: var(--dark-text);
}

.form-sub {
    color: var(--muted);
    font-size: 0.94rem;
}

/* ---------- Input controls ---------- */
.field {
    margin-bottom: 18px;
}

label.field-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 500;
}

select.input-control,
input.input-control,
textarea.input-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    outline: none;
    background: #fff;
    font-size: 0.96rem;
    transition: box-shadow .12s ease, border-color .12s ease;
}

select.input-control:focus,
input.input-control:focus,
textarea.input-control:focus {
    box-shadow: 0 6px 18px rgba(10, 107, 239, 0.08);
    border-color: var(--primary-blue);
}

textarea.input-control {
    resize: vertical;
    min-height: 84px;
}

/* ---------- Grid utilities (custom) ---------- */
.cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cols-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width:720px) {

    .cols-2,
    .cols-4 {
        grid-template-columns: repeat(1, 1fr);
    }

    .modal-content {
        padding: 16px;
    }
}

/* ---------- Custom radio / selectable buttons ---------- */
.custom-radio-button {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: all .18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    background: #fff;
    font-weight: 600;
}

.custom-radio-button:hover {
    border-color: var(--secondary-teal);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.custom-radio-button.selected {
    border-color: var(--secondary-teal);
    background: var(--selected-bg);
}

/* Specific variations used previously */
.custom-radio-button[data-group="experienceYears"].selected,
.custom-radio-button[data-group="experienceLocation"].selected,
.custom-radio-button[data-group="experienceState"].selected {
    background: var(--secondary-teal);
    color: #fff;
    border-color: var(--secondary-teal);
}

.btn-yes.selected {
    border-color: var(--secondary-teal);
    color: var(--secondary-teal);
    background: var(--selected-bg);
}

.btn-no.selected {
    border-color: var(--primary-red);
    color: var(--primary-red);
    background: #ffeaea;
}

.map-select-button {
    flex-direction: column;
    padding: 10px;
}

.map-svg-container {
    width: 50px;
    height: 50px;
    margin-bottom: 6px;
}

.map-svg-container svg {
    width: 100%;
    height: 100%;
    fill: #ccc;
    transition: fill .15s ease;
}

.map-select-button.selected .map-svg-container svg {
    fill: #fff;
}

/* ---------- Error messages ---------- */
.error-msg {
    color: var(--primary-red);
    font-size: 0.86rem;
    margin-top: 6px;
    display: block;
}

.error-msg.is-hidden {
    display: none;
}

/* ---------- Success step ---------- */
.success-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 220px;
    text-align: center;
}

.submission-card {
    width: 100%;
    background: #f8fafc;
    padding: 14px;
    border-radius: 10px;
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.02);
    margin-bottom: 12px;
    text-align: left;
}

.submission-card h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.submission-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.submission-list li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.03);
}

.submission-list li span.key {
    font-weight: 700;
    color: var(--dark-text);
    margin-right: 6px;
}

.success-cta {
    background: var(--success-green);
    color: #fff;
    border: 0;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

/* ---------- Navigation (bottom) ---------- */
.navigation {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 10px 28px rgba(10, 107, 239, 0.12);
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--primary-red);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
}

/* small tweaks */
.center {
    text-align: center;
}

.mb-6 {
    margin-bottom: 18px;
}

.mt-4 {
    margin-top: 14px;
}

.mb-3 {
    margin-bottom: 12px;
}

/* End of Modal css */


/* Timeline container start */
.timeline-container {
    padding: 20px 0;
}

h1 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 60px;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    /* Responsive font size */
}

/* Timeline List Styling */
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--light-border);
    transform: translateX(-50%);
    z-index: 1;
}

/* Individual Item Styling */
.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* margin-bottom: 80px; */
    position: relative;
    z-index: 2;
}

/* Content Boxes (Left and Right) */
.timeline-content-left,
.timeline-content-right {
    width: 45%;
    padding: 24px;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    /* Rounded corners everywhere */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: var(--background-color);
    min-height: 120px;
    box-sizing: border-box;
    position: relative;
    /* Needed for the triangle pseudo-element */

    /* Animation initial state */
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Initial state for left content (slide from left) */
.timeline-content-left {
    transform: translateX(-50px);
}

/* Initial state for right content (slide from right) */
.timeline-content-right {
    transform: translateX(50px);
}

/* --- Triangle Pointer Styling (New Feature) --- */
.timeline-content-left:after,
.timeline-content-right:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    transform: translateY(-50%);
    z-index: 10;
}

/* Pointer for Left Content Box */
.timeline-content-left:after {
    right: -17px;
    /* Position next to the border */
    border-width: 10px 0 10px 18px;
    /* Right-pointing triangle */
    border-color: transparent transparent transparent var(--background-color);
    /* Fill color */
}

/* Border for Left Pointer (Slightly larger, uses light-border color) */
.timeline-content-left:before {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 11px 0 11px 20px;
    border-color: transparent transparent transparent var(--light-border);
    transform: translateY(-50%);
    z-index: 9;
}

/* Pointer for Right Content Box */
.timeline-content-right:after {
    left: -17px;
    /* Position next to the border */
    border-width: 10px 18px 10px 0;
    /* Left-pointing triangle */
    border-color: transparent var(--background-color) transparent transparent;
    /* Fill color */
}

/* Border for Right Pointer (Slightly larger, uses light-border color) */
.timeline-content-right:before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 11px 20px 11px 0;
    border-color: transparent var(--light-border) transparent transparent;
    transform: translateY(-50%);
    z-index: 9;
}

/* --- End Triangle Pointer Styling --- */

/* Hide content on the opposite side of the text */
.timeline-item:nth-child(odd) .timeline-content-right,
.timeline-item:nth-child(even) .timeline-content-left {
    visibility: hidden;
    border: none;
    box-shadow: none;
    background-color: transparent;
}

/* Animation Target State */
.timeline-content-left.visible,
.timeline-content-right.visible {
    opacity: 1;
    transform: translateX(0);
}


/* Timeline Circle (The numbered step) */
.timeline-circle {
    width: 44px;
    height: 44px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.25em;
    box-shadow: 0 0 0 6px var(--container-bg);
    /* Ring effect */
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-circle:hover {
    transform: scale(1.1);
}

/* Content Box Headings */
.timeline-content-left h2,
.timeline-content-right h2 {
    margin-top: 0;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Move the line to the far left */
    .timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        justify-content: flex-start;
        margin-bottom: 40px;
    }

    .timeline-circle {
        position: absolute;
        left: 0;
        transform: translateX(0);
        /* Remove the center transformation */
    }

    /* Content takes up most of the right side */
    .timeline-content-left,
    .timeline-content-right {
        width: calc(100% - 70px);
        margin-left: 70px;
        /* Push content away from the circle/line */
        padding: 16px;
        position: relative;
        /* Ensure pointer works on mobile */

        /* Reset mobile animation start states to slide from the right */
        transform: translateX(50px);
    }

    /* Make all content visible and stack them */
    .timeline-item:nth-child(odd) .timeline-content-right,
    .timeline-item:nth-child(even) .timeline-content-left {
        display: none;
        /* Actually hide the empty placeholder div */
    }

    .timeline-item:nth-child(odd) .timeline-content-left,
    .timeline-item:nth-child(even) .timeline-content-right {
        visibility: visible !important;
        /* Ensure left content is now the one shown */
        width: calc(100% - 70px);
        margin-left: 70px;
    }

    /* Adjust content for animation on mobile */
    .timeline-content-left.visible,
    .timeline-content-right.visible {
        transform: translateX(0);
    }

    /* --- Mobile Pointer Adjustment --- */
    /* On mobile, all pointers should point to the left (towards the line) */

    /* Hide the right-pointing desktop pointer */
    .timeline-content-left:after,
    .timeline-content-left:before {
        content: none;
    }

    /* Use the left-pointing pointer for all visible boxes on mobile */
    .timeline-content-right:after,
    .timeline-item:nth-child(odd) .timeline-content-left:after {
        content: '';
        left: -17px;
        border-width: 10px 18px 10px 0;
        border-color: transparent var(--background-color) transparent transparent;
    }

    /* Add border for the left-pointing pointer */
    .timeline-content-right:before,
    .timeline-item:nth-child(odd) .timeline-content-left:before {
        content: '';
        left: -20px;
        border-width: 11px 20px 11px 0;
        border-color: transparent var(--light-border) transparent transparent;
    }
}

/* Timeline container end */


/* Categories css start */
/* ---------- Page layout ---------- */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px;
}

@media (min-width:900px) {
    .site-container {
        padding: 32px;
    }
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

@media (min-width:900px) {
    .layout-grid {
        grid-template-columns: 280px 1fr;
    }
}

/* ---------- Sidebar ---------- */
.sidebar-block h2 {
    font-size: 22px;
    margin: 0 0 12px 0;
    font-weight: 600;
    color: var(--text-dark);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-link {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--muted);
    transition: color .12s ease, background .12s ease, transform .08s ease;
}

.category-link:hover {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.02);
    transform: translateY(-1px);
}

.category-link[data-category="All"] {
    font-weight: 600;
    color: var(--text-dark);
}

.category-link.active {
    color: var(--primary-orange);
    font-weight: 700;
    background: rgba(255, 87, 34, 0.04);
}

@media (max-width:768px) {
    .sidebar-block {
        border-bottom: 1px solid #e8eaee;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
}

/* ---------- Search ---------- */
.search-wrapper {
    margin-bottom: 22px;
}

.search-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e6e7ea;
    background: #fff;
    font-size: 15px;
    outline: none;
    transition: box-shadow .12s ease, border-color .12s ease;
}

.search-input:focus {
    box-shadow: 0 10px 30px rgba(10, 107, 239, 0.06);
    border-color: #0A6BEF;
}

/* ---------- Course grid ---------- */
.grid-cards {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    align-items: stretch;
}

@media (min-width:520px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:980px) {
    .grid-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card-wrapper {
    transition: transform .28s ease, opacity .28s ease, height .28s ease, margin .28s ease, padding .28s ease;
    overflow: hidden;
    height: 100%;
}

.card-hidden {
    opacity: 0;
    transform: scale(.96);
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

.course-card .card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.card-category {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin: 0 0 6px 0;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    line-height: 1.25;
}

.card-actions {
    margin-top: auto;
}

.btn-contact {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--primary-orange);
    color: #fff;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: background .12s ease, transform .08s ease, box-shadow .12s ease;
}

.btn-contact:hover {
    background: var(--primary-orange-dark);
    transform: translateY(-2px);
}

/* ---------- Load more ---------- */
.loadmore-wrap {
    margin-top: 22px;
    text-align: center;
}

.btn-load {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    background: #efefef;
    color: var(--muted);
    font-weight: 700;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    transition: transform .08s ease, background .12s ease;
}

.btn-load:hover {
    transform: translateY(-2px);
    background: #e8e8e8;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
}

/* ---------- Modal overlay & content ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    opacity: 1;
    pointer-events: auto;
    transition: opacity .25s ease;
}

.modal-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
    display: flex;
}

.modal-overlay.no-pointer {
    pointer-events: none;
}

.modal-window {
    width: 92%;
    max-width: 680px;
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.24);
    transform: scale(.97);
    transition: transform .22s ease, opacity .2s ease;
    position: relative;
}

.modal-open .modal-window {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 0;
    font-size: 22px;
    color: var(--muted);
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #111827;
}

.modal-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-sub {
    margin: 0 0 14px 0;
    color: var(--muted);
    font-size: 14px;
}

.modal-field {
    margin-bottom: 12px;
}

.modal-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--muted);
    font-size: 13px;
}

.modal-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e6e6e9;
    background: #fff;
    outline: none;
}

.modal-input:focus {
    box-shadow: 0 8px 22px rgba(10, 107, 239, 0.06);
    border-color: #0A6BEF;
}

.modal-success {
    display: none;
    background: rgba(16, 185, 129, 0.08);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    color: var(--success-green);
    font-weight: 700;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

/* small helpers */
.text-center {
    text-align: center;
}

.muted {
    color: var(--muted);
}

.hidden {
    display: none !important;
}

/* Categories css end */


/* Css for apply now form modal */
.apply-now-btn {
    text-align: center;
    margin-top: 2rem;
  }

  .apply-now-btn a {
    display: inline-block;
    background: #ff6600;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
  }

  .apply-now-btn a:hover {
    background: #e05500;
  }

  /* Popup overlay */
  .popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
  }

  /* Popup box */
  .popup {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 1024px;
    padding: 24px;
    position: relative;
    animation: fadeIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* Fade animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Close button */
  .closeBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #d33;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 26px;
    cursor: pointer;
  }

  .closeBtn:hover { background: #b00; }

  /* Form styling */
  .form-section { margin-bottom: 1rem; }
  .form-label { display: block; font-weight: 600; margin-bottom: 4px; }
  .form-input, .form-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  button[type="submit"] {
    padding: 10px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  button[type="submit"]:hover {
    background: #0064d2;
  }
  
  
  
  
  /* small inline spinner (fallback if no Bootstrap) */
.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: text-bottom;
  border: .15em solid rgba(0,0,0,0.15);
  border-right-color: transparent;
  border-radius: 50%;
  -webkit-animation: spinner-border .75s linear infinite;
  animation: spinner-border .75s linear infinite;
}
@keyframes spinner-border {
  to { transform: rotate(360deg); }
}
.me-2 { margin-right: .5rem; } /* small margin for spacing */