* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

/* Header */
.header {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
}

.logo-icon {
    font-size: 24px;
}

.logo-text strong {
    font-weight: 700;
}

.btn-saiba-mais {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-saiba-mais:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #e0effe 0%, #f0f4ff 100%);
    padding: 60px 40px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
    position: relative;
}

.hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(100, 150, 200, 0.3);
    border-radius: 50%;
    font-size: 32px;
    margin-bottom: 20px;
    color: #5ba3d0;
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
    line-height: 1.4;
}

.hero-description {
    font-size: 16px;
    color: #555;
    margin-top: 15px;
}

/* Search Section */
.search-section {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.search-dropdown {
    position: relative;
}

.dropdown-btn {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.dropdown-btn span {
    font-size: 16px;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 2px solid #2563eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    display: none;
    flex-direction: column;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
}

.dropdown-content.active {
    display: flex;
}

.dropdown-content a {
    padding: 12px 16px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f0f8ff;
    color: #2563eb;
    font-weight: 500;
}

.btn-search {
    width: 100%;
    padding: 14px 24px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-search:active {
    transform: translateY(0);
}

/* Courses Section */
.courses-section {
    margin-bottom: 50px;
}

.courses-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a202c;
}

.courses-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.course-card {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
}

.course-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #2563eb;
    transform: translateY(-4px);
}

.course-icon {
    font-size: 48px;
    min-width: 60px;
    text-align: center;
}

.course-info {
    flex: 1;
}

.course-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.course-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

.course-category,
.course-format,
.course-price {
    padding: 4px 8px;
    background-color: #f5f7fa;
    border-radius: 4px;
    color: #555;
}

.course-price {
    background-color: #fef3e2;
    color: #d97706;
    font-weight: 600;
}

.course-price.free {
    background-color: #dcfce7;
    color: #16a34a;
}

.course-certificate {
    background-color: #f0f9ff;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.course-location {
    background-color: #f5e6ff;
    color: #7e22ce;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.arrow {
    font-size: 24px;
    color: #999;
    font-weight: 300;
}

.course-card:hover .arrow {
    color: #2563eb;
}

/* Info Section */
.info-section {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    padding: 25px;
    text-align: center;
    border-right: 1px solid #eee;
    transition: all 0.3s ease;
}

.info-card:last-child {
    border-right: none;
}

.info-card:hover {
    transform: translateY(-4px);
}

.info-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a202c;
}

.info-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .hero {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .search-container {
        grid-template-columns: 1fr;
    }

    .search-section {
        padding: 20px;
    }

    .course-card {
        flex-direction: column;
        text-align: center;
    }

    .course-details {
        justify-content: center;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .info-card {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 25px;
    }

    .info-card:last-child {
        border-bottom: none;
    }

    .courses-section h2,
    .hero h1 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 14px;
    }

    .btn-saiba-mais {
        padding: 8px 16px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 18px;
    }

    .course-info h3 {
        font-size: 16px;
    }

    .course-details {
        font-size: 12px;
        gap: 10px;
    }
}

/* Results Page Styles */
.results-header {
    padding: 40px 0 30px 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.back-button-container {
    margin-bottom: 20px;
}

.btn-back {
    background-color: white;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background-color: #2563eb;
    color: white;
}

.results-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.results-info {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Filters Applied */
.filters-applied {
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #2563eb;
}

.filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    background-color: white;
    color: #2563eb;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #2563eb;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
}

/* Results Grid */
.results-section {
    margin-bottom: 50px;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.results-grid .course-card {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
}

.results-grid .course-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #2563eb;
    transform: translateY(-4px);
}

/* No Results */
.no-results {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px;
    margin-bottom: 50px;
}

.no-results-content {
    text-align: center;
    background-color: white;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-results-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.no-results-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Responsive Results */
@media (max-width: 768px) {
    .results-header h1 {
        font-size: 20px;
    }

    .results-info {
        font-size: 14px;
    }

    .filters-tags {
        gap: 8px;
    }

    .filter-tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .results-grid .course-card {
        flex-direction: column;
        text-align: center;
    }

    .course-details {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .back-button-container {
        margin-bottom: 15px;
    }

    .btn-back {
        padding: 8px 16px;
        font-size: 12px;
    }

    .results-header h1 {
        font-size: 18px;
    }

    .results-info {
        font-size: 12px;
    }

    .no-results-content {
        padding: 40px 20px;
    }

    .no-results-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .no-results-content h2 {
        font-size: 18px;
    }

    .no-results-content p {
        font-size: 14px;
    }
}

/* Course Details Page Styles */
.course-details-container {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-detail {
    display: flex;
    flex-direction: column;
}

.course-detail-header {
    background: linear-gradient(135deg, #e0effe 0%, #f0f4ff 100%);
    padding: 40px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.course-detail-icon {
    font-size: 80px;
    min-width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-detail-title-section {
    flex: 1;
}

.course-detail-title-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-item {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.course-detail-content {
    padding: 40px;
}

/* Quick Info Boxes */
.quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #e0e0e0;
}

.info-box {
    background-color: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
}

.price-badge {
    font-size: 18px;
    font-weight: 700;
    color: #d97706;
    background-color: #fef3e2;
    padding: 4px 8px;
    border-radius: 4px;
}

.price-badge.free {
    color: #16a34a;
    background-color: #dcfce7;
}

/* Detail Sections */
.detail-section {
    margin-bottom: 40px;
}

.detail-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Modules List */
.modules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modules-list li {
    background-color: #f9fafb;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modules-list li:before {
    content: "✓";
    color: #2563eb;
    font-weight: 700;
    font-size: 18px;
}

/* Instructor Card */
.instructor-card {
    background-color: #f0f9ff;
    border: 2px solid #0369a1;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.instructor-icon {
    font-size: 48px;
    min-width: 60px;
    text-align: center;
}

.instructor-info {
    flex: 1;
}

.instructor-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}

.instructor-subject {
    font-size: 14px;
    color: #666;
}

/* CTA Section */
.cta-section {
    background-color: #f9fafb;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border-top: 2px solid #e0e0e0;
    margin-top: 40px;
}

.btn-enroll {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.btn-enroll:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cta-note {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Error Container */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 40px;
}

.error-content {
    text-align: center;
    background-color: white;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.error-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Responsive Course Details */
@media (max-width: 768px) {
    .course-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .course-detail-icon {
        font-size: 60px;
    }

    .course-detail-title-section h1 {
        font-size: 24px;
    }

    .course-meta {
        justify-content: center;
        gap: 12px;
    }

    .course-detail-content {
        padding: 20px;
    }

    .quick-info {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .instructor-card {
        flex-direction: column;
        text-align: center;
    }

    .detail-section h2 {
        justify-content: center;
    }

    .modules-list li {
        font-size: 14px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .course-detail-header {
        padding: 20px;
    }

    .course-detail-icon {
        font-size: 48px;
        min-width: 80px;
        height: 80px;
    }

    .course-detail-title-section h1 {
        font-size: 18px;
    }

    .meta-item {
        font-size: 12px;
    }

    .quick-info {
        grid-template-columns: 1fr;
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .course-detail-content {
        padding: 15px;
    }

    .detail-section {
        margin-bottom: 25px;
    }

    .detail-section h2 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .btn-enroll {
        width: 100%;
        padding: 12px 24px;
    }

    .cta-section {
        padding: 20px;
        margin-top: 30px;
    }
}
