/* Custom Repair & Layout Fixes for Akashdip Mahapatra Website */

/* --- 1. Global Visibility Fixes --- */
.elementor-invisible {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Limit the height of global spacers so they don't create huge gaps, but don't hide them completely */
.elementor-widget-spacer .elementor-spacer-inner {
    max-height: 40px !important;
}

/* --- 2. Targeted Gallery Section Fixes --- */
/* Only apply these layout overrides to sections that actually contain galleries */
.custom-gallery-section {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

/* Hide spacers completely ONLY inside gallery sections to remove gaps between headings and grids */
.custom-gallery-section .elementor-widget-spacer {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Expand the container width ONLY for gallery sections to allow a wide responsive grid */
.custom-gallery-section > .elementor-container,
.custom-gallery-section .elementor-container {
    max-width: 1400px !important;
    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Tighten up headings inside gallery sections */
.custom-gallery-section .elementor-heading-title {
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}

/* --- 3. Gallery Grid Implementation --- */
.elementor-widget-gallery,
.elementor-widget-gallery .elementor-widget-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.elementor-gallery__container,
.e-gallery-container,
.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* Override any inline height styles applied by Elementor JS Masonry */
.elementor-gallery__container[style],
.e-gallery-container[style],
.elementor-widget-container[style] {
    height: auto !important;
    min-height: 0 !important;
}

.elementor-gallery-item,
.e-gallery-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: block !important;
    width: 100% !important;
    height: 220px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background-color: #f4f6f9 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
    transform: none !important;
}

.elementor-gallery-item:hover,
.e-gallery-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16) !important;
    z-index: 10 !important;
}

.e-gallery-image,
.elementor-gallery-item__image {
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: block !important;
    transition: transform 0.5s ease !important;
}

.elementor-gallery-item:hover .e-gallery-image,
.elementor-gallery-item:hover .elementor-gallery-item__image {
    transform: scale(1.06) !important;
}

.elementor-gallery-item__overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 60%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.elementor-gallery-item:hover .elementor-gallery-item__overlay {
    opacity: 1 !important;
}

/* --- 4. Reduced & Smooth Animation Intensity --- */
.animated,
.elementor-animated,
[class*="elementor-animation-"] {
    animation-duration: 0.8s !important;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1) !important;
    transition-duration: 0.5s !important;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translate3d(0, 20px, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translate3d(0, -20px, 0); }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes zoomIn {
    0% { opacity: 0; transform: scale3d(0.95, 0.95, 0.95); }
    100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale3d(0.92, 0.92, 0.92); }
    60% { opacity: 1; transform: scale3d(1.02, 1.02, 1.02); }
    100% { transform: scale3d(1, 1, 1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

html {
    scroll-behavior: smooth;
}

/* --- 5. Lightbox Modal Popup Styles --- */
#custom-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

#custom-lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

#custom-lightbox-modal img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

#custom-lightbox-caption {
    color: #ffffff;
    margin-top: 15px;
    font-size: 15px;
    text-align: center;
    max-width: 80vw;
    line-height: 1.5;
    font-family: sans-serif;
}

.lightbox-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    transition: color 0.2s ease;
}

.lightbox-close-btn:hover {
    color: #009bdf;
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    user-select: none;
    padding: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.lightbox-nav-btn:hover {
    color: #009bdf;
}

.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }

@media (max-width: 768px) {
    .elementor-gallery__container,
    .e-gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 10px !important;
    }
    .elementor-gallery-item,
    .e-gallery-item {
        height: 150px !important;
    }
}

/* Specific Hide Fixes for Homepage Cleanup */
.elementor-element-2c499f5,
.elementor-element-c0b3cbd,
.elementor-element-46cf36b,
.elementor-element-cb67215,
.elementor-element-04a9c28,
.elementor-element-2f9f20b { display: none !important; }

/* Fix ID card layout by adding gap instead of squishing image */
.elementor-element-267fba8 > .elementor-container {
    gap: 50px !important;
}

