/* Components CSS - Reusable component styles */

/* Question Options */
.question-options .option-item {
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.question-options .option-item:hover {
    background-color: #f8f9fa;
    border-color: #6c757d !important;
}

.question-options .correct-answer {
    background-color: #d4edda !important;
    border-color: #28a745 !important;
    color: #155724;
}

.question-options .correct-answer:hover {
    background-color: #c3e6cb !important;
}

/* Carousel customizations */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: var(--primary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none;
    width: 2rem;
    height: 2rem;
}

.carousel-control-prev-icon:before {
    content: '‹';
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.carousel-control-next-icon:before {
    content: '›';
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Sample Questions Card */
.sample-questions .card {
    min-height: 500px;
}

.sample-questions .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Test Dates Cards */
.test-dates .card {
    background-color: white;
    color: #333;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.test-dates .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* FAQ Accordion */
.accordion .card {
    border: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.accordion .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0;
}

.accordion .btn-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
}

.accordion .btn-link:hover,
.accordion .btn-link:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.accordion .btn-link:not(.collapsed) {
    color: var(--primary-color);
}

.accordion .btn-link::after {
    content: '+';
    float: right;
    font-weight: bold;
    font-size: 1.2rem;
}

.accordion .btn-link:not(.collapsed)::after {
    content: '−';
}

/* Partner Universities Section */
.partner-universities {
    background-color: #f8f9fa;
}

.partner-universities .university-logo {
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* About Section Cards */
.about-section .card {
    height: 100%;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.about-section .card-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Section Titles */
.section-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

/* Alert customizations */
.alert-info {
    background-color: #e3f2fd;
    border-color: #bbdefb;
    color: #0d47a1;
}

.alert-primary {
    background-color: rgba(158, 30, 32, 0.1);
    border-color: rgba(158, 30, 32, 0.2);
    color: var(--primary-color);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

footer a {
    color: var(--muted-color);
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success states */
.success-state {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Error states */
.error-state {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Custom button styles */
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-block {
    width: 100%;
}

/* Form validation styles */
.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.valid-feedback {
    display: block;
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}