body {
    margin: 0;
    padding: 0;
    font-family: 'Times New Roman', Times, serif;
    background: #fff;
    color: #222;
}
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 700px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}
@media (max-width: 600px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}
header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* padding: 0 32px; */
    max-width: 1300px;
    margin: 0 auto;
    height: 90px;
}
.logo {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 0;
}
.logo img {
    height: 60px;
    display: block;
    width: auto;
    max-width: 100%;
}
nav.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    position: static;
    transform: none;
    border: none;
    background: transparent;
    animation: none;
}
.main-menu {
  display: flex;
  align-items: center;
  /* gap: 10px; */
  padding: 0;
  margin: 0;
  white-space: nowrap;
}
.main-menu > li {
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.main-menu > li > a {
  padding: 10px 12px;
  font-size: 0.8rem;
  margin: 0;
  white-space: nowrap;
  display: block;
  font-weight: 600;
  letter-spacing: 0.2px;
  /* font-size: 0.85rem; */
}
.main-menu > li:not(:last-child) {
  margin-right: -10px;
}
.main-menu > li {
  border: none;
  border-radius: 0;
  padding: 0 0 0 0;
  transition: background 0.2s;
  position: relative;
  background: transparent;
}
.main-menu > li::before,
.main-menu > li::after {
    /* content: none !important; */
    display: none !important;
}
.main-menu > li > a {
    color: #18325c;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.8rem; /* Decreased font size */
    letter-spacing: 0.5px;
    padding: 12px 18px;
    border-radius: 4px;
    background: transparent;
    display: block;
    position: relative;
    overflow: hidden;
}

.main-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 80%;
    height: 2px;
    background-color: #18325c;
    transition: left 0.3s ease;
}

.main-menu > li > a:hover::before {
    left: 10%;
}

.main-menu > li > a.active {
    color: #3a5a8c;
    background: transparent;
}

.main-menu > li > a.active::before {
    left: 10%;
}

/* Ensure submenu items get proper underline styling */
.main-menu ul li a.active::before {
    left: 10%;
}

/* Hide underline for main menu items that have active submenu items */
.main-menu > li.has-active-submenu > a::before {
    display: none;
}

.main-menu > li > a:hover {
    color: #3a5a8c;
    background: transparent;
}
.main-menu ul {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 100%;
  display: block;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.3s ease;
  min-width: 180px;
  z-index: 100;
  box-shadow: 0px 3px 13px 2px #ebecf121;
  transform: translateY(-10px);
  max-height: 0;
  overflow: hidden;
}
.main-menu ul li {
  margin: 0;
  width: 100%;
  line-height: 1.7;
  border: none;
  padding: 0;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.2s ease;
  transition-delay: 0.1s;
}
.main-menu ul li a {
  color: #18325c;
  text-decoration: none;
  padding: 12px 20px;
  display: block;
  background: none;
  border-radius: 0;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.main-menu ul li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 80%;
  height: 2px;
  background-color: #18325c;
  transition: left 0.3s ease;
}

.main-menu ul li a:hover::before {
  left: 10%;
}

.main-menu ul li a.active::before {
  left: 10%;
}
.main-menu > li:hover,
.main-menu > li:focus-within {
  background: transparent;
}
.main-menu > li:hover > a,
.main-menu > li:focus-within > a {
  color: #3a5a8c;
  background: transparent;
}
.main-menu > li:hover > ul,
.main-menu > li:focus-within > ul {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  max-height: 200px;
}
.main-menu > li:hover ul li,
.main-menu > li:focus-within ul li {
  opacity: 1;
  transform: translateY(0);
}

.main-menu > li:hover ul li a,
.main-menu > li:focus-within ul li a {
  color: #18325c;
}
.main-menu ul li a:hover {
  background: #e0e6ed;
  color: #3a5a8c;
}
.apply-btn {
    background: #a3b3c9;
    color: #fff;
    padding: 10px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-left: 24px;
    transition: background 0.2s, box-shadow 0.2s;
    font-size: 1.08rem;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    letter-spacing: 0.5px;
    height: 30px;
    line-height: 30px;
    display: inline-block;
    flex-shrink: 0;
}
.apply-btn:hover {
    background: #3a5a8c;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border-radius: 0 0 6px 6px;
    z-index: 100;
    padding: 8px 0;
}
.dropdown:hover > .dropdown-content,
.dropdown:focus-within > .dropdown-content {
    display: block;
}

