/* Course Section Styles */
.courses {
    padding: 80px 20px;
    background-color: var(--light-bg);
    position: relative;
    background: linear-gradient(135deg, var(--light-bg) 0%, #fff 100%);
}

.courses h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
    margin: 0 auto 3rem;
    padding-bottom: 1rem;
}

.courses h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.course-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.course-card:hover .course-img {
    transform: scale(1.05);
}

.course-card h3 {
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.course-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.course-card-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.course-detail-button,
.enquiry-button {
    background: var(--gradient-primary);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
    transition: var(--transition);
    color: var(--white);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.course-detail-button:hover,
.enquiry-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.3);
}

.course-detail-button {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.course-detail-button:hover {
     background: var(--primary-color);
     color: var(--white);
     box-shadow: 0 6px 20px rgba(255, 87, 34, 0.3);
     border-color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .course-card {
        padding: 25px;
    }

    .course-img {
        height: 230px;
    }

     .course-card-buttons {
        flex-direction: column;
        gap: 10px;
     }

      .course-detail-button,
     .enquiry-button {
        width: 100%;
     }
}

@media (max-width: 480px) {
    .courses {
        padding: 60px 15px;
    }

    .courses h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .course-card h3 {
        font-size: 1.3rem;
    }

    .course-img {
        height: 250px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex !important;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.selected-course {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #007bff;
    font-size: 1.2rem;
    font-weight: 500;
}

.selected-course i {
    font-size: 1.4rem;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1;
    transition: color 0.3s;
}

.close-button:hover {
    color: #333;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 500;
}

.form-group label i {
    margin-right: 0.5rem;
    color: #007bff;
}

#enquiryForm input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

#enquiryForm input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.submit-btn i {
    font-size: 1.1rem;
}

/* Toast Notification Styles */
.toast {
    position: fixed;
    top: 25px;
    right: 30px;
    border-radius: 12px;
    background: #fff;
    padding: 20px 35px 20px 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-left: 6px solid #28a745;
    overflow: hidden;
    transform: translateX(calc(100% + 30px));
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    z-index: 1001;
}

.toast.active {
    transform: translateX(0%);
}

.toast .toast-content {
    display: flex;
    align-items: center;
}

.toast-content i {
    font-size: 25px;
    color: #28a745;
    margin-right: 15px;
}

.toast-content .toast-message {
    display: flex;
    flex-direction: column;
}

.toast-message .toast-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.toast-message .toast-text {
    font-size: 14px;
    color: #666;
}

.toast .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #ddd;
}

.toast .toast-progress:before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: #28a745;
}

.toast.active .toast-progress:before {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    100% {
        right: 100%;
    }
}

/* Course Details Modal Styles */
.course-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1002;
    overflow-y: auto;
    padding: 20px;
}

.course-details-content {
    background: white;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.course-details-header {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.course-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-details-header h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    margin: 0;
    font-size: 2.5rem;
}

.close-details-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-details-button:hover {
    background: rgba(0,0,0,0.8);
    transform: rotate(90deg);
}

.course-details-body {
    padding: 30px;
}

.course-info-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.course-info-section:last-child {
    border-bottom: none;
}

.course-info-section h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-info-section h3 i {
    color: var(--primary-color);
}

.features-list, .prerequisites-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.features-list li, .prerequisites-list li {
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i, .prerequisites-list li i {
    color: var(--primary-color);
}

.duration-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.duration-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.duration-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.course-details-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.course-details-footer .enquiry-button {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Responsive Styles for Course Details */
@media (max-width: 768px) {
    .course-details-content {
        margin: 20px auto;
    }

    .course-details-header {
        height: 200px;
    }

    .course-details-header h2 {
        font-size: 1.8rem;
    }

    .course-details-body {
        padding: 20px;
    }

    .features-list, .prerequisites-list {
        grid-template-columns: 1fr;
    }

    .duration-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .course-details-header {
        height: 150px;
    }

    .course-details-header h2 {
        font-size: 1.5rem;
    }

    .course-info-section h3 {
        font-size: 1.3rem;
    }
} 