/* Site background */
html, body {
    height: 100%;
}
body {
    background-color: #006e94;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Hero image and overlay */
.hero {
    position: relative;
    height: 60vh;
    min-height: 300px;
    background-image: url('hero-image.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45); /* overlay for contrast */
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}

/* Responsive hero */
@media (max-width: 576px) {
    .hero { height: 45vh; }
    .hero h1 { font-size: 1.6rem; }
}

/* Logo sizing (controlled in CSS; no inline height) */
.navbar-logo {
    height: 100px;
    width: auto;
    max-height: 100px;
}

/* Responsive logo sizes */
@media (max-width: 992px) {
    .navbar-logo { height: 80px; max-height: 80px; }
}
@media (max-width: 768px) {
    .navbar-logo { height: 60px; max-height: 60px; }
}
@media (max-width: 480px) {
    .navbar-logo { height: 48px; max-height: 48px; }
}

/* Navbar text: white and bold */
.custom-bg {
    background-color: transparent;
}
.custom-bg .navbar-brand,
.custom-bg .nav-link,
.custom-bg .navbar-text {
    color: #ffffff !important;
    font-weight: 700;
}

/* Hover/active states */
.custom-bg .nav-link:hover,
.custom-bg .nav-link:focus,
.custom-bg .nav-link.active {
    color: #ffffff !important;
    opacity: 0.95;
}

/* Make toggler icon visible on dark background */
.custom-bg .navbar-toggler-icon {
    filter: invert(1) brightness(1.3);
}

.navbar form .form-control {
  border-radius: 0.25rem 0 0 0.25rem; /* only round left side */
}

/* Make search input and button appear connected */
.navbar form .form-control {
  border-radius: 0.25rem 0 0 0.25rem; /* round left side */
}

.navbar form .btn-search {
  border-radius: 0 0.25rem 0.25rem 0; /* only round right side */
}

/* Custom search button */
.btn-search {
  background-color: #006e94; /* main theme color */
  color: #fff;
  border: none;
  border-radius: 0.25rem; /* matches input field slightly rounded corners */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-search:hover {
  background-color: #fff; 
  transform: scale(1.05);
}

/* Footer Styles */
.footer {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.footer h5 {
    color: white;
    font-weight: bold;
    margin-bottom: 1.2rem;
}

.footer ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer ul li a:hover {
    opacity: 0.8;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Footer logo */
.footer-logo {
    height: 64px;
    width: auto;
    max-height: 64px;
    display: block;
}

/* Reduce logo size on smaller screens */
@media (max-width: 768px) {
    .footer-logo {
        height: 48px;
        max-height: 48px;
    }
}
@media (max-width: 480px) {
    .footer-logo {
        height: 40px;
        max-height: 40px;
    }
}

/* Footer responsive styles */
@media (max-width: 768px) {
    .footer {
        text-align: center;
    }

    .footer .col-md-4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }

    .footer .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }

    .social-links {
        margin-top: 1rem;
    }

    .social-links a {
        margin: 0 1rem;
        font-size: 1.5rem;
    }

    .footer h5 {
        margin-bottom: 1rem;
    }

    .footer ul {
        text-align: center;
    }

    .footer ul li {
        margin-bottom: 0.5rem;
    }
}

/* Center footer content on larger screens */
@media (min-width: 992px) {
    .footer {
        text-align: center;
    }

    .footer .row {
        justify-content: center;
    }

    .footer .col-md-4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1rem;
        margin-bottom: 0;
    }

    .footer-logo {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }

    .social-links {
        margin-top: 0.5rem;
    }

    .social-links a {
        margin: 0 0.75rem;
        font-size: 1.5rem;
    }
}

/* Footer logo alignment */
.footer .col-md-4.d-flex.align-items-center {
    display: flex;
    align-items: center; /* vertical center */
    gap: 0.75rem;        /* consistent spacing between logo and text */
    justify-content: flex-start;
}

/* Ensure the image itself is centered vertically and doesn't overflow */
.footer .footer-logo {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.75rem;
}

/* On large screens center each footer column (logo above text) while keeping the logo and text grouped */
@media (min-width: 992px) {
    .footer .col-md-4.d-flex.align-items-center {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 0.5rem;
    }
    .footer .footer-logo {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 2rem 1rem;
    }

    .footer h5 {
        margin-bottom: 1rem;
    }

    .footer .row > div:last-child {
        margin-bottom: 0;
    }

    .footer-logo {
        height: 40px;
        max-height: 40px;
    }
}

/* About page mobile responsiveness */
@media (max-width: 768px) {
    .about-content {
        text-align: center;
    }
    
    .about-content h3,
    .about-content h5 {
        text-align: center;
    }
    
    .about-content p {
        text-align: center;
    }
    
    .about-content .lead {
        text-align: center;
    }
}