footer {
    background: #fff;
    color: #18325c;
    padding: 40px 0 0 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.04);
    border-top: 1px solid #e0e0e0;
}
.footer-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}
.footer-columns {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    gap: 48px;
    flex-wrap: wrap;
}
.footer-logo-about {
    flex: 0 1 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
    text-align: left;
}
.footer-logo-about img,
.footer-logo-img {
    height: 70px;
    margin-bottom: 18px;
    display: block;
}
.footer-about {
    font-size: 1.08rem;
    color: #18325c;
    line-height: 1.7;
    margin-right: 0;
}
.footer-links, .footer-contact, .footer-location {
    flex: 0 1 auto;
    margin: 16px 0px;
    min-width: 180px;
    text-align: left;
}
.footer-links h4, .footer-contact h4, .footer-location h4 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #18325c;
}
.footer-links ul, .footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links a, .footer-contact a {
    color: #18325c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-links a:hover, .footer-contact a:hover {
    color: #3a5a8c;
    text-decoration: underline;
}
.footer-links li, .footer-contact li {
    margin-bottom: 8px;
}
/* Removed: .footer-links li:first-child a font-weight: bold; - All links should have same weight */
.footer-contact ul {
    margin-bottom: 10px;
}
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-info-icon {
    flex-shrink: 0;
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #18325c;
    font-size: 1rem;
    line-height: 1;
}
.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    text-align: left;
    justify-content: flex-start;
}
.footer-address p {
    margin: 0;
}
    margin-top: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-social a {
    display: inline-block;
    vertical-align: middle;
    text-decoration: none;
    color: #18325c;
    transition: color 0.2s;
}
.footer-social a:hover {
    color: #3a5a8c;
}
.footer-location {
    min-width: 220px;
    text-align: left;
}
.footer-location .footer-map {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 220px;
    margin-left: 0;
    margin-right: auto;
}
.footer-location p {
    margin: 0;
    font-size: 1.08rem;
    color: #18325c;
}
.footer-bottom {
    text-align: center;
    padding: 18px 0 12px 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    font-size: 15px;
    color: #18325c;
    margin-top: 32px;
}
@media (max-width: 1100px) {
    .footer-container {
        padding: 0 8px;
    }
    .footer-columns {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 18px;
        justify-content: center;
    }
    .footer-logo-about, .footer-links, .footer-contact, .footer-location {
        min-width: 180px;
        margin: 12px 0;
    }
}
@media (max-width: 900px) {
    .footer-columns {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        align-items: center;
    }
    .footer-logo-about, .footer-links, .footer-contact, .footer-location {
        flex: 0 1 auto;
        min-width: 160px;
        margin: 10px 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .footer-logo-about {
        align-items: center;
        width: 100%;
    }
    .footer-logo-about img,
    .footer-logo-img {
        margin: 0 auto 18px auto;
        display: block;
        text-align: center;
    }
    .footer-about {
        text-align: center;
        margin: 0 auto;
        width: 100%;
        max-width: 95%;
        padding: 0 10px;
    }
    .footer-links h4, .footer-contact h4, .footer-location h4 {
        text-align: center;
        width: 100%;
        margin-bottom: 12px;
    }
    .footer-links ul, .footer-contact ul {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0 auto;
    }
    .footer-links li, .footer-contact li {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-bottom: 8px;
    }
    .footer-links li a {
        text-align: center;
        display: block;
    }
    .footer-contact li {
        justify-content: center;
        text-align: center;
    }
    .footer-social {
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin: 12px auto 0 auto;
        width: 100%;
    }
    .footer-social a {
        margin: 0;
        display: inline-block;
        vertical-align: middle;
    }
    .footer-location {
        align-items: center;
        width: 100%;
    }
    .footer-location .footer-map {
        margin: 0 auto;
    }
    .footer-location p {
        text-align: center;
        margin: 0 auto;
    }
}
@media (max-width: 700px) {
    .footer-container {
        padding: 0 16px;
    }
    .footer-columns {
        flex-direction: column;
        align-items: center !important;
        gap: 24px;
        justify-content: center;
        width: 100%;
    }
    .footer-logo-about, .footer-links, .footer-contact, .footer-location {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 20px 0 !important;
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .footer-logo-about {
        align-items: center !important;
    }
    .footer-logo-about img,
    .footer-logo-img {
        margin: 0 auto 20px auto !important;
        display: block !important;
        text-align: center !important;
    }
    .footer-about {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 95% !important;
        padding: 0 10px !important;
        width: 100% !important;
    }
    .footer-links h4, .footer-contact h4, .footer-location h4 {
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 16px !important;
    }
    .footer-links ul, .footer-contact ul {
        text-align: center !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    .footer-links li, .footer-contact li {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    .footer-links li a, .footer-contact li a {
        text-align: center !important;
    }
    .footer-contact li {
        justify-content: center !important;
        text-align: center !important;
    }
    .footer-social {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 16px !important;
        margin: 16px auto 0 auto !important;
        width: 100% !important;
    }
    .footer-social a {
        margin: 0 !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
    .footer-location {
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
    }
    .footer-location .footer-map {
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 300px !important;
        display: flex !important;
        justify-content: center !important;
    }
    .footer-location .footer-map iframe {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        display: block !important;
    }
    .footer-location p {
        text-align: center !important;
        margin: 16px auto 0 auto !important;
        width: 100% !important;
    }
}
@media (max-width: 600px) {
    .footer-container {
        padding: 0 16px !important;
    }
    .footer-columns {
        flex-direction: column !important;
        align-items: center !important;
        gap: 24px !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .footer-logo-about, .footer-links, .footer-contact, .footer-location {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin: 20px 0 !important;
    }
    .footer-logo-about {
        align-items: center !important;
    }
    .footer-logo-about img,
    .footer-logo-img {
        margin: 0 auto 20px auto !important;
        display: block !important;
        text-align: center !important;
    }
    .footer-about {
        text-align: center !important;
        margin: 0 auto !important;
        max-width: 95% !important;
        padding: 0 10px !important;
        width: 100% !important;
    }
    .footer-links h4, .footer-contact h4, .footer-location h4 {
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 16px !important;
    }
    .footer-links ul, .footer-contact ul {
        text-align: center !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    .footer-links li, .footer-contact li {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 12px !important;
    }
    .footer-links li a {
        text-align: center !important;
        display: block !important;
    }
    .footer-contact li {
        justify-content: center !important;
        text-align: center !important;
    }
    .footer-social {
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 20px !important;
        margin: 20px auto 0 auto !important;
        width: 100% !important;
    }
    .footer-social a {
        margin: 0 !important;
        font-size: 1.4rem !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
    .footer-location {
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
    }
    .footer-location .footer-map {
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 320px !important;
        display: flex !important;
        justify-content: center !important;
    }
    .footer-location .footer-map iframe {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto !important;
        display: block !important;
    }
    .footer-location p {
        text-align: center !important;
        margin: 16px auto 0 auto !important;
        width: 100% !important;
    }
}
/* Home, About, Programs, Closings, Forms, Contact, Calculator, CEO, etc. */
.main-content, .about-main-content, .loan-programs-main-content, .loan-closings-main-content, .download-forms-main-content, .contact-main-content, .mortgage-main-content, .ceo-main-content {
    background: #f7f8fa;
    padding: 40px 0 60px 0;
}
/* Hero section height and centering */
.about-hero-bg, .loan-programs-hero-bg, .loan-closings-hero-bg, .download-forms-hero-bg, .contact-hero-bg, .mortgage-hero-bg, .ceo-hero-bg, .team-hero-bg, .contactdata-hero-bg {
  height: 220px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
/* Hero Section Background Images */
/* .hero-bg background-image is set via inline styles in index.php */
.about-hero-bg {
  background-image: url('../images/about.webp');
}
.loan-programs-hero-bg {
  background-image: url('../images/loan%20program%20hero.webp');
}
.loan-closings-hero-bg {
  background-image: url('../images/loan%20closing.webp');
}
.download-forms-hero-bg {
  background-image: url('../images/download%20form.webp');
  height: 300px;
  min-height: 300px;
}
.contact-hero-bg {
  background-image: url('../images/contact%20us.webp');
}
.contactdata-hero-bg {
  background-image: url('../images/contact%20us.webp');
}
.mortgage-hero-bg {
  background-image: url('../images/mortgage%20calculation.webp');
}
.ceo-hero-bg {
  background-image: url('../images/niraj%20sheth%20banner.webp');
}
.team-hero-bg {
  background-image: url('../images/team%20page.webp');
}

/* .hero-bg styles are defined above with other hero sections */
.hero-content, .about-title, .loan-programs-title, .loan-closings-title, .download-forms-title, .contact-title, .mortgage-title, .ceo-title, .team-title {
  color: #fff;
  font-size: 2.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  text-align: center;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: bold;
  margin-bottom: 12px;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  text-align: center;
  width: 100%;
}
.hero-content h2 {
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  text-align: center;
  width: 100%;
}
.about-grid, .loan-programs-row {
    display: flex;
    gap: 40px;
    margin: 40px 0 0 0;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.about-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    width: 100%;
    /* Remove max-width for fluid grid */
}
@media (max-width: 900px) {
    .about-images {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
}
@media (max-width: 600px) {
    .about-images {
        grid-template-columns: 1fr;
        width: 100%;
    }
}
.about-grid-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    object-fit: cover;
    display: block;
}
.about-text, .loan-program-card {
    flex: 2 1 600px;
    font-size: 1.08rem;
    color: #223;
    line-height: 1.7;
    padding: 0 10px;
    /* margin-left: 55px; */
}
.about-text-2 {
    margin-left: 55px;
    flex: 2 1 600px;
    font-size: 1.08rem;
    color: #223;
    line-height: 1.7;
    padding: 0 10px;
    margin-bottom: 1px;
}
@media (max-width: 900px) {
    .about-text-2 {
        margin-left: 0;
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

.about-text p {
    margin-bottom: 1px;
}
.loan-program-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 28px 22px;
    margin: 18px;
    align-items: center;
    transition: box-shadow 0.2s;
}
.loan-program-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}
.loan-btn {
    margin-top: 18px;
    background: #3a5a8c;
    color: #fff;
    padding: 8px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
    border: none;
    outline: none;
    cursor: pointer;
}
.loan-btn:hover {
    background: #a3b3c9;
    color: #fff;
}
.loan-closings-table-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 36px 32px;
}
.loan-closings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.08rem;
    margin-bottom: 0;
}
.loan-closings-table th, .loan-closings-table td {
    padding: 12px 18px;
    border: none;
    text-align: left;
}
.loan-closings-table th {
    background: #18325c;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}
.loan-closings-table tr:nth-child(even) td {
    background: #ffffff;
}
.loan-closings-table tr:nth-child(odd) td {
    background: #7490b1;
    color: #ffffff;
}
.loan-closings-more {
    text-align: center;
    font-size: 1.3rem;
    color: #223;
    margin-top: 30px;
    font-weight: bold;
}
.download-forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px 32px;
    max-width: 900px;
    margin: 0 auto;
}
.download-form-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(204 207 222);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    font-size: 1.08rem;
    font-weight: 500;
    color: #223;
    transition: box-shadow 0.2s;
}
.download-form-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.download-btn {
    background: #3a5a8c;
    color: #fff;
    padding: 8px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
    border: none;
    outline: none;
    cursor: pointer;
}
.download-btn:hover {
    background: #a3b3c9;
    color: #fff;
}
.contact-container {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}
.contact-info, .contact-form-section {
    flex: 1 1 260px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 28px 24px;
    margin-bottom: 24px;
}
.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #223;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #c3c3c3;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #f9f9f9;
    transition: border 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    border: 1.5px solid #3a5a8c;
    outline: none;
}
.contact-btn {
    background: #3a5a8c;
    color: #fff;
    padding: 10px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.2s;
}
.contact-btn:hover {
    background: #a3b3c9;
    color: #fff;
}
.contact-success {
    background: #e0f7e9;
    color: #1a7a3a;
    border: 1px solid #b2e2c6;
    border-radius: 4px;
    padding: 18px 20px;
    margin-bottom: 18px;
    font-weight: 500;
    text-align: center;
}
.contact-map {
    max-width: 100%;
    margin: 0 auto;
    margin-top: 24px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.mortgage-calc-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    max-width: 520px;
    margin: 0 auto;
    padding: 36px 32px 32px 32px;
    text-align: center;
}
.mortgage-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
    gap: 8px;
}
.mortgage-tab {
    background: #e0e6ed;
    color: #3a5a8c;
    border: none;
    border-radius: 4px 4px 0 0;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.mortgage-tab.active, .mortgage-tab:hover {
    background: #3a5a8c;
    color: #fff;
}
.mortgage-form {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 18px;
    justify-content: center;
}
.mortgage-form input {
    padding: 10px 12px;
    border: 1px solid #c3c3c3;
    border-radius: 4px;
    font-size: 1rem;
    width: 120px;
    background: #f9f9f9;
    transition: border 0.2s;
}
.mortgage-form input:focus {
    border: 1.5px solid #3a5a8c;
    outline: none;
}
.mortgage-result {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 24px 0 12px 0;
    margin-top: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.mortgage-payment-value {
    font-size: 2.2rem;
    font-weight: bold;
    color: #3a5a8c;
    margin: 10px 0 8px 0;
}
.mortgage-breakdown {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 1.1rem;
    color: #223;
}
@media (max-width: 900px) {
    .footer-columns, .about-row, .loan-programs-row, .about-grid, .contact-container, .loan-closings-table-container, .ceo-profile-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .download-forms-grid {
        grid-template-columns: 1fr;
    }
    .about-images, .about-text, .loan-program-card {
        max-width: 100%;
        margin: 0 auto 18px auto;
    }
    .contact-info, .contact-form-section {
        margin-bottom: 18px;
    }
}
@media (max-width: 600px) {
  .hero-content h1, .about-title, .loan-programs-title, .loan-closings-title, .download-forms-title, .contact-title, .mortgage-title, .ceo-title {
    font-size: 1.4rem;
  }
  .about-hero-bg, .loan-programs-hero-bg, .loan-closings-hero-bg, .download-forms-hero-bg, .contact-hero-bg, .mortgage-hero-bg, .ceo-hero-bg, .team-hero-bg {
    height: 200px !important;
    min-height: 200px !important;
  }
  .about-row, .loan-programs-row, .loan-closings-table-container, .ceo-profile-container {
    padding: 8px 12px;
  }
  .mortgage-calc-container {
    padding: 18px 12px;
  }
  .mortgage-form {
    flex-direction: column;
    gap: 8px;
  }
  .mortgage-breakdown {
    flex-direction: column;
    gap: 8px;
  }
  .about-masonry {
    grid-template-columns: 1fr;
  }
  .about-masonry-img {
    width: 100%;
    height: 120px;
  }
  .about-text {
    max-width: 100%;
    padding: 16px 4px;
  }
} 
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards;
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: none;
    }
}
.about-images img.fade-up:nth-child(1) { animation-delay: 0.1s; }
.about-images img.fade-up:nth-child(2) { animation-delay: 0.2s; }
.about-images img.fade-up:nth-child(3) { animation-delay: 0.3s; }
.about-images img.fade-up:nth-child(4) { animation-delay: 0.4s; }
.about-images img.fade-up:nth-child(5) { animation-delay: 0.5s; } 
.fade-up-grid {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards;
}
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: none;
    }
} 
.about-row-img {
    height: 180px;
    width: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    background: #fff;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}
.about-row-img:not(:last-child) {
    margin-right: 0;
}
@media (max-width: 1100px) {
    .about-row-img {
        width: 220px;
        height: 140px;
    }
}
@media (max-width: 700px) {
    .about-images-row {
        gap: 12px !important;
    }
    .about-row-img {
        width: 100%;
        max-width: 320px;
        height: 120px;
        margin-bottom: 10px;
    }
} 
.about-main-flex {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  margin: 48px auto 0 auto;
  /* padding: 0 16px; */
}

.about-masonry {
  display: grid;
  grid-template-columns: repeat(2, 120px);
  gap: 10px;
}

.about-masonry-img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  background: #fff;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-masonry-img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

.about-text {
  max-width: 705px;
  font-size: 1.08rem;
  color: #223;
  line-height: 1.7;
  /* background: #fff; */
  /* border-radius: 10px; */
  /* box-shadow: 0 2px 10px rgba(0,0,0,0.07); */
  /* padding: 32px 28px; */
}

@media (min-width: 900px) {
  .about-masonry {
    grid-template-columns: repeat(3, 140px);
  }
}

@media (max-width: 900px) {
  .about-main-flex {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .about-masonry {
    grid-template-columns: repeat(2, 120px);
  }
  .about-text {
    padding: 24px 12px;
  }
} 
.about-main-content {
    background: #f7f8fa;
    padding: 48px 0 60px 0;
}
.about-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* gap: 48px; */
    max-width: 1100px;
    margin: 0 auto 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 40px 36px;
}
.about-col {
    flex: 1 1 50%;
    min-width: 320px;
    max-width: 520px;
    margin-right: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-img1 img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    display: block;
}
.about-img {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.about-img img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    display: block;
}
.about-text {
    font-size: 1.13rem;
    color: #223;
    line-height: 1.5;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-text h2 {
    font-size: 1.35rem;
    font-weight: bold;
    margin-bottom: 0px;
    color: #18325c;
}
.about-text p {
    margin-bottom: 1px;
}
@media (max-width: 1100px) {
    .about-row {
        gap: 24px;
        padding: 24px 8px;
    }
    .about-img1 img,
    .about-img img {
        width: 100%;
        height: 200px;
    }
}
@media (max-width: 800px) {
    .about-row {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 16px 4px;
    }
    .about-col {
        max-width: 100%;
        min-width: 0;
        margin: 0 auto 18px auto;
    }
    .about-img1 img,
    .about-img img {
        width: 100%;
        height: 160px;
    }
} 
.main-menu,
.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
} 
.ceo-hero-bg {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-left: 60px;
  padding-bottom: 28px;
}
.ceo-title {
  color: #fff;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  margin: 0;
}
.ceo-main-content {
  background: #f7f9fb;
  padding: 48px 0 60px 0;
}
.ceo-profile-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: none;
  padding: 0 24px;
}
.ceo-img {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.ceo-photo {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(24,50,92,0.10);
  border: 2px solid #e6eaf0;
}

.ceo-info {
  text-align: center;
  margin-top: 16px;
  padding: 0;
  width: 100%;
}

.ceo-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #183153;
  margin: 0 0 6px 0;
  font-family: 'Times New Roman', serif;
}

.ceo-position {
  font-size: 1rem;
  font-weight: 600;
  color: #67a2d7;
  margin: 0;
  font-family: 'Times New Roman', serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ceo-bio-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(24,50,92,0.08);
  padding: 0px 36px 32px 36px;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
}
.ceo-bio {
  color: #18325c;
  font-size: 1.08rem;
  margin-top: 25px;
  line-height: 1.7;
}
.ceo-bio p {
  margin-bottom: 18px;
  margin-top: 0;
}
@media (max-width: 900px) {
  .ceo-profile-container {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }
  .ceo-img {
    justify-content: flex-start;
  }
  .ceo-bio-card {
    padding: 24px 16px;
  }
}
@media (max-width: 600px) {
  .ceo-hero-bg {
    height: 120px;
    padding-left: 18px;
    padding-bottom: 10px;
  }
  .ceo-title {
    font-size: 1.2rem;
  }
  .ceo-main-content {
    padding: 24px 0 32px 0;
  }
  .ceo-profile-container {
    padding: 0 6px;
  }
  .ceo-bio-card {
    padding: 12px 4px;
  }
  .ceo-photo {
    max-width: 100%;
  }
  .ceo-name {
    font-size: 1.5rem;
  }
  .ceo-position {
    font-size: 1rem;
  }
} 
.ceo-title-section {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 0 10px 0;
  margin-bottom: 0;
}
.ceo-title-section .ceo-title {
  color: #18325c;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: none;
  margin: 0;
}
@media (max-width: 600px) {
  .ceo-title-section {
    padding: 12px 0 4px 0;
  }
  .ceo-title-section .ceo-title {
    font-size: 1.2rem;
  }
} 
.loan-programs-hero-bg {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.loan-programs-hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.loan-programs-title {
  color: #fff;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  margin: 0;
}
.loan-programs-hero-img {
  height: 110px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(24,50,92,0.10);
  background: #fff;
  padding: 6px 10px;
}
.loan-programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* gap: 36px 32px; */
  max-width: 1200px;
  margin: 0 auto 36px auto;
  padding: 0 24px;
}
.loan-program-card {
  background: #f7f9fb;
  border: 2px solid #345582;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(24,50,92,0.06);
  padding: 36px 28px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 420px;
}
.loan-program-logo {
  width: 150px;
  height: auto;
  margin-bottom: 18px;
}
.loan-program-card h2 {
  color: #18325c;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 16px 0;
}
.loan-program-card p {
  color: #2a3d5c;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.loan-btn {
  background: #004471;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(24,50,92,0.06);
  cursor: pointer;
  display: inline-block;
}
.loan-btn:hover {
  background: #49689a;
}
.loan-programs-coming-soon {
  text-align: center;
  margin-top: 32px;
  color: #2a3d5c;
  font-size: 1.3rem;
  font-style: italic;
}

/* --- Loan programs page --- */
.loan-programs-main-content {
  background: #fff;
  padding: 48px 0 60px 0;
}

.loan-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.loan-company-feature {
  margin-bottom: 40px;
}

.loan-company-feature-inner {
  background: #f7f9fb;
  border: 2px solid #345582;
  border-radius: 12px;
  padding: 36px 40px 40px 40px;
}

.loan-company-top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid #d4dde8;
}

.loan-company-logo {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.loan-company-intro h2 {
  color: #18325c;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.loan-company-lead {
  color: #64748b;
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
}

.loan-company-text p {
  color: #2a3d5c;
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0 0 16px 0;
}

.loan-company-text p:last-child {
  margin-bottom: 0;
}

.loan-company-text strong {
  color: #004471;
  font-weight: 700;
}

.loan-company-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #d4dde8;
}

.loan-stat-item {
  text-align: center;
  background: #fff;
  border: 1px solid #d4dde8;
  border-radius: 8px;
  padding: 18px 12px;
}

.loan-stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #004471;
  margin-bottom: 4px;
}

