/* 
 Theme Name:   digile
 Theme URI:    
 Description:  
 Author:       Digile Admin
 Author URI:   
 Template:     auregon
 Version:      1.0

 /* == Add your own styles below this line ==
--------------------------------------------*/

/* ==========================================================================
   1. Digile Events Archive Shortcode
   ========================================================================== */
.digile-events-wrapper {
    width: 100%;
    position: relative;
    z-index: 10;
}
.font-poppins { font-family: 'Poppins', sans-serif !important; }
.font-dm-sans { font-family: 'DM Sans', sans-serif !important; }

.digile-events-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}
.digile-events-topbar h2 {
    margin: 0;
    font-size: 2rem;
    color: #111111 !important;
    display: block !important;
    visibility: visible !important;
}
.digile-filter-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}
.filter-btn {
    padding: 10px 24px;
    border-radius: 50px; 
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333333 !important;
    transition: all 0.3s ease;
    outline: none;
    display: inline-block !important;
}
.filter-btn.active {
    background: linear-gradient(180deg, #ff683d, #ff3371);
    color: white !important;
    border-color: transparent;
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1620px;
    margin: 0 auto;
    align-items: stretch;
}
.event-card-link { 
    display: flex; 
    flex-direction: column;
    text-decoration: none !important; 
    color: inherit; 
    border-radius: 16px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    height: 100%; 
}
.event-card-link:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(249, 102, 60, 0.15), 0 0 20px rgba(249, 52, 108, 0.25); 
}
.event-card-link:hover .read-more { 
    background: linear-gradient(135deg, #F9663C 0%, #F9346C 100%) !important; 
    box-shadow: 0 4px 15px rgba(249, 52, 108, 0.4);
    color: #fff !important;
}
.event-card { 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    padding: 2rem; 
    border-radius: 16px; 
    background: #ffffff; 
    border: 1px solid #f0f0f0; 
    height: 100%; 
    box-sizing: border-box; 
    transition: border-color 0.3s ease;
}
.event-card-link:hover .event-card {
    border-color: rgba(249, 52, 108, 0.4);
}
/* Events Image Wrapper */
.event-image { 
    position: relative; 
    margin-bottom: 1.8rem; 
    border-radius: 12px; 
    overflow: hidden; 
    width: 100%;
    aspect-ratio: 16 / 9; /* Perfect permanent rectangle */
    background-color: #0f172a; 
    flex-shrink: 0;
}
.event-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain !important; 
    object-position: center center !important; 
    display: block;
}
.event-content { 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
    justify-content: space-between; 
}
.event-content h3 { 
    font-size: 1.375rem !important; 
    color: #1a1a1a; 
    margin: 0 0 1rem 0; 
    line-height: 1.35; 
    font-weight: 500 !important; 
}
.event-content p { 
    font-size: 0.95rem; 
    color: #555; 
    margin: 0 0 1rem 0; 
    line-height: 1.6; 
}
.read-more { 
    display: inline-flex; 
    align-items: center; 
    background: #000; 
    color: #fff; 
    padding: 0.7rem 1.5rem; 
    border-radius: 30px; 
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; 
    width: max-content;
}
.event-footer-wrap {
    width: 100%;
    margin-top: auto;
    padding-top: 1rem;
}
.card-divider { 
    border: none; 
    border-top: 1px solid #eaeaea; 
    margin: 0 0 1.2rem 0; 
    width: 100%; 
}
.event-footer { 
    font-size: 0.9rem; 
    color: #888; 
    font-weight: 500; 
    display: block; 
    padding-top: 10px; 
}
.event-item.hidden {
    display: none !important;
}
@media (max-width: 1200px) { 
    .events-grid { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 768px) {
    .digile-events-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .digile-events-topbar h2 { font-size: 1.6rem !important; }
    .filter-btn { padding: 8px 18px; font-size: 0.85rem; }
    .events-grid { grid-template-columns: 1fr; padding: 0 1rem; } 
    .event-card { padding: 1.5rem; } 
}

/* ==========================================================================
   2. Hide Default Headers & Back to Top Button
   ========================================================================== */
/* Force hide all default headers */
#pxl-header-elementor, 
.pxl-header-mobile, 
header.pxl-header, 
.elementor-location-header { 
    display: none !important; 
}
body { padding-top: 0 !important; }
#pxl-main { padding-top: 0 !important; margin-top: 0 !important; }

/* Back to Top */
#dgl-back-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 45px !important;
    height: 45px !important;
    background: #FF693C !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 5px 15px rgba(255, 105, 60, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    transition: all 0.3s ease-in-out !important;
    z-index: 999999 !important;
    outline: none !important;
}
#dgl-back-to-top.dgl-show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}
#dgl-back-to-top:hover {
    background: #e55a2f !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(255, 105, 60, 0.6) !important;
}
#dgl-back-to-top svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
    stroke-width: 2.5 !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}
