/* Global Variables */
:root {
    --light-gray: #E6E5E5;
    --black: #000;
    --blue: #1A4FA1;;
    --dark-blue: #1A4FA1;;
    --button-blue: #1A4FA1;
    --muted-black: #555555;
    --border-gray: #ccc;
    --font-primary: Arial, sans-serif;
    --white: #ffffff;
    --dark-gray: #333333;
    --medium-gray: #808080;
}

/* Global Styles */
body {
    font-family: var(--font-primary);
    background-color: var(--light-gray);
}

/* Secondary Area */
.secondary-area .card {
    border: none;
    background-color: transparent;
}

.secondary-area .card-img-top {
    border-radius: 5px;
    transition: transform 0.3s;
}

.secondary-area .card-img-top:hover {
    transform: scale(1.05);
}

.secondary-area .card-body {
    padding: 10px 0;
}

.secondary-area .card-title {
    font-size: 1.6875rem;
    font-weight: 700;
    color: var(--black);
    margin: 0;
}

.secondary-area .card-title:hover,
.secondary-area .card-link:hover {
    text-decoration: none;
}

.secondary-area .card-link:visited {
    color: var(--black);
}

/* Navigation Links */
.nav-custom {
    font-family: var(--font-primary);
    font-weight: bolder;
    text-transform: uppercase;
    color: var(--black);
}

.nav-custom:hover {
    color: #1E73BE; /* Lighter blue hover effect */
    text-decoration: none;
}

.nav-custom:visited {
    color: #555555; /* Medium gray for visited links */
}

/* Button Styles */
.btn {
    font-family: var(--font-primary);
    font-weight: normal;
    text-transform: none;
}

/* Header */
.custom-bg {
    background-color: var(--light-gray) !important;
}

/* buttons */
.btn-ad-specs {
    background-color: #1A4FA1; /* Darkened blue color */
    color: #fff; /* White text for better contrast */
    border: none; /* Remove borders if needed */
}

.btn-ad-specs:hover,
.btn-ad-specs:focus {
    background-color: #007bff; /* Ensure blue remains solid on hover/focus */
    color: #fff;
}

/* Grid Front Page */
.styled-img {
    border: 1px solid var(--border-gray);
    border-radius: 10% 10% 0 0;
    width: 100%;
    height: auto;
    position: relative;
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-color: transparent transparent var(--blue) transparent;
    z-index: 1;
    pointer-events: none;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent; /* Removes default Bootstrap background */
    margin-top: 20px;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #1A4FA1; /* Darker blue link color for better contrast */
}

.breadcrumb-item a:hover {
    text-decoration: underline; /* Underline on hover */
}

.breadcrumb-item.active {
    color: #666666; /* Lighter gray for accessibility */
    font-weight: bold;
}

/* Optimized Styles */
.header-section {
    background-color: var(--white); /* White background */
    padding: 20px;
    border: 1px solid #ddd;
}

.header-section h1 {
    color: #1A4FA1; /* Blue heading color */
    font-weight: bold;
    margin-top: 15px;
}

.logo img {
    max-height: 50px;
    margin-right: 10px;
}

/* Sidebar Styling */
.rates-header-section {
    padding: 20px;
    text-align: center;
}

.rates-logo img {
    max-height: 60px; /* Logo size */
}

.rates-title {
    color: #1A4FA1; /* Blue color for National Rates */
    font-weight: bold;
    font-size: 1.8rem;
    margin-top: 10px;
}

.rates-sidebar {
    background-color: #e6e6e6; /* Light gray sidebar */
    padding: 15px;
    border-radius: 5px;
}

.container-custom {
    border: 1px solid #ffffff; /* 1-point white border */
    border-radius: 10px; /* Curved corners */
    background-color: var(--light-gray);
    padding: 20px;
}

.rates-sidebar h5 {
    background-color: #1A4FA1;
    color: #fff;
    padding: 8px;
    margin: 0;
    border-radius: 5px;
    text-align: center;
}

.rates-sidebar ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.rates-sidebar li {
    border-top: 1px solid #ccc;
    padding: 5px 0;
}

.rates-sidebar a {
    text-decoration: none;
    color: #1A1A1A;
    font-size: 0.9rem;
}

.rates-sidebar a:hover {
    color: #1E73BE; /* Hover effect */
}

.rates-sidebar {
    background-color: #e6e6e6; /* Light gray sidebar */
    padding: 15px;
    border-radius: 5px;
}

.rates-sidebar h5 {
    background-color: #1A4FA1; /* Blue heading background */
    color: #fff; /* White text */
    padding: 8px;
    margin: 0;
    border-radius: 5px;
}

.rates-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.rates-sidebar li {
    border-top: 1px solid #ccc;
    padding: 5px 0;
}

.rates-sidebar a {
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.rates-sidebar a:hover {
    color: #1E73BE; /* Blue hover effect */
}

.rates-h6 {
    font-weight: bold;
}

.rate-box {
    background-color: lightblue;
}

.header-section {
    background-color: var(--white); /* White background */
    padding: 20px;
    border: 1px solid #ddd; /* Optional border for clarity */
}

.header-section h1 {
    color: #1A4FA1; /* Blue heading color */
    font-weight: bold;
    margin-top: 15px;
}

.header-section p {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-top: 10px;
}

.section-title {
    font-weight: bold;
    margin-top: 20px;
}

h3 a {
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background-color: #fff;
    font-family: var(--font-primary);
}

.hero-title {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--black);
}

.hero-title .highlighted-text {
    color: #1A4FA1;
}

.hero-title .dominant-text {
    font-weight: 900;
}

.hero-description {
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--muted-black);
}

