/* 
 * Modern, responsive CSS for education platform
 * Built with Bootstrap 5.3.7 compatibility
 */

/* CSS Custom Properties (Variables) */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #fbbf24;
    --success-color: #10b981;
    --whatsapp-color: #25d366;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-color: #e5e7eb;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Image Overlay Utilities */
.bg-gradient-to-top {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

/* Navigation Styles */
.navbar {
    background-color: var(--background-white) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(59, 130, 246, 0.1);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

/* Card Styles */
.card {
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background-color: var(--background-white);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Section Titles */
.section-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Footer Styles */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Badge Styles */
.badge-custom {
    background-color: var(--accent-color);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.badge-custom-2 {
    background-color: var(--success-color);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

/* Feature Icon */
.feature-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Course/Institution/Teacher Card Hover Effects */
.course-card,
.institution-card,
.classroom-card,
.teacher-card {
    transition: all 0.3s ease;
}

.course-card:hover,
.institution-card:hover,
.classroom-card:hover,
.teacher-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Utility Classes */
.object-fit-cover {
    object-fit: cover;
}

/* Form Styles */
.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.1);
}

.form-label {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: var(--success-color);
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
}

/* Accordion Styles */
.accordion-button {
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bs-light) !important;
    color: var(--bs-dark) !important;
}

/* Sticky Elements */
.sticky-top {
    z-index: 1020;
}

/* WhatsApp Styles */
.bi-whatsapp {
    color: var(--whatsapp-color);
}

.nav-link .bi-whatsapp {
    color: var(--whatsapp-color);
}

.nav-link:hover .bi-whatsapp {
    color: var(--whatsapp-color);
}

a:hover .bi-whatsapp {
    color: var(--whatsapp-color);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* Fix ALL placeholder font-color */
input::placeholder {
    color: #6b728044 !important;
}