.loan-stat-label {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
}

.loan-programs-section-header {
  margin-bottom: 24px;
}

.loan-programs-section-header h2 {
  color: #18325c;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.loan-programs-section-header p {
  color: #64748b;
  font-size: 1.02rem;
  margin: 0;
  line-height: 1.6;
}

.loan-program-types-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  align-items: stretch;
}

.loan-type-card {
  grid-column: span 3;
  background: #f7f9fb;
  border: 1px solid #d4dde8;
  border-top: 3px solid #004471;
  border-radius: 10px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
}

.loan-type-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  min-height: 44px;
}

.loan-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #004471;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.loan-type-card h3 {
  color: #18325c;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.loan-type-card > p {
  color: #475569;
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 0;
  flex: 1 1 auto;
}

.loan-type-highlights {
  list-style: none;
  margin: auto 0 0 0;
  padding: 14px 0 0 0;
  border-top: 1px solid #d4dde8;
  flex-shrink: 0;
}

.loan-type-highlights li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.5;
}

.loan-type-highlights li:last-child {
  margin-bottom: 0;
}

.loan-type-highlights li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #004471;
  font-weight: 700;
}

.loan-programs-cta {
  text-align: center;
  padding: 32px 28px;
  background: #f7f9fb;
  border: 2px solid #345582;
  border-radius: 12px;
}

