@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    color: #1a202c;
    /* Added from the index.html file for consistency */
    background-color: #f8f9fa; 
}

/* Custom underline animation for nav links */
.nav-link {
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile active link style */
.mobile-nav-link.active {
    background-color: white;
    color: #008DD2;
    font-weight: 600;
}

/* Styles from index.html */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.gradient-text {
    background: linear-gradient(90deg, #008DD2, #E60028, #4d10cf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: gradientMove 6s ease infinite;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-section {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
}

.card {
    background-color: white;
    padding: 40px 50px;
    border-radius: 25px;
    width: 80%;
    max-width: 800px;
    min-height: 60vh;
    border: 4px solid;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 90vh;
    overflow-y: auto;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -2px;
    line-height: 1.1;
}

.card p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #555;
    margin: 0;
    max-width: 500px;
}

.card-section:nth-child(1) .card { border-color: #9b59b6; transform: rotate(-2deg); }
.card-section:nth-child(2) .card { border-color: #e74c3c; transform: rotate(1.5deg); }
.card-section:nth-child(3) .card { border-color: #f1c40f; transform: rotate(-1deg); }
.card-section:nth-child(4) .card { border-color: #8e44ad; transform: rotate(2deg); }
.card-section:nth-child(5) .card { border-color: #f39c12; transform: rotate(-1.5deg); }

.blog-carousel-section {
    background-color: #f8f5ee;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 1000px;
    justify-content: center;
    padding: 0 20px;
}

.carousel-track-container {
    display: flex;
    overflow-x: hidden;
    width: 100%;
    max-width: 740px;
    cursor: grab;
}

.carousel-track {
    display: flex;
    gap: 40px;
    padding: 20px 0;
    flex-shrink: 0;
}

.course {
    flex: 0 0 auto;
    width: 350px;
    background: #fffaf0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
    transform: rotate(-2deg);
    transition: transform .3s;
}

.course:nth-child(even) { transform: rotate(2deg); }
.course:nth-child(3n) { transform: rotate(-1deg); }
.course-image { width: 100%; height: 250px; background: #f0ede6; border-radius: 15px; margin-bottom: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.course-image img { width: 100%; height: 100%; object-fit: cover; }
.course-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; width: 100%; }
.course h2 { font-size: 1.4em; color: #333; margin-bottom: 10px; line-height: 1.3; }
.course-meta { font-size: .9em; color: #888; margin-bottom: 20px; }
.read-button { background: #333; color: #fff; padding: 12px 30px; border-radius: 25px; cursor: pointer; font-size: 1em; font-weight: bold; transition: background .3s; text-decoration: none; }
.read-button:hover { background: #555; }


@media (max-width: 768px) {
    .card {
        padding: 25px 20px;
        min-height: 50vh;
        max-height: 85vh;
        border-radius: 20px;
    }
    .card-icon { font-size: 2rem; margin-bottom: 15px; }
    .card h2 { font-size: clamp(1.5rem, 5vw, 2.5rem); letter-spacing: -1px; }
    .card p { font-size: clamp(0.9rem, 2vw, 1rem); }
    .carousel-track { gap: 20px; }
    .course { width: 90vw; transform: rotate(0deg); }
    .course:nth-child(even),
    .course:nth-child(3n) { transform: rotate(0deg); }
}