/* Home Page Styles */

/* Hero Section */
.home-hero {
    background: linear-gradient(135deg, var(--tutor-color-primary, #3498db) 0%, var(--tutor-color-secondary, #2ecc71) 100%);
    color: var(--tutor-color-white, #ffffff);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 800px;
    height: 800px;
    background: url(../images/partten1.svg) no-repeat;
    background-size: contain;
    background-position: 80px 450px;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--tutor-color-white, #ffffff);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
    color: var(--tutor-color-white, #ffffff);
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}


/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-illustration i {
    font-size: 120px;
    color: var(--tutor-color-white, #ffffff);
    opacity: 0.8;
}

/* Stats Section */
.home-stats {
    padding: 80px 0;
    background: var(--tutor-color-light-gray, #f8f9fa);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--tutor-color-white, #ffffff);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--tutor-color-gray, #ecf0f1);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--tutor-color-primary, #3498db);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.stat-icon i {
    font-size: 24px;
    color: var(--tutor-color-white, #ffffff);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--tutor-color-text-primary, #2c3e50);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--tutor-color-text-secondary, #7f8c8d);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-no-image img.news-thumbnail {
    width: 120px;
    object-fit: contain;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tutor-color-text-primary, #2c3e50);
    margin-bottom: 15px;
    margin-top: 0px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--tutor-color-text-primary, #6c757d);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tutor-color-primary, #3498db);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.section-link:hover {
    gap: 12px;
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 40px;
}

.section-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.section-footer .btn:hover {
    gap: 12px;
}

/* Featured Jobs Section */
.home-featured-jobs {
    padding: 80px 0;
    background: var(--tutor-color-white, #ffffff);
}

.featured-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.featured-job-card {
    background: var(--tutor-color-white, #ffffff);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--tutor-color-gray, #ecf0f1);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.job-card-header {
    margin-bottom: 15px;
}

.job-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--tutor-color-text-primary, #2c3e50);
}

.company-name {
    font-size: 14px;
    color: var(--tutor-color-text-secondary, #7f8c8d);
}

.company-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.company-name a:hover {
    color: var(--tutor-color-primary, #3498db);
}

.job-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--tutor-color-text-secondary, #6c757d);
}

.job-meta-item i {
    color: var(--tutor-color-primary, #3498db);
    width: 14px;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--tutor-color-gray, #ecf0f1);
}

.job-posted {
    font-size: 13px;
    color: var(--tutor-color-text-secondary, #6c757d);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}


/* Featured Courses Section */
.home-featured-courses {
    padding: 80px 0;
    background: var(--tutor-color-white, #ffffff);
}

.featured-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.featured-course-card {
    background: var(--tutor-color-white, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--tutor-color-gray, #ecf0f1);
    transition: all 0.3s ease;
}

.featured-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-thumbnail {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-course-card:hover .course-thumbnail {
    transform: scale(1.05);
}

.course-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--tutor-color-light-gray, #f8f9fa);
    color: var(--tutor-color-dark-gray, #bdc3c7);
}

.course-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 60px;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.badge-sale {
    background: var(--tutor-color-warning, #f39c12);
    color: var(--tutor-color-white, #ffffff);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free {
    background: var(--tutor-color-danger, #e74c3c);
    color: var(--tutor-color-white, #ffffff);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-content {
    padding: 0px 25px 25px 25px;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--tutor-color-text-secondary, #7f8c8d);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-meta i {
    color: var(--tutor-color-primary, #3498db);
    width: 14px;
}

.course-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    margin-top: 0px;
    padding: 25px 25px 0px 25px;
}

.featured-course-card a{
    text-decoration: none;
}
.featured-course-card a .course-title {
    color: var(--tutor-color-text-primary, #2c3e50);
    text-decoration: none;
    transition: color 0.3s ease;
    text-decoration: none;
}
.featured-course-card a .course-title:hover {
    color: var(--tutor-color-primary, #3498db);
}

.course-excerpt {
    font-size: 14px;
    color: var(--tutor-color-text-secondary, #34495e);
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--tutor-color-gray, #ecf0f1);
}

.course-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    font-size: 12px;
    color: var(--tutor-color-gray, #ecf0f1);
}

.rating-stars i.active {
    color: #ffc107;
}

.rating-text {
    font-size: 12px;
    color: var(--tutor-color-text-secondary, #7f8c8d);
}

.course-students {
    font-size: 12px;
    color: var(--tutor-color-text-secondary, #7f8c8d);
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-students i {
    color: var(--tutor-color-primary, #3498db);
}
.course-students i.icon {
    font-size: 18px;
    color: var(--tutor-color-text-secondary, #7f8c8d);
}
.course-price {
    text-align: right;
}

.price-current,
.price-sale {
    font-size: 18px;
    font-weight: 700;
    color: var(--tutor-color-primary, #3498db);
}

.price-original {
    font-size: 14px;
    color: var(--tutor-color-text-secondary, #7f8c8d);
    text-decoration: line-through;
    margin-left: 8px;
}

.price-free {
    font-size: 16px;
    font-weight: 600;
    color: var(--tutor-color-secondary, #2ecc71);
}

.no-courses {
    text-align: center;
    padding: 40px;
    color: var(--tutor-color-text-secondary, #7f8c8d);
    grid-column: 1 / -1;
}

/* Featured Companies Section */
.home-featured-companies {
    padding: 80px 0;
    background: var(--tutor-color-light-gray, #f8f9fa);
}

.featured-companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Company Card Styles - Matching Archive Company */
.company-card {
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.company-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.company-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Top Visual Section */
.company-visual-section {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.company-visual-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(24, 63, 225, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(24, 63, 225, 0.1) 0%, transparent 40%);
    background-size: 100px 100px, 80px 80px;
    z-index: 1;
}

.company-logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.company-logo-img {
    max-width: 150px;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.company-logo-placeholder {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #183fe1 0%, #667eea 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Bottom Content Section */
.company-content-section {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.company-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    color: #1a202c;
}

.company-title:hover {
    color: var(--tutor-color-primary, #3498db);
    transition: color 0.3s ease;
}


.company-contact-info {
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568; /* Improved contrast: 6.2:1 on white background (WCAG AA compliant) */
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.contact-item i {
    color: #183fe1;
    font-size: 1rem;
}

.company-action {
    margin-top: auto;
}

.btn-view-company {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s 
ease;
    border: 1px solid;
    width: 100%;
    background: #e3f2fd;
    color: #183fe1;
    border-radius: 12px;
    border: 1px solid #bbdefb;
}
.btn-view-company:hover {
    background: #0f2bb8;
    color: #fff;
    transform: translateY(-1px);
}

/* Latest News Section */
.home-latest-news {
    padding: 80px 0;
    background: var(--tutor-color-white, #ffffff);
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--tutor-color-white, #ffffff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--tutor-color-gray, #ecf0f1);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumbnail {
    transform: scale(1.05);
}

.news-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--tutor-color-light-gray, #f8f9fa);
    color: var(--tutor-color-dark-gray, #bdc3c7);
}

.news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 40px;
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--tutor-color-primary, #3498db);
    color: var(--tutor-color-white, #ffffff);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-category a {
    color: inherit;
    text-decoration: none;
}

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--tutor-color-text-secondary, #6c757d);
    margin-bottom: 15px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-meta i {
    color: var(--tutor-color-primary, #3498db);
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--tutor-color-text-primary, #2c3e50);
}
article.news-card a {
    text-decoration: none;
}
.news-title:hover {
    color: var(--tutor-color-primary, #3498db);
    transition: color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}
.news-excerpt {
    font-size: 14px;
    color: var(--tutor-color-text-secondary, #34495e);
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-footer {
    text-align: right;
}

/* CTA Section */
.home-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--tutor-color-primary, #3498db) 0%, var(--tutor-color-secondary, #2ecc71) 100%);
    color: var(--tutor-color-white, #ffffff);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--tutor-color-white, #ffffff);
}

.cta-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
    color: var(--tutor-color-white, #ffffff);
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-illustration {
        width: 200px;
        height: 200px;
    }
    
    .hero-illustration i {
        font-size: 80px;
    }
    
    .home-stats,
    .home-featured-jobs,
    .home-featured-companies,
    .home-latest-news,
    .home-cta {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .featured-courses-grid,
    .featured-jobs-grid,
    .featured-companies-grid,
    .latest-news-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
}
