/* --- Global Styles & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --pnsb-navy: #1a2b48;
    --pnsb-blue: #3498db;
}

body {
    background-color: #ffffff;
    overflow-x: hidden;
}

/* --- Navigation Bar --- */
header {
    background-color: #ffffff;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.logo-link img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover img {
    transform: scale(1.05);
}

.auth-links {
    font-size: 12px;
    font-weight: bold;
}

.auth-links a {
    color: var(--pnsb-navy);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--pnsb-navy);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
}

/* --- Banner --- */
.main-banner {
    width: 100%;
    height: 450px;
}

.main-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Layout --- */
.page-section {
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.section-header-container {
    margin-top: -35px;
    margin-bottom: 50px;
    z-index: 10;
    position: relative;
}

.boxed-title {
    background-color: var(--pnsb-navy);
    color: #ffffff;
    padding: 15px 50px;
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.section-content {
    max-width: 900px;
    text-align: center;
    line-height: 1.8;
}

/* --- OUR SERVICES (Background Adjustment) --- */
#services {
    /* Use ../ to go up from 'css' folder into 'assets', then into 'images' */
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), 
                      url('../images/services-bg.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 1. Remove the box and change font color to white */
#services .section-header-container {
    margin-top: 0; /* Adjusting margin since we don't need the overlap look here */
    margin-bottom: 40px;
}

#services .boxed-title {
    background-color: transparent; /* Removes the navy box */
    color: #ffffff;               /* Changes text to white */
    box-shadow: none;             /* Removes the shadow for a cleaner look */
    font-size: 32px;              /* Making it slightly larger to match mockup */
    letter-spacing: 2px;
}

.bubble-container {
    display: flex;
    flex-direction: row; 
    flex-wrap: nowrap; /* Prevents bubbles from jumping to the next line */
    justify-content: center;
    align-items: flex-start;
    gap: 20px; /* Reduced gap to fit all 7 on screen */
    width: 95%;
}

.bubble-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 130px; /* Smaller width to ensure they fit side-by-side */
    text-align: center;
}

.bubble {
    width: 100px; /* Slightly smaller circles for better fit */
    height: 100px;
    background-color: #3498db; /* Blue color from your mockup */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.bubble img {
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1); /* Makes icons white */
}

.bubble:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.bubble-wrapper p {
    color: #ffffff; /* Changes service labels to white to match your mockup */
    font-weight: bold;
    font-size: 13px;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Adds readability over the image */
}

/* --- Refined Policy Section --- */
.policy-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* CRITICAL: Allows middle box to sit lower */
    gap: 20px;
    max-width: 1100px;
    padding: 20px;
    margin: 0 auto; /* Centers the whole block on page */
}

.policy-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* FORCES text & circles to center horizontally */
    text-align: center;  /* Ensures text within elements centers */
}

/* 1. Force the titles (h3) to center above the circles */
.policy-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.policy-icon-wrapper h3 {
    color: var(--pnsb-navy);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 800; /* Bold like mockup */
    text-transform: uppercase;
}

.policy-circle {
    width: 100px;
    height: 100px;
    border: 2px solid var(--pnsb-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background-color: #ffffff;
}

/* Styles the actual icons inside the circle */
.policy-circle i {
    font-size: 40px;
    color: var(--pnsb-navy);
}

.policy-box {
    background-color: var(--pnsb-navy);
    color: white;
    padding: 25px; /* Increased padding like mockup */
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    min-height: 130px; /* Ensures boxes have consistent height */
    width: 100%;
    display: flex;
    align-items: center; /* Centers text vertically within box */
    justify-content: center;
}

/* 2. SPECIFIC: LOWER THE MIDDLE POLICY ITEM */
/* This selects only the 'policy-item' that also has the 'main-policy' class */
.policy-item.main-policy {
    margin-top: 100px; /* Pushes the entire middle column down */
}

/* 3. CLEANUP: REMOVE ALL LINES */
/* I have removed the ::before/::after rules entirely to match your request */

.main-policy .policy-box {
    margin-top: 40px; /* Mockup specific offset */
}

/* --- ASSOCIATE CARDS --- */
.associates-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 850px;
}

.associate-card {
    background-color: var(--pnsb-navy);
    color: white;
    padding: 25px;
    border-radius: 50px; /* Pills shape as per mockup */
    text-align: center;
}