.loan-programs-cta h3 {
  font-size: 1.35rem;
  margin: 0 0 10px 0;
  color: #18325c;
  font-weight: 700;
}

.loan-programs-cta p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 20px auto;
  color: #475569;
  max-width: 560px;
}

@media (max-width: 1100px) {
  .loan-program-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .loan-type-card {
    grid-column: auto;
  }

  .loan-company-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .loan-program-types-grid {
    grid-template-columns: 1fr;
  }

  .loan-type-card {
    grid-column: auto;
  }

  .loan-company-stats {
    grid-template-columns: 1fr;
  }

  .loan-company-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .loan-company-logo {
    align-self: center;
  }

  .loan-company-feature-inner {
    padding: 28px 22px;
  }

  .loan-page-wrap {
    padding: 0 16px;
  }
}

@media (max-width: 900px) {
  .loan-programs-grid {
    grid-template-columns: 1fr;
    /* gap: 28px; */
    padding: 0 8px;
  }
  .loan-program-card {
    min-height: 0;
    padding: 28px 10px 24px 10px;
  }
  .loan-programs-hero-content {
    flex-direction: column;
    gap: 12px;
  }
  .loan-programs-hero-img {
    height: 70px;
    padding: 4px 6px;
  }
}
@media (max-width: 600px) {
  .loan-programs-hero-bg {
    height: 120px;
  }
  .loan-programs-title {
    font-size: 1.2rem;
  }
  .loan-programs-main-content {
    padding: 24px 0 32px 0;
  }
} 
.loan-closings-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto 36px auto;
  padding: 0 16px;
}
.loan-closings-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: #f7f9fb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(24,50,92,0.06);
  border: 2px solid #0d2246;
}
.loan-closings-table th {
  background: #0d2246;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 0;
  border: none;
  text-align: center;
}
.loan-closings-table td {
  color: #18325c;
  font-size: 1.05rem;
  padding: 12px 0;
  text-align: center;
  border: none;
}
.loan-closings-table tbody tr:nth-child(even) {
  background: #e3eaf6;
}
.loan-closings-table tbody tr:nth-child(odd) {
  background: #fff;
}
/* .loan-closings-table tr:first-child th:first-child {
  border-top-left-radius: 16px;
}
.loan-closings-table tr:first-child th:last-child {
  border-top-right-radius: 16px;
}
.loan-closings-table tr:last-child td:first-child {
  border-bottom-left-radius: 16px;
}
.loan-closings-table tr:last-child td:last-child {
  border-bottom-right-radius: 16px;
} */
@media (max-width: 900px) {
  .loan-closings-tables-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
  }
  
  .loan-closings-table {
    font-size: 0.9rem;
  }
  
  .loan-closings-table th {
    font-size: 1rem;
    padding: 12px 8px;
  }
  
  .loan-closings-table td {
    font-size: 0.85rem;
    padding: 10px 8px;
  }
}

@media (max-width: 600px) {
  .loan-closings-tables-grid {
    padding: 0 12px;
    gap: 24px;
  }
  
  .loan-closings-table {
    font-size: 0.8rem;
    border-radius: 12px;
  }
  
  .loan-closings-table th {
    font-size: 0.9rem;
    padding: 10px 6px;
  }
  
  .loan-closings-table td {
    font-size: 0.75rem;
    padding: 8px 6px;
  }
  
  .loan-closings-table th:nth-child(2),
  .loan-closings-table td:nth-child(2) {
    padding-left: 12px;
    text-align: right;
  }
  
  .loan-closings-table th:nth-child(2) {
    text-align: center;
  }
} 
.loan-closings-table col:nth-child(1) {
  width: 75%;
}
.loan-closings-table col:nth-child(2) {
  width: 25%;
} 
.loan-closings-table th:nth-child(2),
.loan-closings-table td:nth-child(2) {
  text-align: left;
  border-left: 1px solid #383e4b;
  padding-left: 18px;
} 
.loan-closings-table th:nth-child(2) {
  text-align: center;
} 
.input-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex: 1 1 100%;
  margin-top: 0;
  margin-bottom: 10px;
}

.results-card {
  background: #f8fafc;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(30,41,59,0.06);
  padding: 32px 32px 24px 32px;
  max-width: 1000px;
  margin: 32px auto 0 auto;
  text-align: center;
  border: 1px solid #e5e7eb;
}

.results-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 18px;
}

.main-payment {
  font-size: 2.2rem;
  font-weight: bold;
  color: #2563eb;
  margin-bottom: 18px;
}

.breakdown-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 10px;
}

.breakdown-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.breakdown-label {
  font-size: 1rem;
  color: #64748b;
  margin-bottom: 2px;
}

.breakdown-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

@media (max-width: 600px) {
  .results-card {
    padding: 18px 6px 12px 6px;
    max-width: 100%;
  }
  .breakdown-row {
    gap: 18px;
  }
}

