/*!
 * Custom overrides for the newngd theme.
 */
/* Fix homepage sticky header - White background when scrolled */
#header-sticky.header-white.header-fixed {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo switching - Show dark logo when sticky, hide white logo */
#header-sticky.header-white.header-fixed .logo-white {
    display: none !important;
}

#header-sticky.header-white.header-fixed .logo-dark {
    display: inline !important;
}

/* Dark text and icons when sticky */
#header-sticky.header-white.header-fixed .main-menu a {
    color: #1C4B42 !important;
}

#header-sticky.header-white.header-fixed .search-icon svg path {
    fill: #1C4B42 !important;
}

/* Contact area styling when sticky */
#header-sticky.header-white.header-fixed .header-contact-home .fa-phone {
    background: #1C4B42 !important;
    color: #fff !important;
}

#header-sticky.header-white.header-fixed .header-contact-home a {
    color: #1C4B42 !important;
}

#header-sticky.header-white.header-fixed .header-contact-home a span {
    color: #1C4B42 !important;
}

/* Button styling when sticky */
#header-sticky.header-white.header-fixed .theme-btn.white-blur {
    background: linear-gradient(135deg, #1C4B42 0%, #234345 100%) !important;
    color: #fff !important;
}

/* Homepage non-sticky - White background for phone icon */
.header-contact-home .fa-phone {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Header container spacing - Add padding to prevent elements from sticking to edges */
.header-section .container {
    padding-left: 30px !important;
    padding-right: 30px !important;
}

@media (max-width: 1199.98px) {
    .header-section .container {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
}

@media (max-width: 767.98px) {
    .header-section .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}


.theme-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 991.98px) {
    .theme-pagination {
        margin-top: 40px;
    }
}

@media (max-width: 575.98px) {
    .theme-pagination {
        margin-top: 32px;
    }
}

.theme-pagination__list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.theme-pagination__item {
    display: inline-flex;
}

.theme-pagination__link {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background-color: var(--white);
    color: var(--theme4);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(28, 75, 66, 0.16);
    box-shadow: 0 12px 24px rgba(9, 32, 30, 0.08);
    transition: all 0.3s ease;
}

.theme-pagination__item--control .theme-pagination__link {
    width: 44px;
    height: 44px;
    font-size: 13px;
}

.theme-pagination__link:hover,
.theme-pagination__link:focus-visible {
    background-color: var(--theme4);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 16px 30px rgba(9, 32, 30, 0.18);
    outline: none;
}

.theme-pagination__item.is-active .theme-pagination__link {
    background-color: var(--theme4);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 18px 32px rgba(9, 32, 30, 0.22);
}

.theme-pagination__item.is-active .theme-pagination__link:hover,
.theme-pagination__item.is-active .theme-pagination__link:focus-visible {
    background-color: var(--theme4);
}

.theme-pagination__link:focus-visible {
    box-shadow: 0 0 0 3px rgba(191, 147, 76, 0.35);
}

.theme-pagination__item--disabled .theme-pagination__link {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

@media (max-width: 575.98px) {
    .theme-pagination__link {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
}

/* Content Area Spacing - Theme-wide improvements */
.service-content h2,
.recipe-content h2,
.blog-content h2,
.page-content h2,
.content-area h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 600;
}

.service-content h3,
.recipe-content h3,
.blog-content h3,
.page-content h3,
.content-area h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.service-content h4,
.recipe-content h4,
.blog-content h4,
.page-content h4,
.content-area h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.service-content p,
.recipe-content p,
.blog-content p,
.page-content p,
.content-area p {
    margin-bottom: 2rem;
    line-height: 1.9;
}

.service-content ul,
.service-content ol,
.recipe-content ul,
.recipe-content ol,
.blog-content ul,
.blog-content ol,
.page-content ul,
.page-content ol,
.content-area ul,
.content-area ol {
    margin-bottom: 2rem;
    padding-left: 2.5rem;
}

.service-content ul li,
.service-content ol li,
.recipe-content ul li,
.recipe-content ol li,
.blog-content ul li,
.blog-content ol li,
.page-content ul li,
.page-content ol li,
.content-area ul li,
.content-area ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.service-content blockquote,
.recipe-content blockquote,
.blog-content blockquote,
.page-content blockquote,
.content-area blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--theme4);
    background-color: rgba(191, 147, 76, 0.05);
}

