:root {
    --primary: #3972ec;
    --primary-hover: #4679e9;
    --soft-primary: #f1f5fd;
    --secondary: #59e0ac;
    --text-muted-custom: #6b7280;
    --card-border: #e5e7eb;
    --bg-muted: #f9fafb;
}

/* common css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", sans-serif;
    color: #1f2937;
    overflow-x: hidden;
}
/* frontend header padding */
body.frontend-page {
    padding-top: 120px;
}

.frontend-page main {
    padding-top: 0;
}

body.tutor-page {
    padding-top: 50px !important;
}

.tutor-page main {
    padding-top: 0;
}

.tutor-page #mainNav {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    border-bottom: none;
    padding: 10px 0;
}

.tutor-page #mainNav .navbar-brand img,
.tutor-page #mainNav .offcanvas-header .img-fluid {
    height: 70px !important;
}

.frontend-page main .row.g-4 {
    align-items: stretch;
}

.frontend-page main .row.g-4 > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.frontend-page main .row.g-4 > .col-lg-3 > .card,
.frontend-page main .row.g-4 > .col-lg-9 > .card {
    flex: 1 1 auto;
}

/* Restore natural sidebar height and prevent blank stretched area */
.frontend-page main .row.g-4 {
    align-items: flex-start;
}

.frontend-page main .row.g-4 > [class*="col-"] {
    display: block !important;
}

.frontend-page main .row.g-4 > .col-lg-3 > .card {
    flex: none !important;
}

.frontend-page #mainNav {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    border-bottom: none;
    padding: 10px 0;
}

.frontend-page #mainNav .navbar-brand img,
.frontend-page #mainNav .offcanvas-header .img-fluid {
    height: 70px !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 10px;
}

/* ===== NAVBAR ===== */
#mainNav {
    background: transparent;
    transition: all 0.35s ease;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrolled state */
#mainNav.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 10px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #eee;
}

/* Logo & Text Transitions */
.brand-text {
    color: #000;
    transition: 0.3s;
}

.logo-icon {
    background: var(--primary);
    padding: 5px 10px;
    border-radius: 8px;
    color: #fff;
}

/* Nav Links */
.nav-link-custom {
    color: #000 !important;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 15px !important;
    display: inline-block;
    text-decoration: none;
    transition: 0.3s;
}

.nav-link-custom:hover {
    color: var(--primary) !important;
    border-radius: 10px;
    background: var(--soft-primary);
}

.nav-btns .btn {
    white-space: nowrap;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sign-in-btn {
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

#mainNav.scrolled .sign-in-btn {
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
}

#mainNav.scrolled .sign-in-btn:hover {
    background-color: var(--primary);
    color: #fff !important;
}

