:root {
    --primary-white: #ffffff;
    --primary-black: #1a1a1a;
    --onyx-black: #121212;
    --primary-arcon-red: #e6323a;
    --primary-light-blue: #d8e5f4;
    --secondary-black-2: #1e1e1e;
    --smoke-white: #f6f6f6;
    --container-max-width: 1300px;
}

/* Override Bootstrap containers */
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    max-width: var(--container-max-width);
}

body {
    font-family: 'Sora', sans-serif;
    color: var(--primary-black);
    background-color: var(--primary-white);
    line-height: 1.6;
}

/* Hero Section */
.hero {
    background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(245, 250, 255, 1) 100%);
    padding: 100px 0;
    position: relative;
    min-height: 700px; /* Adjust as needed */
    display: flex;
    align-items: center;
}

.hero-content {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    padding: 40px;
    text-align: center;
    background-image: url('https://c.animaapp.com/mdwqpinfWMWVXB/img/rectangle-654.svg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: contain;
    z-index: 2;
}

.hero .row {
    position: relative;
    width: 100%;
    margin-top: 100px; /* Adjust based on your needs */
}

.hero-title {
    font-size: 14px;
    color: #7f7f7f;
    letter-spacing: 1.12px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.hero-description {
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
    max-width: 594px;
    margin: 0 auto 40px;
    color: #555;
}

/* Value Cards Positioning */
.value-card {
    height: 328px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

/* First column (first and fifth images) */
.col-md-6.col-lg-3:nth-child(1) .value-card {
    margin-top: 0;
}

.col-md-6.col-lg-3:nth-child(1)::after {
    content: '';
    display: block;
    margin-top: 20px; /* Space between first and fifth images */
}

/* Second column (second image) */
.col-md-6.col-lg-3:nth-child(2) .value-card {
    margin-top: -86px; /* Move up */
}

/* Third column (third image) */
.col-md-6.col-lg-3:nth-child(3) .value-card {
    margin-top: -49px; /* Move up slightly less */
}

/* Fourth column (fourth and sixth images) */
.col-md-6.col-lg-3:nth-child(4) .value-card {
    margin-top: 57px;
}

.col-md-6.col-lg-3:nth-child(4)::after {
    content: '';
    display: block;
    margin-top: 20px; /* Space between fourth and sixth images */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-content {
        position: static;
        transform: none;
        margin-bottom: 30px;
    }
    
    .hero .row {
        margin-top: 0;
    }
    
    .col-md-6.col-lg-3:nth-child(2) .value-card,
    .col-md-6.col-lg-3:nth-child(3) .value-card {
        margin-top: 0;
    }
}

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

.value-tag {
    background-color: var(--primary-white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Courses Filter Section */
.filter-sidebar {
    background: linear-gradient(159deg, rgba(255, 255, 255, 1) 0%, rgba(245, 250, 255, 1) 100%);
    border: 1px solid #d8e5f4;
    border-radius: 12px;
    padding: 19px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-title {
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    color: var(--primary-black);
}

.clear-all {
    font-size: 14px;
    color: var(--primary-black);
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.clear-all:hover {
    color: var(--primary-arcon-red);
}

.filter-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #d8e5f4;
    padding-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 12px;
}

.filter-option input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: black;
    cursor: pointer;
}

.filter-option label {
    cursor: pointer;
    user-select: none;
}

/* Course Cards */
.course-card {
    width: 100%;
    /* height: 405px; */
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--primary-white);
    border: 1px solid #b7d4f6;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure all cards have same height */
}

.course-card:hover {
    border: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(245, 250, 255, 1) 100%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.course-card:hover::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 10px;
    background: linear-gradient(97deg, #8fc3ff 0%, #a984ff 40%, #e6323a 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
}

.course-card.featured {
    border: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(245, 250, 255, 1) 100%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.course-card.featured::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 10px;
    background: linear-gradient(97deg, #8fc3ff 0%, #a984ff 40%, #e6323a 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    pointer-events: none;
}

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

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

.course-level {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    background-color: #2ff0b3;
    z-index: 2;
    font-weight: 600;
}

.course-level.intermediate {
    background-color: #fff94f;
}

.course-level.advanced {
    background-color: #ff7e7e;
    color: white;
}

.course-level.all-levels {
    background-color: #78e1ff;
}

.course-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 26px;
    margin: 19px 15px 8px;
    transition: color 0.3s ease;
    min-height: 52px;
}

.course-card:hover .course-title {
    color: var(--primary-arcon-red);
}

.course-description {
    font-size: 14px;
    color: #9f9f9f;
    line-height: 24px;
    margin: 0 12px 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    min-height: 48px;
}

.course-pricing {
    display: flex;
    align-items: center;
    margin: auto 12px 0; /* Push pricing to bottom */
    padding: 12px 0;
    border-top: 1px solid #E5E7EB;
}

.current-price {
    font-weight: 700;
    font-size: 16px;
}

.original-price {
    font-size: 16px;
    color: #9f9f9f;
    text-decoration: line-through;
    margin: 0 8px;
}

.discount-badge {
    position: relative;
    right: auto;
    top: auto;
    width: 73px;
    height: 30px;
    border: 1px solid var(--primary-arcon-red);
    border-radius: 8px;
    background-color: var(--primary-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-arcon-red);
    margin-left: 8px;
}

.view-course-btn {
    width: calc(100% - 48px);
    height: 54px;
    border-radius: 12px;
    border: 1px solid #d5d5d5;
    background: linear-gradient(162deg, rgba(255, 255, 255, 1) 0%, rgba(245, 250, 255, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 23px 12px; /* Consistent margin */
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: auto; /* Push button to bottom */
}

.course-card:hover .view-course-btn,
.view-course-btn.featured {
    background: var(--primary-arcon-red);
    color: var(--primary-white);
    border: none;
    box-shadow: 0 4px 8px rgba(230, 50, 58, 0.3);
}

.view-course-btn:hover {
    transform: translateY(-2px);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-number {
    width: 45px;
    height: 45px;
    background-color: #f0f7ff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-number.active {
    background-color: var(--primary-arcon-red);
    color: white;
}

.page-number:hover:not(.active) {
    background-color: #d8e5f4;
}

.page-arrow {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.page-arrow:hover {
    transform: scale(1.1);
}

.page-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for accessibility */
button:focus, 
input:focus, 
a:focus {
    outline: 2px solid var(--primary-arcon-red);
    outline-offset: 2px;
}

.gradient-text {
    background: linear-gradient(96.97deg, #8FC3FF 7.84%, #A984FF 31.07%, #E6323A 58.17%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

/* Tabs Section */
.tabs-section {
    padding: 0px 0 30px;
    background-color: var(--primary-white);
}

.tabs-container {
    width: 100%;
    position: relative;
}

.tabs-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(216, 229, 244, 1);
    max-width: 100%;
    margin: 0 auto;
}

.tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #a8a4a4;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    max-width: 300px;
}

.tab span {
    position: relative;
    z-index: 2;
}

.tab.active span {
    background: linear-gradient(96.97deg, #8FC3FF 7.84%, #A984FF 31.07%, #E6323A 58.17%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.tabs-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: linear-gradient(96.97deg, #8FC3FF 7.84%, #A984FF 31.07%, #E6323A 58.17%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .tabs-wrapper {
        flex-wrap: wrap;
        border-bottom: none;
    }
    
    .tab {
        padding: 8px 12px;
        font-size: 13px;
        border-bottom: 1px solid rgba(216, 229, 244, 1);
        max-width: 100%;
        white-space: normal;
    }
    
    .tabs-indicator {
        display: none;
    }
}