/* Front Page Sections */

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 112px;
    padding-bottom: var(--space-32);
    overflow: hidden;
    background-color: var(--white);
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 160px;
        padding-bottom: var(--space-48);
    }
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.7;
}

.shape-1 {
    top: 0;
    right: 0;
    width: 800px;
    height: 800px;
    background-color: var(--brand-primary-light);
    transform: translate(25%, -25%);
}

.shape-2 {
    bottom: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background-color: #F0FDF4;
    transform: translate(-25%, 25%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        gap: var(--space-32);
    }
}

@media (min-width: 1024px) {
    .hero-content {
        gap: 80px;
    }
}

.hero-text,
.hero-images {
    width: 100%;
}

@media (min-width: 768px) {
    .hero-text,
    .hero-images {
        width: 50%;
    }
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    background-color: var(--white);
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    border: 1px solid #BBF7D0;
    width: fit-content;
}

.badge-dot {
    width: 10px;
    height: 10px;
    background-color: var(--success);
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-badge span:last-child {
    font-size: 0.875rem;
    font-weight: 600;
    color: #15803D;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.11;
    color: var(--gray-900);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
        line-height: 1;
    }
}

.highlight-text {
    color: var(--brand-primary);
    position: relative;
    display: inline-block;
}

.highlight-underline {
    position: absolute;
    width: 100%;
    height: 12px;
    bottom: -4px;
    left: 0;
    color: rgba(72, 146, 51, 0.4);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.625;
    color: var(--gray-600);
    max-width: 32rem;
}

.hero-description strong {
    font-weight: 700;
    color: var(--brand-primary);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    padding-top: var(--space-4);
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
    padding-top: var(--space-16);
    border-top: 1px solid var(--brand-primary-light);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
    margin: 0;
}

/* Hero Images */
.hero-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

.image-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.image-column-1 {
    padding-top: var(--space-24);
}

.hero-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: transform 0.5s ease;
}

.hero-card:hover {
    transform: scale(1.02);
}

.hero-card-image {
    position: relative;
}

.hero-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--brand-primary);
    border-radius: var(--radius-lg);
    transform: rotate(3deg);
    opacity: 0.1;
    z-index: -1;
}

.hero-card-image img {
    width: 100%;
    height: 256px;
    object-fit: cover;
    display: block;
}

.hero-card-review {
    background-color: var(--white);
    padding: var(--space-10);
    border: 1px solid var(--gray-50);
    position: relative;
    z-index: 20;
    margin-right: -2rem;
    margin-left: var(--space-8);
}

.review-stars {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.review-stars svg {
    width: 32px;
    height: 32px;
    color: var(--warning);
}

.review-text {
    font-size: 0.75rem;
    font-weight: 600;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: var(--space-4);
}

.review-author {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.hero-card-feature {
    background-color: var(--brand-primary);
    color: var(--white);
    padding: var(--space-12);
    position: relative;
    overflow: hidden;
}

.hero-card-feature::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background-color: var(--white);
    opacity: 0.1;
    border-radius: 50%;
    margin-top: -2.5rem;
    margin-right: -2.5rem;
}

.hero-card-feature svg {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-6);
    color: rgba(253, 232, 233, 1);
    padding: 5px;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.feature-description {
    font-size: 0.875rem;
    color: rgba(253, 232, 233, 0.9);
    line-height: 1.5;
    margin: 0;
}

/* Courses Section */
.courses-section {
    padding: var(--space-48) 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto var(--space-32);
}

.section-header-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-8);
    max-width: none;
}

@media (min-width: 768px) {
    .section-header-row {
        flex-direction: row;
        align-items: flex-end;
    }
}

.section-label {
    display: block;
    color: var(--success);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: var(--space-6);
}

.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--gray-600);
    margin: 0;
}

.section-link {
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: var(--brand-primary-hover);
    text-decoration: underline;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-16);
}

@media (min-width: 768px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.course-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px);
}

.course-thumbnail {
    position: relative;
    height: 208px;
    overflow: hidden;
}

.course-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(69, 10, 10, 0.1);
    transition: background-color 0.3s ease;
    z-index: 10;
}

.course-card:hover .course-overlay {
    background-color: rgba(69, 10, 10, 0);
}

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

.course-card:hover .course-thumbnail img {
    transform: scale(1.1);
}

.course-level {
    position: absolute;
    top: var(--space-8);
    right: var(--space-8);
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-primary-hover);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-primary-light);
}

