:root {
    --maroon: #800000;
    --gold: #D4AF37;
    --light-gold: #FBF8EE;
    --text-dark: #333;
    --text-light: #fff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gold);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

.header {
    background-color: var(--maroon);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 1rem;
    border-bottom: 5px solid var(--gold);
}

.header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
}

.btn, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--gold);
    color: var(--maroon);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-top: 1rem;
}

.btn-secondary {
    background-color: var(--maroon);
    color: var(--text-light);
}

.filters {
    text-align: center;
    margin: 2rem;
}

.filters input {
    padding: 0.8rem;
    margin: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Updated Profile Card with hover/click effects */
.profile-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    border-top: 4px solid var(--maroon);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.profile-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.click-hint {
    background: var(--maroon);
    color: var(--gold);
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: bold;
}

.profile-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.profile-info {
    padding: 1.5rem;
}

.profile-info h3 {
    margin-top: 0;
    color: var(--maroon);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.profile-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Form Styling */
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--maroon);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* MODAL STYLING */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.7); 
}

.modal-content {
    background-color: var(--light-gold);
    margin: 5% auto;
    padding: 2rem;
    border: 4px solid var(--maroon);
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.close-btn {
    color: var(--maroon);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: #000;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.modal-grid img {
    width: 100%;
    border-radius: 8px;
    border: 3px solid var(--gold);
    object-fit: cover;
}

.details-section {
    margin-bottom: 1.5rem;
}

.details-section h4 {
    border-bottom: 2px solid var(--gold);
    color: var(--maroon);
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.details-section p {
    margin: 5px 0;
}

@media(max-width: 768px) {
    .modal-grid { grid-template-columns: 1fr; }
}