/* Fix services page hero section huge gap to match other pages */
.elementor-element-e8d8309 { 
    min-height: 0 !important; 
    height: auto !important;
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

/* Fix ID card gap without flex gap (for older Elementor) */
.elementor-element-03d175a > .elementor-widget-wrap { padding-left: 40px !important; }

/* Hide huge transparent spacer image in services page */
.elementor-element-1f692c2 { display: none !important; }


.elementor-element-e8d8309 .elementor-container { min-height: 0 !important; }

/* -------------------------------------------------------------
 * Archive Shimmer Banner
 * ------------------------------------------------------------- */
@keyframes shimmer {
  0%     { transform: translateX(-150%) skewX(-20deg); opacity: 1; }
  30%    { transform: translateX(150%)  skewX(-20deg); opacity: 1; }
  30.01% { opacity: 0; transform: translateX(-150%) skewX(-20deg); }
  33%    { opacity: 1; transform: translateX(-150%) skewX(-20deg); }
  48%    { transform: translateX(150%)  skewX(-20deg); opacity: 1; }
  78%    { transform: translateX(-150%) skewX(-20deg); opacity: 1; }
  78.01% { opacity: 0; }
  100%   { opacity: 0; transform: translateX(-150%) skewX(-20deg); }
}

.shimmer-btn {
  position: relative !important;
  overflow: hidden !important;
}

.shimmer-btn .shimmer-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.9) 50%,
    transparent 65%
  );
  animation: shimmer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.shimmer-btn > span {
  position: relative;
  z-index: 2;
}

.archive-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 4px 0 0 0;
    padding: 12px 20px;
    background: rgba(243, 156, 18, 0.9); /* Softer golden-yellow matching the star ratings */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(214, 137, 16, 0.5);
    box-shadow: 0 6px 15px rgba(243, 156, 18, 0.2);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    position: sticky;
    top: 4px;
    z-index: 99999;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.archive-banner:hover {
    background: rgba(214, 137, 16, 0.95);
    box-shadow: 0 8px 20px rgba(214, 137, 16, 0.3);
    color: #ffffff !important;
}
.archive-button-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 4px 0;
    padding: 16px 20px;
    background: rgba(243, 156, 18, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(214, 137, 16, 0.5);
    box-shadow: 0 6px 15px rgba(243, 156, 18, 0.2);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.archive-button-inline:hover {
    background: rgba(214, 137, 16, 0.95);
    box-shadow: 0 8px 20px rgba(214, 137, 16, 0.3);
    color: #ffffff !important;
}
/* Contact Page Form Upgrade */
.wpforms-form {
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}
.wpforms-field-container .wpforms-field input,
.wpforms-field-container .wpforms-field textarea {
    width: 100%;
    padding: 14px 18px !important;
    border: 2px solid #eef2f5 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    transition: all 0.3s ease !important;
    font-family: 'Inter', sans-serif !important;
    color: #1e293b !important;
    font-size: 15px !important;
    box-shadow: none !important;
}
.wpforms-field-container .wpforms-field input:focus,
.wpforms-field-container .wpforms-field textarea:focus {
    border-color: #2c82c9 !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(44, 130, 201, 0.15) !important;
}
.wpforms-field-label {
    font-weight: 600 !important;
    margin-bottom: 10px !important;
    display: block !important;
    color: #334155 !important;
    font-size: 14px !important;
}
.wpforms-submit-container button {
    background: linear-gradient(135deg, #2c82c9 0%, #1a5c92 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    width: 100% !important;
    letter-spacing: 0.5px !important;
}
.wpforms-submit-container button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(44, 130, 201, 0.3) !important;
}

/* Push social icons down */
.elementor-social-icons-wrapper {
    margin-top: 120px !important;
    margin-bottom: 4px !important;
}





/* Arrow indicator for banner links */
.archive-banner span::after, .archive-button-inline span::after {
    content: "  \2197";
    font-weight: bold;
    font-size: 1.15em;
    margin-left: 6px;
    display: inline-block;
    animation: arrowNudge 2.5s infinite ease-in-out;
    transition: transform 0.25s ease;
}

@keyframes arrowNudge {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(4px, -4px);
    }
}

.archive-banner:hover span::after, .archive-button-inline:hover span::after {
    animation: none;
    transform: translate(6px, -6px);
}
