/* Main Content */
.main-content {
  padding-top: 80px; /* Account for fixed header */
}

/* Container */
.container {
  max-width: 1300px;
  margin: 0 auto;
}

/* Skills Section */
.skills-section {
  padding: 24px 0 0 0;
  background: transparent;
}

.skills-content {
  position: relative;
  background: linear-gradient(4deg, #FFF 14.12%, #E8E0D6 55.55%, #DCE1EB 97.19%);
  border-radius: 25px 25px 0 0;
  padding: 47px 53px 10px 53px;
  overflow: hidden;
}

/* Background Image */
.skills-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Content */
.skills-main-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Title Section */
.skills-title-section {
  margin-bottom: 32px;
}

.skills-title {
  font-size: 40px;
  font-weight: 700;
  color: #252A34;
  margin: 0 0 11px 0;
  line-height: 54px;
}

.title-line {
  display: block;
}

.skills-description {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #5E6678;
  max-width: 600px;
  margin: 0 auto;
}

/* Search Section */
.skills-search-section {
  margin-bottom: 21px;
  display: flex;
  justify-content: center;
}

.search-field {
  position: relative;
  max-width: 520px;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 27%;
  z-index: 3;
}

.search-input {
  width: 100%;
  padding: 12px 18px 12px 55px;
  background: #F9F7F5;
  border: 1px solid #E8E0D6;
  border-radius: 15px;
  height: 50px;
  font-family: 'Chewie DEMO';
  font-size: 16px;
  color: #5E6678;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #ECA455;
  box-shadow: 0 0 8px rgba(236, 164, 85, 0.2);
}

.search-input::placeholder {
  color: #5E6678;
  font-family: 'Chewie DEMO';
}

.search-right-icon {
  position: absolute;
  right: 5px;
  top: 55%;
  transform: translateY(-50%);
  z-index: 3;
  transition: all 0.3s ease;
}

.search-action-img {
  width: 42px;
  height: 42px;
}

/* Filters Section */
.skills-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.category-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}

.category-tab {
  padding: 3px 24px;
  border: 1px solid #E8E0D6;
  background: transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  color: #2C3342;
  line-height: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Chewie DEMO';
}

.category-tab:hover {
  border-color: #ECA455;
  color: #2C3342;
}

.category-tab.active {
  border-color: #ECA455;
  font-weight: 700;
}

.filter-button-section {
  display: flex;
  justify-content: flex-end;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 25px;
  border: 1px solid #2C3342;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #ECA455;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(236, 164, 85, 0.2);
}

.filter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 30px;
  color: #2C3342;
  font-family: 'Chewie DEMO';
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Expertise Domains Section */
.expertise-domains-section {
  padding: 0;
  background: transparent;
}

.domains-content {
  max-width: 100%;
  background: #FFF;
  padding: 23px 53px 60px 53px;
  overflow: hidden;
}

.domains-title {
  font-size: 32px;
  font-weight: 700;
  color: #252A34;
  margin: 0 0 30px 0;
  line-height: 26px;
}

.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 33px;
}

.domain-card {
  background: #FCF9F6;
  border: 1px solid #E8E0D6;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.05);
  border-radius: 25px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.domain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #ECA455;
}

.domain-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF;
  border-radius: 20px;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.10);
}

.domain-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.domain-name {
  font-family: 'Chewie DEMO';
  font-size: 16px;
  font-weight: 700;
  color: #252A34;
  margin: 0;
  line-height: 24px;
}

.domain-count {
  font-family: 'Chewie DEMO';
  font-size: 16px;
  font-weight: 700;
  color: #5BB685;
  margin: 0;
}

.domain-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.domain-card:hover .arrow-icon {
  transform: translateX(5px);
}

