/* Custom CSS for Re-Coaching Men */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #ff8f65;
    --dark-bg: #1a1a1a;
    --darker-bg: #0d0d0d;
    --text-light: #f8f9fa;
    --text-gray-600: #adb5bd;
    --warning-color: #ffc107;
    --success-color: #28a745;
}

/* Loading Spinner Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-container {
    text-align: center;
    color: var(--text-light);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 53, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-message {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

.loading-submessage {
    font-size: 14px;
    color: var(--text-gray-600);
    margin-bottom: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disable form elements during loading */
.form-loading {
    pointer-events: none;
    opacity: 0.6;
}

.form-loading input,
.form-loading button,
.form-loading select,
.form-loading textarea {
    pointer-events: none;
    opacity: 0.6;
}

/* Loading button state */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--darker-bg);
}

/* Ensure proper text colors on dark backgrounds */
.bg-dark,
.bg-secondary,
.bg-black,
.bg-darker {
    color: var(--text-light) !important;
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-secondary h1,
.bg-secondary h2,
.bg-secondary h3,
.bg-secondary h4,
.bg-secondary h5,
.bg-secondary h6,
.bg-black h1,
.bg-black h2,
.bg-black h3,
.bg-black h4,
.bg-black h5,
.bg-black h6 {
    color: var(--text-light) !important;
}

/* Improved text readability */
.text-readable {
    color: var(--text-light) !important;
    text-align: center;
}

.text-muted {
    color: var(--text-gray-600) !important;
}

/* Subheading colors for better visibility */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-light) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

/* Donation Hero Section with Background */
.donation-hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.pexels.com/photos/1043471/pexels-photo-1043471.jpeg') center/cover;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px 0;
    margin-top: -80px;
}

.donation-hero-overlay {
    position: relative;
    z-index: 2;
}

