/* ============================================
   RESOURCE DETAIL PAGE STYLES
   Additional styles for individual resource pages
   ============================================ */

/* === Hero Section === */
.resource-hero {
  background: linear-gradient(135deg, #10b981 0%, #065f46 100%);
  color: white;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.resource-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v6h6V4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}

.resource-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumb-custom {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.breadcrumb-custom a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.breadcrumb-custom a:hover {
  opacity: 1;
}

.breadcrumb-custom span {
  opacity: 0.7;
  font-size: 0.9rem;
}

.level-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.resource-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.resource-hero .lead {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 700px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.hero-stat-item i {
  font-size: 1.5rem;
  opacity: 0.9;
}

.hero-stat-item .stat-text {
  display: flex;
  flex-direction: column;
}

.hero-stat-item .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.hero-stat-item .stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* === Quick Navigation === */
.quick-nav {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quick-nav-list {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.quick-nav-list a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.quick-nav-list a:hover {
  background: var(--light-green);
  color: var(--primary-green);
}

/* === Content Sections === */
.content-section {
  padding: 60px 0;
}

.content-section:nth-child(even) {
  background: #f9fafb;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* === Topic Cards === */
.topic-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary-green);
  transition: height 0.3s ease;
}

.topic-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.topic-card:hover::before {
  height: 100%;
}

.topic-icon {
  width: 60px;
  height: 60px;
  background: var(--light-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.topic-card:hover .topic-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary-green);
  color: white;
}

.topic-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.topic-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic-list li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.topic-list li i {
  color: var(--primary-green);
  font-size: 0.75rem;
}

/* === Resource Type Cards === */
.resource-type-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  height: 100%;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.resource-type-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--dark-green));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.resource-type-card:hover {
  border-color: var(--primary-green);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.12);
}

.resource-type-card:hover::after {
  transform: scaleX(1);
}

.resource-type-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--light-green), #d1fae5);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.resource-type-card:hover .resource-type-icon {
  transform: rotateY(360deg);
}

.resource-type-card h4 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.resource-type-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.resource-count {
  display: inline-block;
  background: var(--light-green);
  color: var(--primary-green);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* === Feature List === */
.feature-list-section {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-radius: 24px;
  padding: 3rem;
  margin: 3rem 0;
}

.feature-list-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-list-item {
  margin-bottom: 2rem;
}

.feature-list-item h5 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-list-item p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* === Exam Tips === */
.exam-tip-card {
  background: white;
  border-left: 5px solid var(--primary-green);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.exam-tip-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.exam-tip-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.exam-tip-number {
  width: 40px;
  height: 40px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.exam-tip-card h5 {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.exam-tip-card p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  color: white;
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  margin: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn-light-custom {
  background: white;
  color: var(--primary-green);
  border: none;
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.btn-light-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: var(--dark-green);
  background: #f9fafb;
}

/* === Related Resources === */
.related-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  height: 100%;
  text-decoration: none;
  display: block;
  color: inherit;
}

.related-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.1);
  text-decoration: none;
}

.related-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.related-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.related-badge {
  display: inline-block;
  background: var(--light-green);
  color: var(--primary-green);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* === Responsive Design === */
@media (max-width: 991px) {
  .resource-hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
  
  .cta-section {
    padding: 3rem 2rem;
  }
}

@media (max-width: 767px) {
  .resource-hero {
    padding: 60px 0 40px;
  }
  
  .resource-hero h1 {
    font-size: 2rem;
  }
  
  .resource-hero .lead {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-stat-item {
    width: 100%;
  }
  
  .quick-nav-list {
    gap: 0.5rem;
  }
  
  .content-section {
    padding: 40px 0;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .feature-list-section {
    padding: 2rem 1.5rem;
  }
  
  .cta-section {
    padding: 2.5rem 1.5rem;
    margin: 2rem 0;
  }
  
  .cta-section h2 {
    font-size: 1.75rem;
  }
  
  .cta-section p {
    font-size: 1rem;
  }
}

@media (max-width: 575px) {
  .topic-card,
  .resource-type-card {
    padding: 1.5rem;
  }
  
  .breadcrumb-custom {
    font-size: 0.85rem;
  }
}