/* ----------------------------------------------------------------

	Custom CSS



	Add all your Custom Styled CSS here for New Styles or

	Overwriting Default Theme Styles for Better Handling Updates

-----------------------------------------------------------------*/

.card:hover {
    color: black;
    cursor: pointer;
}

/* Wrapper to use flexbox for layout */
#wrapper {
    display: flex;
    flex-direction: column;
    /* Aligns content vertically */
    min-height: 100vh;
    /* Ensures the wrapper spans the full height of the viewport */
}

/* Content section should expand to push footer down */
#content {
    flex: 1;
    /* Makes this section take up the remaining space */
}

/* Footer styling */
.small-footer {
    background-color: #1c3f59;
    color: white;
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
    position: relative;
    /* Keep footer in normal flow */
}

.small-footer a {
    color: #4289c5;
    text-decoration: none;
}

.small-footer a:hover {
    text-decoration: underline;
}

/* Ensure the footer sticks to the bottom of the viewport if the content is short */
/* body:not(.content-long) .small-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
} */

/* .card-body {
    min-height: 270px;
} */

/* Base Style for Custom Social Icons */
.custom-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 22px;
    border-radius: 50%;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Icon Styling: Static */
.custom-social i {
    position: relative;
    z-index: 2;
    transition: color 0.1s ease;
}

/* Hover Effect: Only Circle Changes */
.custom-social:hover {
    transform: scale(1.3);
    cursor: pointer;
    /* Slightly enlarge the circle */
}

/* X (Twitter) Styling */
.custom-x {
    background-color: #1da1f2;
}

.custom-x:hover {
    background-color: #1a91da;
}

/* TikTok Styling */
.custom-tiktok {
    background-color: #000000;
}

.custom-tiktok:hover {
    background-color: #ff0050;
}