/* Course Details Background */
.course-details-content {
    background: linear-gradient(145deg, rgba(35, 35, 35, 0.8), rgba(20, 20, 20, 0.8));
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

/* Other Courses Thumbnails */
.other-courses-section {
    background: linear-gradient(145deg, rgba(45, 45, 45, 0.95), rgba(26, 26, 26, 0.95));
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    height: fit-content;
    margin: 0 5px;
}

.other-courses-container {
    max-width: 100%;
}

.other-course-thumbnail {
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 12px;
}

.other-course-thumbnail:last-child {
    margin-bottom: 0;
}

.other-course-thumbnail:hover {
    transform: translateY(-3px);
}

.thumbnail-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.thumbnail-card:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.thumbnail-image-container {
    position: relative;
    height: 80px;
    overflow: hidden;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-card:hover .thumbnail-image {
    transform: scale(1.05);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.8), rgba(255, 143, 101, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-card:hover .thumbnail-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.thumbnail-info {
    padding: 10px;
}

.thumbnail-info h6 {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}

.price-badge {
    background: linear-gradient(45deg, #ff6b35, #ff8f65);
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.thumbnail-info small {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.course-details-small {
    margin-top: 4px;
}

.course-details-small small {
    font-size: 0.6rem;
    text-transform: none;
    letter-spacing: 0.2px;
    line-height: 1.1;
}

.course-description-small {
    font-size: 0.65rem;
    line-height: 1.2;
    margin-bottom: 6px;
}

.price-badge-large {
    background: linear-gradient(45deg, #ff6b35, #ff8f65);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Donation Thumbnail Styles */
.donation-thumbnail {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.donation-thumbnail:hover {
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.donation-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 143, 101, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.donation-icon {
    font-size: 2rem;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.donation-badge {
    background: linear-gradient(45deg, #ff6b35, #ff8f65);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive design for other courses */
@media (max-width: 768px) {
    .other-courses-section {
        padding: 15px;
        position: static;
    }
    
    .other-course-thumbnail {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .thumbnail-image-container {
        height: 100px;
    }
    
    .thumbnail-info {
        padding: 12px;
    }
    
    .thumbnail-info h6 {
        font-size: 0.85rem;
    }
    
    .price-badge {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}


/* Training Date Selection */
.training-date-selection .form-select {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid #444;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
}

.training-date-selection .form-select:focus {
    background: rgba(45, 45, 45, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    color: white;
}

.training-date-selection .form-select option {
    background: #2d2d2d;
    color: white;
}
/* Success and Cancel Pages */
.success-card,
.cancel-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    padding: 60px 40px;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.success-icon,
.cancel-icon,
.error-icon {
    margin-bottom: 20px;
}
/* Typography */
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    color: white;
}

/* Navigation */
.navbar {
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Prevent fixed header from overlapping section titles on anchor jump */
#courses {
    scroll-margin-top: 30px;
}

/* Offset for Contact anchor so title isn't cut off */
#contact {
    scroll-margin-top: 30px;
}

/* Offset for About anchor */
#about {
    scroll-margin-top: 30px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px 0;
    margin-top: 0;
}

/* Responsive hero section spacing */
@media (max-width: 768px) {
    .hero-section {
        margin-top: 0;
        padding: 100px 0 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        margin-top: 0;
        padding: 80px 0 40px 0;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('https://images.pexels.com/photos/1043471/pexels-photo-1043471.jpeg') center/cover; */
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    opacity: 0.1;
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray-600);
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.hero-image img {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Course Cards */
.course-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.course-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-content {
    padding: 30px;
}

/* Course Actions Buttons */
.course-actions {
    margin-top: auto;
}

.course-actions .btn {
    transition: all 0.3s ease;
}

.course-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.course-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.course-description {
    color: var(--text-gray-600);
    margin-bottom: 20px;
}

.course-details {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.course-sections {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.sections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.section-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.course-features {
    list-style: none;
    margin-bottom: 25px;
}

.course-features li {
    color: white;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.course-pricing {
    margin-bottom: 25px;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.original-price {
    font-size: 1.2rem;
    color: var(--text-gray-600);
    text-decoration: line-through;
    margin-left: 10px;
}

/* Achievement Items */
.achievement-item {
    display: flex;
    align-items: center;
}

.achievement-item i {
    font-size: 2rem;
    width: 60px;
}

/* Testimonials */
.testimonial-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-name {
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-rating {
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--text-gray-600);
    font-style: italic;
    line-height: 1.6;
}

/* Contact Form */
.contact-form .form-control {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid #444;
    color: white;
    padding: 15px;
    border-radius: 8px;
}

.contact-form .form-control:focus {
    background: rgba(45, 45, 45, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    color: white;
}

.contact-form .form-control::placeholder {
    color: #aaa;
}

/* Background Sections */
.bg-gradient-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.bg-secondary {
    background-color: var(--dark-bg) !important;
}

/* Social Links */
.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Payment Methods */
.payment-methods .btn {
    padding: 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.payment-methods .btn:hover {
    transform: translateY(-2px);
}

/* Auth Pages */
.auth-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.auth-form .form-control {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid #444;
    color: white;
    padding: 15px;
    border-radius: 8px;
}

.auth-form .form-control:focus {
    background: rgba(45, 45, 45, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    color: white;
}

.auth-form .form-control::placeholder {
    color: #aaa;
}

.auth-form .input-group-text {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid #444;
    color: #ccc;
}

/* Enrollment Page */
.enrollment-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.course-summary {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #444;
}

.date-selection {
    display: grid;
    gap: 15px;
}

.date-option {
    margin-bottom: 0;
}

.date-card {
    background: rgba(45, 45, 45, 0.5);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.date-option input[type="radio"]:checked+label .date-card {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.date-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.payment-option {
    margin-bottom: 15px;
}

.payment-card {
    background: rgba(45, 45, 45, 0.5);
    border: 2px solid #444;
    border-radius: 10px;
    padding: 15px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.payment-option input[type="radio"]:checked+label .payment-card {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.payment-card:hover {
    border-color: var(--primary-color);
}

/* Donation Page Styles */
.donation-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid #333;
}

.amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amount-btn {
    flex: 1;
    min-width: 80px;
    transition: all 0.3s ease;
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.donation-form .form-control {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid #444;
    color: white;
    padding: 15px;
    border-radius: 8px;
}

.donation-form .form-control:focus {
    background: rgba(45, 45, 45, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    color: white;
}

.donation-form .form-control::placeholder {
    color: #aaa;
}

.donation-form .input-group-text {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid #444;
    color: white;
}

.donation-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Impact Cards */
.impact-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    height: 100%;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
}

.impact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Donation Items */
.donation-item {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #333;
    transition: transform 0.3s ease;
}

.donation-item:hover {
    transform: translateY(-3px);
}

.donation-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.donation-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Dashboard Styles */
.dashboard-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #333;
    margin-bottom: 20px;
}

.user-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
}

.course-progress-card {
    background: rgba(45, 45, 45, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #444;
    transition: transform 0.3s ease;
}

.course-progress-card:hover {
    transform: translateY(-3px);
}

.course-progress-card .course-image {
    height: 120px;
    overflow: hidden;
}

.course-progress-card .course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-progress-card .course-info {
    padding: 15px;
}

.stats-list {
    space-y: 20px;
}

.stat-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.stat-label {
    color: #ccc;
    font-size: 0.9rem;
}

/* Success Page */
.success-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    padding: 60px 40px;
    border: 1px solid #333;
}

.success-icon {
    font-size: 4rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success/Error Messages */
.alert-custom {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    font-weight: 500;
}

.alert-success-custom {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.alert-error-custom {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-overlay {
        padding: 60px 0;
    }

    .course-content {
        padding: 20px;
    }

    .amount-buttons {
        flex-direction: column;
    }

    .amount-btn {
        min-width: 100%;
    }

    .donation-card {
        padding: 30px 20px;
    }

    .user-stats {
        flex-direction: column;
        gap: 15px;
    }

    .sections-grid {
        grid-template-columns: 1fr;
    }
}

/* Make the last course card span full width when odd number of cards on large screens */
@media (min-width: 992px) {
    /* Make only the last card full width when the total count is odd */
    #courses .row.g-4 > .col-lg-6:nth-last-child(1):nth-child(odd) {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .course-card {
        margin-bottom: 20px;
    }

    .auth-card,
    .enrollment-card {
        padding: 30px 20px;
    }
}

/* Course Details Page */
.course-image-large {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.course-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.course-title-large {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.course-description-large {
    font-size: 1.1rem;
    line-height: 1.8;
}

.course-stats {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
}

.stat-card {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.course-pricing-large {
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.current-price-large {
    font-size: 2.5rem;
    font-weight: 700;
}

.original-price-large {
    font-size: 1.5rem;
}

.course-features {
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.course-curriculum {
    max-width: 800px;
    margin: 0 auto;
}

.course-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.course-detail-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
}

.course-category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 107, 53, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.course-detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.course-detail-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.course-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
    padding: 10px;
}

.stat-item i {
    font-size: 1.8rem;
    display: block;
}

.course-pricing-container {
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(255, 143, 101, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.pricing-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.original-price {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: var(--text-gray-600);
}

.savings-badge {
    background: var(--warning-color);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.available-dates-preview {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.date-preview-item {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.date-day {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.date-time {
    font-size: 0.8rem;
    color: var(--warning-color);
}

.course-curriculum-container {
    max-width: 900px;
    margin: 0 auto;
}

.curriculum-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.curriculum-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.curriculum-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
}

.curriculum-content {
    flex: 1;
}

.curriculum-status {
    color: var(--text-gray-600);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Dashboard Improvements */
.dashboard-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #333;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.course-progress-card {
    background: rgba(45, 45, 45, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #444;
    transition: all 0.3s ease;
}

.course-progress-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.2);
}

.course-progress-card .course-image {
    height: 140px;
    overflow: hidden;
}

.course-progress-card .course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-progress-card:hover .course-image img {
    transform: scale(1.05);
}

.course-progress-card .course-info {
    padding: 20px;
}

.progress-bar.bg-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)) !important;
}

/* Improved Course Cards */
.course-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.25);
}

.course-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.08);
}

/* Profile Page Styles */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-role-badge {
    margin-top: 0.5rem;
}

.account-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-gray-600);
}

.detail-value {
    color: var(--text-light);
    font-weight: 500;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link-item:hover {
    background-color: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.nav-link-item i {
    width: 20px;
    text-align: center;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-description {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.activity-amount {
    color: var(--success-color);
    font-weight: 600;
}

.activity-date {
    color: var(--text-gray-600);
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Custom Alert Styles */
.custom-alert {
    border: none;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
}

.custom-alert.alert-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-left-color: #a71e2a;
    color: white;
}

.custom-alert.alert-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    border-left-color: #155724;
    color: white;
}

.custom-alert .alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.custom-alert.alert-danger .alert-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.custom-alert.alert-success .alert-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.custom-alert .alert-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.custom-alert .alert-message {
    font-size: 0.95rem;
    opacity: 0.95;
}

.custom-alert .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.custom-alert .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transform: scale(1.1);
}

/* Profile Image Styles */
.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.profile-image-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray-600);
    font-size: 3rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* Header Profile Image */
.header-profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-profile-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Profile Dropdown Styles */
.profile-dropdown {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 280px;
    padding: 0.5rem 0;
}

.profile-dropdown .dropdown-header {
    padding: 1rem;
    background: rgba(255, 107, 53, 0.1);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.dropdown-profile-image {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.dropdown-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-profile-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.profile-dropdown-item {
    color: var(--text-light);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    background: none;
}

.profile-dropdown-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.profile-dropdown-item i {
    width: 20px;
    text-align: center;
}

.logout-item:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.profile-dropdown .dropdown-divider {
    border-color: rgba(255, 107, 53, 0.2);
    margin: 0.5rem 0;
}

/* Profile Page Responsive */
@media (max-width: 768px) {
    .user-info {
        margin-top: 1rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .activity-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .profile-image,
    .profile-image-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .profile-image-placeholder {
        font-size: 2.5rem;
    }
    
    .profile-dropdown {
        min-width: 250px;
    }
}