:root {
    --primary-color: #6f42c1;
    --secondary-color: #fd7e14;
    --dark-color: #2d3748;
    --light-color: #f8f9fa;
}

.bg-purple {
    background-color: var(--primary-color) !important;
}

.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Hero Sections */
.hero-section, .study-material-hero, .about-hero, .contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-top: 100px;
}

.min-vh-50 {
    min-height: 50vh;
}

.min-vh-100 {
    min-height: 100vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* Study Material Styles */
.study-material-hero {
    padding: 120px 0 80px;
}

.search-box .form-control {
    border-radius: 10px 0 0 10px;
}

.search-box .btn {
    border-radius: 0 10px 10px 0;
}

.resource-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.resource-card:hover {
    transform: translateY(-3px);
}

/* About Page Styles */
.team-card {
    transition: transform 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.team-card:hover {
    transform: translateY(-5px);
}

.achievement-card h2 {
    font-weight: 700;
}

/* Contact Page Styles */
.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(111, 66, 193, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
}

.contact-details h5 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.map-placeholder {
    border-radius: 10px;
    margin: 20px 0;
}

/* Cards */
.card {
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

.course-card, .resource-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.course-card:hover, .resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
}

/* Footer */
footer {
    margin-top: auto;
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Stats */
.stat-card h3 {
    font-weight: 700;
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* Accordion */
.accordion-button {
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(111, 66, 193, 0.1);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Courses Page Specific Styles */
.courses-hero {
    padding: 120px 0 80px;
}

.category-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.filter-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    position: sticky;
    top: 100px;
}

.category-filter .form-check {
    margin-bottom: 10px;
    padding-left: 0;
}

.category-filter .form-check-input {
    margin-right: 10px;
}

.price-original {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9em;
}

.price-discount {
    color: #dc3545;
    font-weight: 600;
}

.course-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.instructor-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.course-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-section {
        position: static;
        margin-bottom: 2rem;
    }
    
    .courses-hero .hero-title {
        font-size: 2.5rem;
    }
}

/* Study Material Page Specific Styles */
.study-material-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
}

.material-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.material-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.file-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.filter-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    position: sticky;
    top: 100px;
}

.category-filter .form-check {
    margin-bottom: 10px;
    padding-left: 0;
}

.category-filter .form-check-input {
    margin-right: 10px;
}

.preview-modal .modal-content {
    border-radius: 15px;
}

.preview-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.download-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: white;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.resource-category {
    margin-bottom: 3rem;
}

.category-header {
    border-left: 4px solid #6f42c1;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.material-thumbnail {
    height: 120px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.progress-ring {
    width: 80px;
    height: 80px;
}

.progress-ring-circle {
    stroke: #6f42c1;
    stroke-linecap: round;
    fill: none;
    stroke-width: 8;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.resource-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .study-material-hero {
        padding: 100px 0 60px;
    }
    
    .filter-section {
        position: static;
        margin-bottom: 2rem;
    }
    
    .material-thumbnail {
        height: 100px;
        font-size: 2rem;
    }
}