/********** Template CSS **********/

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

/* Prevent horizontal overflow on small viewports */
html, body {
    overflow-x: hidden;
}

.navbar {
    padding: 15px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    background-color: white;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar {
        background-color: white;
    }
    
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
        color: var(--bs-dark);
    }
    
    .navbar .dropdown-menu {
        background-color: white;
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        padding: 10px 0;
    }
    
    .navbar .dropdown-menu.show {
        display: block;
    }
    
    .navbar .dropdown-item {
        color: var(--bs-dark);
        padding: 10px 20px;
    }
    
    .navbar-collapse {
        background-color: white;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: -100px;
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #FFF5F8 0%, #FFFFFF 50%, #F8F9FA 100%);
    background-size: cover;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../img/hero-bg.jpg) top center no-repeat;
    background-size: cover;
    opacity: 0.08;
    z-index: 0;
}

.hero-header .container {
    position: relative;
    z-index: 1;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.header-carousel {
    position: relative;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(107, 44, 143, 0.2);
    height: 100%;
    min-height: 500px;
}

.header-carousel::before {
    display: none;
}

.header-carousel img {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 500px;
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white);
}

/* Love.Home.Food box responsive styling */
.h-25.d-flex.align-items-center.text-center.bg-primary.px-4 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.h-25.d-flex.align-items-center.text-center.bg-primary.px-4 h4 {
    margin: 0;
    width: 100%;
    word-break: break-word;
}

@media (max-width: 768px) {
    .h-25.d-flex.align-items-center.text-center.bg-primary.px-4 {
        min-height: 100px;
        padding: 10px !important;
    }
    
    .h-25.d-flex.align-items-center.text-center.bg-primary.px-4 h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .h-25.d-flex.align-items-center.text-center.bg-primary.px-4 {
        min-height: 120px;
        padding: 10px !important;
    }
    
    .h-25.d-flex.align-items-center.text-center.bg-primary.px-4 h4 {
        font-size: 1.1rem;
    }
}


/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/bg-about-img.png) top left no-repeat;
    background-size: contain;
}


/*** Project ***/
.project-item img {
    transition: .5s;
}
  
.project-item:hover img {
    transform: scale(1.2);
}
  
.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}


/*** Service ***/

.service-item {
    position: relative;
    padding: 18px 18px;
    transition: .5s;
}


.service-item.bg-primary {
    color: var(--bs-white);
}

.service-item.bg-primary p {
    color: var(--bs-white);
    transition: .5s;
}

.service-item.bg-primary:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-white);
}

.service-item.bg-primary:hover p {
    color: rgba(255, 255, 255, 0.95);
}


.service-item.bg-light {
    background: rgba(232,76,139,0.08) !important;
    color: var(--bs-secondary);
}

.service-item.bg-light p {
    color: var(--bs-secondary);
    transition: .5s;
}

.service-item.bg-light:hover {
    background: rgba(232,76,139,0.18) !important;
    color: #1a1a1a;
}

.service-item.bg-light:hover p {
    color: #333 !important;
}



.service-item .service-img {
    position: relative;
    overflow: hidden;
}

.service-item .service-img h3 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 12px 4px 0;
    line-height: 1.1;
}


.service-item.bg-primary .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
}


.service-item.bg-primary:hover .service-img h3 {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    font-weight: 600;
}


.service-item.bg-light .service-img h3 {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a1a !important;
    font-weight: 600;
}


.service-item.bg-light:hover .service-img h3 {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
}


/*** Our Team ***/
.team-item img {
    transition: .5s;
}
  
.team-item:hover img {
    transform: scale(1.2);
}
  
.team-overlay {
    position: absolute;
    padding: 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}

.team-overlay small {
    display: inline-block;
    padding: 3px 15px;
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Testimonial ***/
.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-text h5 {
    position: relative;
    padding-left: 45px;
}

.testimonial-text h5::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
    position: absolute;
    height: 17px;
    bottom: 0;
    right: 0;
    left: auto;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    width: 15px;
    height: 15px;
    background: var(--bs-white);
    border: 2px solid var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-dots {
        left: 0;
        right: auto;
    }

    .testimonial-carousel .owl-dot {
        margin-right: 10px;
        margin-left: 0;
    }
}


/*** Newsletter ***/
.newsletter {
    background: url(../img/hero-bg.png) bottom right no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-white);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255,255,255,.5);
}