/* --- Footer Global Container --- */
footer {
    background-color: #e9e9e9; /* Light gray background */
    padding: 50px 5%;
    font-family: 'Segoe UI', sans-serif;
}

.footer-container {
    display: flex;             /* This forces the columns to sit side-by-side */
    justify-content: center;   /* Centers the group of columns */
    align-items: flex-start;   /* Aligns them at the top */
    gap: 80px;                 /* Space between the three columns */
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;                   /* Gives each column equal width */
    color: #1a2b48;            /* Navy Blue text */
}

/* --- Column 1: Quick Links & Vertical Line --- */
.quick-links {
    position: relative;
    padding-left: 40px;        /* Space for the line */
}

.quick-links::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: #1a2b48; /* The vertical decorative line */
}

.quick-links h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.quick-links ul {
    list-style: none;
    padding: 0;
}

.quick-links ul li {
    margin-bottom: 12px;
}

.quick-links ul li a {
    text-decoration: none;
    color: #1a2b48;
    font-weight: 600;
    font-size: 16px;
}

/* --- Columns 2 & 3: Contacts and Addresses --- */
.footer-column h2, 
.footer-column h3 {
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.contact-block, .address-block {
    margin-bottom: 30px;
}

/* --- Copyright Bottom Bar --- */
.footer-bottom {
    text-align: left;
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    font-size: 13px;
    color: #1a2b48;
}

/* --- 1. Global Styles & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --pnsb-navy: #1a2b48;
    --pnsb-blue: #3498db;
    --pnsb-light-gray: #e9e9e9;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* --- 2. Staff Page Layout --- */
.staff-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    min-height: 80vh; 
}

.title-banner h1 {
    background-color: var(--pnsb-navy);
    color: white;
    display: inline-block;
    padding: 12px 50px;
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.section-divider {
    font-size: 26px;
    font-weight: 800;
    margin: 60px 0 30px;
    text-transform: uppercase;
    color: #000;
}

/* --- 3. Staff Grid & Cards --- */
.staff-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: stretch; /* Forces cards in the same row to be equal height */
}

.staff-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.staff-card-link:hover {
    transform: translateY(-10px);
}

.staff-card {
    width: 300px;
    display: flex;
    flex-direction: column;
    border: 4px solid var(--pnsb-navy);
    background-color: var(--pnsb-navy);
    overflow: hidden;
    height: 100%; /* Ensures card fills the flex container */
}

.staff-card img {
    width: 100%;
    height: 380px; /* FIXED HEIGHT: Forces all photos to align perfectly */
    object-fit: cover; /* CROPS the image to fit the 380px height without stretching */
    object-position: center top; /* Keeps faces in frame during the crop */
    display: block;
    background-color: #f4f4f4; 
}

.staff-info {
    padding: 20px 10px;
    height: 110px; /* FIXED HEIGHT: Ensures names/roles start and end at the same spot */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background-color: var(--pnsb-navy);
}

.staff-info .role {
    display: block;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--pnsb-blue); /* Added blue for better hierarchy */
    text-transform: uppercase;
}

.staff-info .name {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.3;
}

/* --- 4. Pagination Bubbles --- */
.staff-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 50px;
    padding-bottom: 20px;
}

