/* Courses Page Styles */

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 60px;
    height: 60px;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.logo-text .slogan {
    color: #666;
    font-size: 12px;
    margin: 0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 5px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.nav-links li a.active::after,
.nav-links li a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #007bff;
}

.nav-links li a.active {
    color: #007bff;
}

.nav-cta {
    margin-left: 10px;
}

.btn-login, .btn-register {
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login {
    color: #007bff;
    border: 1px solid #007bff;
    background-color: transparent;
}

.btn-login:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.btn-register {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.btn-register:hover {
    background-color: #0056b3;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 90;
}

/* Page Banner */
.page-banner {
    background-color: #4285f4;
    background-image: linear-gradient(135deg, #4285f4 0%, #2563eb 100%);
    padding: 130px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.05);
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
    background-attachment: fixed;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
}

.page-banner .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.page-banner h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
}

.breadcrumbs {
    font-size: 16px;
    color: #ffffff;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    display: inline-flex;
}

.breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.breadcrumbs a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.breadcrumbs span:not(.separator) {
    color: #ffffff;
    font-weight: 600;
}

/* Courses Section */
.courses-section {
    padding: 60px 0;
    background-color: #fff;
}

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

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #007bff;
}

.section-header p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

.instructor-icon {
    position: absolute;
    bottom: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.instructor-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.course-content {
    padding: 25px 20px 20px;
}

.course-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.course-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.rating {
    font-size: 14px;
    color: #666;
}

.stars {
    color: #FFB400;
    font-size: 14px;
}

.price-section {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 5px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
}

.original-price {
    font-size: 16px;
    color: #666;
    text-decoration: line-through;
    margin-left: 8px;
}

.discount {
    color: #dc3545;
    font-weight: 500;
    font-size: 14px;
}

.learn-more-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    font-weight: 500;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.learn-more-btn:hover {
    background-color: #0056b3;
}

/* View More Button */
.view-more-container {
    margin-top: 2rem;
    text-align: center;
}

.view-more-container .btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.view-more-container .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg, #1e56cc 0%, #2962FF 100%);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern-bg.svg');
    background-size: cover;
    opacity: 0.1;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.cta-section p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-section .btn {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid white;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-section .btn:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #007bff;
}

.footer-column p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #007bff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #007bff;
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info p i {
    margin-right: 10px;
    margin-top: 5px;
    color: #007bff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #999;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 25px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.enrollment-info {
    margin-top: 20px;
}

.enrollment-info p {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    color: #007bff;
    font-size: 18px;
    margin-top: 3px;
}

.contact-item h4 {
    font-weight: 600;
    margin: 0 0 5px;
    color: #333;
}

.contact-item p {
    margin: 0;
    color: #666;
}

.enrollment-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-call, .btn-whatsapp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-call {
    background-color: #007bff;
}

.btn-call:hover {
    background-color: #0056b3;
}

.btn-whatsapp {
    background-color: #25d366;
}

.btn-whatsapp:hover {
    background-color: #1da851;
}

/* Enhanced Responsive Styles */
@media (max-width: 992px) {
    .nav-links li {
        margin: 0 8px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .category-filters {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .category-filter {
        margin: 5px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 5px 0;
    }
    
    .navbar {
        padding: 0 15px;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text .slogan {
        font-size: 10px;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        width: 80%;
        height: 100vh;
        padding: 80px 0;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        align-items: center;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        padding: 8px 15px;
        display: block;
    }
    
    .mobile-overlay.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .nav-cta {
        margin: 10px 0 0;
        width: 100%;
    }
    
    .btn-login, .btn-register {
        display: block;
        width: 80%;
        margin: 5px auto;
        text-align: center;
    }
    
    .page-banner {
        padding: 110px 0 30px;
    }
    
    .page-banner h1 {
        font-size: 28px;
    }
    
    .page-banner h1::after {
        width: 60px;
    }
    
    .breadcrumbs {
        font-size: 14px;
    }
    
    .section-header h2,
    .cta-section h2 {
        font-size: 26px;
    }
    
    .section-header p,
    .cta-section p {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
        gap: 20px;
        padding: 0 10px;
    }
    
    .course-content h3 {
        font-size: 16px;
    }
    
    .current-price {
        font-size: 18px;
    }
    
    .cta-section .btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .price-section {
        flex-wrap: wrap;
    }
    
    .category-filters {
        overflow-x: auto;
        padding-bottom: 15px;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    
    .category-filter {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .price-filter {
        margin-top: 20px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .logo img {
        width: 45px;
        height: 45px;
        margin-right: 5px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .page-banner {
        padding: 90px 0 30px;
    }
    
    .courses-section {
        padding: 40px 0;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .course-image {
        height: 200px;
    }
    
    .enrollment-actions {
        flex-direction: column;
    }
    
    .enrollment-actions .btn {
        margin: 5px 0;
        width: 100%;
    }
    
    .section-header h2,
    .cta-section h2 {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .course-card {
        margin-bottom: 20px;
    }
    
    .course-image {
        height: 180px;
    }
    
    .course-content {
        padding: 15px;
    }
    
    .course-rating {
        margin-bottom: 8px;
    }
    
    .learn-more-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .stars {
        font-size: 14px;
    }
    
    .category-filter {
        padding: 6px 12px;
        font-size: 13px;
        margin: 3px;
    }
}

/* Styling for additional courses section */
.additional-courses {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

@media (max-width: 768px) {
    .additional-courses {
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .additional-courses {
        grid-template-columns: 1fr;
    }
} 