body {
  font-family: 'Times New Roman', Times, serif;
}

.calculator-container {
  max-width: 960px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.calculator-header h1 {
  margin: 0;
  font-size: 28px;
  color: #1e293b;
}

.calculator-header p {
  font-size: 16px;
  color: #64748b;
}

.tab-nav {
  display: flex;
  margin-top: 20px;
  border-bottom: 2px solid #ccc;
  overflow-x: auto;
  white-space: nowrap;
}

.tab {
  padding: 12px 24px;
  cursor: pointer;
  background-color: #f8fafc;
  border: 1px solid #ccc;
  border-bottom: none;
  margin-right: 5px;
  border-radius: 8px 8px 0 0;
  transition: 0.2s ease;
}

.tab:hover {
  background-color: #e2e8f0;
}

.tab.active {
  background-color: #fff;
  border-bottom: 2px solid #fff;
  font-weight: bold;
}

.calculator-view {
  display: none;
}

.calculator-view.active {
  display: block;
}

.input-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.input-group {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 5px;
  font-weight: 600;
}

.input-group input {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.calculate-btn {
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.calculate-btn:hover {
  background-color: #1e40af;
}

.chart-container,
.payment-breakdown {
  margin-top: 30px;
}

#chartContainer,
#termChart,
#breakdownChart {
  min-height: 280px;
  width: 100%;
}

.advanced-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .advanced-results {
    grid-template-columns: 1fr;
  }
}

.payment-amount {
  font-size: 32px;
  font-weight: bold;
  color: #1e293b;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.color-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 6px;
}
.color-principal {
  background: #1ab394;
}
.color-taxes {
  background: #2d3436;
}

.amortization-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

.amortization-table th,
.amortization-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

.amortization-table thead {
  background-color: #f1f5f9;
}

.controls {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.controls button {
  padding: 10px 16px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.controls button:hover {
  background-color: #1d4ed8;
} 
.mortgage-hero-bg {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mortgage-title {
  color: #fff;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  margin: 0;
}
@media (max-width: 600px) {
  .mortgage-hero-bg {
    height: 120px;
  }
  .mortgage-title {
    font-size: 1.2rem;
  }
} 
.team-hero-bg {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-title {
  color: #fff;
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  margin: 0;
}
.our-webcoderskull {
  background: #f8fafc;
  margin-top: 48px;
}
.our-webcoderskull .container {
  max-width: 1300px;
  margin: 0 auto;
}
.our-webcoderskull ul.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}
.our-webcoderskull ul.row > li {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 12px 32px 12px;
  box-sizing: border-box;
}
@media (max-width: 1100px) {
  .our-webcoderskull ul.row > li {
    flex: 0 0 50%;
    max-width: 50%;
  }
}
@media (max-width: 700px) {
  .our-webcoderskull ul.row > li {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
/* --- TEAM CARD ANIMATION AND HOVER STYLE --- */
.our-team {
    border: 1px solid #e3eaf6;
    text-align: center;
    color: #183153;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(24, 49, 83, 0.08);
}
.our-team:hover {
    background: #fff;
    color: #183153;
    box-shadow: 0 8px 24px rgba(24, 49, 83, 0.15);
    transform: translateY(-4px);
}
.our-team .pic { 
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.our-team .pic img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
}
.our-team:hover .pic img { 
    transform: scale(1.15);
}
.our-team .social {
    width: 20%;
    height: 100%;
    background: #004471;
    padding: 20px 0;
    margin: 0;
    list-style: none;
    position: absolute;
    top: 0;
    left: -50%;
    transition: all 0.5s ease 0s;
}
.our-team:hover .social { left: 0; }
.our-team .social li { display: block; }
.our-team .social li a {
    display: block;
    padding: 10px 0;
    font-size: 20px;
    color: #fff;
    transition: all 0.5s ease 0s;
}
.our-team .social li a:hover { color: #ff9b19; }
.our-team .team-content { 
    padding: 24px 16px;
    background: #fff;
    border-radius: 0 0 12px 12px;
}
.our-team .title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    color: #183153;
    transition: color 0.3s ease;
}
.our-team:hover .title {
    color: #3a5a8c;
}
.our-team .post {
    display: block;
    font-size: 14px;
    text-transform: capitalize;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s ease;
}
.our-team:hover .post {
    color: #94a3b8;
}
@media only screen and (max-width: 990px) {
    .our-team { margin-bottom: 30px; }
}
/* Remove old team card styles */
.our-webcoderskull .cnt-block,
.our-webcoderskull .cnt-block-content,
.our-webcoderskull .cnt-block figure,
.our-webcoderskull .cnt-block img,
.our-webcoderskull .cnt-block h3,
.our-webcoderskull .cnt-block p,
.our-webcoderskull .cnt-block .follow-us,
.our-webcoderskull .cnt-block .follow-us li,
.our-webcoderskull .cnt-block .follow-us li .fa-brands,
.our-webcoderskull .cnt-block .follow-us li .fa-brands:hover {
    all: unset !important;
    display: revert !important;
}
.our-webcoderskull .cnt-block h3 {
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 8px;
}
.our-webcoderskull .cnt-block .follow-us {
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .our-webcoderskull .cnt-block figure,
  .our-webcoderskull .cnt-block img {
    height: 120px;
    border-radius: 12px 12px 0 0;
  }
  .our-webcoderskull .cnt-block-content {
    padding: 8px 8px 0 8px;
  }
}
.our-webcoderskull .cnt-block h3 {
  color: #2a2a2a;
  font-size: 20px;
  font-weight: 500;
  padding: 6px 0;
  text-transform: uppercase;
  margin: 0;
}
.our-webcoderskull .cnt-block h3 a {
  text-decoration: none;
  color: #2a2a2a;
}
.our-webcoderskull .cnt-block h3 a:hover {
  color: #2563eb;
}
.our-webcoderskull .cnt-block p {
  color: #2a2a2a;
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  margin-bottom: 12px;
}
.our-webcoderskull .cnt-block .follow-us {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.our-webcoderskull .cnt-block .follow-us li {
  display: inline-block;
  width: auto;
  margin: 0 5px;
}
.our-webcoderskull .cnt-block .follow-us li .fa-brands {
  font-size: 24px;
  color: #767676;
  transition: color 0.2s;
}
.our-webcoderskull .cnt-block .follow-us li .fa-brands:hover {
  color: #2563eb;
}
.row.heading h2 {
  color: #183153;
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  margin: 0 0 40px;
  padding-bottom: 20px;
  text-transform: uppercase;
}
.padding-lg {
  display: block;
  padding-top: 60px;
  padding-bottom: 60px;
} 
/* --- HEADER RESPONSIVE STYLES --- */
.header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 70px;
}
.logo img {
  height: 48px;
  display: block;
  width: auto;
  max-width: 100%;
}
.nav {
  display: flex;
  align-items: center;
  position: relative;
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  outline: none;
  font-size: 2rem;
  color: #003fae;
  margin-left: 18px;
  cursor: pointer;
}
.header-cta, .apply-now-btn {
  margin-left: 18px;
  background: #183153;
  color: #fff;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  outline: none;
  display: inline-block;
  transition: background 0.2s;
}
.header-cta:hover, .apply-now-btn:hover {
  background: #204272;
}
.main-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-menu li {
  position: relative;
}
.main-menu li a {
  color: #18325c;
  text-decoration: none;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  display: block;
}
.main-menu li a:hover, .main-menu li a.active {
  background: transparent;
  color: #003fae;
}
/* --- MOBILE HEADER --- */
@media (max-width: 900px) {
  .nav__toggle {
    display: block;
  }
  .main-menu {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border-radius: 0 0 12px 12px;
    padding: 18px 0 12px 0;
    margin: 0;
    z-index: 1001;
    display: none;
  }
  .main-menu.active {
    display: flex;
  }
  .main-menu li {
    width: 100%;
    margin: 0;
  }
  .main-menu li a {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.08rem;
    border-radius: 0;
    position: relative;
    overflow: hidden;
  }
  
  .main-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 80%;
    height: 2px;
    background-color: #18325c;
    transition: left 0.3s ease;
  }
  
  .main-menu li a:hover::before,
  .main-menu li a.active::before {
    left: 10%;
  }
  .header-cta, .apply-now-btn {
    display: inline-block;
    margin-left: 0;
    margin-top: 0;
  }
  .nav {
    flex: 1;
    justify-content: flex-end;
  }
}
@media (max-width: 900px) {
  .main-menu {
    display: none;
  }
  .main-menu.active {
    display: flex;
  }
  .header-cta, .apply-now-btn {
    display: inline-block;
  }
}
@media (max-width: 900px) {
  .main-menu,
  .main-menu li,
  .main-menu li a {
    font-size: 1.08rem;
  }
  .main-menu li ul {
    position: static;
    box-shadow: none;
    border: none;
    background: none;
    min-width: 0;
    padding-left: 24px;
  }
}
@media (max-width: 900px) {
  .main-menu li ul {
    display: none;
  }
  .main-menu.active > li > ul {
    display: block;
  }
  .main-menu li:hover ul,
  .main-menu li:focus-within ul {
    display: block;
  }
}
@media (max-width: 900px) {
  .nav-container {
    height: 60px;
    padding: 0 8px;
  }
  .logo img {
    height: 38px;
  }
}
/* Hide menu and show only logo, hamburger, and Apply Now on mobile */
@media (max-width: 900px) {
  .main-menu {
    width: 100vw;
    left: 0;
    right: 0;
  }
  .main-menu,
  .main-menu li,
  .main-menu li a {
    font-size: 1.08rem;
  }
  .main-menu li ul {
    display: none;
  }
  .main-menu.active > li > ul {
    display: block;
  }
  .main-menu li:hover ul,
  .main-menu li:focus-within ul {
    display: block;
  }
}
@media (min-width: 901px) {
  .nav__toggle {
    display: none !important;
  }
  .main-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    align-items: center;
  }
  .header-cta, .apply-now-btn {
    display: inline-block;
    margin-left: 18px;
  }
} 
/* Header mobile/desktop button visibility and layout */
.nav-mobile-group {
  display: none;
}
.desktop-only {
  display: none;
}
@media (max-width: 900px) {
  .nav-mobile-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    margin-left: auto;
  }
  .desktop-only {
    display: none !important;
  }
  .header-cta.apply-now-btn {
    display: inline-block;
    margin-left: 0;
  }
}
@media (min-width: 901px) {
  .nav-mobile-group {
    display: none !important;
  }
  .desktop-only {
    display: inline-block !important;
    margin-left: 18px;
  }
  .header-cta.apply-now-btn {
    margin-left: 18px;
  }
} 
/* Header height and alignment improvements */
.header {
  height: 100px;
  min-height: 100px;
}
.nav-container {
  height: 100px;
  min-height: 100px;
  padding: 0 24px;
}
.logo img {
  height: 75px;
  max-height: 75px;
}
.nav, .nav-mobile-group {
  height: 100%;
  align-items: center;
  display: flex;
}
.header-cta, .apply-now-btn {
  height: 44px;
  line-height: 44px;
  padding: 0 28px;
  font-size: 1.08rem;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .nav-container {
    height: 70px;
    min-height: 70px;
    padding: 0 10px;
  }
  .logo img {
    height: 75px;
    max-height: 75px;
    margin-top: 25px;
}
  .header-cta, .apply-now-btn {
    height: 38px;
    line-height: 38px;
    padding: 0 18px;
    font-size: 1rem;
  }
} 
/* Center header content horizontally on desktop */
.header .nav-container {
  justify-content: center;
  position: relative;
}
@media (min-width: 901px) {
  .nav {
    width: 920px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .main-menu {
    margin: 0 auto;
  }
  .logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .desktop-only.header-cta, .desktop-only.apply-now-btn {
    position: absolute;
    right: -144px;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0px;
  }
}
/* Apply Now button: always one line, proper width/height */
.header-cta, .apply-now-btn {
  /* min-width: 110px; */
  /* max-width: 180px; */
  /* height: 48px; */
  /* line-height: 48px; */
  /* padding: 0 32px; */
  font-size: 1rem;
  white-space: nowrap;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .header-cta, .apply-now-btn {
    min-width: 90px;
    max-width: 140px;
    height: 38px;
    line-height: 38px;
    padding: 0 16px;
    font-size: 1rem;
  }
}
/* Home hero subtitle centering and no overflow */
.hero-content h2 {
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  text-align: center;
  width: 100%;
  max-width: 900px;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .hero-content h2 {
    font-size: 1rem;
    max-width: 98vw;
    padding: 0 8px;
  }
} 
/* Home hero image overlay */
.hero-bg {
  position: relative;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30,30,30,0.35);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
} 
/* --- TEAM PAGE GRID LAYOUT ENHANCED --- */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 0;
  margin-left: -8px;
  margin-right: -8px;
}
.col-md-3, .col-sm-6 {
  box-sizing: border-box;
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 16px;
  flex: 0 0 25%;
  max-width: 25%;
}
.main-heading {
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 48px auto 32px auto;
  line-height: 1.2;
  max-width: 900px;
}

/* --- Contact Page Reference Style --- */
.contact {
    padding: 100px 0 80px 0;
    background: #f7f9fb;
}
.contact .title h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #183153;
}
.contact .title p {
    font-size: 0.98rem;
    font-weight: 400;
    color: #183153;
    line-height: 1.6;
    margin: 0 0 32px;
}
.contact .content .info {
    margin-top: 28px;
    display: flex;
    align-items: flex-start;
}
.contact .content .info i {
    font-size: 1.7rem;
    color: #183153;
    margin-right: 18px;
    min-width: 32px;
    text-align: center;
    margin-top: 2px;
}
.contact .content .info h4 {
    font-size: 1rem;
    line-height: 1.4;
    color: #183153;
    font-weight: 600;
    margin-bottom: 0;
}
.contact .content .info h4 span {
    font-size: 0.98rem;
    font-weight: 400;
    color: #222;
}
.contact .content .info h4 a {
    color: #67a2d7;
    text-decoration: none;
    font-weight: 500;
}
.contact .content .info h4 a:hover {
    text-decoration: underline;
    color: #183153;
}
.contact form {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(24,49,83,0.10);
  padding: 40px 0 36px 0;
  margin: 0;
  z-index: 1;
  position: relative;
}
.contact-form {
  flex: 1.2;
  min-width: 320px;
  background: #fff;
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: 0 2px 16px rgba(24, 49, 83, 0.1);
  border: 1px solid #e3eaf6;
  margin: 0;
}

.contact-form form {
  background: none;
  border: none;
  box-shadow: none;
  /* padding: 0 36px; */
  margin: 0;
}
@media (max-width: 700px) {
  .contact-form {
    padding: 18px 0 12px 0;
    border-radius: 12px;
  }
  .contact-form form {
    padding: 0 8px;
  }
}
/* Old contact form styles removed - using new .form-input, .form-textarea, .form-submit-btn classes */
@media (max-width: 900px) {
  .contact {
      padding: 60px 0 40px 0;
  }
  .contact .row {
      flex-direction: column;
  }
  .col-md-5, .col-md-7 {
      max-width: 100%;
      flex: 0 0 100%;
  }
  .contact form {
      padding: 24px 10px 18px 10px;
  }
  .contact-form {
    padding: 32px 24px;
    margin: 0 16px;
  }
  .contact-form form > div:first-child {
    gap: 20px;
    margin-bottom: 20px;
  }
  .contact-form input, .contact-form textarea {
    padding: 16px 18px;
  }
  .contact-form button {
    margin-top: 28px;
  }
}
@media (max-width: 600px) {
  .contact {
      padding: 36px 0 20px 0;
  }
  .contact .title h3 {
      font-size: 1.3rem;
  }
  .contact .title p {
      font-size: 0.95rem;
      margin-bottom: 32px;
  }
  .contact .form-control {
      font-size: 0.98rem;
      padding: 14px 10px;
  }
  .contact form {
      padding: 12px 2px 10px 2px;
  }
}
/* --- Contact Page Two-Column Layout Fix --- */
.contact .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.contact .row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
}
.col-md-5 {
  flex: 0 0 42%;
  max-width: 42%;
  min-width: 320px;
}
.col-md-7 {
  flex: 0 0 58%;
  max-width: 58%;
  min-width: 340px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.contact form {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(24,49,83,0.10);
  padding: 32px 28px 24px 28px;
  border: 1px solid #e3eaf6;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}
@media (max-width: 900px) {
  .contact .row {
    flex-direction: column;
    gap: 24px;
  }
  .col-md-5, .col-md-7 {
    max-width: 100%;
    flex: 0 0 100%;
    min-width: 0;
  }
  .contact form {
    margin-left: 0;
    max-width: 100%;
  }
}
.contact-map {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  background: #e3eaf6;
  position: relative;
  z-index: 1;
  margin-top: 48px;
}
.contact-map iframe {
  width: 100vw;
  min-height: 400px;
  max-width: 100vw;
  border: 0;
  display: block;
}
.footer-map iframe {
  border: 0;
}
@media (max-width: 700px) {
  .contact-map iframe {
    min-height: 200px;
  }
}

@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
  }
  .footer-logo, .footer-links, .footer-hours, .footer-location {
    width: 100%;
    min-width: 0;
    margin-bottom: 16px;
    align-items: center;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-map iframe {
    height: 160px;
    margin: 0 auto;
  }
}
@media (max-width: 600px) {
  .footer-map iframe {
    height: 120px;
  }
  .footer-social a img {
    width: 22px;
    height: 22px;
  }
  .footer-top {
    gap: 12px;
    padding: 16px 0;
  }
  .footer-logo img {
    width: 180px;
  }
}

/* Masonry Grid for Home Page - Small Masonry Reference Style */
.grid {
  display: grid;
  grid-gap: 12px;
  grid-template-columns: repeat(3, 120px);
  grid-auto-rows: 87px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  justify-content: center;
  max-width: 260px;
}
.grid li {
  margin: 0;
  padding: 0;
}
.grid figure,
.grid img {
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
}
.grid img {
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.grid img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.grid li:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.grid li:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}
.grid li:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}
.grid li:nth-child(4) {
  grid-column: 1 / span 2;
  grid-row: 3;
}
.grid li:nth-child(5) {
  grid-column: 2 / span 2;
  grid-row: 2;
}
.grid li:nth-child(11) {
  grid-column: 2 / span 2;
  /* grid-row: 2; */
}
.grid li:nth-child(6) {
  grid-column: 3;
  grid-row: 3;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 22vw);
    grid-auto-rows: 17vw;
    max-width: 48vw;
    grid-gap: 8px;
  }
  .grid li:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .grid li:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .grid li:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }
  .grid li:nth-child(4) {
    grid-column: 2;
    grid-row: 2 / span 2;
  }
  .grid li:nth-child(5) {
    grid-column: 1 / span 2;
    grid-row: 4;
  }
  .grid li:nth-child(6) {
    grid-column: 2;
    grid-row: 5;
  }
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 28vw;
    max-width: 98vw;
    grid-gap: 6px;
  }
  .grid li {
    grid-column: auto;
    grid-row: auto;
  }
  .grid li:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .grid li:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .grid li:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }
  .grid li:nth-child(4) {
    grid-column: 1 / span 2;
    grid-row: 3;
  }
  .grid li:nth-child(5) {
    grid-column: 2 / span 2;
    grid-row: 2;
  }
  .grid li:nth-child(6) {
    grid-column: 3;
    grid-row: 3;
  }
}