.footer .copyright a:hover {
    color: var(--bs-white);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* AmmaBhoj - Light pink overrides (use a light variant of --bs-secondary) */
:root {
    --ammabhoj-secondary: #E84C8B;
}

/* Make the project's "light" backgrounds use a light pink instead of greenish tone */
.bg-light {
    background-color: rgba(232,76,139,0.10) !important;
}

/* Define a light variant class used in markup */
.bg-secondary-light {
    background-color: rgba(232,76,139,0.08) !important;
}

/* Headings small labels (How It / What is / Community / Why AmmaBhoj span labels) */
h1 span.text-uppercase.text-primary.bg-light,
h1 span.text-uppercase.text-primary.bg-white,
h1 span.text-uppercase.text-primary.bg-secondary-light {
    background-color: rgba(232,76,139,0.12) !important;
    /* keep label text readable and pink (do not force white) */
    color: var(--ammabhoj-secondary) !important;
}

/* Customer button special class to prevent green hover and use pink instead */
.btn-customer.btn-primary:hover,
.btn-customer.btn-primary:focus {
    /* do not fill with pink on hover; show outline only and make text violet */
    background-color: transparent !important;
    color: var(--bs-primary) !important;
    border: 2px solid var(--bs-primary) !important;
    box-shadow: none !important;
}

/* Ensure service-item.bg-light hover behaviour adapts to pink variant */
/* Removed duplicate - handled above */

/* Make the small h3 heading label inside the service boxes use white background */
/* Removed duplicate - handled above */

/* Hero section styling - Modern composition inspired by reference */
.hero-content {
    padding-right: 40px;
}

.hero-intro {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ammabhoj-secondary);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-intro i {
    color: var(--bs-primary);
    font-size: 1rem;
}

.hero-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.hero-heading .text-primary {
    color: var(--bs-primary);
    position: relative;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 35px;
    font-weight: 400;
    max-width: 95%;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-cta .btn {
    margin-right: 0;
}

/* Responsive hero typography */
@media (max-width: 991.98px) {
    .hero-heading {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
        width: 100%; /* Ensure full width */
    }
    
    /* Center the intro text on mobile/tablet */
    .hero-intro {
        justify-content: center;
    }

    /* Center the buttons */
    .hero-cta {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero-heading {
        font-size: 2rem;
    }
    
    /* Already centered by 991px query, but ensure specific adjustments */
    .hero-cta {
        flex-direction: column;
        align-items: center; /* Ensure items are centered */
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-right: 0; /* Remove right margin for stacked buttons */
        margin-bottom: 10px;
    }
}

/* Section Typography & Composition Improvements */
.section-subheading {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ammabhoj-secondary);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-subheading i {
    color: var(--bs-primary);
    font-size: 1rem;
    margin-right: 8px;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 25px;
    letter-spacing: -0.3px;
}

.section-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    font-weight: 400;
}

/* Feature Items Grid (2x2) */
.feature-item {
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(107, 44, 143, 0.15);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFE5B4 0%, #FFD89B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--bs-primary);
    font-size: 1.2rem;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Steps List */
.steps-list {
    padding-left: 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--ammabhoj-secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(107, 44, 143, 0.25);
}

.step-content {
    flex: 1;
    padding-top: 5px;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.step-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* Stories Section */
.stories-placeholder {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
    background: linear-gradient(135deg, #FFF5F8 0%, #F8F9FA 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.stories-image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.stories-overlay-text {
    text-align: center;
    color: var(--bs-primary);
}

.stories-overlay-text i {
    opacity: 0.3;
    margin-bottom: 20px;
}

.stories-overlay-text p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--bs-primary);
}

/* Image improvements */
.about-img img,
.header-carousel img {
    border-radius: 16px;
}

/* Section spacing improvements */
.section-about,
.section-stories {
    background: #ffffff;
}

/* Responsive typography */
@media (max-width: 991.98px) {
    .section-heading {
        font-size: 2.2rem;
    }
    
    .section-body {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .section-heading {
        font-size: 1.8rem;
    }
    
    .feature-item {
        padding: 25px 20px;
    }
    
    .step-item {
        gap: 15px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}



/* Mobile*/
button, a.btn, input[type="button"], input[type="submit"] {
    min-height: 44px;
    min-width: 44px;
}

/* Back to top button */
@media (max-width: 576px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Hero header mobile adjustments */
@media (max-width: 768px) {
    .hero-header {
        margin-top: -60px;
        padding-top: 80px;
        padding-bottom: 60px;
        min-height: auto;
    }
    
    .header-carousel {
        min-height: 300px;
    }
    
    .header-carousel img {
        min-height: 300px;
    }
    
    .header-carousel .owl-dots {
        right: 15px;
    }
    
    .header-carousel .owl-dot {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 576px) {
    .hero-header {
        margin-top: -40px;
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    .hero-intro {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .hero-heading {
        font-size: 1.75rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .header-carousel {
        min-height: 250px;
    }
    
    .header-carousel img {
        min-height: 250px;
    }
}

/* Navbar mobile adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
        font-size: 16px;
    }
    
    .navbar-brand h1 {
        font-size: 1.5rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        background: white;
        padding: 10px 0;
        margin-top: 10px;
        border-radius: 8px;
    }
}

/* Button responsive sizing */
@media (max-width: 576px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-primary,
    .btn-outline-primary {
        min-height: 44px;
    }
}

/* Service items mobile */
@media (max-width: 768px) {
    .service-item {
        padding: 15px 12px;
        margin-bottom: 15px;
    }
    
    .service-item .service-img h3 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .service-item {
        padding: 15px 12px;
    }
    
    .project-overlay,
    .team-overlay {
        padding: 15px;
    }
}

/* About section mobile */
@media (max-width: 768px) {
    .about-img {
        margin-top: 30px;
    }
    
    .about-img::after {
        display: none;
    }
}

/* Feature items responsive grid */
@media (max-width: 768px) {
    .feature-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .feature-item {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-text {
        font-size: 0.9rem;
    }
}

/* Steps list mobile */
@media (max-width: 576px) {
    .step-item {
        margin-bottom: 25px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        min-width: 50px;
    }
    
    .step-title {
        font-size: 1.05rem;
    }
    
    .step-text {
        font-size: 0.95rem;
    }
}

/* Testimonial mobile */
@media (max-width: 768px) {
    .testimonial-img {
        padding: 30px 0 30px 60px;
    }
    
    .testimonial-img::before {
        width: calc(40% + 30px);
    }
}

@media (max-width: 576px) {
    .testimonial-img {
        padding: 20px 0 20px 50px;
    }
    
    .testimonial-img::before {
        width: calc(35% + 25px);
    }
    
    .testimonial-text h5 {
        font-size: 1.1rem;
        padding-left: 30px;
    }
    
    .testimonial-text p {
        font-size: 0.95rem;
    }
}

/* Project grid mobile */
@media (max-width: 768px) {
    .project-item {
        margin-bottom: 20px;
    }
}

/* Team grid mobile */
@media (max-width: 768px) {
    .team-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .team-overlay {
        padding: 20px;
    }
    
    .team-overlay small {
        font-size: 0.85rem;
        padding: 2px 12px;
    }
}

/* Newsletter section mobile */
@media (max-width: 768px) {
    .newsletter {
        background-size: auto;
        background-attachment: scroll;
    }
    
    .newsletter .newsletter-text {
        padding-right: 0 !important;
        text-align: center;
    }
}

/* Section spacing mobile */
@media (max-width: 768px) {
    .section-about,
    .section-stories {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .section-about,
    .section-stories {
        padding: 30px 0;
    }
    
    .section-subheading {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    .section-heading {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .section-body {
        font-size: 1rem;
    }
}

/* Container padding mobile */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Row and column gutters mobile */
@media (max-width: 576px) {
    .row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 1rem;
    }
    
    .g-5 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    .g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

/* Footer mobile */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0;
    }
    
    .footer .btn.btn-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 25px 0;
    }
    
    .footer .btn.btn-link {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .footer .copyright {
        padding: 15px 0;
        font-size: 0.85rem;
    }
    
    .footer .footer-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .footer .footer-menu a {
        margin-right: 0;
        padding-right: 0;
        border-right: none;
    }
}

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Owl carousel mobile adjustments */
@media (max-width: 768px) {
    .owl-carousel {
        padding-bottom: 30px;
    }
    
    .owl-dots {
        bottom: 5px;
    }
}

@media (max-width: 576px) {
    .owl-carousel .owl-item img {
        object-fit: cover;
        width: 100%;
    }
}

/* Text utilities mobile */
@media (max-width: 576px) {
    .text-center {
        text-align: center;
    }
    
    h1, h2, h3, h4, h5, h6 {
        word-break: break-word;
    }
}

/* Breadcrumb mobile */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
}

/* Badges and pills mobile */
@media (max-width: 576px) {
    .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }
}

/* Cards mobile */
@media (max-width: 576px) {
    .card {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* Alerts mobile */
@media (max-width: 576px) {
    .alert {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

/* Forms mobile */
@media (max-width: 576px) {
    .form-control,
    .form-select,
    textarea {
        font-size: 16px;
        padding: 0.75rem 0.75rem;
        min-height: 44px;
    }
    
    label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

/* Dropdowns mobile */
@media (max-width: 768px) {
    .dropdown-menu {
        font-size: 0.95rem;
        min-width: 160px;
    }
}

/* Pagination mobile */
@media (max-width: 576px) {
    .pagination {
        gap: 5px;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Table mobile scroll */
@media (max-width: 768px) {
    table {
        font-size: 0.9rem;
    }
    
    .table-responsive {
        margin-bottom: 15px;
    }
}

/* Modals mobile */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

/* Generic padding/margin mobile utilities */
@media (max-width: 576px) {
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-5 {
        margin-top: 1.5rem !important;
    }
}

/* Media queries for extra small devices */
@media (max-width: 360px) {
    .hero-heading {
        font-size: 1.5rem;
    }
    
    .section-heading {
        font-size: 1.4rem;
    }
    
    .feature-item {
        padding: 15px 12px;
    }
    
    .step-number {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}



/* Service Page - Icon boxes mobile adjustments */
@media (max-width: 768px) {
    .service-item .d-flex {
        flex-direction: column;
    }
    
    .service-item .flex-shrink-0 {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .btn-square[style*="width: 50px"],
    .btn-lg-square[style*="width: 80px"],
    .btn-lg-square[style*="width: 60px"] {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.9rem !important;
    }
    
    .d-flex.align-items-start {
        margin-bottom: 15px;
    }
    
    .d-flex.align-items-start > div:nth-child(2) {
        margin-left: 15px;
    }
}

/* Project/Team Grid - Better mobile layout */
@media (max-width: 768px) {
    .project-item,
    .team-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .col-md-6.col-lg-3,
    .col-md-6.col-lg-4 {
        min-height: auto;
    }
}

/* Contact Page - Form sections mobile */
@media (max-width: 768px) {
    .col-md-4 {
        margin-bottom: 15px;
    }
    
    .contact-info-box {
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .col-md-4 {
        margin-bottom: 15px;
    }
    
    form .col-md-6 {
        margin-bottom: 15px;
    }
}

/* About Page - Image grid mobile */
@media (max-width: 768px) {
    .about-img-grid {
        margin-top: 20px;
    }
    
    .row.g-3 > .col-6 {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .row.g-3 > .col-6 {
        padding: 5px;
    }
    
    .row.g-3 > .col-6 img {
        margin-bottom: 10px;
    }
}

/* Breadcrumb mobile adjustments */
@media (max-width: 768px) {
    .breadcrumb-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .display-1 {
        font-size: 2rem;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        gap: 5px;
    }
}

/* Newsletter input field mobile */
@media (max-width: 576px) {
    input[style*="height: 60px"],
    textarea,
    select {
        height: auto !important;
        min-height: 44px !important;
        font-size: 16px !important;
        padding: 0.75rem !important;
    }
}

/* Display utilities for specific layouts */
@media (max-width: 768px) {
    .ps-lg-0 {
        padding-left: 0 !important;
    }
    
    .text-lg-start {
        text-align: center !important;
    }
}

@media (min-width: 769px) {
    .text-lg-start {
        text-align: start !important;
    }
}

/* Padding adjustments for mobile sections */
@media (max-width: 576px) {
    section[class*="py-5"] {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .p-4,
    [class*="p-4"] {
        padding: 1.25rem !important;
    }
    
    .p-5,
    [class*="p-5"] {
        padding: 1.5rem !important;
    }
}

/* Flexbox mobile adjustments */
@media (max-width: 576px) {
    .d-flex.flex-column.justify-content-center {
        padding: 1.5rem !important;
        min-height: auto !important;
    }
}

/* Row gap adjustments */
@media (max-width: 576px) {
    .row[class*="g-"] {
        gap: 0.75rem;
    }
}

/* Hero section display name on mobile */
@media (max-width: 576px) {
    .display-1,
    .display-2,
    .display-3 {
        font-size: 1.75rem;
        word-break: break-word;
    }
}

/* Grid items equal height mobile fix */
@media (max-width: 768px) {
    .h-100 {
        height: auto !important;
        min-height: auto !important;
    }
}

/* Ensure good mobile spacing for all sections */
@media (max-width: 576px) {
    .row {
        margin-bottom: 1rem;
    }
    
    [class*="wow"] {
        margin-bottom: 1rem;
    }
}

/* Mobile-friendly project overlay text */
@media (max-width: 576px) {
    .project-overlay,
    .team-overlay {
        padding: 12px !important;
    }
    
    .project-overlay h4,
    .team-overlay h4,
    .project-overlay small,
    .team-overlay small {
        font-size: 0.85rem;
    }
}

/* Ensure all columns are responsive */
@media (max-width: 768px) {
    .col-lg-5,
    .col-lg-7,
    .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .col-sm-6 {
        margin-bottom: 1rem;
    }
    
    .col-sm-6:last-child {
        margin-bottom: 0;
    }
}

/* Full-width sections mobile */
@media (max-width: 768px) {
    .container-fluid {
        margin-left: 0;
        margin-right: 0;
    }
}

/* CTA Buttons - Join AmmaBhoj Today section */
.btn-customer {
    transition: all 0.3s ease;
}

.d-flex.flex-wrap.justify-content-center.gap-3 {
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 576px) {
    .d-flex.flex-wrap.justify-content-center.gap-3 {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .d-flex.flex-wrap.justify-content-center.gap-3 .btn {
        width: 100%;
        margin: 0;
    }
    
    .col-lg-12 .btn-primary,
    .col-lg-12 .btn-outline-primary {
        padding: 12px 20px !important;
    }
}
