/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

#aboutuslink ,
#serviceslink {
  scroll-margin-top: 80px; /* space from top when scrolled to */
}

/* BANNER */
.banner {
    margin-top: 70px;
    /* height of navbar */
    background-color: #007BFF;
    /* same blue as nav */
    color: white;
    text-align: center;
    padding: 100px 20px;
    border-radius: 0 0 30px 30px;
    transition: all 0.3s ease;
}

.banner.shrink {
    padding: 40px 20px;
    border-radius: 0;
    /* remove rounding when scrolled */
}
/* 
.sharp-curve {
    border-bottom-left-radius: 75%;
    border-bottom-right-radius: 75%;
}

.sharp-curve-reverse {
    border-top-left-radius: 75%;
    border-top-right-radius: 75%;
} */

.cards {
    align-items: stretch;
    /* 🔑 equal height */
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: flex;
    flex-direction: column;
    height: auto;
    align-self: stretch;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.2);
}

.card h2 {
    margin-bottom: 15px;
    color: #333;
}

.card .content {
    flex-grow: 1;
}

.card p {
    color: #666;
    line-height: 1.6;
}

.card .btn {
    margin-top: auto;
    /* 🔑 pushes to bottom */
    align-self: flex-end;
}

.card .btn a {
    margin-top: 15px;
    color: rgb(201, 83, 83);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: smaller;
}

.card .btn a:hover {
    color: rgb(224, 13, 13);
}

.wp-block-image {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media (max-width: 800px) {
    .sharp-curve {
        border-bottom-left-radius: 0%;
        border-bottom-right-radius: 0%;
    }

    .sharp-curve-reverse {
        border-top-left-radius: 0%;
        border-top-right-radius: 0%;
    }
}

#menu-header-menu > li.menu-item {
    border-bottom: 2px solid  #112853;
}

#menu-header-menu > li.menu-item:hover {
    border-bottom: 2px solid  #fff;
}

/* ===== Submenu ===== */
.menu-item-has-children>.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14rem;

    background: rgba(30, 58, 138, 0.95);
    /* blue-900 w/ opacity */
    backdrop-filter: blur(6px);

    border-radius: 0.75rem;
    padding: 0.5rem;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05);

    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    z-index: 50;
}

/* ===== Show on hover ===== */
.menu-item-has-children:hover>.sub-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===== Submenu items ===== */
.sub-menu li {
    border-radius: 0.5rem;
}

/* ===== Submenu links ===== */
.sub-menu a {
    display: block;
    padding: 0.6rem 0.9rem;

    font-size: 0.95rem;
    color: #e5edff;
    /* light blue */

    border-radius: 0.5rem;
    white-space: nowrap;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

/* ===== Hover effect ===== */
.sub-menu a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.menu-item-has-children>a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.menu-item-has-children>a::after {
    content: "";
    width: 0.8rem;
    height: 0.8rem;
    background-color: currentColor;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E") no-repeat center;

    opacity: 0.75;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
    opacity: 1;
}

/* =========================
   MOBILE MENU STYLES
   ========================= */
@media (max-width: 767px) {

    /* Reset submenu positioning */
    #mobile-menu .menu-item-has-children>.sub-menu {
        position: relative;
        top: 0;
        left: 0;
        margin-top: 0.25rem;

        opacity: 1;
        transform: none;
        pointer-events: auto;

        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: none;

        box-shadow: none;
        border-radius: 0.5rem;
    }

    /* Parent items */
    #mobile-menu li>a {
        display: flex;
        align-items: center;
        justify-content: space-between;

        padding: 0.75rem 0;
        color: #ffffff;
    }

    /* Submenu indentation */
    #mobile-menu .sub-menu {
        padding-left: 1rem;
    }

    /* Submenu links */
    #mobile-menu .sub-menu a {
        padding: 0.5rem 0;
        font-size: 0.95rem;
        color: #e0e7ff;
    }

    /* Disable hover-only behavior on mobile */
    #mobile-menu .menu-item-has-children:hover>.sub-menu {
        display: block;
    }

    /* Caret always pointing down on mobile */
    #mobile-menu .menu-item-has-children>a::after {
        transform: rotate(0);
        opacity: 0.7;
    }
}


/* ===== Left Side Bar Container ===== */
/* Sidebar container */
ul.left-side-bar {
    width: 100%;
    background-color: #ffffff;
    /* white background */
    border-radius: 0 2% 2% 0;
    border: 1px solid #e5e7eb;
    border-right: 3px solid #075db9;
    font-family: ui-sans-serif, system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    /* spacing between sections */
    color: #1f2937;
    
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.06);
}

ul.left-side-bar li {
    font-size: 0.95rem;
    padding: 1rem 0 1rem 1rem;
    background: none;
    outline: 1px dashed #e5e7eb;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
ul.left-side-bar li:hover {
    transform: scale(1.05);
}
ul.left-side-bar li:last-child {
    border-bottom: none;    
}

ul.left-side-bar li a{
    text-decoration: none;
    font-weight: 500;
}

ul.left-side-bar li.current-menu-item a span {
    font-weight: bold;
    color: #075db9;
}

/* Responsive */
@media (max-width: 767px) {
    ul.left-side-bar {
        width: 100%;
        padding: 0.75rem;
    }
}