/* Import shared layout if needed */
@import url("../new_layout_style.4bbc7b96f812.css");

/* ================================
   Shared Typography Scaling
   (fluid font sizes using clamp)
================================== */
:root {
    --font-xs: clamp(0.8rem, 0.75rem + 0.2vw, 0.9rem);
    --font-sm: clamp(0.9rem, 0.8rem + 0.3vw, 1rem);
    --font-md: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
    --font-lg: clamp(1.2rem, 1rem + 0.8vw, 1.6rem);
    --font-xl: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
    --font-xxl: clamp(2rem, 1.5rem + 2vw, 3rem);
}


/* ================================
   Generic Container
   (reusable across sections)
================================== */
.start-it-container {
    width: 100%;
    max-width: 1500px; /* matches course-list max */
    margin: 0 auto;
    padding-left: clamp(16px, 5vw, 40px);
    padding-right: clamp(16px, 5vw, 40px);
    box-sizing: border-box;
}

/* ================================
   Intro Section Styling
================================== */
.course-intro {
    max-width: 1400px;
    width: 100%;
    margin: clamp(20px, 5vw, 40px) auto;
    padding: clamp(20px, 6vw, 40px);
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.course-intro p {
    font-size: var(--font-md);
    line-height: 1.75;
    color: #444;
    margin-bottom: 15px;
    text-align: justify;
}

.course-intro strong {
    color: #00c853;
    font-weight: 600;
    font-size: var(--font-md);
}

/* ================================
   Course Grid and Cards
================================== */
.course-list {
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 2rem;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.course-card {
    width: 100%;
    max-width: 340px;
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.course-card img {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: cover;
}

.course-card h2 {
    font-size: var(--font-lg);
    margin-bottom: 0.5rem;
    color: #007e33;
}

.course-card p {
    font-size: var(--font-sm);
    color: #333;
    margin-bottom: 1rem;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.course-btn-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.course-details-btn {
    padding: 12px 22px;
    background: linear-gradient(135deg, #00c853, limegreen);
    color: #fff;
     font-size: var(--font-sm);
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.course-details-btn:hover {
    background-color: limegreen;
    transform: translateY(-2px);
}

/* ================================
   Responsive Tweaks
================================== */
@media (max-width: 768px) {
    .course-banner-title h1 {
        font-size: var(--font-xl);
    }

    .course-intro {
        padding: 28px 24px;
    }

    .course-card img {
        height: 170px;
    }
}

@media (max-width: 480px) {
    .course-intro {
        padding: 24px 20px;
        margin: 16px auto;
    }

    .course-card img {
        height: 160px;
    }

    .course-card h2 {
        font-size: var(--font-md);
    }
}
