/* ----------------------------------- Global Typography & Layout ----------------------------------- */
body {
    font-size: 17px;
    line-height: 1.75;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background-color: #2d2d2d;
    margin: 0;
    padding: 0;
}

/* Smooth section spacing */
section {
    padding: 50px 0;
}

/* Soft fade-in for all content */
* {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ----------------------------------- Top Link Styling ----------------------------------- */
.top-link {
    text-align: right;
    margin: 12px 25px;
}

.top-link a {
    font-size: 0.85rem;
    color: #b30000;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.top-link a:hover {
    opacity: 1;
    color: #CC0000;
}

/* ----------------------------------- Branding (Logo + Title) ----------------------------------- */
.branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 25px 0;
}

.logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.site-title h1 {
    margin: 0;
    font-family: 'Merriweather', serif;
    font-size: 2.8rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.site-title p {
    margin: 5px 0 0;
    font-size: 1.15rem;
    color: #ffffff;
}

/* ----------------------------------- Navigation Bar ----------------------------------- */
nav {
    display: flex;
    justify-content: center;
    background-color: #b30000;
    padding: 14px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #F7F6F4;
    text-decoration: none;
    margin: 0 28px;
    font-weight: 500;
    font-size: 1.05rem;
    padding-bottom: 6px;
    transition: color 0.3s, border-bottom 0.3s, opacity 0.3s;
    opacity: 0.9;
}

nav a:hover {
    color: #D50000;
    border-bottom: 2px solid #f1c40f;
    opacity: 1;
}

nav a.active {
    color: #8B0000; 
    border-bottom: 2px solid #f1c40f; 
    opacity: 1;
}

/* ----------------------------------- Profile Grid ----------------------------------- */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    margin: 2.5rem auto;
    max-width: 1400px;
}

.profile-card {
    background: #F7F6F4;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    padding: 1.4rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.profile-photo {
    width: 165px;
    height: 165px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.profile-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #000000;
    font-weight: 600;
}

.profile-card p {
    margin: 4px 0;
    line-height: 1.5;
    font-size: 0.98rem;
    color: #2A2A2A;
}

.profile-card p strong {
    color: #000000;
    font-weight: 600;
}

/* Responsive Grid */
@media (max-width: 1000px) {
    .profile-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .profile-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ----------------------------------- About Page ----------------------------------- */
.about {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    line-height: 1.8;
}

.about h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 30px;
    font-family: 'Merriweather', serif;
    color: #000000;
}

.about p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #2A2A2A;
}

/* ----------------------------------- Pricing Table ----------------------------------- */
.pricing-table {
    width: 92%;
    margin: 45px auto;
    border-collapse: collapse;
    font-size: 1.08rem;
    background: #b30000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.pricing-table caption {
    font-family: 'Merriweather', serif;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: #FFFFFF;
}

.pricing-table th,
.pricing-table td {
    border: 1px solid #e5e5e5;
    padding: 16px;
    text-align: center;
}

.pricing-table th {
    background-color: #B30000;
    color: #F7F6F4;
}

.pricing-table tr:nth-child(even) {
    background-color: #b30000;
}

.pricing-table tr:hover {
    background-color: #D50000;
}

/* Divider Line */
hr {
    border: none;
    border-top: 4px solid #8B0000;
    margin: 50px auto;
    width: 90%;
}

/* ----------------------------------- Profile Submission Form ----------------------------------- */
.profile-submission {
    background-color: #b30000;
    border: 1px solid #5C1A1A;
    border-radius: 14px;
    padding: 30px;
    margin: 60px auto;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.profile-submission h2 {
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Merriweather', serif;
    color: #000000;
    font-size: 2.2rem;
}

.profile-submission input,
.profile-submission textarea,
.profile-submission select {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafafa;
}

.profile-submission textarea {
    resize: vertical;
}

.profile-submission button {
    background-color: #000000;
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.profile-submission button:hover {
    background-color: #8B0000;
    color: #F7F6F4;
    transform: translateY(-2px);
}

/* ----------------------------------- Footer ----------------------------------- */
footer {
    background-color: #b30000;
    color: #F7F6F4;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* ----------------------------------- Prison Mail Tips – Image ----------------------------------- */
.mailtips-image {
    width: 100%;
    max-width: 780px;
    max-height: 430px;
    object-fit: contain;
    display: block;
    margin: 35px auto;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.profile-button,
.profile-button:visited {
    color: #B30000;
}