/* --- Font Imports & Definitions --- */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* --- General & Variables --- */
:root {
    --primary-color: #4A90E2;
    --secondary-color: #50E3C2;
    --background-color: #F4F7F6;
    --text-color: #4A4A4A;
    --card-bg: #FFFFFF;
    --border-color: #EAEAEA;
    --font-family-persian: 'Vazirmatn', sans-serif;
}

html {
    direction: rtl;
}
body {
    font-family: var(--font-family-persian);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.7;
    text-align: right;
}
main { padding: 2rem; max-width: 1200px; margin: 0 auto; }
h1, h2, h3 { color: #333; font-weight: 600; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Navigation --- */
nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background-color: var(--card-bg); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
nav .logo { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); text-decoration: none; }
nav .logo:hover { text-decoration: none; }
nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; align-items: center; }
nav ul a { text-decoration: none; color: var(--text-color); font-weight: 400; transition: color 0.3s ease; }
nav ul a:hover { color: var(--primary-color); text-decoration: none; }

/* --- Buttons --- */
.button, .button-large, .button-small {
    background-color: var(--primary-color); color: white; padding: 0.6rem 1.2rem; border-radius: 5px; text-decoration: none;
    border: none; cursor: pointer; font-family: var(--font-family-persian); font-size: 1rem; transition: background-color 0.3s ease; display: inline-block;
}
.button.edit-btn { background-color: #f0ad4e; }
.button:hover, .button-large:hover, .button-small:hover { background-color: #357ABD; color: white; text-decoration: none; }
.button.edit-btn:hover { background-color: #ec971f; }
.button-large { padding: 0.8rem 2rem; font-size: 1.1rem; }
.button-small { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

/* --- Forms --- */
.form-container-single { max-width: 700px; margin: auto; background: var(--card-bg); padding: 2rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-control, .form-control-small, .form-control-file {
    width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 5px;
    font-size: 1rem; font-family: var(--font-family-persian); box-sizing: border-box;
}
.error-text { color: #E74C3C; font-size: 0.9rem; }
.form-footer { margin-top: 1rem; text-align: center; }

/* Searchable Dropdown */
.searchable-dropdown { position: relative; }
.dropdown-options {
    display: none; position: absolute; background-color: white; width: 100%; border: 1px solid var(--border-color);
    border-top: none; border-radius: 0 0 5px 5px; max-height: 200px; overflow-y: auto; z-index: 1000; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.dropdown-options div { padding: 10px; cursor: pointer; text-align: right; }
.dropdown-options div:hover { background-color: #f1f1f1; }

/* Budget & Checkbox */
.budget-group { display: flex; align-items: center; gap: 1rem; }
.budget-group span { font-weight: 600; }
.checkbox-group { margin-top: 0.5rem; display: flex; align-items: center; }
.checkbox-group label { margin: 0 0.5rem 0 0; font-weight: normal; }

/* Drag and Drop Zone */
.drag-drop-zone { border: 2px dashed var(--border-color); border-radius: 5px; padding: 2rem; text-align: center; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease; }
.drag-drop-zone:hover { background-color: #f9f9f9; border-color: var(--primary-color); }
.drag-drop-zone.drag-over { background-color: #e9f2fd; border-color: var(--primary-color); border-style: solid; }
.drag-drop-zone p { margin: 0; color: #888; }
.drag-drop-info { font-size: 0.8rem; margin-top: 0.5rem !important; }
#file-name-display { display: block; margin-top: 1rem; font-weight: 600; color: var(--primary-color); }

/* --- Project Cards & Dashboards --- */
.dashboard-container, .projects-container { text-align: right; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.project-card {
    background: var(--card-bg); padding: 1.5rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex; flex-direction: column; transition: transform 0.2s ease-in-out;
}
.project-card:hover { transform: translateY(-5px); }
.project-card h3 { margin-top: 0; }
.project-field-tag {
    background-color: #e0e0e0; color: #555; padding: 0.2rem 0.6rem; border-radius: 15px; display: inline-block;
    align-self: flex-end; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.5rem;
}
.project-type {
    background-color: var(--secondary-color); color: #333; padding: 0.2rem 0.8rem; border-radius: 15px;
    display: inline-block; align-self: flex-end; font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem;
}
.project-details { margin-bottom: 1rem; flex-grow: 1; }
.project-details span { display: block; margin-bottom: 0.5rem; }
.project-description { font-size: 0.9rem; color: #666; margin-top: 1rem; }
.card-actions { margin-top: auto; display: flex; gap: 0.5rem; }

/* --- Admin Panel & Misc --- */
.admin-section { background: var(--card-bg); padding: 1.5rem; border-radius: 8px; margin-bottom: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.admin-tag { background-color: #f0ad4e; color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; font-weight: bold; margin-right: 0.5rem; }
.hero-section { text-align: center; padding: 4rem 1rem; }
.content-page { background: var(--card-bg); padding: 2rem; border-radius: 8px; }
.flash-message { padding: 1rem; margin-bottom: 1rem; border-radius: 5px; color: white; text-align: center; }
.flash-message.success { background: #2ECC71; }
.flash-message.danger { background: #E74C3C; }
.flash-message.info { background: #3498DB; }

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
}
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    z-index: 1001;
    width: 90%;
    max-width: 600px;
    display: none;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}

/* --- Filter Form Styles --- */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    align-items: flex-end;
}
.filter-form .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}
.filter-form label {
    font-size: 0.9rem;
}

/* --- Proposal List Styles --- */
.proposal-list .proposal-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}
.proposal-list .proposal-item:last-child {
    border-bottom: none;
}
.proposal-item blockquote {
    margin: 0.5rem 2rem 0.5rem 0;
    padding: 0.5rem 1rem;
    background: #f9f9f9;
    border-right: 3px solid var(--secondary-color);
    font-style: italic;
    color: #555;
}


@media (max-width: 768px) {
    nav { flex-direction: column; gap: 1rem; }
    .dashboard-header { flex-direction: column; gap: 1rem; text-align: right; }
}

/* --- NEW PROFILE PAGE STYLES --- */
.profile-page-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.profile-sidebar {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 5px solid var(--primary-color);
    position: sticky;
    top: 2rem;
}

.profile-main-content {
    flex: 2;
    min-width: 400px;
}

.profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.profile-sidebar h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: #333;
}

.profile-headline {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.profile-location, .profile-university {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.profile-location i, .profile-university i {
    margin-left: 0.5rem;
    color: var(--primary-color);
}

.profile-admin-tag {
    display: inline-block;
    margin-bottom: 1rem;
}

.edit-section-btn {
    width: 100%;
    margin: 1rem 0;
}

.profile-sidebar-section {
    text-align: right;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.profile-tag {
    background-color: #e9e9e9;
    color: #555;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.last-edited {
    display: block;
    margin-top: 1.5rem;
    color: #999;
    font-size: 0.8rem;
}

.profile-sidebar.admin-profile {
    border-top-color: #f0ad4e;
}

.profile-sidebar.admin-profile .profile-location i,
.profile-sidebar.admin-profile .profile-university i {
    color: #f0ad4e;
}

.profile-section {
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin: 0;
}

.add-item-btn {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    padding: 0;
    font-size: 1.5rem;
}

.checkbox-multiselect {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 5px;
}

.checkbox-multiselect label {
    display: block;
    margin-bottom: 0.5rem;
}

.profile-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.profile-card {
    position: relative;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.delete-item-btn {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #eee;
    color: #888;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-card:hover .delete-item-btn, .timeline-item:hover .delete-item-btn {
    opacity: 1;
}

.skill-level-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.skill-level-fill {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.timeline {
    position: relative;
    padding-right: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 8px;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    right: -2rem; /* (2rem padding) - 9px (half of width) */
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    z-index: 1;
}

/* --- Add these styles to the end of your style.css file --- */

/* Feedback text for forms */
.feedback-text {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    height: 1rem;
}
.feedback-text.valid {
    color: #2ECC71;
}
.feedback-text.invalid {
    color: #E74C3C;
}

/* Password Strength Bar */
.password-strength-bar {
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}
.password-strength-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}
.password-strength-fill.weak { background-color: #E74C3C; } /* Red */
.password-strength-fill.medium { background-color: #f0ad4e; } /* Orange */
.password-strength-fill.strong { background-color: #2ECC71; } /* Green */

/* Admin User Table */
.table-container {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.data-table th, .data-table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: right;
}
.data-table th {
    background-color: #f9f9f9;
}
.data-table tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}

/* Project Owner on Card */
.project-owner {
    margin-top: auto; /* Pushes it to the bottom */
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.project-owner a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
}
.project-owner a:hover {
    color: var(--primary-color);
}
.project-owner img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Add these styles to the end of your style.css file --- */

/* Styles for invalid form fields and inline errors */
.form-control.is-invalid {
    border-color: #E74C3C;
    background-color: #fbeae5;
}

.inline-error-text {
    display: none; /* Hidden by default */
    color: #E74C3C;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ADD these styles to the end of your file */

/* Styles for multi-select searchable dropdown */
.searchable-multiselect-container {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.5rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.tag .remove-tag-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.searchable-multiselect-container input.form-control {
    border: none;
    padding: 0.25rem 0;
}
.searchable-multiselect-container input.form-control:focus {
    box-shadow: none;
    outline: none;
}

/* ADD these styles to the end of your file */

.completion-bar {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 20px;
    height: 20px;
    overflow: hidden;
}

.completion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    transition: width 0.5s ease-in-out;
}

/* ADD these styles to the end of style.css */

/* Notification Dropdown */
.nav-notification {
    position: relative;
    cursor: pointer;
}

.notification-icon {
    font-size: 1.5rem;
    color: var(--text-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #E74C3C;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 350px;
    z-index: 100;
    overflow: hidden;
}

.notification-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    display: block;
    white-space: normal;
    transition: background-color 0.2s;
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item:hover {
    background-color: #f9f9f9;
}

.notification-item small {
    display: block;
    margin-top: 0.25rem;
    color: #999;
}


/* ADD these styles to the end of style.css */

/* Notification Item Modifications */
.notification-item {
    position: relative;
    padding-left: 30px; /* Make space for the remove button */
}

.remove-notification-btn {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    display: none; /* Hidden by default, shown on hover */
}

.notification-item:hover .remove-notification-btn {
    display: block;
}

.remove-notification-btn:hover {
    color: #E74C3C;
}

/* Notification Footer for "Clear All" button */
.notification-footer {
    padding: 0.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.notification-footer .button-small {
    width: 100%;
}

/* ADD these styles to the end of the file */

/* New Avatar Upload Styles */
.profile-avatar {
    position: relative;
    cursor: pointer;
}

.profile-avatar .avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 1.5rem;
}

.profile-avatar:hover .avatar-upload-overlay {
    opacity: 1;
}

.profile-avatar .avatar-upload-overlay span {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

#avatar-upload-input {
    display: none;
}

/* ADD these styles to the end of style.css */

/* Delete Button */
.delete-btn {
    background-color: #E74C3C !important;
}
.delete-btn:hover {
    background-color: #c0392b !important;
}
.delete-form {
    display: inline-block;
}

/* Proposal Cards */
.proposal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.proposal-card {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}
.proposal-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.proposal-card-header a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-color);
}
.avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}
.proposal-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}
.proposal-card blockquote {
    font-size: 0.95rem;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    background: #f9f9f9;
    border-right: 3px solid var(--secondary-color);
}

/* Statistics Chart */
.stats-chart-container {
    height: 350px;
    position: relative;
}

/* --- Navigation --- */
nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem 2rem; 
    background-color: var(--card-bg); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav .logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--primary-color); 
    text-decoration: none; 
    white-space: nowrap;
}
nav .logo:hover { 
    text-decoration: none; 
}

nav ul { 
    list-style: none; 
    display: flex; 
    gap: 1.5rem; 
    margin: 0; 
    padding: 0; 
    align-items: center; 
}

nav ul a { 
    text-decoration: none; 
    color: var(--text-color); 
    font-weight: 400; 
    transition: color 0.3s ease; 
    white-space: nowrap;
}

nav ul a:hover, nav ul a.nav-link:hover { 
    color: var(--primary-color); 
    text-decoration: none; 
}

/* ADD these styles to the end of the file */

/* Style for the icon in the Login/Register button */
.nav-user-menu .button .fas {
    margin-left: 8px; /* Adds space between icon and text */
}

/* New class for full-width, larger modal buttons */
.button-full {
    width: 100%;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: bold;
}

/* ADD these new styles to the end of your CSS file */

/* --- New Hero Section Styles --- */
.hero-section.hero-bg {
    position: relative;
    padding: 6rem 1rem;
    background-image: url('../images/hero_background.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

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

.hero-bg h1 {
    color: white;
    font-size: 2.5rem;
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 4rem 1rem;
    text-align: center;
}

.testimonials-section h2 {
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Creates 3 columns */
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    position: relative;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: right;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    line-height: 1;
}

.testimonial-card .quote {
    font-style: italic;
    color: #555;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on tablets */
    }
}
@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* --- Footer --- */
.site-footer {
    background-color: #333;
    color: #a9a9a9;
    padding: 3rem 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.site-footer h3, .site-footer h4 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1rem;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links ul, .footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul a {
    color: #a9a9a9;
    text-decoration: none;
    line-height: 2.2;
    transition: color 0.3s;
}

.footer-links ul a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #444;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

/* --- New Styles for About and Contact Pages --- */

/* General Page Layout */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    position: relative;
    padding: 4rem 2rem;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    color: white;
    text-align: center;
    overflow: hidden;
    margin-bottom: 3rem;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-header h1 {
    color: white;
    font-size: 2.8rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
}

.page-content {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.about-section {
    padding: 2.5rem 0;
}

.text-center {
    text-align: center;
}

.lead {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 1rem auto 0;
}

.section-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 2rem 0;
}

/* Values Section */
.about-section.with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image-container img {
    width: 100%;
    border-radius: 12px;
}

.value-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: right;
}

.value-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.value-item h3 { margin: 0 0 0.5rem 0; }
.value-item p { margin: 0; color: #666; }

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.team-member-card {
    text-align: center;
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--border-color);
}

.team-member-card h4 { margin-bottom: 0.25rem; }
.team-member-card p { color: #777; margin-top: 0; }

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form-container h3, .contact-info-container h3 {
    margin-bottom: 1.5rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.contact-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 4px;
}

.social-links-contact {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-section.with-image, .contact-grid {
        grid-template-columns: 1fr;
    }
}