:root { --primary-color: #007bff; --primary-hover: #0056b3; --secondary-color: #f8f9fa; --text-color: #333; --border-color: #ddd; --white: #fff; --error-color: #dc3545; --shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; line-height: 1.6; color: var(--text-color); background-color: var(--secondary-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-header { background-color: var(--white); box-shadow: var(--shadow); padding: 1rem 0; position: sticky; top: 0; z-index: 1000; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.main-header nav .btn { margin-left: 10px; }
.btn { padding: 10px 20px; border: 1px solid var(--primary-color); background-color: var(--white); color: var(--primary-color); border-radius: 5px; cursor: pointer; font-size: 1rem; text-decoration: none; transition: all 0.3s ease; }
.btn-primary { background-color: var(--primary-color); color: var(--white); }
.btn:hover { background-color: var(--primary-hover); color: var(--white); border-color: var(--primary-hover); }
.hero { background: linear-gradient(rgba(0, 123, 255, 0.6), rgba(0, 123, 255, 0.6)), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?q=80&w=2071&auto=format&fit=crop') center/cover no-repeat; color: var(--white); text-align: center; padding: 6rem 2rem; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; }
.carousel-section { padding: 4rem 0; }
.carousel-section h2 { text-align: center; margin-bottom: 2rem; font-size: 2.5rem; font-weight: 600; }
.swiper { width: 100%; padding: 20px 0 40px 0; }
.swiper-slide { display: flex; justify-content: center; }
.profile-card { background-color: var(--white); border-radius: 10px; box-shadow: var(--shadow); width: 300px; padding: 20px; text-align: center; }
.profile-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 3px solid var(--primary-color); }
.profile-card h3 { margin-bottom: 5px; color: var(--primary-color); }
.profile-card p { color: #666; font-size: 0.9rem; margin-bottom: 15px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.tag { background-color: #e9ecef; color: #495057; padding: 5px 10px; border-radius: 15px; font-size: 0.8rem; }
.swiper-pagination-bullet-active { background-color: var(--primary-color); }
.main-footer { background-color: #343a40; color: var(--white); text-align: center; padding: 1.5rem 0; margin-top: 2rem; }
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.5); justify-content: center; align-items: center; }
.modal-content { background-color: var(--white); margin: auto; padding: 30px; border-radius: 10px; width: 90%; max-width: 450px; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.close-btn { color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-btn:hover, .close-btn:focus { color: var(--text-color); }
.modal h2 { margin-bottom: 20px; text-align: center; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 5px; font-size: 1rem; }
.form-group .radio-group { display: flex; gap: 20px; }
.form-page { min-height: calc(100vh - 80px); display: flex; justify-content: center; align-items: center; padding: 2rem; }
.form-container { background: var(--white); padding: 2rem; border-radius: 10px; box-shadow: var(--shadow); width: 100%; max-width: 600px; }
.form-container h1 { text-align: center; margin-bottom: 1.5rem; color: var(--primary-color); }
.error-message { color: var(--error-color); font-size: 0.9rem; margin-top: 10px; min-height: 1em; text-align: center; }
.dashboard-header { background: var(--white); padding: 1rem 0; box-shadow: var(--shadow); }
.dashboard-header .container { display: flex; justify-content: space-between; align-items: center; }
#user-greeting { font-weight: 600; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 2rem 0; }
.no-results { padding: 4rem; text-align: center; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); grid-column: 1 / -1; }
#loginform { text-align: left; } #loginform p { margin-bottom: 10px; } #loginform input { width: 100%; padding: 8px; } #loginform .button { width: 100%; padding: 10px; background-color: var(--primary-color); color: var(--white); border: none; border-radius: 5px; cursor: pointer; }
/* ===================================
   View Profile Page Styles
====================================== */
.profile-view-container {
    padding: 2rem 0;
}
.profile-card-large {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.profile-pic-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid var(--primary-color);
}
.profile-card-large h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.profile-role {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}
.profile-details {
    text-align: left;
    margin-bottom: 2rem;
}
.profile-details p {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.profile-details p:last-child {
    border-bottom: none;
}
.profile-details strong {
    color: var(--text-color);
}
/* ===================================
   Responsive Styles for Mobile
====================================== */

/* --- Dashboard Header Fix --- */

/* ===================================
   Final Responsive Styles
====================================== */

/* --- Dashboard Header --- */
/* This is the container for the welcome text and the buttons div */
.dashboard-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px; /* Add a gap for spacing */
}

/* This is a new div we will add to group the buttons together */
.dashboard-header .dashboard-actions {
    display: flex;
    gap: 10px; /* Space between the buttons */
    flex-shrink: 0; /* Prevent buttons from shrinking */
}


/* --- MOBILE VIEW: When the screen is 768px wide or less --- */
@media (max-width: 768px) {
    /* Change the container to a vertical column layout */
    .dashboard-header .container {
        flex-direction: column;
        align-items: flex-start; /* Align items to the start of the column */
    }

    /* Make the button group take the full width */
    .dashboard-header .dashboard-actions {
        width: 100%;
        justify-content: space-between; /* Spread the buttons out */
    }

    /* Make the individual buttons grow to fill the space */
    .dashboard-header .dashboard-actions .btn {
        flex-grow: 1;
        text-align: center;
    }
}


/* --- General Responsive Improvements (Keep these if you have them) --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .carousel-section h2, .profile-section h2, .form-container h1, .internal-hero h1 { font-size: 2rem; }
    .modal-content, .form-container { width: 100%; max-width: 100%; padding: 1.5rem; }
    .form-page { padding: 1rem; }
    .main-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; }
    .profile-details { text-align: center; }
    .profile-pic-large { width: 120px; height: 120px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .main-header .container { flex-direction: column; gap: 15px; }
}

.profile-back-link {
    text-align: left;
    margin-bottom: 1.5rem;
}

.profile-back-link a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.2s ease;
}

.profile-back-link a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}