.about-text h3 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

/* Contact Page Reference Style */
.contact-section {
  background: #fff;
  padding: 48px 0;
}
.container.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.contact-info {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 2px 8px #e3eaf6;
}
.contact-info h2 {
  color: #183153;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.contact-info .info {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: #183153;
}
.contact-info .info i {
  font-size: 1.5rem;
  color: #183153;
  min-width: 28px;
  margin-top: 2px;
}
.contact-info .info a {
  color: #67a2d7;
  text-decoration: none;
  font-weight: 500;
}
.contact-info .info a:hover {
  text-decoration: underline;
  color: #183153;
}

@media (max-width: 900px) {
  .container.contact-inner {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    padding: 0 16px;
  }
  .contact-info, .contact-form {
    max-width: 100%;
    min-width: 0;
    padding: 28px 18px;
    width: 100%;
    box-sizing: border-box;
  }
  .contact-form form {
    padding: 0;
  }
}
@media (max-width: 600px) {
  .contact-section {
    padding: 20px 0;
  }
  .container.contact-inner {
    padding: 0 12px;
  }
  .contact-info, .contact-form {
    padding: 20px 14px;
    border-radius: 10px;
  }
  .contact-info h2 {
    font-size: 1.4rem;
    margin-bottom: 14px;
  }
  .contact-info p {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }
  .contact-icon {
    font-size: 1.2rem;
    min-width: 28px;
  }
  .contact-label {
    font-size: 0.9rem;
  }
  .contact-text {
    font-size: 0.85rem;
  }
  .contact-form form {
    padding: 0;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
    padding: 12px 14px;
    border-radius: 8px;
  }
  .contact-form button {
    font-size: 1rem;
    padding: 12px 20px;
  }
}
.contact-map {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  background: #e3eaf6;
  position: relative;
  z-index: 1;
}
.contact-map iframe {
  width: 100vw;
  min-height: 300px;
  max-width: 100vw;
  border: 0;
  display: block;
}
@media (max-width: 700px) {
  .contact-map iframe {
    min-height: 200px;
  }
}

