/* ==========================================================================
   Aurum Academy Main Stylesheet
   Version: 2.0 - Modern Redesign
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Variables)
   -------------------------------------------------------------------------- */
:root {
    /* Primary Colors - Navy/Blue */
    --primary-900: #1e3a5f;
    --primary-700: #2d5a87;
    --primary-500: #4a90c2;
    --primary-300: #7eb3d8;
    --primary-100: #e8f4fd;

    /* Accent Colors - Teal */
    --accent-600: #2d8a6e;
    --accent-400: #4fb897;

    /* Neutral Colors */
    --neutral-900: #1a1a2e;
    --neutral-700: #4a4a5a;
    --neutral-500: #6b6b7a;
    --neutral-400: #8b8b9b;
    --neutral-200: #e5e5eb;
    --neutral-100: #f5f5f8;
    --neutral-50: #fafafa;

    /* Semantic Colors */
    --success: #2d8a6e;
    --error: #c53030;
    --warning: #d69e2e;

    /* Surface Colors */
    --surface-white: #ffffff;

    /* Typography */
    --font-primary: 'Roboto', Helvetica, Arial, sans-serif;
    --font-display: 'Short Stack', cursive;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* --------------------------------------------------------------------------
   2. Base Styles
   -------------------------------------------------------------------------- */
body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--neutral-900);
    background-color: var(--neutral-50);
    line-height: 1.6;
}

a {
    color: var(--primary-700);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-500);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--neutral-900);
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   3. Layout Components
   -------------------------------------------------------------------------- */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

.content-wrapper {
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.section-spacing {
    padding: var(--spacing-lg) var(--spacing-md);
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    text-align: center;
    background-color: #000;
    padding: var(--spacing-md) 0;
}

.site-header img {
    max-height: 100px;
}

.logo-wrapper {
    display: inline-block;
    background-color: #000;
    padding: 15px 25px;
    border-radius: var(--radius-lg);
}

.nav-menu {
    margin-top: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
}

.menu-link {
    display: inline-block;
    padding: 10px 24px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-size: 15px;
    font-weight: 500;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.menu-link:hover {
    background-color: var(--primary-500);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .menu-link {
        display: inline-block;
        margin: 4px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* --------------------------------------------------------------------------
   5. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    text-align: center;
    background-color: var(--primary-900);
    color: white;
    padding: var(--spacing-xl) var(--spacing-md);
    margin-top: var(--spacing-2xl);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-link {
    display: inline-block;
    border-radius: var(--radius-md);
    padding: 10px 16px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    margin: 6px 8px;
    white-space: nowrap;
    font-size: 14px;
    transition: background-color var(--transition-fast);
}

.footer-link:hover {
    background-color: var(--primary-500);
    color: white;
    text-decoration: none;
}

.footer-link a {
    color: #fff;
    text-decoration: none;
}

.footer-link i {
    margin-right: 8px;
}

/* --------------------------------------------------------------------------
   6. Cards & Content Blocks
   -------------------------------------------------------------------------- */
.content-card {
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.content-card:hover {
    box-shadow: var(--shadow-md);
}

.info-box {
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.info-box h3 {
    color: var(--primary-900);
    margin-bottom: var(--spacing-md);
}

/* --------------------------------------------------------------------------
   7. Homepage Specific
   -------------------------------------------------------------------------- */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
    color: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.hero-banner h1 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.hero-banner p {
    opacity: 0.9;
    margin: 0;
}

.category-section {
    background: var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.category-header {
    background: var(--primary-100);
    color: var(--primary-900);
    border-radius: var(--radius-md);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.category-header h2 {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 1.25rem;
}

.category-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--neutral-700);
}

.course-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    justify-content: center;
}

.course-card {
    background: var(--surface-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    width: 270px;
    text-decoration: none;
    color: inherit;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.course-card-content {
    padding: var(--spacing-md);
    text-align: center;
}

.course-card-content h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--neutral-900);
}

/* --------------------------------------------------------------------------
   8. FAQ Page Specific
   -------------------------------------------------------------------------- */
.faq-container {
    max-width: 800px;
    margin: var(--spacing-xl) auto;
    padding: 0 var(--spacing-md);
}

.faq-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.faq-header h1 {
    color: var(--primary-900);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--primary-700);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary-500);
}

/* Bootstrap 5 Accordion Overrides */
.accordion-item {
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md) !important;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
}

.accordion-item:first-of-type,
.accordion-item:last-of-type {
    border-radius: var(--radius-md) !important;
}

.accordion-button {
    background-color: var(--surface-white);
    font-weight: 500;
    padding: var(--spacing-lg);
    color: var(--neutral-900);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-100);
    color: var(--primary-900);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(45, 90, 135, 0.2);
    border-color: var(--primary-500);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232d5a87'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: var(--spacing-lg);
    line-height: 1.7;
    color: var(--neutral-700);
}

.accordion-body a {
    color: var(--primary-700);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   9. Teach Page Specific
   -------------------------------------------------------------------------- */
.teach-container {
    max-width: 1000px;
    margin: var(--spacing-xl) auto;
    padding: 0 var(--spacing-md);
}

.teach-hero {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.teach-hero h1 {
    color: var(--primary-900);
    margin-bottom: var(--spacing-sm);
}

.info-card {
    background: var(--surface-white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.info-card h3 {
    color: var(--primary-900);
    margin-bottom: var(--spacing-md);
}

.info-card p {
    color: var(--neutral-700);
    line-height: 1.7;
}

.contact-cta {
    background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
    color: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
}

.contact-cta h3 {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.contact-cta a {
    color: white;
    text-decoration: underline;
}

.contact-cta a:hover {
    color: var(--primary-100);
}

.contact-item {
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
}

.contact-item i {
    width: 24px;
    margin-right: var(--spacing-sm);
}

/* --------------------------------------------------------------------------
   10. Contact Page Specific
   -------------------------------------------------------------------------- */
.contact-container {
    max-width: 700px;
    margin: var(--spacing-xl) auto;
    padding: 0 var(--spacing-md);
}

.contact-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.contact-header h1 {
    color: var(--primary-900);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.contact-badge {
    background: var(--primary-100);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
    color: var(--neutral-900);
    display: block;
}

.contact-badge:hover {
    background: var(--primary-300);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--neutral-900);
}

.contact-badge i {
    color: var(--primary-700);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.contact-badge span {
    font-size: 0.9rem;
    font-weight: 500;
}

.newsletter-card {
    background: var(--neutral-100);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
}

.newsletter-card h2 {
    color: var(--primary-900);
    margin-bottom: var(--spacing-sm);
}

.newsletter-card p {
    color: var(--neutral-700);
    margin-bottom: var(--spacing-lg);
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(74, 144, 194, 0.2);
}

.btn-primary {
    background-color: var(--primary-700);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-900);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    background-color: var(--neutral-400);
    cursor: not-allowed;
    transform: none;
}

.message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.message.success {
    background-color: rgba(45, 138, 110, 0.1);
    color: var(--success);
}

.message.error {
    background-color: rgba(197, 48, 48, 0.1);
    color: var(--error);
}

/* --------------------------------------------------------------------------
   11. Utility Classes
   -------------------------------------------------------------------------- */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--neutral-500);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

/* --------------------------------------------------------------------------
   12. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .page-container {
        padding: var(--spacing-md);
    }

    .content-wrapper {
        padding: var(--spacing-lg);
    }

    .hero-banner {
        padding: var(--spacing-lg);
    }

    .hero-banner h1 {
        font-size: 1.25rem;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        width: 100%;
        max-width: 300px;
    }
}
