:root {
    --tg-primary: #2563eb;
    --tg-secondary: #1e3a5f;
    --tg-body-bg: #ffffff;
    --tg-dark-bg: #0f172a;
    --tg-text-dark: #1e293b;
    --tg-text-light: #64748b;
}

body {
    font-family: 'Outfit', 'Arimo', sans-serif;
    color: var(--tg-text-dark);
}

/* Header */
.tg-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s;
}

.tg-header.sticky {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.tg-header .logo img {
    height: 40px;
}

.tg-header .nav-link {
    color: var(--tg-text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.tg-header .nav-link:hover {
    color: var(--tg-primary);
}

.tg-header .btn-primary {
    background: var(--tg-primary);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=800') center/cover;
    opacity: 0.2;
}

.hero-section .sub-title {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section h1 span {
    color: var(--tg-primary);
    position: relative;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-section .btn-hero {
    background: var(--tg-primary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.hero-section .btn-hero:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    color: #fff;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat h3 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.hero-stats .stat p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    max-width: 100%;
}

/* Brands */
.brands-section {
    padding: 3rem 0;
    background: #f8fafc;
}

.brands-section img {
    height: 35px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s;
}

.brands-section img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* About */
.about-section {
    padding: 6rem 0;
}

.about-images {
    position: relative;
}

.about-images .main-img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-images .small-img {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    border-radius: 16px;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-badge {
    position: absolute;
    top: 20px;
    left: -20px;
    background: var(--tg-primary);
    color: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.about-badge h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.about-badge p {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.9;
}

.section-title {
    margin-bottom: 2rem;
}

.section-title .sub-title {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--tg-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tg-text-dark);
}

.section-title h2 span {
    color: var(--tg-primary);
}

.about-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.about-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.about-list-item i {
    width: 40px;
    height: 40px;
    background: var(--tg-primary);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Courses */
.courses-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.course-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    margin-bottom: 1.5rem;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.course-card .thumb {
    position: relative;
    overflow: hidden;
}

.course-card .thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.course-card:hover .thumb img {
    transform: scale(1.05);
}

.course-card .tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--tg-primary);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-card .rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fbbf24;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
}

.course-card .content {
    padding: 1.5rem;
}

.course-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.course-card h4 a {
    color: var(--tg-text-dark);
    text-decoration: none;
}

.course-card h4 a:hover {
    color: var(--tg-primary);
}

.course-card .meta {
    display: flex;
    gap: 1rem;
    color: var(--tg-text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.course-card .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.course-card .author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-card .author img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.course-card .price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tg-primary);
}

/* Categories */
.categories-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.category-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.category-card:hover {
    background: var(--tg-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
    border-color: var(--tg-primary);
}

.category-card:hover * {
    color: #fff !important;
}

.category-card i {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--tg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    transition: all 0.3s;
}

.category-card:hover i {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.category-card .name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tg-text-dark);
    margin-bottom: 0.3rem;
}

.category-card .courses {
    font-size: 0.875rem;
    color: var(--tg-primary);
}

/* Testimonials */
.testimonial-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
}

.testimonial-section .section-title .sub-title {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.testimonial-section .section-title h2 {
    color: #fff;
}

.testimonial-section .section-title h2 span {
    color: #60a5fa;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
}

.testimonial-card .quote {
    font-size: 3rem;
    color: var(--tg-primary);
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card .author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .author h5 {
    color: #fff;
    font-weight: 600;
    margin: 0;
}

.testimonial-card .author span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Instructors */
.instructors-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.instructor-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.instructor-card .thumb {
    position: relative;
    margin-bottom: 1.25rem;
}

.instructor-card .thumb img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    position: relative;
    z-index: 2;
}

.instructor-card .thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    z-index: 1;
}

.instructor-card:nth-child(1) .thumb::before { background: #4ade80; }
.instructor-card:nth-child(2) .thumb::before { background: #38bdf8; }
.instructor-card:nth-child(3) .thumb::before { background: #facc15; }
.instructor-card:nth-child(4) .thumb::before { background: #a78bfa; }

.col-lg-3:nth-child(1) .instructor-card .thumb::before { background: #4ade80; }
.col-lg-3:nth-child(2) .instructor-card .thumb::before { background: #38bdf8; }
.col-lg-3:nth-child(3) .instructor-card .thumb::before { background: #facc15; }
.col-lg-3:nth-child(4) .instructor-card .thumb::before { background: #a78bfa; }

.instructor-card h5 {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.125rem;
}

.instructor-card h5 a {
    color: var(--tg-text-dark);
    text-decoration: none;
}

.instructor-card .specialty {
    color: var(--tg-text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.instructor-card .stats {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.instructor-card .stats .students {
    color: var(--tg-text-light);
}

.instructor-card .stats .students i {
    color: var(--tg-primary);
    margin-right: 0.3rem;
}

.instructor-card .stats .rating {
    color: #f59e0b;
}

.instructor-card .stats .rating i {
    margin-right: 0.3rem;
}

/* CTA */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--tg-primary) 0%, #1d4ed8 100%);
}

.cta-section h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-section .btn-light {
    background: #fff;
    color: var(--tg-primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Blog */
.blog-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.blog-card .thumb {
    position: relative;
    overflow: hidden;
}

.blog-card .thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .thumb img {
    transform: scale(1.05);
}

.blog-card .tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--tg-primary);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card .content {
    padding: 1.5rem;
}

.blog-card .meta {
    display: flex;
    gap: 1rem;
    color: var(--tg-text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.blog-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.blog-card h4 a {
    color: var(--tg-text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card h4 a:hover {
    color: var(--tg-primary);
}

/* Newsletter */
.newsletter-section {
    padding: 6rem 0;
    background: #fff;
}

.newsletter-box {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 30px;
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.newsletter-box img {
    max-width: 300px;
}

.newsletter-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-box p {
    color: var(--tg-text-light);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--tg-primary);
}

.newsletter-form button {
    background: var(--tg-primary);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Footer */
.footer-section {
    background: #0f172a;
    color: #fff;
    padding: 6rem 0 0;
}

.footer-section h5 {
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-section .footer-logo img {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-section .contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-section .contact-info i {
    color: var(--tg-primary);
}

.footer-section .social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-section .social a {
    display: flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer-section .social a:hover {
    background: var(--tg-primary);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    margin-top: 4rem;
    padding: 1.5rem 0;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.875rem;
}

/* Back to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--tg-primary);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.3s;
    z-index: 1000;
}

.scroll-top.show {
    display: flex;
}

.scroll-top:hover {
    background: #1d4ed8;
    transform: translateY(-5px);
    color: #fff;
}

@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-top: 3rem;
    }

    .about-images .small-img {
        display: none;
    }

    .newsletter-box {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .newsletter-box img {
        max-width: 200px;
    }
}