/*About*/
.about-section {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Optional: Overlay effect */
}

.about-text {
    margin-bottom: 20px; /* Aligns with the bottom spacing */
}

/* Optional utility classes for finer alignment */
.container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1140px; /* Match Bootstrap's max-width specs */
}

.marketing-text {
    font-weight: bold;
    font-size: 1.8rem; /* Adjust font size */
}

.blue-text {
    color: var(--blue)
}

/*Rates - Community*/
.community-pricing-header {
    background-color: #8AB6D9; /* Darkened blue for better contrast */
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    color: black;
    font-size: 1.2rem;
}

.community-pricing-header-blank {
    text-align: center;
    padding: 10px 0;
    color: black;
    font-size: 1.2rem;
}

.community-pricing-value {
    text-align: center;
    font-size: 1rem;
    padding: 10px 0;
    color: black;
}

.community-left-label {
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 0;
}

.community-table-header {
    text-transform: uppercase;
    font-weight: bold;
    color: #111111;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Sub-header styling */
.community-table-subheader {
    font-size: 0.9rem;
    color: gray;
    margin-bottom: 15px;
}

/* Color Charges Row */
.community-color-charges {
    background-color: #EDEDED; /* Light Gray Background */
    font-weight: bold;
}

.community-value-cell {
    text-align: center;
}


/* Ensures full responsive alignment */
.community-row {
    margin: 0;
}

/* General Styling */
.special-supplements body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark-gray); /* Ensures sufficient contrast */
}

.special-supplements h1,
.special-supplements h2,
.special-supplements h3,
.special-supplements h4,
.special-supplements h5,
.special-supplements h6 {
    font-weight: bold;
}

.special-supplements .highlight-section {
    background-color: #e3e9f5;
    font-weight: bold;
}

.special-supplements .global-title {
    color: #1A4FA1;
    font-size: 1.75rem;
}

.special-supplements .rate-text {
    color: #1A4FA1;
    text-decoration: underline;
}

.special-supplements .section-title {
    font-size: 1.1rem;
    color: #1A4FA1;
    font-weight: bold;
    margin-top: 1rem;
}

/* Table Styling */
.special-supplements .table th,
.special-supplements .table td {
    border: none;
    border-bottom: 1px solid #ddd;
}

.special-supplements .table th {
    font-weight: bold;
}

.special-supplements .ad-size-table td,
.special-supplements .ad-size-table th {
    font-size: 0.9rem;
    padding: 0.5rem;
}

/* Buttons */
.special-supplements .btn-highlight {
    background-color: #1A4FA1;
    color: #fff;
    font-weight: bold;
    border-radius: 0;
}

/*Ad Specs*/
.ad-specs-accordion-body {
    font-size: 14px;
    line-height: 1.6;
    padding: 10px;
}

.ad-specs-accordion-body h4 {
    font-weight: bold;
    margin-top: 20px;
}

.ad-specs-accordion-body ul {
    list-style: none;
    padding-left: 0;
}

.ad-specs-accordion-body ul li::before {
    content: "•";
    margin-right: 10px;
}

.web-section-header {
    font-weight: bold;
    font-size: 1.2rem;
    color: #1A4FA1;
    margin-bottom: 10px;
}

.web-rich-media-title {
    background-color: #1A4FA1;
    color: #fff;
    padding: 8px 12px;
    font-size: 1rem;
}

.web-spec-table td {
    padding: 8px;
}

.web-placeholder {
    background-color: #ccc;
    color: #fff;
    text-align: center;
    line-height: 180px;
    font-weight: bold;
    border: 1px solid #ddd;
}

.web-blue-bar {
    background-color: #1A4FA1;
    color: white;
    text-transform: uppercase;
    text-align: center;
    padding: 8px;
}

.small.text-muted {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
    font-style: italic;
}

.title-with-line {
    font-weight: bold;
    border-bottom: 2px solid var(--blue);
    color: var(--blue);
    display: block;
    padding-bottom: 4px;
    text-align: center;
}

/* Footer */
.back-to-top {
    font-family: var(--font-primary);
    font-weight: bold;
    text-transform: uppercase;
    color: var(--blue);
    font-size: 1rem;
}

.back-to-top:hover {
    color: #1E73BE; /* Lighter blue for back-to-top hover */
    text-decoration: none;
}

.back-to-top i {
    margin-right: 5px;
    color: var(--blue);
}

footer a {
    color: #1A4FA1; /* Darker blue links for better contrast */
    text-decoration: none;
}

footer a:visited {
    color: #555555; /* Medium gray for visited links */
}

footer a:hover {
    text-decoration: underline;
    color: #333333;
}

.footer-custom-border {
    border-color: var(--medium-gray);
    border-width: 1px;
    width: 80%;
    margin: 0 auto;
    display: block;
}

/* Print CSS for portrait mode */
@media print {
    /* Hide header and footer when printing */
    footer, body > div:nth-child(4) > div > div > div > div:nth-child(1),
    body > div:nth-child(4) > div > div > div > div:nth-child(2) > div > div.col-md-4,
    body > div:nth-child(3),
    body > div:nth-child(5) > div > aside,
    body > section.about-section.position-relative,
    body > div:nth-child(3) > header,
    body > div:nth-child(5) > div > div > div > div.container.mt-4,
    body > div:nth-child(5) > div > aside
    {
        display: none !important;
    }
    /* Hide all buttons */
    button {
        display: none !important;
    }

    /* Optional: Hide links styled as buttons */
    .btn {
        display: none !important;
    }
    /* Optional: Ensure the body content takes full height */
    body {
        margin: 0;
        padding: 0;
        background-color: #F8F9FA; /* Updated background color for accessibility */
    }
}
