/* General Header Styling */
/* Main Header - Bright Hope Style */
*{
    box-sizing: border-box;
}
.main-header {
    /*max-width: 100%;*/
   /* background-color: #1D3557; /* Bright Hope Primary */
    background: #ddd;
    color: #FFD166; /* Bright Hope Accent */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Body Padding to Avoid Content Under Header */
body {
    padding-top: 70px; /* Ensure space for fixed header */
   background: #787878;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 100px;
    width: 100px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: bold;
   /*  color: #FFD166; */
    color:#1D3557;
    font-family: 'Arial', sans-serif;
    letter-spacing: 1px;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    font-size: 2rem; 
    background: none;
    border: none;
    /* color: #FFD166; */
    color: #1D3557;
    cursor: pointer;
    transition: all 0.3s;
    padding: 12px; 
    line-height: 1; 
    z-index:1001;
}
.menu-toggle:focus {
    outline: 2px solid #F8961E; /* Added focus state */
}
.menu-toggle:hover {
    color: #F8961E;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    gap: 20px;
    
}

.nav-menu a {
    /* color: #FFD166; */
    color: #1D3557;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #F8961E;
}

/* Mobile View - Menu Behavior */
@media (max-width: 768px) {
    .main-header{
        width: 100%;
        /*padding: 0.8rem 1.5rem;*/
        flex-wrap: nowrap;
    }
    .menu-toggle {
        display: block;
        order: 1;
        margin-left: auto;
         /* Show toggle button */
    
    }

    .nav-menu {
        margin-right:5%;
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        background: #1D3557;
        padding: 1rem 0;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex; /* Show menu when active */
    }

    .nav-menu a {
        padding: 10px 20px;
        text-align: center;
        border-bottom: 2px solid  #FFD166;
        border-radius: 0 0 20px 20px;
        color: #FFD166;
        font-weight: bold;
    }

    .nav-menu a:hover {
        background: #F8961E;
        color: #FFF;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3BAFDA, #FFD166);
    color: #1D3557;
    text-align: center;
    padding: 5rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: #1D3557;
    color: #FFD166;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.btn-primary:hover {
    background-color: #F8961E;
    color: #FFF;
}

section {
    padding: 3rem 5%;
    text-align: center;
    color: #FFD166;
    scroll-margin-top: 80px;
}

h2 {
    color: #1D3557;
    color: #FFD166;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(333px, 1fr));
    gap: 1rem;
}
.service-grid img{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.service-grid iframe{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.service-item iframe {
  width: 100%;
  height: auto;
  border: none; /* Remove default border */
}

.service-item {
    background: linear-gradient(135deg, #3BAF88, #FFD166);
    color: #333;
    padding: 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    overflow: hidden;
    align-items:center;
    justify-content:center;
}

.service-item:hover {
    background-color: #F8961E;
}

.contact {
    background-color: #FFD166;
    color: #1D3557;
}

.btn-secondary {
    background-color: #1D3557;
    color: #FFD166;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.btn-secondary:hover {
    background-color: #3BAFDA;
    color: white;
}

.main-footer {
    background-color: #1D3557;
    color: #FFF;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}