/**
 * CasketEmpty Resources Page Stylesheet
 * Location: /web/inc/css/resources.css
 */

/* Hero Header */
.ce-res-hero-section {
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%) !important;
  padding: 3.5rem 1.5rem 2.5rem 1.5rem !important;
  text-align: center;
  border-bottom: 1px solid #E2E8F0;
}
.ce-res-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.ce-res-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  color: #B45309;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #FDE68A;
  margin-bottom: 1rem;
}
.ce-res-badge-pill i {
  font-size: 16px;
}
.ce-res-title-main {
  font-family: 'Kanit', sans-serif;
  font-size: 2.35rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}
.ce-res-subtitle {
  font-family: 'Kanit', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  max-width: 760px;
  margin: 0 auto;
}

/* Resources Cards in Sections */
section.home-banner {
  background: #F8FAFC !important;
  padding: 1.5rem 0 !important;
}

section.home-banner .container {
  background: #FFFFFF;
  border-radius: 1.25rem;
  border: 1px solid #E2E8F0;
  padding: 2.5rem 2.5rem;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}
section.home-banner .container:hover {
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.08);
}

.ce-res-cover-wrap {
  width: 100%;
  max-width: 440px;
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.1);
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
}
.ce-res-cover-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.ce-res-content {
  text-align: left;
}

.ce-res-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}
.ce-res-tag.ot {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}
.ce-res-tag.nt {
  background: #D1FAE5;
  color: #059669;
  border: 1px solid #A7F3D0;
}
.ce-res-tag.intro {
  background: #E0E7FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
}
.ce-res-tag.video {
  background: #FEE2E2;
  color: #DC2626;
  border: 1px solid #FECACA;
}
.ce-res-tag i {
  font-size: 14px;
}

.ce-res-item-title {
  font-family: 'Kanit', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0.25rem 0 0.75rem 0;
  line-height: 1.35;
}

.ce-res-item-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #475569;
  margin: 0 0 1.25rem 0;
}

/* Modern Disclaimer Box (Replaces broken .copyRightBox) */
.ce-res-license-box, .copyRightBox {
  background: #FFFBEB !important;
  border: 1px solid #FDE68A !important;
  border-radius: 0.75rem !important;
  padding: 0.85rem 1.15rem !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 0.825rem !important;
  color: #92400E !important;
  line-height: 1.6 !important;
  margin: 0 0 1.5rem 0 !important;
  text-align: left !important;
}
.ce-res-license-box i, .copyRightBox i {
  font-size: 18px !important;
  color: #D97706 !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}

/* Modern Download Buttons */
.ce-res-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  color: #FFFFFF !important;
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  width: fit-content;
}
.ce-res-download-btn:hover {
  background: #334155;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
  color: #FFFFFF !important;
}
.ce-res-download-btn i {
  font-size: 18px;
}

.ce-res-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #DC2626;
  color: #FFFFFF !important;
  font-family: 'Kanit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 24px;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
  width: fit-content;
}
.ce-res-video-btn:hover {
  background: #B91C1C;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
  color: #FFFFFF !important;
}
.ce-res-video-btn i {
  font-size: 18px;
}

.ce-res-video-wrap {
  width: 100%;
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.12);
  border: 1px solid #E2E8F0;
}

@media only screen and (max-width: 768px) {
  section.home-banner .container {
    padding: 1.5rem 1.25rem;
  }
  .ce-res-content {
    text-align: center;
  }
  .ce-res-license-box, .copyRightBox {
    text-align: left;
  }
  .ce-res-download-btn, .ce-res-video-btn {
    margin: 0 auto;
  }
  .ce-res-title-main {
    font-size: 1.85rem;
  }
}

