/* ==========================================================================
   courses-style.css - Premium Modern Dark/Light Accent Dashboard Theme
   ========================================================================== */

/* 1. Global Page Setup & Smooth Background */
.gac-courses-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

/* 2. Catchy Dynamic Main Title Layout */
.gac-courses-heading {
    text-align: center;
    font-size: 2.8rem;
    color: #0f172a; /* Premium deep slate black */
    margin-bottom: 50px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
}

.gac-courses-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    margin: 12px auto 0 auto;
    border-radius: 10px;
}

/* 3. Fully Responsive Fluid Grid Box */
.gac-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    padding: 10px 0;
}

/* 4. Elegant Card Component Blueprint */
.gac-course-card {
    background: #ffffff;
    border-radius: 20px; /* Rounded smooth corners */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

/* 5. Image Wrapper with Hover Zoom Magic effect */
.gac-card-banner {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.gac-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover over the whole card - zooms image slightly and lifts card */
.gac-course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.gac-course-card:hover .gac-card-banner img {
    transform: scale(1.08); /* Sophisticated smooth zoom */
}

/* 6. Card Body Padding Structure */
.gac-card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pure layout dynamic height sync */
}

/* 7. Premium Dynamic Badges Stylesheet Maps */
.gac-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Color palettes mapping directly to Database themes */
.gac-badge-html { 
    background-color: #ffedd5; 
    color: #ea580c; 
    border: 1px solid #fed7aa;
}
.gac-badge-css { 
    background-color: #e0f2fe; 
    color: #0369a1; 
    border: 1px solid #bae6fd;
}
.gac-badge-js { 
    background-color: #dcfce7; 
    color: #15803d; 
    border: 1px solid #bbf7d0;
}

/* 8. Text & Description Optimization */
.gac-card-title {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.gac-card-desc {
    font-size: 0.95rem;
    color: #64748b; /* Sleek neutral gray */
    line-height: 1.6;
    margin-bottom: 26px;
    flex-grow: 1; /* Pushes button always to bottom */
}

/* 9. High Conversion Call-To-Action Learning Button */
.gac-btn {
    display: block;
    text-align: center;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.gac-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

/* 10. Shimmer Loading & Empty States Formatting */
.gac-courses-loading {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2rem;
    color: #64748b;
    padding: 40px;
    font-style: italic;
    background: #ffffff;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}