/*
  ========================================
  ACADEMYIUM - Main Website Stylesheet
  Version: 2.2 (All Pages Consolidated)
  ========================================
*/


/* --- 1. ROOT VARIABLES & GLOBAL STYLES --- */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #475569;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-dark: #111827;
    --border-color: #e2e8f0;
    --font-main: 'Montserrat', sans-serif;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition-speed: 0.3s;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* --- 2. HEADER & NAVIGATION --- */
header {
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.nav-link {
    transition: color var(--transition-speed) ease;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link:hover, 
.nav-link.active {
    color: var(--primary-color);
}

/* --- 3. HOMEPAGE HERO SECTION --- */
.hero-section-home {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    padding: 6rem 2rem;
    color: white;
    text-align: center;
}
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: brightness(0.4);
}
.hero-content-home {
    position: relative;
    z-index: 2;
}

/* --- 4. HOMEPAGE FEATURES & TESTIMONIALS --- */
.feature-card-home {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}
.feature-icon-home {
    background-color: #dbeafe; /* blue-100 */
    color: var(--primary-color);
    border-radius: 50%;
    padding: 1rem;
    display: inline-flex;
    margin-bottom: 1.5rem;
}
.testimonial-card {
    background-color: var(--text-dark);
    color: #cbd5e1; /* slate-300 */
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
}
.testimonial-quote-icon {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.5;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #334155; /* slate-700 */
}

/* --- 5. COURSES PAGE --- */
.courses-hero {
    padding: 4rem 0;
    background-color: #f0f9ff; /* blue-50 */
    border-bottom: 1px solid var(--border-color);
}

.course-listing-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.course-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.course-listing-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.course-listing-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.course-listing-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}
.course-listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.course-listing-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.course-listing-description {
    color: var(--secondary-color);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}
.course-listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}
@media (min-width: 768px) {
    .course-listing-card {
        flex-direction: row;
    }
    .course-listing-image {
        width: 33.333333%;
        height: auto;
    }
}




/* --- 7. GENERAL COMPONENTS (Buttons, Cards, Forms) --- */
.section-title {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.75rem;
    display: inline-block;
    font-weight: 700;
}

.form-container {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 800px;
    width: 100%;
    margin: auto;
}
/* Base styles for all form headers */
.form-header,
.feed-form-header {
    color: white;
    padding: 2rem;
    text-align: center;
}

/* Specific background gradients */
.form-header {
    background: linear-gradient(to right, #1e3a8a, #3b82f6); /* Blue gradient */
}

.feed-form-header {
    background: linear-gradient(to right, #f59e0b, #fbbf24); /* Orange/Yellow gradient */
}

/* Base styles for headings within all form headers */
.form-header h1,
.feed-form-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
}

/* Base styles for paragraphs within all form headers */
.form-header p,
.feed-form-header p {
    opacity: 0.9;
    margin-top: 0.5rem;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%;
}


.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- 8. FOOTER --- */
footer {
    background-color: var(--bg-dark);
    color: #9ca3af; /* gray-400 */
}
footer a {
    transition: color var(--transition-speed) ease;
}
footer a:hover {
    color: var(--text-light);
}

/* --- 9. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
}
@media (max-width: 480px) {
    body { font-size: 14px; }
    header nav { padding-left: 1rem; padding-right: 1rem; }
    section { padding-top: 4rem; padding-bottom: 4rem; }
    .section-title { font-size: 1.5rem; }
}

