/* ===============================
   GENERAL SITE-WIDE STYLES
=================================*/

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* ------------------------------
   HEADER & HERO (All Pages)
--------------------------------*/
header,
.hero {
    text-align: center;
    padding: 50px 20px;
    color: white;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    border-radius: 0 0 15px 15px;
}

header h1,
.hero h1 {
    font-size: 2.8em;
    margin-bottom: 0.5em;
}

header p,
.hero p {
    font-size: 1.2em;
}

/* Hero Image */
.hero img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ------------------------------
   NAVIGATION
--------------------------------*/
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(0, 7, 102, 0.85);
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 10px 10px;
    margin-bottom: 20px;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s;
    display: inline-block;
}

nav a:hover {
    color: #FFD700;
}

/* Ensure horizontal layout even if something overrides */
nav, nav a {
    flex-direction: row !important;
}

/* ------------------------------
   FOOTER
--------------------------------*/
footer {
    background-color: rgba(0, 7, 102, 0.85);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    margin-top: 2em;
    font-size: 0.9em;
}

/* ===============================
   HOME PAGE STYLES
=================================*/
body.home-page {
    background: url('images/frontpicmain.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white;
}

.branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 40px;
    text-align: center;
    background-color: rgba(0, 7, 102, 0.85);
}

.branch-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.branch-card:hover {
    transform: scale(1.05);
}

/* Branch Card Images */
.branch-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Branch Card Text */
.branch-card h3 {
    margin: 10px 0;
    color: #FFD700;
}

.branch-card p {
    margin: 0 10px 15px;
    font-size: 0.9em;
}

.branch-card a {
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 15px;
    background: #FFD700;
    color: #000766;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.branch-card a:hover {
    background: white;
    color: #000766;
}

/* ===============================
   BRANCH PAGES (Gallery + Hero)
=================================*/
.branch-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.branch-gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.branch-gallery img:hover {
    transform: scale(1.04);
}

.branch-gallery p {
    margin-top: 8px;
    font-size: 0.95em;
    color: #333;
}

/* ===============================
   SERVICES PAGE STYLES
=================================*/
body.services-page {
    background-color: #f4f4f4;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #FFD700;
}

.service-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFD700;
}

.service-card p {
    font-size: 1em;
    color: #333;
}

.service-card button {
    background-color: #004085;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.service-card button:hover {
    background-color: #FFD700;
    color: #000766;
}

/* ===============================
   CONTACT PAGE STYLES
=================================*/
body.contact-page {
    background-color: #f4f4f4;
}

.contact-info,
.contact-form {
    max-width: 600px;
    margin: 20px auto;
    background: white;
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h2,
.contact-form h2 {
    color: #004085;
    margin-bottom: 15px;
    text-align: center;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #004085;
    text-decoration: none;
}

.contact-info a:hover {
    color: #FFD700;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.contact-form button {
    background-color: #004085;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #FFD700;
    color: #000766;
}

/* ===============================
   PARTNERS PAGE
=================================*/
body.partners-page {
    background-color: #f4f4f4;
}

.partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    text-align: center;
}

.partners h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.partners img {
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    transition: transform 0.3s ease;
}

.partners img:hover {
    transform: scale(1.05);
}

/* ===============================
   RESPONSIVE STYLES
=================================*/
@media(max-width: 768px) {
    nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        margin: 8px 10px;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .branches {
        grid-template-columns: 1fr;
    }

    .branch-gallery {
        grid-template-columns: 1fr;
    }

    .partners img {
        max-width: 180px;
    }
}

/* ===============================
   NEW: BRANCH SERVICES STYLING
=================================*/
.branch-services {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: left;
}

.branch-services h2 {
    color: #FFD700;
    text-align: center;
    margin-bottom: 30px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.3s ease;
    color: #fff;
}

.service-card h3 {
    color: #FFD700;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95em;
    line-height: 1.5;
}

.service-card:hover {
    transform: scale(1.03);
    background-color: rgba(255, 255, 255, 0.12);
}

.other-services {
    margin-top: 30px;
    padding-left: 20px;
    color: #fff;
}

.other-services li {
    margin-bottom: 8px;
    list-style-type: disc;
}

/* ===============================
   HERO LOGO CONTAINER (All Branches)
=================================*/
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
}

.logo-container img {
    height: 240px;
    width: auto;
    margin-bottom: 4px;
    display: block;
}

.logo-container h1 {
    color: #004085;
    margin-top: 0;
    font-size: 2.3em;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ===========================
   Branch Navigation Bar Fix
=========================== */
.navbar {
  background-color: rgba(0, 7, 102, 0.85);
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 10px 10px;
  margin-bottom: 20px;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.navbar ul li {
  display: inline-block;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar a:hover {
  color: #FFD700;
}

.navbar a.active {
  background-color: #FFD700;
  color: #000766;
}