.domains-action {
  text-align: center;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 35px;
  background: transparent;
  border: 1px solid #2C3342;
  border-radius: 15px;
  font-family: 'Chewie DEMO';
  font-size: 14px;
  font-weight: 600;
  color: #2C3342;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-more:hover {
  background: #2C3342;
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 51, 66, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .skills-content {
    padding: 40px 30px 10px 30px;
  }

  .skills-title {
    font-size: 32px;
    line-height: 44px;
  }

  .skills-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .filter-button-section {
    width: 100%;
    justify-content: flex-start;
  }

  .domains-title {
    font-size: 26px;
  }

  .domains-content {
    padding: 23px 30px 40px 30px;
  }

  .domains-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 768px) {
  /* Skills hero */
  .skills-section {
    padding: 16px 0 0 0;
  }

  .skills-section .container {
    padding: 0 16px;
  }

  .skills-content {
    padding: 24px 16px 10px 16px;
    border-radius: 16px 16px 0 0;
  }

  .skills-title-section {
    margin-bottom: 20px;
  }

  .skills-title {
    font-size: 22px;
    line-height: 32px;
    margin-bottom: 8px;
  }

  .skills-description {
    font-size: 13px;
    line-height: 20px;
  }

  .search-field {
    max-width: 100%;
  }

  .search-input {
    height: 44px;
    padding: 10px 50px 10px 42px;
    font-size: 14px;
    border-radius: 12px;
  }

  .search-icon {
    left: 14px;
  }

  .search-action-img {
    width: 36px;
    height: 36px;
  }

  /* Domains */
  .expertise-domains-section .container {
    padding: 0 16px;
  }

  .domains-content {
    padding: 20px 16px 36px 16px;
  }

  .domains-title {
    font-size: 20px;
    margin-bottom: 16px;
    line-height: 1.3;
  }

  .domains-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .domain-card {
    padding: 14px;
    border-radius: 14px;
    gap: 14px;
  }

  .domain-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .domain-icon-img {
    width: 32px;
    height: 32px;
  }

  .domain-info {
    gap: 4px;
  }

  .domain-name {
    font-size: 14px;
  }

  .domain-count {
    font-size: 12px;
  }

  .btn-more {
    padding: 10px 28px;
    font-size: 13px;
    border-radius: 12px;
  }

  /* Resources section */
  .resources-grid-section .container {
    padding: 0 16px;
  }

  .resources-content {
    padding: 0 16px 28px 16px;
    border-radius: 0 0 16px 16px;
  }

  .resources-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .resource-card {
    min-height: auto;
    border-radius: 14px;
  }

  .resource-card-header {
    padding: 10px 12px;
    gap: 8px;
  }

  .resource-badge-primary {
    padding: 5px 10px;
    font-size: 11px;
    gap: 6px;
  }

  .resource-badge-free {
    padding: 5px 10px;
    font-size: 11px;
  }

  .resource-content {
    flex-direction: row;
    padding: 0 12px 10px;
    gap: 12px;
  }

  .resource-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .resource-title {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 2px;
  }

  .resource-category {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .resource-footer {
    padding: 8px 12px;
  }

  .author-name {
    font-size: 12px;
  }

  .rating-value {
    font-size: 12px;
  }

  .resources-action {
    margin-top: 20px;
  }

  .resources-action .btn-more {
    width: 100%;
  }

  .resources-grid-section {
    margin-bottom: 40px;
  }
}

@media (max-width: 380px) {
  .skills-title {
    font-size: 20px;
    line-height: 28px;
  }
}

/* Resources Grid Section */
.resources-grid-section {
  margin-bottom: 66px;
  padding: 0;
}

.resources-content {
  max-width: 100%;
  background: #FFF;
  border-radius: 0 0 25px 25px;
  padding: 0 53px 36px 53px;
  overflow: hidden;
}

.resources-title {
  font-size: 32px;
  font-weight: 700;
  color: #252A34;
  margin: 0 0 30px 0;
  line-height: 26px;
}

/* Resources Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Resource Card (from coach_show.css) */
.resource-card {
  background: #FCF9F6;
  border: 1px solid #EDE8E2;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 230px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #ECA455;
}

.resource-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
}

.resource-badge-primary {
  border-radius: 6px;
  border: 1px solid #2C3342;
  background: transparent;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.10);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  width: fit-content;
  font-family: 'Chewie DEMO';
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #252A34;
}

.badge-icon-small {
  width: 18px;
  height: 18px;
}

.resource-badge-free {
  display: inline-block;
  padding: 8px 15px;
  background: transparent;
  font-family: 'Chewie DEMO';
  color: #27A63D;
  border: 1px solid #27A63D;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
  flex-shrink: 0;
}

.resource-content {
  display: flex;
  gap: 20px;
  padding: 0 18px 19px 18px;
}

.resource-image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
}

.resource-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resource-title {
  font-family: 'Chewie DEMO';
  font-size: 18px;
  font-weight: 700;
  color: #252A34;
  margin-bottom: 4px;
  line-height: 26px;
}

.resource-category {
  font-family: 'Chewie DEMO';
  font-size: 12px;
  font-weight: 600;
  color: #ECA455;
  margin-bottom: 15px;
}

.resource-meta {
  display: flex;
  gap: 10px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Chewie DEMO';
  font-size: 12px;
  font-weight: 700;
  color: #5E6678;
}

.meta-icon {
  width: 16px;
  height: 16px;
}

.resource-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 17px;
  border-top: 1px solid #EDE8E2;
  margin-top: auto;
}

.resource-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-family: 'Chewie DEMO';
  font-size: 14px;
  font-weight: 600;
  color: #252A34;
}

.resource-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating-star {
  color: #FBBB00;
  font-size: 16px;
}

.rating-value {
  font-family: 'Chewie DEMO';
  font-size: 14px;
  font-weight: 600;
  color: #2C3342;
}

.resources-action {
  text-align: center;
  margin-top: 30px;
}

/* Stagger animation for resource items */
.animate-stagger {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-stagger.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Delay classes for staggered animations */
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }
.animate-delay-6 { transition-delay: 0.6s; }
.animate-delay-7 { transition-delay: 0.7s; }
.animate-delay-8 { transition-delay: 0.8s; }
.animate-delay-9 { transition-delay: 0.9s; }

/* Responsive Design for Resources Grid */
@media (max-width: 1024px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .resources-content {
    padding: 23px 30px 36px 30px;
  }
}

@media (max-width: 768px) {
  .resources-grid-section .container {
    padding: 0 16px;
  }

  .resources-content {
    padding: 0 16px 28px 16px;
    border-radius: 0 0 16px 16px;
  }

  .resources-title {
    font-size: 20px;
    margin-bottom: 16px;
    line-height: 1.3;
  }

  .resources-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .resource-card {
    min-height: auto;
    border-radius: 14px;
  }

  .resource-card-header {
    padding: 10px 12px;
    gap: 8px;
  }

  .resource-badge-primary {
    padding: 5px 10px;
    font-size: 11px;
    gap: 6px;
  }

  .resource-badge-free {
    padding: 5px 10px;
    font-size: 11px;
  }

  .resource-content {
    flex-direction: row;
    padding: 0 12px 10px;
    gap: 12px;
  }

  .resource-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    flex-shrink: 0;
  }

  .resource-title {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 2px;
  }

  .resource-category {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .resource-footer {
    padding: 8px 12px;
  }

  .author-name {
    font-size: 12px;
  }

  .rating-value {
    font-size: 12px;
  }

  .resources-action {
    margin-top: 20px;
  }

  .resources-action .btn-more {
    width: 100%;
  }

  .resources-grid-section {
    margin-bottom: 40px;
  }
}