.service-content img,
.recipe-content img,
.blog-content img,
.page-content img,
.content-area img {
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

@media (max-width: 991.98px) {
    .sticky-sidebar {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
    
    .service-content h2,
    .recipe-content h2,
    .blog-content h2,
    .page-content h2,
    .content-area h2 {
        margin-top: 2.5rem;
        font-size: 1.5rem;
    }
    
    .service-content h3,
    .recipe-content h3,
    .blog-content h3,
    .page-content h3,
    .content-area h3 {
        margin-top: 2rem;
        font-size: 1.35rem;
    }
}

/* Service Page Specific Styles */
.service-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.service-detail-wrapper {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-image {
    border-radius: 12px;
    overflow: hidden;
}

.service-image img {
    transition: transform 0.3s ease;
}

.contact-widget {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-widget .form-control {
    border: 1px solid #e5e5e5;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-widget .form-control:focus {
    border-color: #234345;
    box-shadow: 0 0 0 0.2rem rgba(35, 67, 69, 0.1);
}

.contact-widget .widget-title {
    font-size: 1.25rem;
}

.service-items2 {
    transition: all 0.3s ease;
    padding: 30px;
    height: 100%;
}

.service-items2:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-items2 .icons {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    transition: all 0.3s ease;
}

.service-items2:hover .icons {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
}

.service-thumb img {
    transition: transform 0.5s ease;
}

.service-items2:hover .service-thumb img {
    transform: scale(1.1);
}

.approch-items {
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.approch-items .content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.share-section {
    border: 1px solid #e5e5e5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.badge {
    padding: 0.5em 1em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.badge:hover {
    background-color: #234345 !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
    background-color: #234345;
    border-color: #234345;
    color: #fff;
}

.link-btn {
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.link-btn:hover {
    gap: 1rem !important;
}

.link-btn i {
    transition: transform 0.3s ease;
}

.link-btn:hover i {
    transform: translateX(5px);
}

.img-custom-anim-left {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.work-list-item {
    padding: 25px;
    transition: all 0.3s ease;
}

.work-list-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.work-list-item .icon {
    min-width: 60px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
}

@media (max-width: 768px) {
    .service-items2 {
        padding: 20px;
    }
    
    .approch-items {
        min-height: auto;
    }
    
    .service-detail-wrapper {
        padding: 20px !important;
    }
    
    .share-section {
        padding: 20px !important;
    }
}

@media (max-width: 576px) {
    .tags-wrapper,
    .share-wrapper {
        text-align: center !important;
    }
    
    .col-md-6.text-md-end {
        text-align: center !important;
    }
}


/* ========================================
   CONTACT PAGE STYLES
======================================== */

/* Contact Info Boxes */
.contact-mail-items {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.contact-mail-items:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--theme-clr);
}

.contact-mail-items .theme-bg {
    transition: all 0.3s ease;
}

.contact-mail-items:hover .theme-bg {
    transform: scale(1.1) rotate(360deg);
}

.contact-mail-items h5 a {
    transition: color 0.3s ease;
}

.contact-mail-items:hover h5 a {
    color: var(--theme-clr) !important;
}

/* Contact Form Section */
.contact-thumb1 {
    position: relative;
    overflow: hidden;
}

.contact-thumb1 img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.contact-thumb1:hover img {
    transform: scale(1.05);
}

.contact-thumb1 .cont {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.contact-content1 {
    padding: 3rem 2.5rem;
    background: var(--white);
    height: 100%;
}

.contact-content1 .form__grp {
    margin-bottom: 0;
}

.contact-content1 .form-control {
    border: 2px solid #e8e8e8;
    padding: 0.875rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.938rem;
}

.contact-content1 .form-control:focus {
    border-color: var(--theme-clr);
    box-shadow: 0 0 0 0.2rem rgba(28, 75, 66, 0.1);
}

.contact-content1 .contact-send {
    transition: all 0.3s ease;
}

.contact-content1 .contact-send:hover {
    transform: translateX(5px);
}

.contact-content1 .contact-send i {
    transition: transform 0.3s ease;
}

.contact-content1 .contact-send:hover i {
    transform: rotate(360deg);
}

/* Social Media Icons */
.hover-scale {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(28, 75, 66, 0.2);
}

.hover-scale i {
    transition: transform 0.3s ease;
}

.hover-scale:hover i {
    transform: scale(1.1);
}

/* Map Section */
.contact-section + section .rounded-4 {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 991px) {
    .contact-content1 {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }
    
    .contact-thumb1 .cont {
        position: static;
        margin-top: 1.5rem;
    }
}

@media (max-width: 767px) {
    .contact-mail-items {
        padding: 2rem 1rem;
    }
    
    .contact-content1 {
        padding: 1.5rem 1rem;
    }
}


/* ========================================
   SEARCH FORM SUBMIT BUTTON
======================================== */

/* Search Form Submit Button */
.search-field-holder {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-submit-btn {
    background: linear-gradient(135deg, #234345 0%, #1C4B42 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(35, 67, 69, 0.3);
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #1C4B42 0%, #234345 100%);
    box-shadow: 0 6px 20px rgba(35, 67, 69, 0.4);
    transform: translateY(-2px);
}

.search-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(35, 67, 69, 0.3);
}

.search-submit-btn i {
    font-size: 14px;
}

@media (max-width: 576px) {
    .search-submit-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .search-submit-btn span {
        display: none;
    }
    
    .search-submit-btn i {
        font-size: 16px;
    }
}

/* ========================================
   MOBILE STICKY BOTTOM BAR
======================================== */

/* Mobile Sticky Bottom Bar - Only visible on mobile */
.mobile-sticky-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1C4B42 0%, #234345 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 8px 0;
    border-top: 2px solid rgba(191, 147, 76, 0.3);
}

.mobile-sticky-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.mobile-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 120px;
}

.mobile-action-btn i {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.mobile-action-btn span {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.mobile-action-btn:hover,
.mobile-action-btn:active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

.mobile-action-btn:hover i {
    transform: scale(1.15);
}

.mobile-action-btn.call-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.mobile-action-btn.call-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    transform: translateY(-2px) scale(1.05);
}

.mobile-action-btn.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.mobile-action-btn.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-2px) scale(1.05);
}

/* Mobile Contact Modal Styles */
#mobileContactModal .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#mobileContactModal .modal-header {
    background: linear-gradient(135deg, #1C4B42 0%, #234345 100%);
    color: #fff;
    border-radius: 1rem 1rem 0 0;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

#mobileContactModal .modal-title {
    color: #fff !important;
}

#mobileContactModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#mobileContactModal .modal-body {
    padding: 1.5rem;
}

#mobileContactModal .form-control {
    border: 1px solid #e5e5e5;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#mobileContactModal .form-control:focus {
    border-color: #1C4B42;
    box-shadow: 0 0 0 0.2rem rgba(28, 75, 66, 0.1);
}

/* Add padding to body to prevent content from being hidden under the sticky bar */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px;
    }
}

/* Hide on desktop */
@media (min-width: 992px) {
    .mobile-sticky-bottom {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}

/* Adjust for very small screens */
@media (max-width: 360px) {
    .mobile-action-btn {
        padding: 6px 8px;
    }
    
    .mobile-action-btn i {
        font-size: 20px;
    }
    
    .mobile-action-btn span {
        font-size: 10px;
    }
}
