/* Custom CSS for Stratify EDU Clone */
:root {
    --primary-color: #1E73BE;
    --primary-hover: #155a96;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --footer-bg: #303d44;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    object-position: right center;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 120px;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

.navbar.scrolled .logo {
    color: var(--text-dark);
}

.navbar.scrolled .menu-toggle {
    color: var(--text-dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 100%;
    padding: 0 5%;
}

.logo {
    display: flex;
    align-items: center;
    width: 250px;
    height: 70px;
    /* Constrain navbar thickness */
}

.logo img {
    width: 100%;
    height: 42px;
    object-fit: contain;
    object-position: left center;
    transition: var(--transition);
    transform: scale(2.8);
    transform-origin: left center;
}

.navbar.scrolled .logo {
    height: 90px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 1.2rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    min-width: 220px;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    color: var(--text-dark) !important;
    padding: 10px 20px;
    display: block;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 900px;
    margin-top: 50px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 50px;
    line-height: 1.2;
}

.hero h1 .highlight {
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--primary-color);
    z-index: -1;
    opacity: 0.8;
}

.category-cards-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    margin-top: 40px;
    padding: 20px 0;
    position: relative;
}

/* Smoky fade effect on edges */
.category-cards-wrapper::before,
.category-cards-wrapper::after {
    /* content: ''; */
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.category-cards-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #155a96 0%, rgba(255, 255, 255, 0) 100%);
}

.category-cards-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #155a96 0%, rgba(255, 255, 255, 0) 100%);
}

.category-cards-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll-left-to-right 30s linear infinite;
}

.category-cards-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left-to-right {
    0% {
        transform: translateX(calc(-50% - 10px));
    }

    100% {
        transform: translateX(0);
    }
}

.cat-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 12px;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    min-width: 360px;
    min-height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    cursor: default;
}

.cat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cat-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.cat-card h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.cat-card p {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* How It Works */
.how-it-works {
    padding: 100px 20px;
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.hiw-left {
    flex: 1;
}

.hiw-left h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hiw-left p {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

.hiw-right {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    display: flex;
    gap: 25px;
}

.step-num {
    background: var(--primary-color);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(30, 115, 190, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.feature h3 {
    margin-bottom: 15px;
}

/* Why Us */
.why-us {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.why-left {
    flex: 1;
}

.sub-heading {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.why-left h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.benefits-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.benefits-list i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 5px;
}

.benefits-list strong {
    color: var(--text-dark);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

.why-right {
    flex: 1;
}

.quote-card {
    background: var(--white);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
}

.quote-card h2 {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 30px;
    font-style: italic;
    font-weight: 500;
}

.trust-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 50px;
}



/* Testimonials */
.testimonials {
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.test-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stars {
    color: #ffc107;
    margin-bottom: 20px;
}

.test-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-style: italic;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Partner Logos */
.partner-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.partner-logo:hover {
    transform: scale(1.05);
}

/* Bottom CTA */
.bottom-cta {
    background: linear-gradient(rgba(30, 115, 190, 0.9), rgba(30, 115, 190, 0.9)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    padding: 100px 20px;
    color: var(--white);
}

.bottom-cta h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 40px;
}

.bottom-cta .btn {
    background: var(--white);
    color: var(--primary-color);
}

.bottom-cta .btn:hover {
    background: var(--text-dark);
    color: var(--white);
}

/* Modern Page Header */
.page-header {
    position: relative;
    padding: 160px 0 100px;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 32, 39, 0.9), rgba(32, 58, 67, 0.8), rgba(44, 83, 100, 0.9));
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: headerContentSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.header-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(30, 115, 190, 0.4);
    animation: badgePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s forwards;
    opacity: 0;
    transform: scale(0.8);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

@keyframes headerContentSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgePop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: #b0b0b0;
    padding-top: 80px;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer ul li {
    margin-bottom: 15px;
}

.footer ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px 20px;
    text-align: center;
    font-size: 0.9rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-item {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.course-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-item p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.course-item strong {
    color: var(--text-dark);
}

.course-footer {
    margin-top: auto !important;
    /* Forces footer to the bottom of the flex container */
}

/* --- Global Scroll Animations --- */

.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Animation Types */
.animate-fade-in {
    opacity: 0;
}

.animate-slide-up {
    transform: translateY(40px);
}

.animate-slide-left {
    transform: translateX(-40px);
}

.animate-slide-right {
    transform: translateX(40px);
}

.animate-scale-up {
    transform: scale(0.95);
}

/* Staggered Delays for Children items in grids */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Trigger Class added by Intersection Observer */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .how-it-works,
    .why-us {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .d-none-sm {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .bottom-cta h2 {
        font-size: 2.2rem;
    }

    .logo {
        max-width: 200px;
        height: 50px;
    }

    .navbar {
        height: 90px;
    }
}