@media (max-width: 991px) {
    .offcanvas {
        width: 280px !important;
        background: var(--bg-muted) !important;
    }

    .nav-link-custom {
        width: 100%;
        border-radius: 8px;
        margin-bottom: 5px;
    }

    .navbar-toggler {
        border: none;
        background: rgba(255, 255, 255, 0.1);
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-toggler i {
        color: #000;
    }

    .nav-btns {
        width: 100%;
        margin-top: 20px;
    }

    .nav-btns a,
    .nav-btns button {
        width: 100%;
    }
}

/* ===== END HEADER ===== */

/* ====== home page styles ===== */
/* Hero Section */
.hero-section {
    padding: 150px 0 100px 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(11, 87, 238, 0.055) 0%, transparent 40%),
        linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
}
.dot-bg{
    /* background-color: #ebecef; */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 30 30'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%233972ec' fill-opacity='0.09'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Left Side */
.trust-badge {
    background-color: #E6F0FF;
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 13px;
}

.hero-title {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    margin: 20px 0;
    color: #000;
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    color: var(--text-muted-custom);
    font-size: 18px;
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 40px;
}

/* Stats Section */
.stats-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-icon {
    font-size: 18px;
    color: var(--primary);
}

.stats-label {
    display: flex;
    flex-direction: column;
}

.stats-value {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

.stats-text {
    color: var(--text-muted-custom);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.aria-card-wrapper {
    position: relative;
    padding: 20px;
    display: inline-block;
    width: 100%;
    height: 100%;
}

/* content */
.aria-card {
    position: relative;
    background: #fff;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: 3;
    overflow: hidden;
}

.aria-card-wrapper::before {
    content: "";
    position: absolute;
    rotate: calc(6deg);
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    background: #cedbf9;
    border-radius: 25px;
    box-shadow: 0px 2px 10px 14px #cedbf9;
    z-index: 2;
}

.aria-card-wrapper::after {
    content: "";
    position: absolute;
    rotate: calc(359deg);
    top: 17px;
    left: 23px;
    right: 23px;
    bottom: 17px;
    background: #cedbf9;
    border-radius: 25px;
    z-index: 1;
}

.btn-aria-chat {
    width: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #a855f7 100%) !important;
    color: white !important;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.aria-card::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0;
    height: 7px;
    width: 100%;
    background: linear-gradient(90deg, #2563eb, #a855f7);
}

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

.aria-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--primary) 10%, #874eef 100%) !important;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.aria-info h5 {
    font-weight: 700;
    color: #000;
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.aria-status {
    color: #10B981;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.aria-status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
}

.aria-subtitle {
    color: var(--text-muted-custom);
    font-weight: 500;
}

.aria-bubble {
    background-color: var(--soft-primary);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #4B5563;
}

.btn-aria-chat {
    width: 100%;
    background: linear-gradient(90deg, var(--primary) 10%, #874eef 100%) !important;
    color: #ffffff;
    border-radius: 30px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    transition: opacity 0.3s ease;
}

.btn-aria-chat:hover {
    opacity: 0.9;
    color: #fff;
}

.aria-footer-text {
    color: var(--text-muted-custom);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    margin-top: 15px;
}

/* courses section */
.course-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-item {
    transition: all 0.3s ease;
}

.hover-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #d1d9e6;
}

.hover-item:hover .icon-box {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.bg-blue-light {
    background-color: #eef4ff;
}

.bg-green-light {
    background-color: #e8f9f1;
}

.bg-purple-light {
    background-color: #f3efff;
}

.bg-orange-light {
    background-color: #fff4e8;
}

.bg-red-light {
    background-color: #fff0f0;
}

.bg-teal-light {
    background-color: #e6fffa;
}

.bg-indigo-light {
    background-color: #eef2ff;
}

.bg-yellow-light {
    background-color: #fff9e6;
}

.bg-blue-light {
    background-color: #eef4ff;
}

.bg-red-light {
    background-color: #fff0f0;
}

.text-blue {
    color: #3b82f6;
}

.text-purple {
    color: #8b5cf6;
}

.text-orange {
    color: #f97316;
}

.text-teal {
    color: #14b8a6;
}

.text-indigo {
    color: #6366f1;
}

.text-red {
    color: #ef4444;
}

.course-card h5 {
    color: #1f2937;
    font-size: 18px;
    margin-bottom: 5px;
}

/* Card Container */
.course-item-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--secondary);
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.course-item-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
}

.course-item-card::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0;
    height: 10px;
    width: 100%;
    background: var(--secondary);
}

.course-item-card-paid {
    border: 1px solid var(--primary);
}

.course-item-card-paid::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0;
    height: 10px;
    width: 100%;
    background: var(--primary);
}

/* Badges Styles */
.badge-subtle {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
}

.rating {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted-custom);
}

.course-subtitle {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    margin-bottom: 12px;
}