@media (max-width: 768px) {
    #dgl-back-to-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
    }
}
/* ==========================================================================
   3. Ripple Grid & Related Cards Shortcodes
   ========================================================================== */
.custom-blog-section { width: 100%; position: relative; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; max-width: 1620px; margin: 0 auto; align-items: stretch; }
.blog-card-link { display: flex; flex-direction: column; text-decoration: none !important; color: inherit; border-radius: 16px; transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.blog-card-link:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(249, 102, 60, 0.15), 0 0 20px rgba(249, 52, 108, 0.25); }
.blog-card-link:hover .read-more { background: linear-gradient(180deg, #F9663C 0%, #F9346C 100%) !important; box-shadow: 0 4px 15px rgba(249, 52, 108, 0.4); color:#fff !important;}
.blog-card { position: relative; display: flex; flex-direction: column; padding: 2rem; border-radius: 16px; background: #ffffff; border: 1px solid #f0f0f0; height: 100%; box-sizing: border-box; transition: border-color 0.3s ease; }
.blog-card-link:hover .blog-card { border-color: rgba(249, 52, 108, 0.4); }
.ripple-bg { 
    width: 100%; 
    height: 100%; 
    background-size: cover !important; /* Changed from contain to cover */
    background-position: center center !important; 
    background-repeat: no-repeat !important; 
}

.card-image-wrapper canvas, .related-image canvas { 
    display: block; 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    transform: scale(1.02); /* Scales the canvas slightly to hide any 1px edge bleeding */
}

.card-image-wrapper { 
    position: relative; 
    margin-bottom: 1.8rem; 
    border-radius: 12px; 
    overflow: hidden; 
    width: 100%; 
    aspect-ratio: 16 / 9; /* Creates a perfect permanent rectangle shape */
    background-color: #0f172a; 
}

.related-image { 
    position: relative; 
    margin-bottom: 1.8rem; 
    border-radius: 12px; 
    overflow: hidden; 
    width: 100%; 
    aspect-ratio: 16 / 9; /* Creates a perfect permanent rectangle shape */
    background-color: #0f172a; 
    flex-shrink: 0; 
}
.content-top { display: flex; flex-direction: column; align-items: flex-start; }
.content-bottom { width: 100%; margin-top: 1rem; }
.post-title { font-size: 20px !important; color: #1a1a1a; margin: 0 0 1rem 0; line-height: 1.35; font-weight: 500 !important; }
.post-description { font-size: 0.95rem; color: #555; margin: 0 0 1rem 0; line-height: 1.6; }
.ripple-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 3rem; align-items: center; }
.ripple-pagination a, .ripple-pagination span { display: inline-block; padding: 10px 18px; border-radius: 8px; background: #fff; color: #333; text-decoration: none; font-weight: 600; transition: all 0.2s ease; }
.ripple-pagination a:hover { background: #808080; color:#fff;}
.ripple-pagination span.current { background: #F9663C; color: #fff; }
.ripple-loader { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.7); z-index: 10; justify-content: center; align-items: center; font-size: 1.2rem; font-weight: bold; color: #333; }
.custom-blog-section.loading .ripple-loader { display: flex; }
.custom-blog-section.loading .blog-grid { opacity: 0.5; pointer-events: none; }

.related-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; max-width: 1620px; margin: 0 auto; align-items: stretch; }
.related-card-link { display: flex; flex-direction: column; text-decoration: none !important; color: inherit; border-radius: 16px; transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; }
.related-card-link:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(249, 102, 60, 0.15), 0 0 20px rgba(249, 52, 108, 0.25); }
.related-card-link:hover .read-more { background: linear-gradient(135deg, #F9663C 0%, #F9346C 100%) !important; box-shadow: 0 4px 15px rgba(249, 52, 108, 0.4); color: #fff !important; }
.related-card { position: relative; display: flex; flex-direction: column; padding: 2rem; border-radius: 16px; background: #ffffff; border: 1px solid #f0f0f0; height: 100%; box-sizing: border-box; transition: border-color 0.3s ease; }
.related-card-link:hover .related-card { border-color: rgba(249, 52, 108, 0.4); }
.related-image img { width: 100%; height: 100%; object-fit: contain !important; object-position: center center !important; display: block; }
.related-content { display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.related-content h3 { font-size: 1.25rem !important; color: #1a1a1a; margin: 0 0 1rem 0; line-height: 1.35; font-weight: 500 !important; }
.related-content p { font-size: 0.9rem; color: #555; margin: 0 0 1rem 0; line-height: 1.6; }
/* 1. Force the button to perfectly center text and icons */
.read-more { 
    display: inline-flex !important; 
    align-items: center !important; /* Vertically centers the arrow and text */
    justify-content: center !important;
    background: #000; 
    color: #fff; 
    padding: 0.7rem 1.5rem; 
    border-radius: 30px; 
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: background 0.3s ease; 
}

/* 2. Lock the size and forcefully remove any theme rotations */
.custom-svg-arrow {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    flex-shrink: 0 !important; 
    margin-left: 10px !important;
    object-fit: contain !important; 
    display: block !important; 
    
    /* This completely resets any weird tilting or rotating */
    transform: translateY(0) rotate(0deg) !important; 
    transition: transform 0.3s ease !important;
}

/* 3. Keep it straight when hovering */
.blog-card-link:hover .custom-svg-arrow,
.related-card-link:hover .custom-svg-arrow {
    /* Slides it right, but forces the rotation to stay at 0 */
    transform: translateX(5px) rotate(0deg) !important; 
}

/* ==========================================================================
   4. Impact Stories Shortcode
   ========================================================================== */
.impact-stories-wrapper { width: 100%; background-color: #000; padding: 40px 20px; box-sizing: border-box; }
.impact-stories-grid { display: flex; flex-direction: column; gap: 24px; max-width: 1100px; margin: 0 auto; }
.impact-card-link { display: block; text-decoration: none !important; color: inherit; border-radius: 24px; transition: transform 0.3s ease; }
.impact-card-link:hover { transform: translateY(-3px); }
.impact-card { position: relative; display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 24px; height: 300px; border-radius: 24px; background: radial-gradient(circle at 0% 100%, rgba(60, 35, 26, 0.75) 0%, transparent 55%), radial-gradient(circle at 100% 0%, rgba(60, 35, 26, 0.75) 0%, transparent 55%), linear-gradient(135deg, rgba(18, 18, 18, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%); border: 1px solid rgba(255, 255, 255, 0.08); box-sizing: border-box; gap: 32px; overflow: hidden; transition: all 0.4s ease; }
.impact-card-link:hover .impact-card { border-color: rgba(249, 102, 60, 0.5); box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(60, 35, 26, 0.6); }
.impact-image-wrapper { position: relative; width: 250px; height: 250px; border-radius: 16px; overflow: hidden; background-color: #0f172a; flex-shrink: 0; z-index: 2; }
.impact-ripple-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover !important; background-position: center center !important; background-repeat: no-repeat !important; }
.impact-ripple-bg canvas { display: block; width: 100% !important; height: 100% !important; object-fit: cover !important; }
.impact-image-placeholder { width: 250px; height: 250px; border-radius: 16px; background: rgba(255,255,255,0.03); flex-shrink: 0; z-index: 2; }
.impact-content { display: flex; flex-direction: column; flex-grow: 1; height: 100%; justify-content: space-between; padding: 10px 0; z-index: 2; }
.impact-title { font-size: 22px !important; color: #ffffff !important; margin: 0; line-height: 1.35; font-weight: 400 !important; }
.impact-meta-row { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.impact-category-badge { display: inline-block; padding: 12px 23px; border-radius: 30px; border: 1px solid rgba(255, 255, 255, 0.15); color: #cccccc; font-size: 0.85rem; font-weight: 400; background: transparent; }
.impact-arrow-btn { width: 46px; height: 46px; border-radius: 20px; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, 0.1); color: #ffffff; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.3s ease; flex-shrink: 0; }
.impact-card-link:hover .impact-arrow-btn { background: linear-gradient(135deg, #F9663C 0%, #F9346C 100%); border-color: transparent; box-shadow: 0 4px 15px rgba(249, 52, 108, 0.4); transform: scale(1.08); }

/* Responsive Adjustments */
@media (max-width: 1200px) { 
    .blog-grid, .related-cards-grid { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 900px) {
    .impact-card { height: auto; flex-direction: column; align-items: flex-start; padding: 20px; }
    .impact-image-wrapper, .impact-image-placeholder { width: 100%; height: 220px; }
    .impact-content { height: auto; gap: 20px; padding: 10px 0 0 0; }
    .impact-title { font-size: 1.25rem !important; }
}
@media (max-width: 768px) { 
    .blog-grid, .related-cards-grid { grid-template-columns: 1fr; padding: 0 1rem; } 
    .blog-card, .related-card { padding: 1.5rem; } 
}
@media(max-width:767px){.impact-stories-wrapper{padding:0;}}

/* ==========================================================================
   Elementor Custom Image Ripple Effect
   ========================================================================== */
.custom-elementor-ripple .elementor-widget-container {
    position: relative;
    overflow: hidden;
    /* This ensures any border-radius set in Elementor settings is respected */
    border-radius: inherit; 
    transform: translateZ(0); /* Forces hardware acceleration */
}

/* Forces the WebGL canvas generated by the plugin to cover the area */
.custom-elementor-ripple .dgl-ripple-layer canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}



  /* Header CSS START  */
  .dgl-custom-header {
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    right: 0 !important;
    margin-left: 0 !important; 
    margin-right: 0 !important; 
    width: 100vw !important;
    background: #000000 !important; /* Solid Black */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-sizing: border-box !important; 
    z-index: 99990 !important; 
    font-family: 'Poppins', sans-serif !important;
    transition: background 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  }

  .dgl-custom-header.dgl-scrolled {
    background: #000000 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .dgl-hdr-inner {
    display: grid !important; 
    grid-template-columns: 1fr auto 1fr !important; 
    align-items: center !important;
    width: 100% !important; 
    max-width: 1600px !important; 
    margin: 0 auto !important; 
    padding: 24px 40px !important; 
    box-sizing: border-box !important;
    transition: padding 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  }

  .dgl-custom-header.dgl-scrolled .dgl-hdr-inner {
    padding: 10px 40px !important; 
  }

  .dgl-hdr-nav-left, .dgl-hdr-nav-right { 
    display: flex !important; 
    align-items: center !important; 
    gap: 36px !important; 
  }
  .dgl-hdr-nav-left { justify-self: start !important; }
  .dgl-hdr-nav-right { justify-self: end !important; }

  .dgl-hdr-link {
    display: flex !important; 
    align-items: center !important; 
    gap: 6px !important; 
    color: #ffffff !important; 
    font-size: 16px !important; 
    font-weight: 500 !important; 
    text-decoration: none !important; 
    padding: 8px 0 !important;
    transition: color 0.2s ease !important;
  }
  .dgl-hdr-link:hover, .dgl-hdr-dropdown-parent:hover .dgl-hdr-link { color: #FF693C !important; }
  
  .dgl-hdr-arrow { 
    width: 12px !important; 
    height: 12px !important; 
    stroke: currentColor !important; 
    stroke-width: 2.5 !important; 
    fill: none !important; 
    transition: transform 0.3s ease !important; 
  }
  .dgl-hdr-dropdown-parent:hover .dgl-hdr-arrow { transform: rotate(180deg) !important; }

  /* Logo & Animation */
  .dgl-hdr-logo img { 
    width: 135px !important; 
    height: 80px !important; 
    object-fit: contain !important; 
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  }

  /* Shrink Logo on Scroll */
  .dgl-custom-header.dgl-scrolled .dgl-hdr-logo img {
    width: 110px !important;
    height: 60px !important;
  }

  .dgl-hdr-contact-btn {
    display: inline-flex !important; 
    padding: 10px 30px !important; 
    border: 1.5px solid #FF693C !important; 
    border-radius: 50px !important; 
    color: #ffffff !important; 
    font-size: 16px !important; 
    font-weight: 500 !important;
    text-decoration: none !important; 
    transition: all 0.3s ease !important;
  }
  .dgl-hdr-contact-btn:hover { background: #FF693C !important; }

  /* Mega Menu Dropdown */
  .dgl-hdr-dropdown-parent { position: static !important; }
  .dgl-mega-dropdown-box {
    position: absolute !important; 
    top: 100% !important; 
    left: 0 !important; 
    width: 100vw !important; 
    height: 440px !important; 
    background: #ffffff !important; 
    padding: 40px 0 !important; 
    box-sizing: border-box !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important; 
    opacity: 0 !important; 
    visibility: hidden !important; 
    transform: translateY(10px) !important; 
    transition: all 0.25s ease-in-out !important; 
    z-index: 99999 !important;
  }
  .dgl-hdr-dropdown-parent:hover .dgl-mega-dropdown-box { 
    opacity: 1 !important; 
    visibility: visible !important; 
    transform: translateY(0) !important; 
  }
  .dgl-mega-inner-content { 
    max-width: 1600px !important; 
    width: 100% !important; 
    height: 100% !important; 
    margin: 0 auto !important; 
    padding: 0 40px !important; 
    box-sizing: border-box !important; 
    display: flex !important; 
    flex-direction: column !important; 
  }
  .dgl-col-heading { 
    display: block !important; 
    font-size: 12px !important; 
    font-weight: 700 !important; 
    color: #0d1b2a !important; 
    text-transform: uppercase !important; 
    letter-spacing: 1.5px !important; 
    margin-bottom: 24px !important; 
    padding-left: 10px !important; 
  }
  .dgl-hidden-heading { visibility: hidden !important; }

  /* Mega Menu Grid Layouts */
  .dgl-mega-grid { 
    display: grid !important; 
    grid-template-columns: 320px 1fr 380px !important; 
    gap: 50px !important; 
    align-items: start !important; 
    flex-grow: 1 !important; 
  }
  .dgl-mega-flat-grid { 
    display: grid !important; 
    grid-template-columns: 1fr 380px !important; 
    gap: 50px !important; 
    height: 100% !important; 
  }

  /* Mega Menu Left Column (Categories) */
  .dgl-mega-left { 
    display: flex !important; 
    flex-direction: column !important; 
    border-right: 1px solid #e2e8f0 !important; 
    padding-right: 30px !important; 
    height: 100% !important; 
  }
  .dgl-mega-cat { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
    padding: 14px 18px !important; 
    font-size: 16px !important; 
    font-weight: 500 !important; 
    color: #64748b !important; 
    border-radius: 8px !important; 
    text-decoration: none !important; 
    transition: all 0.2s ease !important; 
    margin-bottom: 4px !important; 
  }
  .dgl-mega-cat:hover, .dgl-mega-cat.dgl-active { 
    color: #0d1b2a !important; 
    background-color: #f8fafc !important; 
    font-weight: 600 !important; 
  }
  .dgl-mega-arrow-right { 
    opacity: 0 !important; 
    transform: translateX(-6px) !important; 
    transition: all 0.2s ease !important; 
    color: #FF693C !important; 
  }
  .dgl-mega-cat:hover .dgl-mega-arrow-right, .dgl-mega-cat.dgl-active .dgl-mega-arrow-right { 
    opacity: 1 !important; 
    transform: translateX(0) !important; 
  }

  /* Mega Menu Right Column (Links) */
  .dgl-mega-right { padding-left: 10px !important; }
  .dgl-mega-panel { display: none !important; flex-direction: column !important; gap: 16px !important; padding-top: 6px !important; }
  .dgl-mega-panel.dgl-active { display: flex !important; }
  .dgl-mega-link, .dgl-mega-vertical-item { 
    font-size: 16px !important; 
    color: #0d1b2a !important; 
    text-decoration: none !important; 
    font-weight: 500 !important; 
    transition: all 0.2s ease !important; 
  }
  .dgl-mega-link:hover, .dgl-mega-vertical-item:hover { 
    color: #FF693C !important; 
    transform: translateX(4px) !important; 
  }
  .dgl-mega-vertical-list { display: flex !important; flex-direction: column !important; gap: 8px !important; max-width: 360px !important; }
  .dgl-mega-vertical-item { padding: 12px 18px !important; border-radius: 8px !important; }
  .dgl-mega-vertical-item:hover { background-color: #f8fafc !important; font-weight: 600 !important; }

  /* Mega Menu Featured Section */
  .dgl-mega-featured { 
    display: flex !important; 
    flex-direction: column !important; 
    padding-left: 40px !important; 
    border-left: 1px solid #e2e8f0 !important; 
    height: 100% !important; 
  }
  .dgl-mega-featured .dgl-col-heading { color: #94a3b8 !important; }
  .dgl-mega-featured-card { 
    text-decoration: none !important; 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 12px !important; 
    transition: transform 0.3s ease !important; 
  }
  .dgl-mega-featured-card:hover { transform: translateY(-4px) !important; }
  .dgl-mega-featured-card img { width: 100% !important; height: 200px !important; object-fit: cover !important; border-radius: 8px !important; }
  .dgl-mega-featured-card h4 { margin: 0 !important; font-size: 16px !important; font-weight: 600 !important; color: #0d1b2a !important; line-height: 1.4 !important; transition: color 0.2s ease !important; }
  .dgl-mega-featured-card:hover h4 { color: #FF693C !important; }
  .dgl-mega-featured-card p { margin: 0 !important; font-size: 13px !important; color: #64748b !important; }

  /* Mobile Sidebar & Toggle Styles */
  .dgl-mobile-toggle-btn { 
    display: none !important; 
    background: transparent !important; 
    border: none !important; 
    cursor: pointer !important; 
    padding: 10px !important; 
    outline: none !important; 
  }
  .dgl-mobile-toggle-btn svg { width: 32px !important; height: 32px !important; stroke: #ffffff !important; }

  .dgl-mobile-overlay { 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100vw !important; 
    height: 100vh !important; 
    background: rgba(0, 0, 0, 0.6) !important; 
    backdrop-filter: blur(4px) !important; 
    z-index: 999998 !important; 
    opacity: 0 !important; 
    visibility: hidden !important; 
    transition: all 0.3s ease !important; 
  }
  .dgl-mobile-overlay.dgl-active { opacity: 1 !important; visibility: visible !important; }

  .dgl-mobile-sidebar { 
    position: fixed !important; 
    top: 0 !important; 
    left: -100% !important; 
    width: 320px !important; 
    max-width: 85vw !important; 
    height: 100vh !important; 
    background: #0b0b0b !important; 
    z-index: 999999 !important; 
    display: flex !important; 
    flex-direction: column !important; 
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1) !important; 
    overflow-y: auto !important; 
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important; 
    font-family: 'Poppins', sans-serif !important; 
  }
  .dgl-mobile-sidebar.dgl-active { left: 0 !important; box-shadow: 20px 0 50px rgba(0,0,0,0.5) !important; }

  .dgl-sidebar-header { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
    padding: 20px 24px !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; 
  }
  .dgl-sidebar-header img { height: 40px !important; width: auto !important; object-fit: contain !important; }
  .dgl-sidebar-close { 
    background: none !important; 
    border: none !important; 
    color: #ffffff !important; 
    font-size: 28px !important; 
    line-height: 1 !important; 
    cursor: pointer !important; 
    padding: 5px !important; 
  }

  .dgl-sidebar-nav { padding: 20px 0 !important; display: flex !important; flex-direction: column !important; flex-grow: 1 !important; }

  /* Mobile Accordions */
  .dgl-mob-accordion { border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; }
  .dgl-mob-acc-btn { 
    width: 100% !important; 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    background: transparent !important; 
    border: none !important; 
    color: #ffffff !important; 
    font-size: 16px !important; 
    font-weight: 500 !important; 
    font-family: inherit !important; 
    padding: 18px 24px !important; 
    cursor: pointer !important; 
    outline: none !important; 
  }
  .dgl-mob-acc-btn svg { width: 14px !important; height: 14px !important; stroke: currentColor !important; stroke-width: 2 !important; fill: none !important; transition: transform 0.3s ease !important; }
  .dgl-mob-acc-btn.dgl-active { color: #FF693C !important; }
  .dgl-mob-acc-btn.dgl-active svg { transform: rotate(180deg) !important; }

  .dgl-mob-acc-content { display: none !important; flex-direction: column !important; background: rgba(255, 255, 255, 0.02) !important; padding: 0 24px 15px 24px !important; }
  .dgl-mob-acc-content.dgl-active { display: flex !important; }
  
  .dgl-mob-parent-link { display: block !important; color: #cccccc !important; font-size: 15px !important; font-weight: 500 !important; text-decoration: none !important; padding: 12px 0 !important; transition: color 0.2s ease !important; }
  .dgl-mob-parent-link:hover { color: #FF693C !important; }
  
  .dgl-mob-sub-links { display: flex !important; flex-direction: column !important; padding-left: 16px !important; border-left: 1px solid rgba(255, 255, 255, 0.1) !important; margin-bottom: 10px !important; }
  .dgl-mob-sub-links a { display: block !important; color: #888888 !important; font-size: 14px !important; text-decoration: none !important; padding: 8px 0 !important; transition: color 0.2s ease !important; }
  .dgl-mob-sub-links a:hover { color: #FF693C !important; }

  .dgl-sidebar-footer { padding: 30px 24px !important; margin-top: auto !important; }
  .dgl-sidebar-footer .dgl-hdr-contact-btn { width: 100% !important; justify-content: center !important; }

  /* Invisible Spacer to push content down globally */
  .dgl-header-spacer {
    height: 90px !important;
    width: 100% !important;
    display: block !important;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 1024px) {
    .dgl-desktop-only, .dgl-hdr-nav-left, .dgl-hdr-nav-right { display: none !important; }
    .dgl-hdr-inner { display: flex !important; justify-content: space-between !important; padding: 15px 24px !important; }
    .dgl-custom-header.dgl-scrolled .dgl-hdr-inner { padding: 10px 24px !important; }
    .dgl-mobile-toggle-btn { display: block !important; }
    .dgl-hdr-logo img { width: 110px !important; height: 60px !important; }
    .dgl-custom-header.dgl-scrolled .dgl-hdr-logo img { width: 95px !important; height: 50px !important; }
    
    .dgl-header-spacer {
      height: 90px !important;
    }
  }



   .ai-strategies-section {
        background-color: #ffffff;
        color: #111111;
        font-family: 'Poppins', sans-serif;
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }

    .ai-strategies-section *,
    .ai-strategies-section *::before,
    .ai-strategies-section *::after {
        box-sizing: border-box;
    }

    .ai-strategies-section h1,
    .ai-strategies-section h2,
    .ai-strategies-section h3,
    .ai-strategies-section h4,
    .ai-strategies-section h5,
    .ai-strategies-section h6,
    .ai-strategies-section .card-title,
    .ai-strategies-section .main-heading {
        font-family: 'Poppins', sans-serif;
        color: #111111 !important;
    }

    /* ------------------------------------- */
    /* RESPONSIVE 3D FLIP CARD CSS           */
    /* ------------------------------------- */
    
    .ai-strategies-section .ai-card {
        background: transparent;
        border: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        perspective: 1500px;
    }

    .ai-strategies-section .flip-inner {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .ai-strategies-section .ai-card:hover .flip-inner {
        transform: rotateY(180deg);
    }

    .ai-strategies-section .flip-front,
    .ai-strategies-section .flip-back {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        background: #ffffff;
        border: 1px solid #eaeaea; 
        border-radius: 20px;
        padding: 35px 30px;
        backface-visibility: hidden;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100%;
        min-height: 480px; 
        transition: border-color 0.4s ease, box-shadow 0.4s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    }

    .ai-strategies-section .flip-front {
        transform: rotateY(0deg);
    }

    .ai-strategies-section .flip-back {
        transform: rotateY(180deg);
    }

    .ai-strategies-section .ai-card:hover .flip-front,
    .ai-strategies-section .ai-card:hover .flip-back {
        border-color: #FF3C68;
        box-shadow: 0 15px 35px rgba(255, 60, 104, 0.1);
    }

    .ai-strategies-section .card-icon {
        margin-bottom: 25px;
        display: flex;
        align-items: center;
    }

    .ai-strategies-section .card-icon svg {
        width: 60px; 
        height: 60px; 
    }
    
    .ai-strategies-section .card-title {
        font-size: 1.35rem;
        font-weight: 600;
        margin-bottom: 8px;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .ai-strategies-section .brand-divider {
        width: 50px;
        height: 3px;
        background: linear-gradient(180deg, #FF683D, #FF3C68);
        margin-bottom: 20px;
        border-radius: 2px;
    }

    /* BODY TEXT - Mobile 15px, Desktop 16px */
    .ai-strategies-section .card-subtitle,
    .ai-strategies-section .card-desc,
    .ai-strategies-section .card-impact,
    .ai-strategies-section .card-impact ul li {
        font-size: 15px; 
        color: #444; 
        line-height: 1.6;
    }

    .ai-strategies-section .card-subtitle {
        font-weight: 500;
        color: #333; 
        margin-bottom: 15px; 
        line-height: 1.4;
    }

    .ai-strategies-section .card-desc {
        margin-bottom: 30px;
        font-weight: 400;
        flex-grow: 1; 
    }

    .ai-strategies-section .card-impact {
        margin-bottom: 30px;
        flex-grow: 1; 
    }

    @media (min-width: 768px) {
        .ai-strategies-section .card-subtitle,
        .ai-strategies-section .card-desc,
        .ai-strategies-section .card-impact,
        .ai-strategies-section .card-impact ul li {
            font-size: 16px; 
        }
    }

    .ai-strategies-section .card-impact strong {
        display: block;
        margin-bottom: 15px;
        font-size: 0.85rem;
        color: #111111;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-weight: 700;
    }

    .ai-strategies-section .card-impact ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .ai-strategies-section .card-impact ul li {
        position: relative;
        padding-left: 28px; 
        margin-bottom: 12px;
        font-weight: 500;
        color: #444444;
    }

    .ai-strategies-section .card-impact ul li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 4px;
        width: 16px;
        height: 16px;
        background-image: url('https://wp-test.digile.com/wp-content/uploads/2026/01/check.svg');
        background-size: contain;
        background-repeat: no-repeat;
    }

    .ai-strategies-section .card-image-container {
        border-radius: 12px;
        overflow: hidden;
        background-color: #f8f9fa;
        aspect-ratio: 16/9;
        width: 100%;
        position: relative;
        margin-top: auto; 
    }

    .ai-strategies-section .card-image-container img.card-bg-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }

    .ai-strategies-section .ai-card:hover .card-image-container img.card-bg-img {
        transform: scale(1.05);
    }

    /* Fixed Button Styling to allow wrapping and prevent card stretching */
    .ai-strategies-section .btn-explore {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap; /* Allows text to wrap if it gets too long */
        gap: 8px;
        width: 100%;
        padding: 14px 20px;
        background: linear-gradient(180deg, #FF683D, #FF3C68); 
        color: #ffffff !important;
        border: none;
        border-radius: 8px;
        font-size: 0.95rem;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        font-family: 'Poppins', sans-serif;
        transition: box-shadow 0.3s ease;
        white-space: normal; /* Removes nowrap to prevent breaking the layout */
        margin-top: auto; 
    }

    .ai-strategies-section .btn-explore:hover {
        box-shadow: 0 5px 20px rgba(255, 60, 104, 0.4);
    }

    .ai-strategies-section .custom-arrow {
        width: 16px !important;
        height: 16px !important;
        flex: 0 0 16px !important; 
        object-fit: contain;
        transition: transform 0.3s ease;
        display: block !important;
    }

    .ai-strategies-section .btn-explore:hover .custom-arrow {
        transform: translateX(4px);
    }


  #dgl-custom-preloader {
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            width: 100vw !important;
            height: 100vh !important;
            background-color: #0b0b0b !important; /* Match your site background */
            z-index: 999999999 !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            transition: opacity 0.5s ease, visibility 0.5s ease !important;
        }
        #dgl-custom-preloader.dgl-preloader-done {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }
        .dgl-preloader-inner {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .dgl-logo-circle-wrapper {
            position: relative;
            width: 130px;
            height: 130px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #131313; /* Dark background circle for the logo */
            border-radius: 50%;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }
        .dgl-preloader-logo {
            width: 75px;
            height: auto;
            object-fit: contain;
            z-index: 2;
        }
        .dgl-spinner {
            position: absolute;
            top: -5px;
            left: -5px;
            right: -5px;
            bottom: -5px;
            border: 3px solid rgba(255, 255, 255, 0.05);
            border-top-color: #FF693C;
            border-radius: 50%;
            animation: dgl-spin 0.8s linear infinite;
            z-index: 1;
        }
        @keyframes dgl-spin {
            to { transform: rotate(360deg); }
        }


/* Home page Avator  */
.pxl-testimonial-carousel .pxl-item--meta {
    display: flex;
    align-items: center; 
    gap: 15px; 
}

.pxl-testimonial-carousel .pxl-item--avatar {
    width: 80px; 
    height: 80px;
    flex-shrink: 0; 
    border-radius: 8px;
    overflow: hidden;
}

.pxl-testimonial-carousel .pxl-item--avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; 
    display: block;
}

/* Modern Flip card css */
.custom-flip-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--card-gap, 30px);
    width: 100%;
    padding: 15px;
}

.flip-card-container {
    background-color: transparent;
    width: calc((100% - (var(--card-gap, 30px) * (var(--columns, 3) - 1))) / var(--columns, 3));
    max-width: 450px;
    height: 520px; /* Base explicit height, overridden by Elementor control */
    perspective: 1000px;
}

@media (max-width: 767px) {
    .flip-card-container {
        width: 100%;
        max-width: 100%; 
    }
    .custom-flip-cards-grid {
        padding: 0px;
    }
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%; /* Now safely calculates based on parent's explicit height */
    text-align: left;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-card-container:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.fc-front, .fc-back {
    position: absolute;
    width: 100%;
    height: 100%; /* Inherits 100% height from inner wrapper */
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    border: 1px solid #fc6a38;
    box-shadow: 0 10px 30px rgba(252, 106, 56, 0.05);
    background-color: #ffffff;
}

.fc-front { z-index: 2; }
.fc-back { background-color: #fff8f5; transform: rotateY(180deg); }

/* --- Icons Styling --- */
.fc-icon-wrapper {
    color: #fc6a38;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}
.fc-icon-large { margin-bottom: 30px; font-size: 80px; }
.fc-icon-large svg { width: 80px; height: 80px; fill: currentColor; }

.fc-icon-small { opacity: 0.8; font-size: 35px; }
.fc-icon-small svg { width: 35px; height: 35px; fill: currentColor; }

/* --- Typography --- */
.fc-title, .fc-back-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px; 
    color: #111;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.fc-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px; 
    color: #111;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.fc-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px; 
    color: #444;
    line-height: 1.6;
    margin-bottom: auto; 
}

.fc-back-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0e6e3;
    padding-bottom: 15px;
}

.fc-back-header:empty {
    display: none;
}

.fc-list {
    list-style: none;
    margin-bottom: auto;
    padding-left: 0;
}

.fc-list li {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px; 
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    color: #444;
    line-height: 1.4;
}

.fc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 18px;
    height: 18px;
    background-image: url('/wp-content/uploads/2026/01/check.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.fc-arrow {
    align-self: flex-end;
    width: 28px;
    height: 28px;
    margin-top: 20px;
    color: #fc6a38;
}

/* --- Button --- */
.fc-btn {
    font-family: 'DM Sans', sans-serif;
    align-self: flex-start;
    padding: 14px 24px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 30px;
    
    /* Set gradient as the base background */
    background: linear-gradient(180deg, #FF683D 0%, #F2295B 100%);
    /* Use transparent border to maintain layout size */
    border: 2px solid transparent; 
    
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Solid black layer that sits OVER the gradient, but UNDER the text */
.fc-btn::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: #000000;
    z-index: -1;
    transition: opacity 0.3s ease;
    border-radius: 30px;
}

/* On hover, the black layer fades out, revealing the clean gradient */
.fc-btn:hover::before {
    opacity: 0;
}

.fc-btn:hover {
    box-shadow: 0 4px 15px rgba(242, 41, 91, 0.3);
}

    /* CSS to perfectly center the filter tabs */
        .digile-grid-filter-wrap {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 40px;
            width: 100%;
        }
        .digile-filter-tabs {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }