/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1e3a4f 0%, #2d5872 100%);
    background-image: url('/images/header-img.jpeg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    padding: 100px 20px;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: white;
}

.hero-subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.95;
}

/* Search Section */
.search-section {
    background: #2D2D2D;
    padding: 40px 20px;
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #28732C;
    margin: 0 0 30px 0;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.search-field {
    position: relative;
}

.search-select {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: #2c3e50;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232c3e50' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    transition: all 0.3s ease;
}

.search-select:hover {
    background-color: #f8f9fa;
}

.search-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 115, 44, 0.2);
}

.search-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background: #28732C;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #1e5a22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 115, 44, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

/* Exams Section */
.exams-section {
    padding: 60px 20px;
    background: #D5EBE4;
}

.exams-container {
    max-width: 1200px;
    margin: 0 auto;
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.exam-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.exam-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.exam-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    position: relative;
}

.exam-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.exam-card:hover .exam-image img {
    transform: scale(1.1);
}

.exam-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
}

.exam-placeholder i {
    font-size: 60px;
}

.exam-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.exam-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.4;
    min-height: 50px;
}

.exam-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.exam-class,
.exam-term {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.exam-class i,
.exam-term i {
    color: #28732C;
    font-size: 12px;
}

.exam-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.price-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.price-value {
    font-size: 20px;
    font-weight: 700;
    color: #28732C;
}

.exam-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    background: #28732C;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.exam-btn:hover {
    background: #1e5a22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 115, 44, 0.3);
}

.exam-btn i {
    font-size: 14px;
}

/* No Exams */
.no-exams {
    text-align: center;
    padding: 80px 20px;
    color: #6b7280;
}

.no-exams i {
    font-size: 80px;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.no-exams h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.no-exams p {
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .search-title {
        font-size: 28px;
    }

    .search-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .exams-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 60px 20px;
    }

    .hero-title {
        font-size: 32px;
    }

    .search-section {
        padding: 30px 20px;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .exams-grid {
        grid-template-columns: 1fr;
    }

    .exams-section {
        padding: 40px 20px;
    }
}