.course-desc {
    font-size: 14px;
    color: var(--text-muted-custom);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Meta info (Icons) */
.course-meta {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.course-meta i {
    margin-right: 4px;
    color: #9ca3af;
}

/* --how it works section-- */
.how-it-works .position-relative {
    z-index: 1;
}

.step-line {
    position: absolute;
    top: 38%;
    left: 205px;
    right: 0px;
    width: 69%;
    height: 2px;
    background: rgb(238, 242, 246);
    z-index: -1;
}

.step-icon-wrapper {
    position: relative;
    display: inline-block;
}

.step-icon {
    width: 70px;
    height: 70px;
    background-color: #eef4ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: transform 0.3s ease;
}

.step-icon-wrapper:hover .step-icon {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #0d6efd;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

.how-it-works h5 {
    color: #092853;
    font-size: 20px;
}

.how-it-works p {
    line-height: 1.6;
}

/* --end how it works section-- */

/* --testimonial section-- */
.testimonial-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 35px;
    height: 100%;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: #eef2f6;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

.swiper-slide {
    height: auto;
}

/* --end testimonial section-- */

/* --contact section-- */
.form-card,
.info-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 20px;
    padding: 35px;
    height: 100%;
}

.info-card {
    height: auto;
}

.custom-input {
    background-color: #ffffff;
    border: 1px solid #e1e2e2;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.custom-input:focus {
    box-shadow: none;
    border-color: #0d6efd;
    background-color: #fff;
}

.icon-box-sm {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.bg-blue-light {
    background-color: #eef4ff;
}

.bg-green-light {
    background-color: #e8f9f1;
}

.custom-input::placeholder {
    color: #adb5bd;
}

/* ====== END home page styles ===== */

/* ===== START course page styles ===== */
.course-filter-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f5f9;
    padding-bottom: 10px;
}

.course-filter-container::-webkit-scrollbar {
    height: 5px;
}

.course-filter-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.course-filter-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.course-filter-wrapper {
    display: inline-flex !important;
}

.filter-btn {
    flex: 0 0 auto;
    border: 1px solid #eef2f6;
    background-color: #ffffff;
    color: #4b5563;
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* ===== END course page styles ===== */

/* ===== FOOTER STYLES ===== */
.footer-section {
    background-color: #0f1729;
    color: var(--text-muted-custom);
    padding: 70px 0 60px 0;
}

/* Brand Area */
.logo-box-footer {
    background: var(--soft-primary);
    padding: 5px 8px;
    border-radius: 8px;
    color: #fff;
    font-size: 1.2rem;
}

.logo-text-footer {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted-custom);
    max-width: 300px;
}

/* Links & Headings */
.footer-heading {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
}

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

.footer-links li a {
    color: var(--text-muted-custom);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* Bottom Bar */
.footer-bottom {
    border-color: var(--text-muted-custom) !important;
}

.copyright-text {
    font-size: 13px;
    color: var(--text-muted-custom);
}

.footer-bottom-links li a {
    color: var(--text-muted-custom);
    font-size: 13px;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.footer-bottom-links li a:hover {
    color: #ffffff;
}


/* ===== END OF FOOTER STYLES ===== */

/* --- Mobile Responsive --- */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .aria-container {
        margin-top: 50px;
        display: flex;
        justify-content: center;
    }

    .step-icon {
        width: 80px;
        height: 80px;
        font-size: 28px;
    }

    .footer-section {
        padding: 50px 0 30px 0px;
        text-align: start;
    }
    .all-course-title {
        font-size: 30px !important;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-section {
        padding: 100px 0;
    }
    .filter-btn {
        padding: 6px 18px;
        font-size: 13px;
    }
}


/* tutor Dashboard */
/* Nav Links */
.nav-link {
    color: #000 !important;
    border-radius: 10px;
    font-size: 15px;
    padding: 8px 15px !important;
    display: inline-block;
    text-decoration: none;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
    border-radius: 10px;
    background: var(--soft-primary);
}

.nav-link.active {
    color: #fff !important;
    border-radius: 10px;
    background: var(--soft-primary);
}

.nav-link.active:hover {
    color: #fff !important;
    border-radius: 10px;
    background: var(--primary);
}

.nav-link-danger {
    color: #ef4444 !important;
    border-radius: 10px;
    font-size: 15px;
    padding: 8px 15px !important;
    display: inline-block;
    text-decoration: none;
    transition: 0.3s;
}

.nav-link-danger:hover {
    color: #ef4444 !important;
    border-radius: 10px;
    background: #ef444410;
}
