/* Administrative Theme - Dignity Transportation Inc. */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
}

.admin-container {
    padding: 40px 5%;
}

h2, h3, h4 {
    color: #003366;
}

/* Search and Filter Panels */
.search-panel {
    background: #eee;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.search-header {
    background: #003366;
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.search-body {
    padding: 20px;
    display: none;
}

/* Table Design */
.pages-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    table-layout: fixed;
}

.pages-table th {
    background: #f8f9fa;
    color: #003366;
    text-transform: uppercase;
    border-bottom: 2px solid #dee2e6;
    padding: 0;
}

.pages-table th a {
    color: #003366;
    text-decoration: none;
    display: block;
    padding: 15px 10px;
    font-weight: bold;
    font-size: 0.8rem;
}

.pages-table th a:hover {
    background: #e9ecef;
}

.pages-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
    vertical-align: middle;
    word-wrap: break-word;
}

/* Interactive Toggles */
.status-toggle {
    padding: 6px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    min-width: 100px;
    transition: all 0.2s ease;
    font-size: 0.7rem;
    border: 1px solid transparent;
    user-select: none;
}

.status-published { background-color: #e6fcf5; color: #087f5b; border-color: #087f5b; }
.status-unpublished { background-color: #fff5f5; color: #c92a2a; border-color: #c92a2a; }
.status-toggle:hover { opacity: 0.8; transform: scale(1.05); }

/* Audit Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
}

.badge-fail { background-color: #fce8e6; color: #b30000; border: 1px solid #b30000; }
.badge-pass { background-color: #e6fcf5; color: #087f5b; border: 1px solid #087f5b; }

/* Action Buttons */
.btn-action {
    padding: 6px 10px;
    text-decoration: none;
    border-radius: 4px;
    color: white !important;
    margin-bottom: 3px;
    display: inline-block;
    font-weight: bold;
    font-size: 0.75rem;
}

.btn-add {
    background: #003366;
    color: white !important;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 25px;
}

.bg-edit { background: #28a745; }
.bg-content { background: #17a2b8; }
.bg-delete { background: #dc3545; }

/* Form Layouts */
.admin-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-section-header {
    grid-column: span 2;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 20px;
}

.field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.field input, .field select, .field textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
/* Navigation & Header Consolidation */
.admin-header-wrapper {
    background-color: #ffffff;
    border-bottom: 4px solid #003366;
    width: 100%;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.admin-nav-bar {
    background-color: #003366;
    color: #ffffff;
    min-height: 50px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu > li { position: relative; }

.nav-menu li a {
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-weight: 500;
}

.nav-menu li a:hover {
    background-color: #004a94;
    color: #ffcc00;
}

/* Dropdown styling */
.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #003366;
    list-style: none;
    min-width: 220px;
    display: none;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 9999;
}

.nav-menu li:hover > .dropdown { display: block; }

.dropdown li a {
    padding: 12px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.has-dropdown > a::after { content: ' ▾'; font-size: 0.8rem; }
/* New Top Bar Styles */
.x-topbar {
    position: relative;
    min-height: 46px;
    padding: 6px 0;
    background-color: #22223B; /* Updated to your preferred color */
    z-index: 1031;
    display: flex;
    align-items: center;
}

/* Centered Container Logic */
.x-container {
    margin: 0 auto;
}

.x-container.max {
    max-width: 1200px;
}

.x-container.width {
    width: 90%;
}

/* Social Icon Styling */
.x-social-global-footer {
    display: flex;
    gap: 15px;
    /*justify-content: flex-end;*/ /* Aligns icons to the right within the centered container */
  justify-content: center; /* Centers items horizontally */
  align-items: center;     /* Centers items vertically (if height is set) */
  gap: 20px;
}

.x-social-global-footer a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.x-social-global-footer a:hover {
    color: #ffcc00; /* Matching your hover theme */
    opacity: 0.8;
}

/* Layout Adjustment for Header */
.admin-header-wrapper {
    background-color: #ffffff;
    border-bottom: 4px solid #003366;
    width: 100%;
}
/* Social Icon Circular Design */
.x-social-global {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.x-social-global a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1); /* Lighter than #22223B background */
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.x-social-global-footer a {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.1); /* Lighter than #22223B background */
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Official Brand Colors on Hover */
.x-social-global a.facebook:hover { background-color: #1877F2; color: #fff; }
.x-social-global a.x-twitter:hover { background-color: #000000; color: #fff; }
.x-social-global a.linkedin:hover { background-color: #0077B5; color: #fff; }
.x-social-global a.youtube:hover { background-color: #FF0000; color: #fff; }

/* Ensure icons stay centered in circles */
.x-social-global a i {
    line-height: 0;
}

/* Logo enforcement */
.logo-box img {
    width: 160px !important;
    height: auto;
    display: block;
}
/* DEFAULT ADMIN THEME (Logged In) */
.admin-nav-bar.admin-theme {
    background-color: #003366;
    color: #ffffff;
}
.admin-theme .nav-menu li a { color: #ffffff; }
.admin-theme .admin-meta { color: #abc; }

/* PUBLIC THEME (Logged Out) */
.admin-nav-bar.public-theme {
    background-color: #ffffff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.public-theme .nav-menu li a {
    color: #444444; /* Dark Grey Font */
}

.public-theme .nav-menu li a:hover {
    background-color: #f5f5f5; /* Light grey hover */
    color: #003366; /* Accent color on hover */
}

/* Ensure the dropdowns in public theme also have white backgrounds */
.public-theme .dropdown {
    background-color: #ffffff;
    border: 1px solid #eee;
}

.public-theme .dropdown li a {
    color: #444444;
    border-bottom: 1px solid #f0f0f0;
}

.public-theme .dropdown li a:hover {
    background-color: #f9f9f9;
}
/* WIDGET FOOTER STYLES */
.x-colophon.top.custom-widgets {
    background-color: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #e5e5e5;
    font-size: 0.875rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Equal columns */
    gap: 30px;
}

.footer-column h4.h-widget {
    font-family: 'Jost', sans-serif;
    color: var(--purple-dark);
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: none;
    font-weight: 400;
}

.footer-column .textwidget p {
    color: #777777;
    line-height: 1.8;
    margin: 0;
}

.footer-column .textwidget a {
    color: #777777;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column .textwidget a:hover {
    color: var(--purple-dark);
}

.footer-column i {
    color: var(--gold); /* Gold accent for the icons */
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Responsive Footer */
@media (max-width: 979px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 on Tablets */
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stacked on Mobile */
        text-align: center;
    }
}
.ms-w.x-col {
  font-size: 1em;
}
.ms-c.x-row {
  font-size: 1em;
}
.ms-r {
  --gap: 4%;
}
h5, .h5 {
  font-size: 150%;
}
.ms-1e.x-image {
  font-size: 1em;
  max-width: 250px;
  border-top-width: 0;
  border-right-width: 0;
  border-bottom-width: 0;
  border-left-width: 0;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
  background-color: transparent;
}
.image-box-pres {
  max-width: 350px;
  border-radius: 30px;

  /* Recommended additions for images */
  display: block;      /* Prevents unwanted gaps at the bottom */
  height: auto;        /* Maintains aspect ratio */
  object-fit: cover;   /* Ensures the image fills the box nicely if height is set */
}
.image-box {
  max-width: 350px;
  border-radius: 30px;
padding:10px;
  /* Recommended additions for images */
  display: block;      /* Prevents unwanted gaps at the bottom */
  height: auto;        /* Maintains aspect ratio */
  object-fit: cover;   /* Ensures the image fills the box nicely if height is set */
}
.text-box {
  max-width: 850px;
  min-width:750px;
  border-radius: 30px;

  /* Recommended additions for images */
  display: block;      /* Prevents unwanted gaps at the bottom */
  height: auto;        /* Maintains aspect ratio */
  object-fit: cover;   /* Ensures the image fills the box nicely if height is set */
}
/* x-sections extracted from renew.css */
.x-section {
    display: block;
    position: relative;
    margin: 0 0 1.5em;
    padding: 45px 0;
}

.x-section:before,
.x-section:after {
    content: " ";
    display: table;
    width: 0px;
}

.x-section:after {
    clear: both;
}

/* Background Handlers */
.x-section.bg-image,
.x-section.bg-pattern {
    background-position: 50% 50%;
}

.x-section.bg-image {
    background-size: cover;
    background-repeat: no-repeat;
}

.x-section.bg-pattern {
    background-repeat: repeat;
}

.x-section.bg-video {
    position: relative;
    overflow: hidden;
}

/* Parallax Effect */
.x-section.bg-image.parallax,
.x-section.bg-pattern.parallax {
    background-attachment: fixed;
}

@media (max-width: 978.98px) {
    .x-section.bg-image.parallax,
    .x-section.bg-pattern.parallax {
        background-size: auto !important;
    }
}

/* Container inside Section */
.x-section .x-container:not(.x-row):not(.x-grid):not(.x-div):not(.x-bar-content):not(.x-slide-container-content) {
    position: relative;
    z-index: 1;
}

/* Marginless Columns Layout */
.x-section .x-container.marginless-columns {
    display: table;
    table-layout: fixed;
}

.x-section .x-container.marginless-columns:not(.width) {
    width: 100%;
}

.x-section .x-container.marginless-columns:before,
.x-section .x-container.marginless-columns:after {
    display: none;
}

.x-section .x-container.marginless-columns>.x-column {
    display: table-cell;
    margin-right: 0;
    float: none;
    vertical-align: top;
}

/* Column Width Ratios for Marginless Sections */
.x-section .x-container.marginless-columns>.x-column.x-1-1 { width: 100%; }
.x-section .x-container.marginless-columns>.x-column.x-1-2 { width: 50%; }
.x-section .x-container.marginless-columns>.x-column.x-1-3 { width: 33.33333%; }
.x-section .x-container.marginless-columns>.x-column.x-2-3 { width: 66.66666%; }
.x-section .x-container.marginless-columns>.x-column.x-1-4 { width: 25%; }
.x-section .x-container.marginless-columns>.x-column.x-3-4 { width: 75%; }

@media (max-width: 766.98px) {
    .x-section .x-container.marginless-columns {
        display: block;
    }
    .x-section .x-container.marginless-columns:before,
    .x-section .x-container.marginless-columns:after {
        display: table;
    }
    .x-section .x-container.marginless-columns>.x-column[class*=x-] {
        display: block;
        width: 100%;
        vertical-align: inherit;
    }
}
.x-section-separator {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 10;
}

.x-section-separator svg {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.x-section-separator-top {
    top: 0;
    transform: translateY(-100%);
}

.x-section-separator-bottom {
    bottom: 0;
    transform: translateY(100%);
}

/* General Separator Handler */
[class*=x-separator] {
    display: block;
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    margin: 0 auto;
}

[class*=x-separator][class*=top] {
    top: 0;
    transform: translateY(-100%);
}

[class*=x-separator][class*=bottom] {
    bottom: 0;
    transform: translateY(100%);
}
/* Typography & Headlines */
.x-text {
    min-width: 1px;
}

.x-text-headline {
    position: relative;
}

.x-text-content {
    display: flex;
}

.x-text-content-text {
    flex-grow: 1;
    min-width: 1px;
    max-width: 100%;
}

.x-text-content-text-primary {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
}

/* Standard Paragraph Styling from renew.css */
p {
    margin: 0 0 1.5em;
    line-height: 1.8;
}

h1 {
    margin: 1.25em 0 .2em;
    font-size: 400%;
    line-height: 1.1;
    text-rendering: optimizelegibility;
}
.x-line {
    display: block;
    width: 100%;
    height: 0;
    margin: 1.5em 0;
    border: 0;
    border-top: 2px solid #e5e5e5; /* Default border color from renew.css */
    transition-duration: .3s;
    transition-property: opacity, filter, transform;
}
.site-main-content { padding: 40px 5%; min-height: 60vh; background: #fff; }
.container { max-width: 1200px; margin: 0 auto; }
.page-header h1 { color: #003366; font-size: 2.5rem; margin-bottom: 20px; border-bottom: 3px solid #ffcc00; display: inline-block; padding-bottom: 5px; }
/* Core Line styling from renew.css */
.x-line {
    display: block;
    height: 0;
    border: 0;
    border-top: 2px solid #e5e5e5; /* Base color */
    transition-duration: .3s;
}

/* Specific styling to match the original layout */
.vehicle-line {
    width: 100%;             /* Fills the column width */
    margin-top: 2.5em;       /* Adjust this to vertically center with the H1 */
    border-top-width: 3px;   /* Matches the weight of the title border */
    border-top-color: #ffcc00; /* Matches the yellow highlight in your original PHP */
}

/* Grid alignment to keep everything on one line */
.x-row-inner {
    display: flex;
    align-items: flex-start; /* Ensures columns stay aligned at the top */
    width: 100%;
}

.center-text {
    text-align: center;
}