.course-body {
    padding: var(--space-12);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-6);
    line-height: 1.4;
    min-height: 3.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-card:hover .course-title a {
    color: var(--brand-primary);
}

.course-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-500);
    margin-bottom: var(--space-12);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    padding: var(--space-6) 0;
    border-top: 1px solid var(--gray-50);
    margin-bottom: var(--space-8);
    margin-top: auto;
}

.course-duration {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--gray-500);
}

.course-duration svg {
    width: 32px;
    height: 32px;
    color: var(--success);
    padding: 2px;
}

.course-price {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    color: var(--brand-primary);
}

.course-price svg {
    width: 18px;
    height: 18px;
    color: var(--brand-primary);
    flex-shrink: 0;
}

.course-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    background-color: var(--gray-50);
    color: var(--gray-800);
    font-weight: 600;
    padding: var(--space-6) 0;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all 0.3s ease;
}

.course-button:hover {
    background-color: var(--brand-primary);
    color: var(--white);
}

.course-button svg {
    width: 32px;
    height: 32px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.course-button:hover svg {
    opacity: 1;
    transform: translateX(0);
}

/* Blog Section */
.blog-section {
    padding: var(--space-40) 0;
    background-color: var(--gray-50);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-16);
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
}

.blog-thumbnail {
    position: relative;
    height: 224px;
    overflow: hidden;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-category {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--brand-primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: var(--space-2) var(--space-6);
    border-top-right-radius: var(--radius-md);
}

.blog-body {
    padding: var(--space-12);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-bottom: var(--space-6);
}

.blog-meta time,
.blog-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.blog-meta svg {
    width: 32px;
    height: 32px;
    padding: 1px;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-6);
    line-height: 1.4;
}

.blog-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: var(--brand-primary);
}

.blog-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-link {
    color: var(--brand-primary);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.blog-link:hover {
    text-decoration: underline;
}

/* Features Section */
.features-section {
    padding: var(--space-40) 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.features-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    width: 256px;
    height: 256px;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(64px);
    opacity: 0.7;
    animation: blob 7s infinite;
}

.blob-1 {
    top: 40px;
    left: 40px;
    background-color: var(--brand-primary-light);
}

.blob-2 {
    top: 40px;
    right: 40px;
    background-color: #F0FDF4;
    animation-delay: 2s;
}

.blob-3 {
    bottom: -32px;
    left: 80px;
    background-color: var(--brand-primary-light);
    animation-delay: 4s;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-16);
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    position: relative;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-16);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-12);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    padding: 5px;
}

.feature-card:hover .feature-icon {
    transform: rotate(6deg);
}

.feature-icon-brand {
    background-color: var(--brand-primary);
}

.feature-icon-accent {
    background-color: var(--success);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-6);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title {
    color: var(--brand-primary);
}

.feature-description {
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--gray-500);
    margin: 0;
}

.feature-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--brand-primary), var(--success));
    transform: scaleX(0);
    transform-origin: left;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-line {
    transform: scaleX(1);
}

/* CTA Box */
.cta-box {
    margin-top: var(--space-40);
    background-color: var(--gray-900);
    border-radius: var(--radius-3xl);
    padding: var(--space-16);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

@media (min-width: 768px) {
    .cta-box {
        padding: var(--space-24);
    }
}

.cta-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: rgba(69, 10, 10, 0.2);
    transform: skewX(12deg) translateX(80px);
}

.cta-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
}

@media (min-width: 768px) {
    .cta-content {
        flex-direction: row;
    }
}

.cta-text {
    text-align: left;
}

@media (min-width: 768px) {
    .cta-text {
        width: 66.666667%;
    }
}

.cta-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .cta-text h3 {
        font-size: 1.875rem;
    }
}

.cta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.cta-list li {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    color: var(--gray-300);
}

.cta-list svg {
    width: 32px;
    height: 32px;
    color: var(--success);
    flex-shrink: 0;
}

.cta-button {
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .cta-button {
        width: 33.333333%;
        justify-content: flex-end;
    }
}

.cta-button .btn {
    box-shadow: 0 10px 15px -3px rgba(69, 10, 10, 0.5), 0 4px 6px -4px rgba(69, 10, 10, 0.5);
}

.cta-button .btn:hover {
    background-color: var(--white);
    color: var(--brand-primary);
}

/* Text Brand Color */
.text-brand {
    color: var(--brand-primary);
}
