/* Tailwind CSS Custom Styles for Ecademy */

/* Custom Font Face */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7W0Q5n-wU.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,900;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base styles */
html {
  font-size: 62.5%;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 1.6rem;
  line-height: 2.6rem;
  color: rgba(50, 51, 51, 0.8);
  background: #f1f1f1;
}

/* Background images (Tailwind CDN doesn't support dynamic bg images in config) */
.bg-banner {
  background-image: url('../img/banner.jpg');
  background-size: cover;
  background-position: center;
}

.bg-footer {
  background-image: url('../img/footer.jpg');
  background-size: cover;
  background-position: center;
}

/* Events section background with subtle pattern */
.events-section {
  background: linear-gradient(to bottom, #ffffff 0%, #cae6f9 50%, #ffffff 100%);
  position: relative;
}

.events-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 150, 199, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 150, 199, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Bootstrap grid compatibility for dynamically generated content */
.col-xs-12 {
  width: 100%;
  padding: 0 15px;
  float: left;
}

@media (min-width: 768px) {
  .col-sm-6 {
    width: 50%;
  }
}

@media (min-width: 992px) {
  .col-md-4 {
    width: 33.333333%;
  }
}

/* Clear floats after grid columns */
.wrap-events::after {
  content: "";
  display: table;
  clear: both;
}

/* Event item styling for dynamically loaded content */
.box-themes-home {
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 150, 199, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 150, 199, 0.1);
}

.box-themes-home:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 12px 32px rgba(0, 150, 199, 0.2);
  border-color: rgba(0, 150, 199, 0.3);
}

.webinar-item .image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  min-height: 200px;
}

.poster-image-scroll {
  max-height: 350px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.poster-image-scroll img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.poster-image-scroll:hover img {
  transform: scale(1.02);
}

/* Custom scrollbar for poster images */
.poster-image-scroll::-webkit-scrollbar {
  width: 10px;
}

.poster-image-scroll::-webkit-scrollbar-track {
  background: linear-gradient(to right, #e0f2fe 0%, #bae6fd 100%);
  border-radius: 10px;
}

.poster-image-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgb(0, 150, 199) 0%, rgb(0, 120, 159) 100%);
  border-radius: 10px;
  border: 2px solid #e0f2fe;
  transition: all 0.3s ease;
}

.poster-image-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgb(0, 120, 159) 0%, rgb(0, 90, 119) 100%);
  border-color: #bae6fd;
}

.webinar-item .button {
  display: block;
  width: 100%;
  padding: 1.25rem 1rem;
  background: linear-gradient(135deg, rgb(0, 150, 199) 0%, rgb(0, 120, 159) 100%);
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 150, 199, 0.3);
  position: relative;
  overflow: hidden;
}

.webinar-item .button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.webinar-item .button:hover::before {
  width: 300px;
  height: 300px;
}

.webinar-item .button:hover {
  background: linear-gradient(135deg, rgb(0, 120, 159) 0%, rgb(0, 90, 119) 100%);
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 150, 199, 0.4);
  transform: translateY(-2px);
}

.webinar-item .button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 150, 199, 0.3);
}

/* Animation classes that might be used by JavaScript */
.scrolling {
  transition: background-color 0.3s ease;
}

/* Modal and Bootstrap compatibility fixes if needed */
.modal-open {
  overflow: hidden;
}

/* Statistics Loading Indicator */
.stat-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-out;
}

.stat-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Detail Page Loading Indicator */
.detail-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-out;
  z-index: 10;
}

.detail-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Print styles */
@media print {
  body {
    background: white;
  }
}
