/* Education Page Styles - Updated */
:root {
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --secondary-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --info-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --error-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Hero Section */
.education-hero {
    background: var(--primary-gradient);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.education-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,0 1000,0 1000,100"/></svg>');
    background-size: cover;
    background-position: bottom;
}

.education-hero-content {
    position: relative;
    z-index: 2;
}

.education-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.education-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.education-hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* Programs Section */
.programs-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.program-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

.program-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.program-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    background: var(--secondary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.program-title-group h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.program-subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.program-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.program-subjects {
    margin-bottom: 2rem;
}

.program-subjects h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.subjects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subject-tag {
    background: var(--secondary-gradient);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.3s ease;
}

.subject-tag:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

.program-features {
    margin-bottom: 2rem;
    flex: 1;
}

.program-features h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.features-list li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
}

.program-footer {
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    margin-top: auto;
}

/* Enhanced Program Button */
.program-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.program-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.program-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    color: white;
}

.program-btn:hover::before {
    left: 100%;
}

.program-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success Stories Section */
.success-section {
    padding: 80px 0;
    background: white;
}

.success-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-gradient);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Testimonials */
.testimonials-carousel-container {
    position: relative;
    margin-top: 3rem;
    min-height: 400px;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 100%;
}

.testimonials-slide {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.testimonials-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonials-slide.prev {
    transform: translateX(-100%);
}

.testimonials-slide.next {
    transform: translateX(100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-message {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h5 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 16px;
}

.author-university {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: #fbbf24;
    font-size: 1.2rem;
}

/* Testimonials Controls */
.testimonials-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 -20px;
    z-index: 10;
    pointer-events: none;
}

.testimonials-controls .carousel-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonials-controls .carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Testimonials Indicators */
.testimonials-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.testimonials-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-indicators .indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.testimonials-indicators .indicator:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* CTA Buttons */
.cta-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    color: var(--primary-color);
}

.cta-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-3px);
    border-color: white;
}

/* Enhanced Modal Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 2rem;
}

.modal-title-section {
    text-align: center;
    flex: 1;
    padding: 0 2rem;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 500;
}

.modal-body {
    padding: 2rem;
}

/* Enhanced Form Styles */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    border-radius: 12px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    padding: 14px 18px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: white;
    outline: none;
}

.form-control:hover {
    border-color: rgba(37, 99, 235, 0.4);
}

.form-check-input {
    border-radius: 6px;
    border: 2px solid rgba(226, 232, 240, 0.8);
    width: 1.2rem;
    height: 1.2rem;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

/* Modern Flash Messages */
.flash-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 350px;
    max-width: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
}

.flash-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.flash-toast.success {
    border-left: 5px solid #10b981;
}

.flash-toast.error {
    border-left: 5px solid #ef4444;
}

.flash-toast.info {
    border-left: 5px solid #3b82f6;
}

.flash-toast.warning {
    border-left: 5px solid #f59e0b;
}

.flash-toast-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.flash-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.flash-toast.success .flash-toast-icon {
    color: #10b981;
}

.flash-toast.error .flash-toast-icon {
    color: #ef4444;
}

.flash-toast.info .flash-toast-icon {
    color: #3b82f6;
}

.flash-toast.warning .flash-toast-icon {
    color: #f59e0b;
}

.flash-toast-message {
    flex: 1;
    color: #374151;
    font-weight: 500;
    line-height: 1.5;
}

.flash-toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.flash-toast-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.flash-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    animation: progress 5s linear forwards;
}

.flash-toast.error .flash-toast-progress {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.flash-toast.info .flash-toast-progress {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.flash-toast.warning .flash-toast-progress {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Loading State */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.form-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 11;
}

/* Enhanced Submit Button */
.program-btn.w-100 {
    background: var(--primary-gradient);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.program-btn.w-100::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.program-btn.w-100:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.program-btn.w-100:hover:not(:disabled)::before {
    left: 100%;
}

.program-btn.w-100:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .education-hero h1 {
        font-size: 2.5rem;
    }
    
    .education-hero p {
        font-size: 1.1rem;
    }
    
    .education-hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .program-card {
        padding: 2rem;
    }
    
    .program-header {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-controls .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .testimonial-message {
        font-size: 14px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .flash-toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .education-hero {
        padding: 100px 0 60px;
    }
    
    .programs-section {
        padding: 60px 0;
    }
    
    .success-section {
        padding: 60px 0;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .program-card {
        padding: 1.5rem;
    }
    
    .program-icon {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
    }
    
    .testimonials-controls {
        padding: 0 10px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .subjects-list {
        justify-content: center;
    }
    
    .subject-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}