/* --- Contact Page Pixel-Perfect Reference Style --- */
body {
  background: #f7f9fb;
}
.contact-section {
  background: #f7f9fb;
  padding: 64px 0 48px 0;
}
.container.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 56px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0 24px;
}
.contact-info {
  flex: 1;
  min-width: 320px;
  max-width: 500px;
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px 36px 36px;
  box-shadow: 0 8px 32px rgba(24,49,83,0.10);
  font-size: 1.13rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  height: fit-content;
}
.contact-info h2 {
  color: #222;
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.contact-info h2 span {
  color: #67a2d7;
  font-weight: 700;
}
.contact-info p {
  color: #3a4a5d;
  font-size: 1.08rem;
  margin-bottom: 24px;
}
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.contact-info ul li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  color: #183153;
  font-size: 1.08rem;
}
.contact-info ul li i {
  font-size: 2rem;
  color: #183153;
  min-width: 36px;
  margin-top: 2px;
}
.contact-info ul li b {
  color: #183153;
  font-weight: 700;
  margin-right: 4px;
  font-size: 1.08rem;
}
.contact-info ul li a {
  color: #4a90e2;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.08rem;
}
.contact-info ul li a:hover {
  text-decoration: underline;
  color: #183153;
}

/* New Contact Details Structure */
.contact-details-list {
  width: 100%;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 0;
}
.contact-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon i {
  font-size: 1.2rem;
  color: #183153;
}

.contact-label {
  color: #183153;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: 'Times New Roman', Times, serif;
}
.contact-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.contact-text {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.contact-text a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: #67a2d7;
  text-decoration: underline;
}


