/* Capitol Bricks - Project & Services dropdown pages */
.has-dropdown { position: relative; }
.dropdown-arrow { font-size: .72em; margin-left: 4px; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 190px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: .2s ease;
    z-index: 9999;
}
.dropdown-menu li { margin: 0; padding: 0; }
.dropdown-menu a {
    display: block;
    padding: 11px 18px;
    white-space: nowrap;
    text-decoration: none;
}
.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Shared banner for all new submenu pages */
.inner-banner {
    min-height: 430px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}
.inner-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.28));
    z-index: -1;
}
.inner-banner .container { width: 100%; }
.inner-banner-content { max-width: 760px; color: #fff; padding: 80px 25px; }
.inner-banner h1 { font-size: clamp(36px, 5vw, 64px); margin: 12px 0 16px; line-height: 1.05; }
.inner-banner p { max-width: 650px; font-size: 18px; line-height: 1.7; }
.subpage-content { padding: 70px 0; }

 .subpage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 24px;
}

/* india-project css */

/* Project card */
.subpage-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    padding: 15px;
}

/* Project image */
.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Project location */
.project-location {
    display: inline-block;
    width: fit-content;
    background: #f5eaea;
    color: #a52828;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 5px;
    margin: 8px 0 12px;
}

/* Project description */
.subpage-card p {
    margin-bottom: 20px;
}

/* Enquiry button */
.project-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding: 12px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    box-sizing: border-box;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .project-image {
        height: 200px;
    }

    .subpage-card {
        padding: 12px;
    }
}

/* =========================================================
   CAPITOL BRICKS - MOBILE PROJECT & SERVICES DROPDOWN FIX
   ========================================================= */
@media (max-width: 850px) {

    .nav-links {
        overflow-y: auto;
        max-height: calc(100vh - 72px);
        -webkit-overflow-scrolling: touch;
    }

    .nav-links .has-dropdown {
        position: relative;
        width: 100%;
    }

    .nav-links .has-dropdown > a {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-links .has-dropdown > a .dropdown-arrow {
        display: inline-block;
        margin-left: auto;
        padding-left: 12px;
        pointer-events: none;
        transition: transform .25s ease;
    }

    .nav-links .dropdown-menu {
        position: static !important;
        display: none !important;
        width: 100%;
        min-width: 0;
        margin: 0 !important;
        padding: 4px 0 4px 14px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: #f7f7f7;
        box-shadow: none !important;
        border-radius: 6px;
        transition: none !important;
    }

    .nav-links .has-dropdown.open > .dropdown-menu {
        display: block !important;
    }

    .nav-links .dropdown-menu li {
        width: 100%;
        display: block;
    }

    .nav-links .dropdown-menu a {
        display: block;
        width: 100%;
        padding: 11px 15px !important;
        color: #25282a !important;
        font-size: 14px;
        font-weight: 600;
        white-space: normal;
        border-bottom: 1px solid #e7e7e7;
        border-radius: 0;
    }

    .nav-links .dropdown-menu a:hover,
    .nav-links .dropdown-menu a:focus {
        background: #c92825;
        color: #fff !important;
    }

    .nav-links .has-dropdown.open > a {
        background: #c92825;
        color: #fff;
    }

    .nav-links .has-dropdown.open > a .dropdown-arrow {
        transform: rotate(180deg);
    }
}


/* new dropdown fix */


/* ===================================
   MOBILE MENU & DROPDOWN FIX
=================================== */

@media (max-width: 850px) {

    /* Main mobile navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        background: #fff;
        padding: 12px 5%;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        box-shadow: 0 10px 20px rgba(0,0,0,.12);
        z-index: 1001;
    }

    /* Open hamburger menu */
    .nav-links.open {
        display: flex;
    }

    /* Main menu items */
    .nav-links > li {
        width: 100%;
        list-style: none;
    }

    .nav-links > li > a {
        width: 100%;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 6px;
    }

    /* Project and Services parent */
    .nav-links .has-dropdown {
        display: block;
        width: 100%;
    }

    .nav-links .has-dropdown > a {
        cursor: pointer;
    }

    /* Dropdown stays inside the mobile menu */
    .nav-links .dropdown-menu {
        display: none;
        position: static;
        width: 100%;
        min-width: 0;
        margin: 4px 0 8px;
        padding: 5px 10px;
        background: #f7f7f7;
        border: 1px solid #eee;
        border-radius: 8px;
        box-shadow: none;
        list-style: none;
        box-sizing: border-box;
    }

    /* Display dropdown when opened */
    .nav-links .has-dropdown.open > .dropdown-menu {
        display: block;
    }

    /* Submenu links */
    .nav-links .dropdown-menu li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .nav-links .dropdown-menu li a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        padding: 10px 15px;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: break-word;
        color: #25282a;
        background: transparent;
        border-radius: 5px;
        border-bottom: 1px solid #e7e7e7;
        box-sizing: border-box;
    }

    .nav-links .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .nav-links .dropdown-menu li a:hover {
        background: #c92825;
        color: #fff;
    }

    /* Dropdown arrow animation */
    .dropdown-arrow {
        display: inline-block;
        transition: transform .25s ease;
    }

    .nav-links .has-dropdown.open > a .dropdown-arrow {
        transform: rotate(180deg);
    }
}
/* Final shared mobile dropdown override */
@media (max-width: 850px) {
  .nav-links .dropdown-menu { display: none !important; }
  .nav-links .has-dropdown.open > .dropdown-menu { display: block !important; }
  .nav-links .dropdown-menu a { white-space: normal !important; }
}