.page-bubble {
    width: 45px;
    height: 45px;
    background-color: var(--pnsb-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.page-bubble:hover {
    background-color: #34495e;
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-bubble.active {
    background-color: #0d1a2d;
    box-shadow: 0 0 0 3px var(--pnsb-navy), 0 0 0 5px white;
}

/* --- 5. Footer Styling --- */
footer {
    background-color: var(--pnsb-light-gray);
    color: var(--pnsb-navy);
    padding: 60px 10% 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1;
}

.quick-links {
    position: relative;
    padding-left: 30px;
}

.quick-links::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: var(--pnsb-navy);
}

.footer-column h2 { font-size: 20px; margin-bottom: 20px; }
.footer-column h3 { font-size: 15px; margin-top: 15px; }
.footer-column ul { list-style: none; }
.footer-column ul li a { 
    text-decoration: none; 
    color: var(--pnsb-navy); 
    font-weight: 600;
    line-height: 2;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #ccc;
    padding-top: 20px;
    font-size: 12px;
}

/* --- Staff Details: Profile Layout Fix --- */

/* 1. Main Container */
.profile-layout {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 5%;
    display: flex;         /* This enables side-by-side layout */
    flex-direction: row;   /* Forces text left, card right */
    gap: 60px;             /* Space between biography and the card */
    align-items: flex-start;
}

/* 2. Left Column (Biography & Details) */
.profile-text-content {
    flex: 2;               /* Takes up more space */
    text-align: left;      /* Ensures all text is left-aligned */
}

.section-title {
    font-size: 1.1rem;
    color: var(--pnsb-navy);
    margin: 30px 0 15px 0;
    padding-left: 12px;
    border-left: 5px solid var(--pnsb-navy); /* The vertical blue line */
    text-transform: uppercase;
    font-weight: 800;
}

.bio-text {
    line-height: 1.8;
    color: #444;
    text-align: justify;
    margin-bottom: 40px;
}

.meta-info-item {
    margin-bottom: 25px;
}

.meta-info-item p {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    text-transform: uppercase;
}

/* 3. Right Column (The Navy Card) */
.profile-card-side {
    flex: 1;               /* Takes up less space */
    min-width: 380px;      /* Prevents the card from getting too small */
}

.card-container {
    background-color: var(--pnsb-navy);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 4px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    display: block;
    height: auto;
}

.card-info-box {
    background-color: var(--pnsb-navy);
    color: white;
    padding: 35px 25px;
    text-align: center;
}

.card-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.card-divider {
    width: 60px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 15px auto;
    border: none;
}

.card-sub-title {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--pnsb-blue);
    font-weight: bold;
    text-transform: uppercase;
}

.card-qualifications {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Back Button */
.back-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: var(--pnsb-navy);
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
}

.back-link:hover {
    color: var(--pnsb-blue);
}

/* --- Services Layout --- */
.service-layout {
    display: flex;
    flex-direction: column;
}

/* --- Services Banner --- */
.service-banner {
    background-color: #1a2a44; /* Navy Blue to match 'About Us' */
    color: #ffffff;
    padding: 60px 10%;
    text-align: left;
    width: 100%;
}

.service-banner h1 {
    font-size: 2.8rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

.service-banner p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* --- Layout Adjustment --- */
.service-layout {
    display: flex;
    flex-direction: column;
}

.service-container {
    display: flex;
    max-width: 1200px;
    margin: 50px auto;
    gap: 40px;
    padding: 0 20px;
}

/* --- Sidebar --- */
.service-sidebar {
    flex: 1;
    position: sticky; /* Keeps sidebar visible while scrolling */
    top: 20px;
    height: fit-content;
    background: #fff;
}

.service-sidebar ul {
    list-style: none;
    padding: 0;
    border: 1px solid #eee; /* Light frame around the menu */
}

.service-sidebar li a {
    display: block;
    padding: 18px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.service-sidebar li:last-child a {
    border-bottom: none;
}

.service-sidebar li a:hover {
    background-color: #f8f9fa;
    color: #007bff;
    padding-left: 25px; /* Subtle slide effect on hover */
}

.service-sidebar li a.active {
    color: #fff;
    background-color: #1a2a44; /* Navy Blue background for active item */
    border-left: 6px solid #007bff; /* Blue accent */
}

/* --- Main Content --- */
.service-main-content {
    flex: 3;
}

.content-title {
    color: #1a2a44;
    font-size: 2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    padding-bottom: 10px;
    position: relative;
}

/* Red accent line under the title */
.content-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #c0392b;
    margin-top: 10px;
}

.content-body p {
    line-height: 1.9;
    color: #444;
    margin-bottom: 25px;
    font-size: 1.05rem;
    text-align: justify;
}

/* --- PDF/Click Here Section --- */
.pdf-section {
    margin-top: 50px;
    padding: 30px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-left: 6px solid #c0392b;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.pdf-section p {
    font-weight: 700;
    color: #1a2a44;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.pdf-button {
    display: inline-block;
    background: #c0392b;
    color: white;
    padding: 14px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.pdf-button:hover {
    background: #1a2a44; /* Switches to navy on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive Tweak for Mobile */
@media (max-width: 992px) {
    .service-container {
        flex-direction: column;
    }
    .service-sidebar {
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        margin-bottom: 30px;
    }
}

/* --- EMR Image Grid Styles (Added) --- */
.emr-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 15px; /* Spacing between images */
    margin: 20px 0;
    width: 100%;
}

.emr-image-grid img {
    width: 100%;
    height: 250px; /* Forces images to be uniform height */
    object-fit: cover; /* Crops rather than stretches to fit the height */
    border-radius: 4px; /* Optional slight rounding for modern feel */
    border: 1px solid #ddd; /* Light border around images */
    transition: all 0.3s ease;
}

.emr-image-grid img:hover {
    transform: scale(1.02); /* Very subtle zoom effect on hover */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Mobile responsive tweak */
@media (max-width: 768px) {
    .emr-image-grid {
        grid-template-columns: 1fr; /* Switch to single column on small screens */
    }
}

.cert-banner {
    /* Go up one level from 'css' folder, then into 'assets/images' */
    background-image: url('../assets/images/field_work_bg.jpg') !important; 
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    min-height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    background: #1a2a44; /* Your navy blue theme */
    padding: 20px 60px;
    border: 2px solid #ffffff; /* White border as seen in screenshot */
    display: inline-block;
}

.banner-overlay h1 {
    color: #ffffff;
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Content Text */
.cert-main-content {
    padding: 60px 10%;
    background: #fff;
}

.cert-intro, .cert-description {
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Button & Action Section */
.cert-list-container {
    margin-top: 40px;
}

.cert-action-block {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cert-label {
    font-size: 0.9rem;
    color: #1a2a44;
    font-style: italic;
}

.btn-cert {
    display: inline-block;
    background-color: #c0392b; /* Professional Red */
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    transition: background 0.3s ease;
    font-size: 0.9rem;
}

.btn-cert:hover {
    background-color: #a93226;
    color: #fff;
}

.contact-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.address-card {
    background: #1a2a44;
    color: white;
    padding: 30px;
    border-radius: 5px;
    text-align: left;
}

.address-card h3 {
    border-bottom: 2px solid white;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.maps-title {
    background: #1a2a44;
    color: white;
    display: inline-block;
    padding: 10px 40px;
    margin-bottom: 20px;
}

.maps-section {
    text-align: center;
}

.map-wrapper {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

/* assets/css/style.css */

/* General Auth Layout */
.auth-body {
    background: url('../images/background_landscape.jpg') no-repeat center center fixed; /* Ensure image exists in assets/images/ */
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.auth-card {
    background: #1a2a44; /* Navy Blue */
    color: white;
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

/* Success Pop-up Overlay */
.success-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.success-box {
    background: #b3b3b3; 
    color: white;
    padding: 40px 60px;
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.5rem;
}
/* Dashboard Banner Layout */
.dashboard-banner {
    display: flex;
    height: 250px;
    position: relative;
    width: 100%;
}

.dashboard-banner img {
    width: 25%; /* 4 images = 25% each */
    height: 100%;
    object-fit: cover;
    filter: brightness(60%); /* Makes the white text pop more */
}

.banner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a2a44;
    color: white;
    padding: 12px 40px;
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 1.4rem;
    border-radius: 2px;
}

/* Welcome Text & Grid */
.welcome-text {
    color: #1a2a44;
    font-size: 2.8rem;
    margin: 50px 0;
    text-transform: uppercase;
}

.dashboard-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-bottom: 80px;
}

.summary-card, .dash-btn {
    background: #3c4f76; /* Slightly lighter navy for the cards */
    color: white;
    border-radius: 15px;
    transition: transform 0.2s ease;
}

.summary-card {
    padding: 50px;
    width: 350px;
    text-align: left;
}

.summary-card h2 {
    border-bottom: 2px solid white;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 40px 60px;
    font-weight: bold;
    font-size: 1.1rem;
    width: 250px;
}

.dash-btn:hover {
    transform: translateY(-5px);
    background: #2a3b5c;
}
/* --- Header Layout --- */
.admin-header {
    background: #fff;
    width: 100%;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    /* This is the key: it pushes the logo left and nav right */
    justify-content: space-between; 
    align-items: center;
    max-width: 1300px; /* Adjust based on your screen preference */
    margin: 0 auto;
    padding: 0 40px; /* Adds breathing room at the screen edges */
}

/* --- Logo Hover Effect --- */
.logo-link {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

/* When the arrow touches the logo */
.logo-link:hover {
    transform: scale(1.05); /* Slightly enlarges */
    opacity: 0.8; /* Subtle fade effect */
}

.admin-logo {
    height: 70px; /* Fixed height to prevent "giant logo" */
    width: auto;
}

.admin-nav {
    display: flex;
    gap: 25px; /* Spacing between links */
}

.admin-nav a {
    text-decoration: none;
    color: #1a2a44;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.admin-nav a:hover {
    color: #3c4f76;
}

.logout-btn {
    color: #d9534f !important; /* Red color for logout */
}

/* --- Banner & Overlay --- */
.main-banner {
    width: 100%;
    height: 350px;
    position: relative;
}

.main-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image squashing */
    filter: brightness(70%);
}

.banner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a2a44;
    color: white;
    padding: 15px 40px;
    font-weight: bold;
    font-size: 1.5rem;
}

/* --- Dashboard Grid --- */
.dashboard-container {
    max-width: 1100px;
    margin: 50px auto;
    text-align: center;
}

.welcome-text {
    color: #1a2a44;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.dashboard-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.summary-card {
    background: #3c4f76;
    color: white;
    padding: 50px;
    border-radius: 15px;
    width: 350px;
    text-align: left;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-btn {
    background: #3c4f76;
    color: white;
    text-decoration: none;
    padding: 35px 60px;
    border-radius: 15px;
    font-weight: bold;
    width: 250px;
    transition: 0.3s;
}

.dash-btn:hover {
    background: #2a3b5c;
}

/* RESET ANY GLOBAL CENTERING */
header, nav, .header-container {
    text-align: left !important; /* Overrides any global center tags */
}

.admin-header {
    background: #ffffff;
    width: 100% !important;
    display: block !important;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    /* Flexbox settings */
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important; /* FORCES items to opposite ends */
    align-items: center !important;
    
    /* Width settings */
    width: 95% !important;      /* Occupies almost the whole screen width */
    max-width: 1400px !important; /* But stops at a reasonable desktop size */
    margin: 0 auto !important;  /* Centers the container box on the page */
    padding: 0 !important;
}

/* LOGO SECTION (Left Side) */
.logo-link {
    display: flex !important;
    align-items: center;
    transition: transform 0.3s ease;
    margin-left: 0 !important; /* Ensures it stays far left */
}

.logo-link:hover {
    transform: scale(1.05);
}

.admin-logo {
    height: 70px;
    width: auto;
}

/* NAV SECTION (Right Side) */
.admin-nav {
    display: flex !important;
    gap: 30px !important;      /* Space between words */
    margin-right: 0 !important; /* Ensures it stays far right */
}

.admin-nav a {
    text-decoration: none;
    color: #1a2a44;
    font-weight: bold;
    font-size: 0.95rem;
    white-space: nowrap; /* Prevents text from wrapping to a new line */
}

/* --- Footer Styling --- */
.admin-footer {
    background-color: #f1f1f1; /* Light grey background from mockup */
    padding: 40px 0;
    margin-top: 50px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col {
    flex: 1;
    padding: 0 15px;
}

.footer-col h3 {
    color: #1a2a44;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: bold;
}

/* REMOVE BULLETS AND NEATEN LINKS */
.footer-links {
    list-style: none; /* Removes the dots/bullets */
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    position: relative;
}

.footer-links a {
    text-decoration: none; /* Removes the blue underline */
    color: #1a2a44;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3c4f76; /* Subtle color change on hover */
}

/* Vertical line for Quick Links column as seen in mockup */
.footer-col:first-child {
    border-left: 3px solid #1a2a44;
    padding-left: 20px;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

/* --- Banner & Admin Dashboard Text --- */
.main-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.main-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 42, 68, 0.9); /* Dark blue background */
    color: white;
    padding: 15px 40px;
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 2px;
    border: none !important; /* REMOVES THE WHITE BORDER */
    border-radius: 0;         /* Ensures a sharp rectangle look */
}

/* --- Dashboard Content Neatness --- */
.dashboard-container {
    max-width: 1000px;
    margin: 50px auto;
    text-align: center;
}

.dashboard-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.summary-card {
    background: #3c4f76;
    color: white;
    padding: 40px;
    border-radius: 10px;
    width: 400px;
}

.card-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    margin: 15px 0;
}

.dash-btn {
    display: block;
    background: #3c4f76;
    color: white;
    padding: 20px 40px;
    margin-bottom: 20px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: background 0.3s;
}

.dash-btn:hover {
    background: #2a3a5a;
}

/* --- Footer Link Fixes --- */
.footer-links {
    list-style: none !important; /* Removes bullets */
    padding: 0;
}

.footer-links a {
    text-decoration: none !important; /* Removes underlines */
    color: #1a2a44;
    display: block;
    margin-bottom: 10px;
}

/* Ensure the summary card handles the text and button well */
.summary-card h2 {
    border-bottom: 2px solid white;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* Specific styling for the red Edit button in Admin */
.dash-btn.edit-mode {
    background: #d14130 !important; /* The red color from your mockup */
    border: 2px solid transparent;
}

.dash-btn.edit-mode:hover {
    background: #a33226 !important;
    transform: translateY(-3px);
}

/* Ensure the banner image covers the area properly without stretching */
.main-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
}

/* Styling for the Edit Form inside a card */
.summary-card form {
    text-align: left;
}

.summary-card label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #1a2a44;
}

/* Ensure the red button stands out on the admin page */
.dash-btn[style*="background: #d14130"]:hover {
    background: #a83226 !important;
    transform: scale(1.02);
}

/* Reset list styles so they don't appear as bullet points */
ul, li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

/* Logout Popup Styling */
.logout-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #1a2b48; /* Your dark blue theme color */
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none; /* Hidden by default */
    animation: slideIn 0.5s ease forwards;
}


@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   CSS MEDIA QUERIES FOR MOBILE COMPATIBILITY (Screens below 768px wide)
   ========================================================================== */
@media screen and (max-width: 768px) {
    
    /* 1. Fluid Layout Conversions */
    .content-wrapper, .service-container, .contact-container, .admin-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    /* 2. Rescale Multi-Column Components to Stackable Single Rows */
    .address-grid, .associates-container, .policy-container, .dashboard-grid, .staff-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* 3. Fluid Bubble Options Wrapping (Shows 2 columns cleanly on screens like phones) */
    .bubble-container, .services-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px !important;
        margin: 30px auto !important;
    }

    .bubble-wrapper, .service-item {
        width: 45% !important;
    }

/* 4. Adaptive Top Global Header Adjustments */
    header {
        flex-direction: column !important;
        text-align: center !important;
        padding: 10px 10px !important; /* Shaved down vertical padding */
    }

    .logo-container {
        flex-direction: row !important; /* Keep logo and login buttons horizontally aligned */
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 12px !important;
        width: 100% !important;
    }

    .logo-link img, .admin-logo {
        height: 32px !important; /* Scale down the logo cleanly to save vertical room */
    }

    .auth-links {
        font-size: 0.8rem !important; /* Slightly smaller text for the login button */
    }

    nav {
        width: 100% !important;
    }

    nav ul {
        flex-direction: row !important; /* Change column back to a clean horizontal line */
        flex-wrap: wrap !important;     /* Allow items to wrap cleanly if screen is very narrow */
        justify-content: center !important;
        gap: 6px 14px !important;       /* Tighter gaps (6px vertical, 14px horizontal) */
        padding: 0 !important;
    }

    nav ul li a {
        display: inline-block !important;
        padding: 4px 2px !important;  /* Reduced click borders to maximize page real estate */
        font-size: 12px !important;   /* Sleek, readable mobile font size */
        letter-spacing: 0.5px !important;
    }

    /* 5. Mobile Sidebar Restructuring Elements */
    .service-container {
        flex-direction: column !important;
    }

    .admin-nav {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 15px;
    }

    /* 6. Horizontal Table Swipe-Overflow Controller */
    .table-card {
        padding: 15px !important;
        overflow-x: auto !important; /* Forces responsive side-swipe controls on tables */
        -webkit-overflow-scrolling: touch;
    }

    .project-table, .admin-table {
        min-width: 650px; /* Guarantees data structural alignment within scroll boundaries */
    }

    /* 7. Fluid Asset Graphics Scaling */
    .main-banner img, .cert-banner, .service-banner {
        width: 100% !important;
        height: auto !important;
        min-height: 160px !important;
    }

    .emr-image-grid {
        grid-template-columns: 1fr !important; /* Stacks image grids linearly */
    }

    /* 8. Typographic Size Normalizations */
    h1, .boxed-title {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.3rem !important;
    }
}

