/* =========================================================================
   PREMIUM RESOURCE PAGES (Webinars, Case Studies, Brochures, News)
   ========================================================================= */

/* --- Hero Banner --- */
.resource-hero {
  position: relative;
  padding: 130px 0 80px;
  background: var(--ib-navy-deep);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.resource-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('../img/bg/pattern-bg.png') center/cover;
  opacity: 0.05;
  z-index: 1;
}
.resource-hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,207,187,0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}
.resource-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.resource-hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #b3e5fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.resource-hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
  line-height: 1.6;
}
.resource-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 30px;
}
.resource-breadcrumb a {
  color: var(--ib-teal-light);
  text-decoration: none;
  transition: 0.2s ease;
}
.resource-breadcrumb a:hover {
  color: #fff;
}
.resource-breadcrumb .separator {
  color: rgba(255,255,255,0.3);
}

/* --- Content Sections --- */
.resource-section {
  padding: 80px 0;
  background: #f8f9fa;
  position: relative;
}
.resource-section--white {
  background: #ffffff;
}

/* --- Section Titles --- */
.res-section-header {
  text-align: center;
  margin-bottom: 50px;
}
.res-section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--ib-navy-deep);
  margin-bottom: 16px;
}
.res-section-subtitle {
  font-size: 16px;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Resource Grid --- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}
@media(min-width: 768px) {
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(min-width: 992px) {
  .resource-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Generic Resource Card --- */
.res-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,77,136,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,77,136,0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.res-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,77,136,0.12);
  border-color: rgba(0,207,187,0.3);
}
.res-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.res-card:hover .res-card-img {
  transform: scale(1.05);
}
.res-card-img-wrap {
  overflow: hidden;
  position: relative;
  height: 220px;
  background: #eef4fa;
}
.res-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--ib-teal), var(--ib-teal-light));
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.res-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.res-card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #6c757d;
  font-weight: 600;
  margin-bottom: 12px;
}
.res-card-meta i {
  color: var(--ib-teal);
  margin-right: 6px;
}
.res-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ib-navy-deep);
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.res-card:hover .res-card-title {
  color: var(--ib-teal);
}
.res-card-desc {
  font-size: 14.5px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}
.res-card-footer {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.res-card-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--ib-teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s ease;
}
.res-card-link i {
  transition: transform 0.2s ease;
}
.res-card-link:hover {
  color: var(--ib-navy);
}
.res-card-link:hover i {
  transform: translateX(4px);
}

/* --- Featured Horizontal Card --- */
.res-featured-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,77,136,0.08);
  border: 1px solid rgba(0,77,136,0.05);
  margin-bottom: 60px;
}
@media(min-width: 992px) {
  .res-featured-card {
    flex-direction: row;
  }
}
.res-featured-img {
  flex: 1;
  position: relative;
  min-height: 300px;
}
.res-featured-img img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}
.res-featured-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.res-featured-badge {
  display: inline-block;
  background: rgba(0, 156, 141, 0.1);
  color: var(--ib-teal);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  width: max-content;
}
.res-featured-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--ib-navy-deep);
  margin-bottom: 16px;
  line-height: 1.3;
}
.res-featured-desc {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* --- Filters (Categories) --- */
.res-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.res-filter-btn {
  background: #ffffff;
  border: 1px solid rgba(0,77,136,0.15);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--ib-navy-medium);
  cursor: pointer;
  transition: 0.3s ease;
}
.res-filter-btn:hover, .res-filter-btn.active {
  background: var(--ib-teal);
  color: #fff;
  border-color: var(--ib-teal);
  box-shadow: 0 4px 15px rgba(0,207,187,0.3);
}

/* --- CTA Section Banner --- */
.res-cta-banner {
  background: linear-gradient(135deg, var(--ib-navy-deep), var(--ib-navy));
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  text-align: center;
  color: #fff;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}
.res-cta-banner h3 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}
.res-cta-banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
