/*
 * ETIC Modern Stylesheet
 * Colors:
 * - Dark Blue: #0d2c4f
 * - Light Blue: #4a90e2
 * - White: #ffffff
 * - Gray: #f8f9fa
 */

body {
    background-color: #f8f9fa;
    color: #333;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* --- Header --- */
.header-bar {
    background-color: #0d2c4f; /* Dark Blue */
    padding: 1rem 0;
    color: white;
}

.header-bar .logo-container img {
    max-height: 60px;
}

.header-bar .site-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Main Content --- */
.main-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.content-wrapper {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* --- Flash Messages --- */
.flash-message {
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
.flash-message.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 5px solid #0f5132;
}
.flash-message.error {
    background-color: #f8d7da;
    color: #842029;
    border-left: 5px solid #842029;
}

/* --- Forms --- */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: #4a90e2; /* Light Blue */
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
}

label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

/* --- Buttons --- */
.btn {
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-primary {
    background-color: #4a90e2; /* Light Blue */
    border-color: #4a90e2;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #357abd;
    border-color: #357abd;
}

.btn-secondary, .btn-default {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover, .btn-default:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* --- Card & View Details --- */
.card {
    border: none;
    border-radius: 8px;
}

.view-detalhes {
    background-color: #e9ecef;
    padding: 1rem;
    border-radius: 5px;
    border-left: 5px solid #4a90e2; /* Light Blue */
}

h5 {
    color: #0d2c4f; /* Dark Blue */
    font-weight: 700;
}

/* --- Footer --- */
.footer-bar {
    background-color: #0d2c4f; /* Dark Blue */
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.footer-bar a {
    color: #4a90e2; /* Light Blue */
    text-decoration: none;
}

.footer-bar a:hover {
    text-decoration: underline;
}

/* --- Header Image & Overlay --- */
.header-image-container {
    position: relative;
    background-image: url('https://i.imgur.com/your-header-image.jpg'); /* Replace with a suitable header image */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.header-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 44, 79, 0.6); /* Dark Blue Overlay */
}

.header-image-container .container {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .header-bar .site-title {
        font-size: 1.4rem;
    }
    .content-wrapper {
        padding: 1.5rem;
    }
}

/* --- New Complete Hero Section --- */
.hero-section-complete {
    position: relative;
    padding: 5rem 0;
    background-image: url('https://i.imgur.com/5mU9NxU.jpeg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.hero-section-complete .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 44, 79, 0.75); /* Darker Dark Blue Overlay */
    z-index: 1;
}

.hero-section-complete .hero-content {
    position: relative;
    z-index: 2;
}

.hero-section-complete .lead {
    font-weight: 300;
    font-size: 1.25rem;
}

.hero-info-cards {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2.5rem;
}

.hero-info-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-info-card i {
    color: var(--primary-light);
}

.hero-info-card h5 {
    color: #fff;
    font-weight: 600;
}

.hero-info-card p {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.course-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

/* --- Drastically Improved Course Cards --- */
.course-card-drastic {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* To contain the accent border */
}

.course-card-drastic:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.card-accent-border {
    height: 5px;
    background: var(--primary-light);
}

.course-card-drastic .card-body {
    padding: 1.5rem;
}

.course-card-drastic .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.course-details p {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.course-details p i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: var(--primary-light);
}

.course-card-drastic .btn {
    text-transform: none;
    font-size: 1rem;
}

/* --- Public Course Filter Bar --- */
.course-filter-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.course-filter-card .form-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.course-filter-card .filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.course-filter-card .filter-buttons .btn {
    text-transform: none; /* Override default uppercase buttons */
    padding: 0.55rem 0.75rem; /* Custom padding for filter buttons */
}