/* IdeaSoft Academy Custom Theme - Modern 2020s Style */

:root {
    /* Brand Colors */
    --idea-green: #A2D45E;
    --idea-blue: #0075C9;
    --idea-blue-rgb: rgb(0, 117, 201);
    
    /* Color Variations */
    --idea-green-50: #f8fcf3;
    --idea-green-100: #f2f9eb;
    --idea-green-200: #e5f3d7;
    --idea-green-300: #c4e494;
    --idea-green-400: #A2D45E;
    --idea-green-500: #8abc4a;
    --idea-green-600: #72a53c;
    
    --idea-blue-50: #f0f8fd;
    --idea-blue-100: #e6f3fb;
    --idea-blue-200: #cce7f7;
    --idea-blue-300: #99cff0;
    --idea-blue-400: #0075C9;
    --idea-blue-500: #005c9e;
    --idea-blue-600: #004a80;
    
    /* Extended Color Palette */
    --idea-yellow-50: #fffbeb;
    --idea-yellow-100: #fef6d6;
    --idea-yellow-200: #feeda8;
    --idea-yellow-300: #fde475;
    --idea-yellow-400: #FDD13A;
    --idea-yellow-500: #fcb413;
    --idea-yellow-600: #e69c00;
    
    --idea-purple-50: #f7f5fe;
    --idea-purple-100: #f0ebfc;
    --idea-purple-200: #e1d7f9;
    --idea-purple-300: #c2b5f5;
    --idea-purple-400: #9a87ed;
    --idea-purple-500: #7159e4;
    --idea-purple-600: #5a43cb;
    
    /* Neutral Colors */
    --idea-white: #ffffff;
    --idea-gray-50: #fafafa;
    --idea-gray-100: #f5f5f5;
    --idea-gray-200: #eeeeee;
    --idea-gray-300: #e0e0e0;
    --idea-gray-400: #bdbdbd;
    --idea-gray-500: #9e9e9e;
    --idea-gray-600: #757575;
    --idea-gray-700: #616161;
    --idea-gray-800: #424242;
    --idea-gray-900: #212121;
    --idea-red-500: #dc3545;
    --idea-red-400: #e25563;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
}

/* Common Elements */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--idea-gray-900);
    line-height: 1.7;
    background-color: var(--idea-white);
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--idea-gray-900);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--idea-gray-600);
    margin-bottom: 3rem;
    max-width: 700px;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    padding: 0.75rem 1.5rem;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--idea-blue-400), var(--idea-blue-500));
    color: var(--idea-white);
    box-shadow: 0 4px 12px rgba(0, 117, 201, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--idea-blue-500), var(--idea-blue-600));
    box-shadow: 0 4px 15px rgba(0, 117, 201, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--idea-green-400), var(--idea-green-500));
    color: var(--idea-white);
    box-shadow: 0 4px 12px rgba(162, 212, 94, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--idea-green-500), var(--idea-green-600));
    box-shadow: 0 4px 15px rgba(162, 212, 94, 0.3);
}

.btn-outline-primary {
    background: var(--idea-white);
    color: var(--idea-blue-500);
    border: 1px solid var(--idea-blue-400);
}

.btn-outline-primary:hover {
    background: var(--idea-blue-100);
    color: var(--idea-blue-500);
    border-color: var(--idea-blue-500);
}

/* Cards */
.card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s ease;
    border: 1px solid var(--idea-gray-200);
    overflow: hidden;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Form Controls */
.form-control {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--idea-gray-300);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--idea-blue-400);
    box-shadow: 0 0 0 3px rgba(0, 117, 201, 0.1);
}

/* Accordion Styles */
.accordion-item {
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--idea-gray-200);
    overflow: hidden;
}

.accordion-button {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: var(--text-lg);
    color: var(--idea-gray-900);
    background-color: var(--idea-white);
}

.accordion-button:not(.collapsed) {
    color: var(--idea-blue-600);
    background-color: var(--idea-blue-50);
}

.accordion-button:focus {
    box-shadow: 0 0 0 2px var(--idea-blue-100);
    border-color: var(--idea-blue-200);
}

/* Remove the ugly arrow */
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230075C9' viewBox='0 0 16 16'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
    transition: transform 0.2s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230075C9' viewBox='0 0 16 16'%3E%3Cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3E%3C/svg%3E");
}

/* Testimonial cards */
.testimonial-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    background-color: var(--idea-white);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--idea-gray-200);
    transition: box-shadow 0.2s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--idea-white);
    box-shadow: var(--shadow-md);
}

/* Stats */
.stat-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background-color: var(--idea-white);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--idea-gray-200);
    transition: box-shadow 0.2s ease;
    text-align: center;
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background-color: var(--idea-blue-50);
    color: var(--idea-blue-500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.stat-value {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--idea-blue-500);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: var(--text-lg);
    color: var(--idea-gray-600);
}

/* Grid layouts */
.grid-container {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
