@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #000000;
    --secondary: #555555;
    --light-bg: #F5F5F9;
    --white: #ffffff;
    --border: #e0e0e0;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --hover-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--secondary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

a { 
    text-decoration: none; 
    transition: all 0.3s ease; 
}

.navbar {
    background-color: #ffffff !important; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
    padding-top: 10px;
    padding-bottom: 10px;
    z-index: 1000; 
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: #000 !important;
}

.nav-link {
    font-weight: 600;
    color: #555 !important;
    margin: 0 8px;
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
    color: #000 !important;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-primary, .btn-dark {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

.btn-primary:hover, .btn-dark:hover {
    background-color: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline-dark {
    border: 2px solid #000;
    color: #000;
    font-weight: 600;
}

.btn-outline-dark:hover {
    background-color: #000;
    color: #fff;
}

.hero-section {
    padding: 40px 0;
    background-color: #fff;
    overflow: hidden;
    position: relative;
}

.hero-headline {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #000;
    font-weight: 800;
}

.hero-subtext {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 90%;
}

.hero-image {
    width: 100%;
    height: auto;
}

.hero-image:hover {
    transform: scale(1.02);
}

.search-wrapper {
    position: relative;
    max-width: 550px;
    width: 100%;
}

.search-input {
    height: 65px;
    border-radius: 50px; 
    border: 2px solid #eee;
    padding-left: 30px;
    padding-right: 150px; 
    width: 100%;
    font-size: 1.1rem;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.search-input:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    border-radius: 40px; 
    padding: 0 30px;
    border: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.logo-strip {
    gap: 50px;
    opacity: 0.5;
}
.logo-strip i {
    font-size: 2rem;
    transition: 0.3s;
}
.logo-strip i:hover {
    color: #000;
    opacity: 1;
    transform: scale(1.1);
}


.course-card {
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: transparent;
}

.course-thumb {
    height: 220px;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-thumb img {
    transform: scale(1.08);
}

.course-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #000;
    text-transform: uppercase;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 12px;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tutor-name {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.course-footer {
    border-top: 1px solid #f5f5f5;
    padding-top: 20px;
    margin-top: auto; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
}

.testimonial-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    transition: 0.3s;
}

.testimonial-card:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-5px);
}

footer {
    background-color: #fff;
    border-top: 1px solid #eee;
}


@media (max-width: 991px) { 
    .hero-section {
        padding: 40px 0 60px 0; 
        text-align: center;
    }

    .hero-section .row {
        display: flex;
        flex-direction: column-reverse;
    }

    .hero-text-col {
        padding: 0 25px !important; 
        margin-top: 30px;
    }

    .hero-headline {
        font-size: 2.5rem; 
    }

    .hero-subtext {
        margin: 0 auto 30px auto;
        font-size: 1.1rem;
    }

    .search-wrapper {
        margin: 0 auto;
    }

    .hero-image {
        border-radius: 16px;
        box-shadow: 10px 10px 0px #f2f2f2;
        margin-bottom: 20px;
        width: 90%; 
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

@media (max-width: 768px) { 
    .hero-section {
        padding: 30px 0 50px 0;
    }

    .hero-headline {
        font-size: 2rem; 
        line-height: 1.2;
    }

    .hero-text-col {
        padding: 0 20px !important; 
    }

    .search-input {
        height: 55px;
        padding-right: 110px; 
        font-size: 1rem;
    }

    .search-btn {
        padding: 0 20px;
        font-size: 0.85rem;
    }

    .logo-strip {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo-strip i {
        font-size: 1.5rem;
        margin: 10px;
    }

    .course-thumb {
        height: 180px;
    }
    
    .btn {
        width: 100%; 
        margin-bottom: 10px;
    }
    
    .search-btn {
        width: auto; 
        margin-bottom: 0;
    }
}