/*
  ANT INSURANCE - SHARED SITE STYLES
  Add this file after the existing page stylesheet on every page:
  <link rel="stylesheet" href="/css/antinsurance_shared.css">

  This file is intentionally conservative: it modernises typography, spacing,
  navigation, content and footer while preserving existing site-specific layouts.
*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #f3f3f3;
    color: #444;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* Main site frame */
#wrapper {
    width: 960px;
    max-width: calc(100% - 32px);
    margin: 24px auto;
    background: #fff;
    border: 1px solid #dedede;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.08);
}

/* Header and logo */
#header,
#top {
    position: relative;
    min-height: 120px;
    padding: 18px 24px 0;
    background: #fff;
}

#logo,
.logo {
    float: left;
    max-width: 48%;
}

#logo img,
.logo img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.tel,
.award {
    float: right;
    max-width: 48%;
    text-align: right;
}

.tel p {
    margin-top: 0;
}

.tel h1 {
    color: #990000;
    font-size: 16px;
    line-height: 1.3;
}

.award img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Navigation - supports both original menu IDs */
#top_nav,
#menu {
    clear: both;
    min-height: 42px;
    background: #8f0000;
    border-top: 1px solid #760000;
    border-bottom: 4px solid #dedede;
}

#top_nav ul,
#menu ul {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0 10px;
    list-style: none;
}

#top_nav li,
#menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#top_nav a,
#menu a {
    display: block;
    padding: 12px 13px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.35;
    text-decoration: none;
    transition: background .2s ease;
}

#top_nav a:hover,
#top_nav li.active a,
#top_nav li.nonActive a:hover,
#menu a:hover {
    background: #650000;
    color: #fff;
}

/* Legacy page header/menu variants */
#top {
    overflow: hidden;
}

#menu ul {
    justify-content: space-between;
}

#menu a {
    display: inline-block;
}

/* Main content areas */
#content,
#columns,
#column-content,
#column-right {
    min-width: 0;
}

#content {
    padding: 24px 22px;
    background: #fff;
}

#columns {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 22px;
}

#column-content {
    flex: 1 1 auto;
    width: auto;
}

#column-right {
    flex: 0 0 205px;
    width: 205px;
}

.content,
.about-page,
#column-content .content {
    color: #444;
    font-size: 14px;
    line-height: 1.7;
}

.content {
    padding: 24px 28px;
    background: #fff;
}

#content h1,
#content h2,
.content h1,
.content h2,
.about-page h1,
.about-page h2 {
    color: #990000;
    font-weight: normal;
    line-height: 1.3;
}

#content h1,
.content h1,
.about-page h1 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    font-size: 25px;
    border-bottom: 1px solid #ddd;
}

#content h2,
.content h2,
.about-page h2 {
    margin: 24px 0 12px;
    font-size: 20px;
}

#content h3,
.content h3,
.about-page h3 {
    margin: 22px 0 10px;
    color: #990000;
    font-size: 17px;
    line-height: 1.4;
}

#content p,
.content p,
.about-page p {
    margin: 0 0 16px;
}

#content ul,
.content ul,
.about-page ul {
    padding-left: 22px;
}

#content li,
.content li,
.about-page li {
    margin-bottom: 7px;
}

#content img,
.content img {
    max-width: 100%;
    height: auto;
}

/* Links */
a {
    color: #990000;
}

a:hover {
    color: #650000;
}

/* Forms and common controls */
input,
select,
textarea,
button {
    max-width: 100%;
    font: inherit;
}

input,
select,
textarea {
    padding: 9px 10px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    color: #333;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(153, 0, 0, .16);
    border-color: #990000;
}

/* Sidebar boxes */
#column-right h1,
#column-right h2,
#column-right h3 {
    color: #990000;
    font-weight: normal;
}

#right-bottom,
#column-right .box,
#column-right .sidebox {
    margin-bottom: 18px;
    padding: 16px;
    background: #f7f7f7;
    border: 1px solid #e2e2e2;
}

/* Shared footer */
#footer {
    clear: both;
    padding: 18px 24px;
    background: #eee;
    border-top: 1px solid #d7d7d7;
    color: #666;
    font-size: 11px;
}

#footerNavigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#footer .copyright,
#footer p {
    margin: 8px 0 0;
    color: #666;
    font-size: 11px;
    line-height: 1.5;
}

/* Utility classes used by the original pages */
.clear,
.clearfix {
    clear: both;
}

.clearfix::after {
    display: table;
    clear: both;
    content: "";
}

/* Responsive layout */
@media (max-width: 760px) {
    #wrapper {
        width: auto;
        max-width: none;
        margin: 0;
        border: 0;
        box-shadow: none;
    }

    #header,
    #top {
        padding: 14px 16px 0;
    }

    #logo,
    .logo {
        float: none;
        max-width: 100%;
        margin-bottom: 12px;
    }

    .tel,
    .award {
        float: none;
        max-width: 100%;
        text-align: left;
        margin-bottom: 12px;
    }

    .tel h1 {
        text-align: left !important;
    }

    #top_nav ul,
    #menu ul {
        padding: 0;
    }

    #top_nav a,
    #menu a {
        padding: 11px 10px;
    }

    #columns {
        display: block;
        padding: 14px;
    }

    #column-right {
        width: auto;
        margin-bottom: 18px;
    }

    #content {
        padding: 14px;
    }

    .content {
        padding: 18px 14px;
    }
}

@media (max-width: 480px) {
    #top_nav ul,
    #menu ul {
        display: block;
    }

    #top_nav li,
    #menu li {
        display: block;
        border-bottom: 1px solid rgba(255,255,255,.15);
    }

    #top_nav a,
    #menu a {
        display: block;
    }

    #footer {
        padding: 15px;
    }
}

/* Print */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    #wrapper {
        width: 100%;
        max-width: none;
        margin: 0;
        border: 0;
        box-shadow: none;
    }

    #top_nav,
    #menu,
    #column-right {
        display: none !important;
    }

    #content,
    #columns,
    .content {
        padding: 0;
    }
}