/* Instagram Styling */
.custom-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.custom-instagram:hover {
    background: linear-gradient(45deg, #bc1888, #cc2366, #dc2743, #e6683c, #f09433);
}

/* LinkedIn Styling */
.custom-linkedin {
    background-color: #0077B5;
}

.custom-linkedin:hover {
    background-color: #00669c;
}

/* WhatsApp Styling */
.custom-whatsapp {
    background-color: #25D366;
}

.custom-whatsapp:hover {
    background-color: #1ebe57;
}




.block-expand-categories h1,
.block-expand-categories h2,
.block-expand-categories h3 {
    font-family: Playfair Display, serif !important;
}

.block-expand-categories .expand-category {
    --height: 50vh;
    --responsive-height: 60px;
    --hover-flex: 10;

    position: relative;
    background-position: center center;
    background-size: cover;
    border-radius: 20px;
    margin: 10px 0;
    min-height: var(--responsive-height);
    cursor: pointer;
}

.block-expand-categories .expand-category h4 {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    margin: 0;
    transform: translateY(-50%);
}

/* Larger Device */
@media (min-width: 992px) {
    .block-expand-categories .expand-category {
        height: var(--height);
        flex: 1;
        margin: 0 10px;
        transition: flex 1s ease;
        -webkit-backface-visibility: hidden;
        transform: translate3d(0, 0, 0);
    }

    .block-expand-categories:not(.on-click) .expand-category:hover,
    .block-expand-categories.on-click .expand-category.active {
        flex: var(--hover-flex);
    }

    .block-expand-categories .expand-category h4 {
        opacity: 1;
        top: auto;
        bottom: 10px;
        transform: none;
        transition: opacity .4s ease;
    }

    .block-expand-categories:hover .expand-category:not(.active):not(:hover) h4,
    .block-expand-categories.on-click .expand-category:not(.active) h4 {
        opacity: 0;
    }
}


/* Rotating Text */
@-webkit-keyframes rotating

/* Safari and Chrome */
    {
    from {
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotating {
    from {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    to {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.rotating {
    -webkit-animation: rotating 20s linear infinite;
    -moz-animation: rotating 20s linear infinite;
    -ms-animation: rotating 20s linear infinite;
    -o-animation: rotating 20s linear infinite;
    animation: rotating 20s linear infinite;
}



/* Cursor Styling for AI section */
@media (min-width: 992px) {

    .canvas-cursor,
    .canvas-cursor-follower {
        position: fixed;
        pointer-events: none;
        z-index: 9999 !important;
    }


    body.block-misc-canvas-cursor,
    html.block-misc-canvas-cursor,
    .block-misc-canvas-cursor a {
        cursor: none;
    }

    .block-misc-canvas-cursor {
        --cursor-bg: #111;
        --cursor-scale: 0.8;
        --cursor-size: 20px;
    }

    /* Cursor Styling */
    .block-misc-canvas-cursor .canvas-cursor {
        position: absolute;
        width: 8px;
        height: 8px;
        border-radius: 100%;
        z-index: 1;
        transition: transform .5s ease, opacity .2s ease;
        user-select: none;
        pointer-events: none;
        transform: scale(var(--cursor-scale));
        background-color: var(--cursor-bg);
    }

    .block-misc-canvas-cursor .canvas-cursor::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
        background-image: url('../external-media-content/cursor.svg');
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        border-radius: 100%;
        opacity: 0;
    }

    .block-misc-canvas-cursor .canvas-cursor.cursor-active {
        opacity: 1;
        transform: scale(12);
    }

    .block-misc-canvas-cursor .canvas-cursor.cursor-active::before {
        opacity: 1;
    }

    .block-misc-canvas-cursor .canvas-cursor-follower {
        position: absolute;
        width: var(--cursor-size);
        height: var(--cursor-size);
        background-color: var(--cursor-bg);
        opacity: .2;
        border-radius: 100%;
        z-index: 1;
        transition: transform .6s ease, opacity .4s ease;
        user-select: none;
        pointer-events: none;
        transform: translate(14px, 14px);
    }

    .block-misc-canvas-cursor .canvas-cursor-follower.cursor-active {
        opacity: 0.3;
        transform: scale(0);

    }

    .block-misc-canvas-cursor .dark .canvas-cursor,
    .block-misc-canvas-cursor .dark .canvas-cursor-follower {
        --cursor-bg: #FFF;
    }

}

.dark-opacity-bg {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    width: fit-content;
}

.ai-label {
    position: absolute;
    top: 15px;
    right: 15px;
    /* background: rgba(0, 0, 0, 0.7); */
    /* Semi-transparent black */
    color: white;
    font-size: 2.2rem;
    /* Adjusted for responsiveness */
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-label {
        font-size: 1rem;
        /* Slightly smaller for mobile */
        padding: 6px 12px;
        top: 10px;
        right: 10px;
    }
}

.card-title-white {
    color: white;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    /* Transparent background */
    z-index: 1;
    /* Low positive z-index */
    pointer-events: none;
}

.pointer-hover:hover {
    cursor: pointer;
}

.mobile-margin-top {
    @media (max-width: 768px) {
        margin-top: 50px;
    }
}

.mobile-padding-bot {
    @media (max-width: 768px) {
        padding-bottom: 40px;
    }
}

/* Our Story Section Styling */
.our-story-section {
    position: relative;
    padding: 60px 20px 30px 20px;
    background: transparent;
    /* Transparent background */
    overflow: hidden;
    margin-top: 40px;
    /* Adds margin on top */
}

/* Constrain the width of the content and center it */
.our-story-section .heading-block {
    max-width: 800px;
    margin: 0 auto;
}

/* Increase font sizes and adjust colors for emphasis */
.our-story-title {
    font-size: 3rem;
    /* Bigger title */
    font-weight: bold;
    color: #4289c5;
    /* Use your theme color */
    margin-bottom: 20px;
}

.our-story-text {
    font-size: 1.50rem;
    /* Bigger paragraph text */
    color: #333;
    line-height: 1.6;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0px 100px;

    @media (max-width: 768px) {
        padding: 0px;
        font-size: 1.20rem;
    }

}

/* Button adjustments (if needed) */
.our-story-section button {
    font-size: 1.125rem;
    padding: 0.75rem 1.5rem;
}

/* Optional: Add decorative background icons */
.our-story-section::before {
    content: "\f004";
    /* Example: Font Awesome heart icon */
    font-family: "Font Awesome 5 Free";
    /* Ensure the correct icon font is loaded */
    font-weight: 900;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 100px;
    color: rgba(66, 137, 197, 0.1);
    z-index: 0;
}

/* Ensure text stays above the decorative icon */
.our-story-section .heading-block {
    position: relative;
    z-index: 1;
}

.custom-video-modal .modal-content {
    max-height: 90vh;
    /* 90% of viewport height */
}

.pdf-download {
    color: #4289c5;
}

.pdf-download:hover {
    cursor: pointer;
    color: #4289c5;
}

/* Ensure the navbar is styled for RTL */
.rtl #header .header-row {
    direction: rtl;
    text-align: right;
}

.rtl #logo {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 10px !important;
}

.rtl #logo a {
    display: flex !important;
    align-items: center !important;
}

.logo-section {
    display: grid;
    place-items: center;
    margin-bottom: 4rem;
  }
  
  .slider {
    overflow: hidden;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(7.4px);
    -webkit-backdrop-filter: blur(7.4px);
    border: 1px solid rgba(255,255,255,0.4);
  }
  
  .slider-items {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    will-change: transform;
    backface-visibility: hidden;
  }
  
  /* Make each link the flex-item, sized to 12% of the container */
  .slider-items a {
    flex: 0 0 12%;       /* same as your old img width:12% */
    margin: 20px;       
    display: block;      /* so width:100% on the img will fill it */
    cursor: pointer;     /* pointer on hover */
  }
  
  /* Fill the link with the logo graphic */
  .slider-items a img {
    display: block;       /* makes margin auto work */
    margin: 0 auto;       /* horizontal centering */
    width: 100%;          /* or keep your custom 70%/120% as-is */
    height: auto;
  }
  
  /* mobile tweaks */
  @media (max-width: 768px) {
    .slider {
      padding: 1rem 0;    /* your vertical padding */
    }
  
    /* bump each item to 24% and margin to 24px */
    .slider-items a {
      flex: 0 0 24%;     
      margin: 24px;
    }
  }


/* popup stuff */

  :root {
    --brand: #4289c5;  /* primary */
    --deep:  #1c3f59;  /* dark/navy */
    --backdrop-dim: rgba(8, 12, 18, 0.62);
    --modal-radius: 18px;
    --pad: 14px;
    --shadow: 0 18px 60px rgba(0,0,0,.35);
  }

  html, body { height: 100%; }
  body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif; }

  /* ========= Backdrop with healthcare effect ========= */
  .ad-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--backdrop-dim);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;           /* stacking context */
    overflow: hidden;
    animation: fade-in 300ms ease forwards;
  }
  @keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }

  /* Layer 1: animated grid of medical crosses (SVG pattern as data URI) */
  .ad-backdrop::before {
    content: "";
    position: absolute;
    inset: -10vmax;
    /* SVG: a plus-shaped cross; colors use brand/deep with low opacity */
    background-image: url("data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'> <rect width='120' height='120' fill='none'/> <g opacity='0.20'> <path d='M60 18 h12 v18 h18 v12 h-18 v18 h-12 v-18 h-18 v-12 h18 z' fill='%234289c5'/> </g> <g opacity='0.14'> <path d='M0 60 h12 v18 h18 v12 h-18 v18 h-12 v-18 h-18 v-12 h18 z' fill='%231c3f59' transform='translate(30,30)'/> </g> </svg>");
    background-size: 140px 140px;
    background-repeat: repeat;
    filter: blur(0.5px) saturate(110%);
    opacity: 0.9; /* make it visible */
    animation: crosses-pan 24s linear infinite;
    pointer-events: none; /* do not block mouse */
  }
  @keyframes crosses-pan {
    0%   { transform: translate3d(0,0,0) }
    100% { transform: translate3d(140px,140px,0) }
  }

  /* Layer 2: pulse scan sweep (visible vertical band moving sideways) */
  .ad-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg,
        transparent 0%,
        rgba(66,137,197,0.10) 10%,
        rgba(66,137,197,0.35) 15%,
        rgba(255,255,255,0.25) 18%,
        rgba(28,63,89,0.35) 21%,
        rgba(28,63,89,0.10) 26%,
        transparent 34%);
    background-size: 280% 100%;
    animation: pulse-scan 5s linear infinite;
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 0.9; /* more obvious */
  }
  @keyframes pulse-scan {
    0%   { background-position: 200% 0; }
    100% { background-position: -80% 0; }
  }

  /* Optional subtle noise to add texture */
  .ad-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .08;
    background-image:
      repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 2px),
      repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 2px);
    animation: noise-shift 1.6s steps(4) infinite;
  }
  @keyframes noise-shift {
    0%, 100% { transform: translate(0,0) }
    25% { transform: translate(-1px, 0.5px) }
    50% { transform: translate(0.7px, -1px) }
    75% { transform: translate(1px, 0.7px) }
  }

  /* ========= Modal ========= */
  .ad-modal {
    display: inline-flex;
    flex-direction: column;
    width: auto;
    max-width: min(96vw, 1180px);  /* bigger */
    max-height: 92vh;              /* taller */
    padding: var(--pad);
    border-radius: var(--modal-radius);
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: var(--shadow);
    transform-origin: 50% 55%;
    opacity: 0;
    transform: translateY(10px) scale(.97) rotateX(5deg);
    animation: modal-in 480ms cubic-bezier(.2,.7,.2,1) forwards;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    z-index: 5;                 /* above effects */
  }
  @keyframes modal-in {
    0%   { opacity: 0; transform: translateY(12px) scale(.96) rotateX(8deg); }
    60%  { opacity: 1; transform: translateY(0)    scale(1.01); }
    100% { opacity: 1; transform: translateY(0)    scale(1) }
  }

  /* Image */
  .ad-media {
    display: grid;
    place-items: center;
  }
  .ad-media img {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(96vw - 2 * var(--pad));
    max-height: calc(80vh - 90px); /* leave room for buttons */
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 10px 34px rgba(0,0,0,.22);
    background: transparent;
    position: relative;
    z-index: 5;
  }

  /* Buttons BELOW image, inside the popup */
  .ad-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
    z-index: 5;
  }
  .ad-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
    line-height: 1.1;
  }
  .ad-btn.primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(66,137,197,.35);
  }
  .ad-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(66,137,197,.45); }
  .ad-btn.secondary {
    background: rgba(255,255,255,.92);
    color: var(--deep);
    border: 1px solid rgba(0,0,0,.06);
  }
  .ad-btn.secondary:hover { transform: translateY(-1px); }

  /* Mouse & stacking safety */
  .ad-backdrop::before,
  .ad-backdrop::after,
  .ad-noise { pointer-events: none; z-index: 0; }
  .ad-modal, .ad-modal * { position: relative; z-index: 5; cursor: auto; }
  .ad-btn { cursor: pointer; }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .ad-backdrop, .ad-backdrop::before, .ad-backdrop::after, .ad-noise, .ad-modal { animation: none !important; }
  }

  /* Lock scroll when open */
  body.ad-lock { overflow: hidden; }

  /* Force pointer cursor for clickable elements */
.ad-btn,
.ad-btn.primary,
.ad-btn.secondary,
a.ad-btn {
  cursor: pointer !important;
  pointer-events: auto; /* make sure they can be clicked */
}

/* Extra safety: ensure the Learn more link is above any layers */
.ad-btn.primary {
  position: relative;
  z-index: 10;
}