
/* Ultra-Modern Hero Section - Premium V3 */
.hero-section {
    position: relative;
    background: #ffffff;
    padding: 60px 0 40px;
    margin-bottom: 0;
    overflow: hidden;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Decorative Background Blobs */
.hero-section::before, .hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.15;
}

.hero-section::before {
    background: #6366f1;
    top: -100px;
    right: -100px;
}

.hero-section::after {
    background: #d946ef;
    bottom: -100px;
    left: -100px;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 10px 24px;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    font-size: 15px;
    font-weight: 700;
    color: #4f46e5;
    border: 1px solid rgba(79, 70, 229, 0.1);
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.ai-badge .dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    box-shadow: 0 0 10px #10b981;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 45px;
    font-weight: 900;
    color: #0f172a; 
    line-height: 1.05;
    margin-bottom: 20px;
    line-height: 1.4;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title span {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 30px;
    }
    .hero-title {
        font-size: 25px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
}

.hero-subtitle {
    font-size: 18px;
    color: #475569;
    max-width: 850px;
    margin: 0 auto 1.5rem;
    line-height: 1.4;
    font-weight: 500;
    opacity: 0.9;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* Content Type Quick Links */
.hero-content-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.content-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.content-tag i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.content-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: currentColor;
    color: currentColor;
}

.content-tag:hover i {
    transform: scale(1.15);
}

/* Tag Color Themes */
.tag-articles:hover { color: #3b82f6; border-color: #3b82f6; }
.tag-videos:hover { color: #ef4444; border-color: #ef4444; }
.tag-courses:hover { color: #10b981; border-color: #10b981; }
.tag-mcq:hover { color: #8b5cf6; border-color: #8b5cf6; }
.tag-challenges:hover { color: #ec4899; border-color: #ec4899; }

@media (max-width: 768px) {
    .hero-content-tags {
        gap: 8px;
        margin-bottom: 2rem;
    }
    
    .content-tag {
        padding: 7px 14px;
        font-size: 13px;
    }
    
    .content-tag i {
        font-size: 13px;
    }
}

.hero-search-wrapper {
    max-width: 720px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-search-form {
    background: #ffffff;
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.hero-search-form:focus-within {
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.search-input-group {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.search-input-group i {
    position: absolute;
    left: 24px;
    color: #94a3b8;
    width: 20px;
    height: 20px;
}

.hero-search-input {
    border: none !important;
    background: transparent !important;
    padding: 18px 20px 18px 60px !important;
    font-size: 17px !important;
    box-shadow: none !important;
    width: 100%;
    color: #1e293b;
    font-weight: 500;
}

.hero-search-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    border: none;
    border-radius: 22px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.hero-search-btn:hover {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.4);
}

/* Removed hero-stats as requested */

/* Removed stat-card styles */

/* Clear Grade Grid Selection */
.hero-grades {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin: 0 auto 3rem;
    max-width: 1100px;
    padding: 0 15px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.grade-pill {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    padding: 16px 12px 14px;
    border-radius: 24px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 15px -5px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3.5px solid transparent;
    isolation: isolate;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.grade-icon-container {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    margin-bottom: 4px;
}

.grade-icon-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    filter: blur(10px);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.grade-pill:hover .grade-icon-container::after {
    opacity: 1;
}

.grade-pill img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    mix-blend-mode: multiply;
    z-index: 2;
    position: relative;
    will-change: transform, mix-blend-mode;
    backface-visibility: hidden;
}

.grade-name {
    font-size: 16px;
    font-weight: 100;
    padding: 6px 14px;
    border-radius: 80px;
    width: auto;
    min-width: 85px;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: -0.2px;
    background: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: #1e293b;
}

.grade-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.4s ease;
}

.grade-pill:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
}

.grade-pill:hover .grade-icon-container {
    transform: scale(1.1) rotate(2deg);
    border-color: rgba(0, 0, 0, 0.08);
}

.grade-pill:hover .grade-name {
    transform: scale(1.05);
}

/* Themes */
/* Themes applied to the Whole Card (Pill) */
.theme-main { background: #eff6ff; border-color: #dbeafe; border-bottom-color: #3b82f6; }
.theme-main:hover { background: #ffffff; border-color: #3b82f6; }
.theme-main:hover .grade-name { background: #3b82f6; color: #ffffff; border-color: #3b82f6; }

.theme-indigo { background: #eef2ff; border-color: #c7d2fe; border-bottom-color: #6366f1; }
.theme-indigo:hover { background: #ffffff; border-color: #6366f1; }
.theme-indigo:hover .grade-name { background: #6366f1; color: #ffffff; border-color: #6366f1; }

.theme-emerald { background: #ecfdf5; border-color: #a7f3d0; border-bottom-color: #10b981; }
.theme-emerald:hover { background: #ffffff; border-color: #10b981; }
.theme-emerald:hover .grade-name { background: #10b981; color: #ffffff; border-color: #10b981; }

.theme-blue { background: #eff6ff; border-color: #bfdbfe; border-bottom-color: #3b82f6; }
.theme-blue:hover { background: #ffffff; border-color: #3b82f6; }
.theme-blue:hover .grade-name { background: #3b82f6; color: #ffffff; border-color: #3b82f6; }

.theme-amber { background: #fffbeb; border-color: #fde68a; border-bottom-color: #f59e0b; }
.theme-amber:hover { background: #ffffff; border-color: #f59e0b; }
.theme-amber:hover .grade-name { background: #f59e0b; color: #ffffff; border-color: #f59e0b; }

.theme-rose { background: #fff1f2; border-color: #fecdd3; border-bottom-color: #f43f5e; }
.theme-rose:hover { background: #ffffff; border-color: #f43f5e; }
.theme-rose:hover .grade-name { background: #f43f5e; color: #ffffff; border-color: #f43f5e; }

.theme-purple { background: #faf5ff; border-color: #e9d5ff; border-bottom-color: #a855f7; }
.theme-purple:hover { background: #ffffff; border-color: #a855f7; }
.theme-purple:hover .grade-name { background: #a855f7; color: #ffffff; border-color: #a855f7; }

.theme-cyan { background: #ecfeff; border-color: #a5f3fc; border-bottom-color: #06b6d4; }
.theme-cyan:hover { background: #ffffff; border-color: #06b6d4; }
.theme-cyan:hover .grade-name { background: #06b6d4; color: #ffffff; border-color: #06b6d4; }

.theme-fuchsia { background: #fdf4ff; border-color: #f5d0fe; border-bottom-color: #d946ef; }
.theme-fuchsia:hover { background: #ffffff; border-color: #d946ef; }
.theme-fuchsia:hover .grade-name { background: #d946ef; color: #ffffff; border-color: #d946ef; }

@media (max-width: 768px) {
    .hero-grades {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-bottom: 2rem;
    }
    
    .grade-pill {
        padding: 16px 8px;
        font-size: 12px;
        border-radius: 20px;
        gap: 10px;
    }

    .grade-pill img {
 width: 65px;
        height: 65px;
    }

    .grade-name {
        font-size: 16px;
        padding: 6px 10px;
        border-radius: 10px;
    }
}

.hero-streams-title {
    font-size: 28px;
    font-weight: 800;
    color: #475569;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* Content Type Cards Section */
.content-types-section {
    padding: 4rem 0 3rem;
    background: #fafbfc;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.content-types-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -1px;
}

.content-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-type-card {
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 20px;
    padding: 24px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.content-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, currentColor, currentColor);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-type-card:hover::before {
    transform: scaleX(1);
}

.content-type-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.content-type-card:hover .content-type-icon {
    transform: scale(1.15) rotate(-5deg);
}

.content-type-name {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.3s ease;
}

.content-type-count {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.content-type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: currentColor;
}

.content-type-card:hover .content-type-name {
    color: currentColor;
}

/* Card Theme Colors */
.card-articles { color: #3b82f6; }
.card-articles .content-type-icon { background: #eff6ff; }

.card-past-papers { color: #8b5cf6; }
.card-past-papers .content-type-icon { background: #f5f3ff; }

.card-videos { color: #ef4444; }
.card-videos .content-type-icon { background: #fef2f2; }

.card-modal-papers { color: #f59e0b; }
.card-modal-papers .content-type-icon { background: #fffbeb; }

.card-courses { color: #10b981; }
.card-courses .content-type-icon { background: #ecfdf5; }

.card-challenges { color: #ec4899; }
.card-challenges .content-type-icon { background: #fdf2f8; }

@media (max-width: 768px) {
    .content-types-section {
        padding: 3rem 0 2rem;
    }
    
    .content-types-title {
        font-size: 26px;
        margin-bottom: 1.5rem;
    }
    
    .content-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 0 15px;
    }
    
    .content-type-card {
        padding: 20px 16px;
    }
    
    .content-type-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
    
    .content-type-name {
        font-size: 15px;
    }
}

/* Latest Articles Section Styling */
.articles-section {
    padding: 3rem 0;
    background: #f8faff;
    border-top: 1px solid #f1f5f9;
}

.section-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-label {
    color: #6366f1;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 38px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -1px;
}

/* Custom styling for embedded articles in home feed */
.home-article-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
    height: 100%;
}

.home-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
