
/*
============================================================
 Jordan Guild Tech - Courses Page Styles (courses.css)
 This file contains CSS rules unique to the courses page.
 All common, site-wide styles are in common.css.
============================================================
*/

/* ==================== PAGE HEADER (BANNER) ==================== */
.page-header.courses-page-header {
    background-color: #111827;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    padding: 200px 10%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-header.courses-page-header .page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-header.courses-page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.page-header.courses-page-header p {
    font-size: 1.2rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== COURSE FILTERS ==================== */
.course-filters {
    padding: 30px 5%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-btn {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 12px 24px;
    margin: 5px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.filter-btn.active {
    background-color: #111827;
    color: #ffffff;
    border-color: #111827;
}

/* ==================== COURSE GRID ==================== */
.course-grid {
    padding: 60px 5%;
    background-color: #f9fafb;
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card-detailed {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.course-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.course-card-detailed .card-image-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content-detailed {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content-detailed h2 {
    font-size: 1.4rem;
    color: #111827;
    margin: 0 0 10px 0;
}

.card-content-detailed p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

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

.card-tags span {
    display: inline-block;
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 3px;
}

.card-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-weight: 500;
    margin-top: auto;
    margin-bottom: 20px;
}

.card-duration svg {
    width: 20px;
    height: 20px;
    fill: #6b7280;
}

.enquire-btn {
    display: block;
    background-color: #1e3a8a;
    color: #ffffff;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.enquire-btn:hover {
    background-color: #111827;
}

/* ==================== POP-UP STYLES ==================== */
#enquire-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.enquire-popup {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#enquire-popup-overlay.is-active .enquire-popup {
    transform: scale(1);
    opacity: 1;
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #4b5563;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.popup-close-btn:hover {
    color: #111827;
}

.popup-content h2 {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 10px;
}

.popup-content p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 20px;
}

.popup-content .form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.popup-content label {
    font-size: 0.9rem;
    color: #111827;
    font-weight: 600;
    margin-bottom: 5px;
}

.popup-content input,
.popup-content textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.popup-content .submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    background-color: #ff8c00;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-content .submit-btn:hover {
    background-color: #e57a00;
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 992px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-header.courses-page-header {
        padding: 80px 10% 60px 5%;
        text-align: center;
    }
    .page-header.courses-page-header .page-header-content {
        text-align: center;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header.courses-page-header {
        padding: 70px 10% 50px 5%;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-header.courses-page-header {
        padding: 60px 5% 40px 5%;
    }
    .page-header.courses-page-header h1 {
        font-size: 1.8rem;
    }
    .page-header.courses-page-header p {
        font-size: 0.8rem;
    }
    .enquire-popup {
        padding: 20px;
    }
}


/* ==================== RESPONSIVE LAYOUT & SIZING ==================== */

/* --- Tablet and Larger Mobile Phones (992px) --- */
@media (max-width: 992px) {
    /* Multi-column layouts revert to a single column */
    .excellence-container,
    .about-container,
    .mission-vision-container,
    .why-choose-us-container,
    .contact-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    /* Course grid switches to 2 columns */
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Responsive image sizes */
    .about-image, .mission-vision-image, .choose-us-image {
        flex: 1;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    .about-image img, .mission-vision-image img, .choose-us-image img {
        width: 100%;
    }
    
    /* Page header sizing for tablets */
    .page-header.courses-page-header,
    .page-header.aboutus-page-header,
    .page-header.contact-page-header {
        padding: 80px 5%;
        text-align: center;
    }

    .hero-content h1,
    .about-text h2,
    .excellence-content h2,
    .courses-header h2,
    .testimonials-container h2,
    .cta-content h2,
    .founders-container h2,
    .values-container h2,
    .contact-info-block h2 {
        font-size: 2.5rem;
    }
}

/* --- Small Mobile Phones (768px) --- */
@media (max-width: 768px) {
    /* Page headers shrink further */
    .page-header.courses-page-header,
    .page-header.aboutus-page-header,
    .page-header.contact-page-header {
        padding: 60px 5%;
    }

    /* All grid and flex layouts become a single column */
    .grid-container,
    .testimonials-grid,
    .values-grid,
    .founders-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 30px;
    }

    /* Text content shrinks for readability */
    .hero-content h1,
    .about-text h2,
    .excellence-content h2,
    .courses-header h2,
    .testimonials-container h2,
    .cta-content h2,
    .founders-container h2,
    .values-container h2,
    .contact-info-block h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p,
    .about-text p,
    .excellence-content p,
    .card-content-detailed p,
    .testimonial-text {
        font-size: 1rem;
    }

    /* Other section styles and spacing */
    .excellence-section,
    .about-intro,
    .timeline-section,
    .courses-section,
    .contact-content-section,
    .map-section,
    .testimonials-section,
    .why-choose-us-section {
        padding: 40px 5%;
    }

    /* Specific element sizes */
    .stat-number-outlined {
        font-size: 4rem;
    }
    .timeline-container::before,
    .timeline-item::after {
        left: 20px;
    }
    .timeline-item, .timeline-item-reversed {
        padding-left: 50px;
        flex-direction: column;
        align-items: flex-start;
    }
    .timeline-image {
        order: 1;
        margin-bottom: 20px;
    }
    .timeline-content {
        order: 2;
    }
    .courses-slider-track {
        flex-direction: column;
        gap: 20px;
    }
    .course-card {
        max-width: 100%;
        margin: 0 auto;
    }
    .slider-arrow, .slider-pagination {
        display: none !important;
    }
}