@media (max-width: 1100px) {
  .container.contact-inner {
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
    padding: 0 16px;
  }
  .contact-info, .contact-form {
    max-width: 100%;
    min-width: 0;
    padding: 32px 20px;
    width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 700px) {
  .contact-section {
    padding: 24px 0 12px 0;
  }
  .container.contact-inner {
    gap: 16px;
    padding: 0 12px;
    max-width: 100%;
  }
  .contact-info, .contact-form {
    padding: 24px 16px;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }
  .contact-info p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  .contact-details-list {
    width: 100%;
  }
  .contact-item {
    margin-bottom: 20px;
  }
  .contact-icon {
    font-size: 1.3rem;
    min-width: 32px;
  }
  .contact-label {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  .contact-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .contact-form input, .contact-form textarea {
    font-size: 1rem;
    padding: 14px 16px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .contact-form button {
    font-size: 1.05rem;
    padding: 14px 24px;
    border-radius: 8px;
    width: 100%;
  }
  .contact-form form > div:first-child {
    flex-direction: column;
    gap: 10px;
  }
}

/* Duplicate removed - using the one above */

/* Contact Data Table Styles */
.contactdata-container {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(24,49,83,0.10);
  padding: 40px 36px 36px 36px;
  max-width: 1100px;
  margin: 48px auto 32px auto;
}
.contactdata-title {
  font-size: 2rem;
  font-weight: 700;
  color: #183153;
  margin-bottom: 32px;
}
.contactdata-table-wrapper {
  overflow-x: auto;
}
.contactdata-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px #e3eaf6;
}
.contactdata-table th, .contactdata-table td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid #e3eaf6;
  font-size: 1.08rem;
}
.contactdata-table th {
  background: #e3eaf6;
  color: #183153;
  font-weight: 700;
  font-size: 1.1rem;
}
.contactdata-table tr:last-child td {
  border-bottom: none;
}
.contactdata-table tbody tr:nth-child(even) {
  background: #f7f9fb;
}
.contactdata-message {
  max-width: 320px;
  white-space: pre-line;
  word-break: break-word;
}
.contactdata-delete-btn {
  background: #183153;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.contactdata-delete-btn:hover {
  background: #2a4a7b;
}
@media (max-width: 700px) {
  .contactdata-container {
    padding: 18px 4px 12px 4px;
    border-radius: 12px;
  }
  .contactdata-title {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }
  .contactdata-table th, .contactdata-table td {
    padding: 8px 6px;
    font-size: 0.98rem;
  }
  .contactdata-message {
    max-width: 120px;
  }
}

/* ============================================
   LOGIN PAGE STYLING
   ============================================ */
body.login-page {
  font-family: 'Times New Roman', Times, serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e3eaf6 100%);
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-container {
  background: #fff;
  padding: 48px 40px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(24, 49, 83, 0.12);
  max-width: 440px;
  width: 100%;
  border: 1px solid #e3eaf6;
}

.login-logo-container {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-img {
  max-width: 220px;
  height: auto;
  margin-bottom: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.login-title {
  text-align: center;
  color: #183153;
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.login-description {
  text-align: center;
  color: #64748b;
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.6;
}

.login-page .form-group {
  margin-bottom: 24px;
}

.login-page label {
  display: block;
  margin-bottom: 8px;
  color: #183153;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.login-page input[type="text"],
.login-page input[type="password"] {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  box-sizing: border-box;
  background: #f8f9fa;
  transition: all 0.3s ease;
  outline: none;
  font-family: 'Times New Roman', Times, serif;
  color: #183153;
}

.login-page input[type="text"]:focus,
.login-page input[type="password"]:focus {
  border-color: #2fbfa7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 191, 167, 0.1);
  outline: none;
}

.login-page input[type="text"]::placeholder,
.login-page input[type="password"]::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.login-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #2fbfa7 0%, #25a08f 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(47, 191, 167, 0.3);
  margin-top: 8px;
}

.login-btn:hover {
  background: linear-gradient(135deg, #25a08f 0%, #1e8a7a 100%);
  box-shadow: 0 6px 20px rgba(47, 191, 167, 0.4);
  transform: translateY(-2px);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(47, 191, 167, 0.3);
}

.login-page .error-message {
  color: #d32f2f;
  text-align: center;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: #ffebee;
  border-radius: 10px;
  border: 1px solid #ffcdd2;
  font-size: 15px;
  line-height: 1.5;
}

.back-link {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e3eaf6;
}

.back-link a {
  color: #2fbfa7;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-link a:hover {
  color: #25a08f;
  text-decoration: none;
  transform: translateX(-4px);
}

@media (max-width: 600px) {
  body.login-page {
    padding: 16px;
  }
  
  .login-container {
    padding: 36px 28px;
    border-radius: 14px;
  }
  
  .login-logo-img {
    max-width: 180px;
    margin-bottom: 20px;
  }
  
  .login-title {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .login-description {
    font-size: 14px;
    margin-bottom: 28px;
  }
  
  .login-page input[type="text"],
  .login-page input[type="password"] {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .login-btn {
    padding: 14px;
    font-size: 16px;
  }
}

/* ============================================
   CONTACT DATA ADMIN PAGE STYLING
   ============================================ */
.contactdata-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.contactdata-logout-form {
  margin: 0;
}
.contactdata-logout-btn {
  background-color: #d32f2f;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}
.contactdata-logout-btn:hover {
  background-color: #b71c1c;
}
.toast-success {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 9999;
  min-width: 220px;
  background: #2fbfa7;
  color: #fff;
  padding: 18px 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(24, 49, 83, 0.2);
  font-size: 1.1rem;
  display: none;
  align-items: center;
  gap: 12px;
}
.toast-success.show {
  display: flex;
}
.toast-success-icon {
  font-size: 1.3rem;
}

/* ============================================
   CONTACT FORM - MODERN UI/UX STYLING
   ============================================ */

/* Form Container */
.contact-form {
  flex: 1.2;
  min-width: 320px;
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  box-shadow: 0 4px 24px rgba(24, 49, 83, 0.08);
  border: 1px solid #e3eaf6;
  margin: 0;
}

.contact-form-wrapper {
  background: none;
  border: none;
  box-shadow: none;
  margin: 0;
  padding: 0;
}

/* Error Message */
.form-error-message {
  background-color: #ffebee;
  color: #d32f2f;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid #ffcdd2;
  font-size: 1rem;
  line-height: 1.5;
}

/* Form Rows */
.contact-form .form-row {
  width: 100%;
}

.contact-form .form-row-submit {
  margin-top: 32px;
  margin-bottom: 0;
  width: 100%;
}

/* Form Groups - Full Width */
.contact-form .form-group {
  width: 100%;
  max-width: 100%;
}

/* Labels */
.contact-form .form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 1rem;
  color: #183153;
  line-height: 1.4;
}

.contact-form .required-asterisk {
  color: #d32f2f;
  font-weight: 700;
  margin-left: 2px;
}

/* Input Fields */
.contact-form .form-input,
.contact-form .form-textarea {
  width: 100% !important;
  max-width: 100% !important;
  background: #cbe5fd;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  padding: 16px 20px;
  color: #183153;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.3s ease;
  outline: none;
}

.contact-form .form-input::placeholder,
.contact-form .form-textarea::placeholder {
  color: #6b8fb3;
  opacity: 0.8;
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
  background: #b8d9f5;
  box-shadow: 0 0 0 3px rgba(24, 49, 83, 0.1);
  outline: none;
}

/* Textarea */
.contact-form .form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
  font-family: inherit;
}

/* Submit Button */
.contact-form .form-submit-btn {
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  background: #183153;
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(24, 49, 83, 0.2);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  width: auto;
  min-width: 180px;
}

.contact-form .form-submit-btn:hover {
  background: #2a4a7b;
  box-shadow: 0 6px 20px rgba(24, 49, 83, 0.3);
  transform: translateY(-2px);
}

.contact-form .form-submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(24, 49, 83, 0.2);
}

/* Responsive Design */
@media (max-width: 900px) {
  .contact-form {
    padding: 36px 28px;
    border-radius: 14px;
  }
  
  .contact-form .form-input,
  .contact-form .form-textarea {
    font-size: 1rem;
    padding: 14px 18px;
  }
  
  .contact-form .form-textarea {
    min-height: 120px;
  }
  
  .contact-form .form-submit-btn {
    font-size: 1.05rem;
    padding: 14px 36px;
  }
}

@media (max-width: 700px) {
  .contact-form {
    padding: 32px 24px;
    border-radius: 12px;
    margin: 0 8px;
  }
  
  .contact-form .form-row {
    width: 100%;
  }
  
  .contact-form .form-group {
    width: 100%;
    max-width: 100%;
  }
  
  .contact-form .form-label {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  
  .contact-form .form-input,
  .contact-form .form-textarea {
    font-size: 0.98rem;
    padding: 14px 16px;
    border-radius: 10px;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .contact-form .form-textarea {
    min-height: 120px;
    border-radius: 10px;
  }
  
  .contact-form .form-submit-btn {
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 10px;
    width: 100%;
    min-width: unset;
  }
  
  .contact-form .form-row-submit {
    margin-top: 28px;
  }
  
  .form-error-message {
    padding: 12px 16px;
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .contact-form {
    padding: 28px 20px;
    border-radius: 12px;
  }
  
  .contact-form .form-row {
    margin-bottom: 18px;
  }
  
  .contact-form .form-input,
  .contact-form .form-textarea {
    font-size: 0.95rem;
    padding: 12px 14px;
  }
  
  .contact-form .form-textarea {
    min-height: 110px;
  }
  
  .contact-form .form-submit-btn {
    font-size: 0.98rem;
    padding: 12px 28px;
  }
}
