/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #6c4af2;
    --primary-hover: #5431da;
    --secondary-color: #f7f8fc;
    --text-dark: #1b1c2b;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background-color: #fcfcfd;
}

/* Utilities */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-primary-soft { background-color: #f0edff; }
.text-primary-soft { color: #8e73ff; }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(108, 74, 242, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 74, 242, 0.4);
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-light {
    background-color: #fff;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    color: var(--primary-color);
}

.section-padding {
    padding: 80px 0;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.navbar-brand span {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0 80px;
    background: radial-gradient(circle at top right, #fbfaff, #fff 60%, rgba(255, 244, 241, 0.4) 100%);
    overflow: hidden;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    background-color: #f0edff;
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-pill i {
    color: #f59e0b;
    margin-right: 0.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.avatar-group {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.avatar-group img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: -10px;
    object-fit: cover;
}

.avatar-group .avatar-text {
    margin-left: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.avatar-group .avatar-text strong {
    color: var(--text-dark);
    display: block;
}

/* Hero Images / Floating elements */
.hero-images-container {
    position: relative;
    height: 450px;
    perspective: 1000px;
}

.hero-main-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 350px;
    object-fit: cover;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    animation: float 5s ease-in-out infinite;
    font-weight: 600;
    font-size: 0.9rem;
}

.card-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.floating-card-1 {
    top: 10%;
    right: -2%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 25%;
    left: -5%;
    animation-delay: 2.5s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Features Subheading */
.section-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: transparent;
    transform: translateY(-5px);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Exams Cards */
.exam-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    text-align: center;
}

.exam-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.exam-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.exam-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.exam-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.exam-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-color);
}

.exam-price {
    font-weight: 700;
    color: #10b981;
}

.btn-sm-rounded {
    padding: 0.4rem 1.2rem;
    font-size: 0.875rem;
    border-radius: 6px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-sm-rounded:hover {
    background-color: var(--primary-hover);
    color: white;
}

/* Categories List */
.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
}

.cat-badge {
    background: white;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s;
}

.cat-badge:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* CTA Banner */
.cta-banner {
    background-color: #151828;
    border-radius: 20px;
    padding: 5rem 2rem;
    text-align: center;
    color: #fff;
    margin: 4rem 0;
    background-image: radial-gradient(circle at center, rgba(108, 74, 242, 0.2) 0%, transparent 70%);
}

.cta-banner h2 {
    font-weight: 800;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta-banner p {
    color: #9ca3af;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Footer */
.footer {
    background-color: #151828;
    color: #e5e7eb;
    padding: 5rem 0 2rem;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    display: inline-block;
    text-decoration: none;
}

.footer-brand span {
    color: var(--primary-color);
}

.footer-text {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.newsletter-form .form-control {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px 0 0 8px;
}

.newsletter-form .form-control:focus {
    background: rgba(255,255,255,0.1);
    box-shadow: none;
    border-color: var(--primary-color);
}

.newsletter-form .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-images-container {
        margin-top: 4rem;
        height: 350px;
    }
    .floating-card {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    .floating-card-1 { right: 0; }
    .floating-card-2 { left: 0; }
}
