/* Custom CSS for Jodac */

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    .dark\:bg-gray-900 {
        background-color: #111827;
    }
}

/* Custom font definitions */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Custom Styles */
body {
    font-family: 'Rubik', ui-sans-serif, system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Exo 2', ui-sans-serif, system-ui, sans-serif;
}

/* Line clamp utility */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Carousel centering and overflow */
#carousel-viewport {
    overflow: hidden;
}

#news-carousel {
    display: flex;
    transition: transform 0.3s ease;
}

/* Sticky WhatsApp Icon Styles */
.example-2 {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    list-style: none;
    margin: 0;
    padding: 0;
}

.example-2 .icon-content {
    position: relative;
    margin: 0;
    padding: 0;
}

.example-2 .icon-content a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
   color: rgb(17, 180, 39);
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.example-2 .icon-content a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.example-2 .icon-content a .filled {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.example-2 .icon-content a:hover .filled {
    transform: scale(1);
}

.example-2 .icon-content svg {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    color: rgb(17, 180, 39);
    transition: all 0.3s ease;
}

.example-2 .icon-content:hover svg {
    transform: scale(1.1);
}

.example-2 .tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.example-2 .tooltip::before {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid #333;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.example-2 .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .example-2 {
        bottom: 15px;
        right: 15px;
    }
    
    .example-2 .icon-content a {
        width: 55px;
        height: 55px;
    }
    
    .example-2 .icon-content svg {
        width: 24px;
        height: 24px;
    }
    
    .example-2 .tooltip {
        right: 65px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .example-2 .icon-content:hover .tooltip {
        right: 70px;
    }
}

/* News Carousel Styling */
.overflow-hidden {
    overflow: hidden;
}

#news-carousel {
    display: flex;
    gap: 0;
}

#news-carousel > div {
    flex-shrink: 0;
}

/* Dark mode color overrides */
.dark {
    --color-primary: #059669;
    --color-secondary: #FF8A4C;
    --color-text: #F3F4F6;
    --color-text-light: #D1D5DB;
    --color-background: #111827;
    --color-background-alt: #1F2937;
    --color-border: #374151;
} 


ul {
    list-style: none;
  }
  
  .example-2 {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
  }
  .example-2 .icon-content {
    margin: 0 10px;
    position: relative;
  }
  .example-2 .icon-content .tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  .example-2 .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -50px;
  }
  .example-2 .icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #4d4d4d;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
  }
  .example-2 .icon-content a:hover {
    box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
  }
  .example-2 .icon-content a svg {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
  }
  .example-2 .icon-content a:hover {
    color: white;
  }
  .example-2 .icon-content a .filled {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
  }
  .example-2 .icon-content a:hover .filled {
    height: 100%;
  }
  
  .example-2 .icon-content a[data-social="whatsapp"] .filled,
  .example-2 .icon-content a[data-social="whatsapp"] ~ .tooltip {
    background-color: rgb(17, 180, 39);
  }
  .example-2 .icon-content a:hover svg {
    color: #fff;
  } 


 
/*  footer button */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
  }
  
  .button {
    cursor: pointer;
    text-decoration: none;
    color: #ffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2d2e32;
    border: 2px solid #2d2e32;
    transition: all 0.45s;
  }
  
  .button:hover {
    transform: rotate(360deg);
    transform-origin: center center;
    background-color: #ffff;
    color: #2d2e32;
  }
  
  .button:hover .btn-svg {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(305deg)
      brightness(103%) contrast(103%);
  }
  
  .flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  