/* style/resources.css */

/* Biến CSS */
:root {
  --page-resources-primary-color: #007bff;
  --page-resources-secondary-color: #ffc107;
  --page-resources-dark-blue: #003d80; /* Darker blue for headings/links */
  --page-resources-very-dark-blue: #002d60; /* Even darker blue for backgrounds with white text */
  --page-resources-text-color: #212529; /* Very dark grey for body text */
  --page-resources-white: #ffffff;
  --page-resources-light-grey: #f8f9fa;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-resources-text-color);
  background-color: var(--page-resources-white);
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-resources__hero-section {
  background: linear-gradient(135deg, var(--page-resources-primary-color), var(--page-resources-very-dark-blue));
  padding: 80px 0;
  color: var(--page-resources-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--page-resources-white);
  font-weight: bold;
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-resources__hero-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-resources__section {
  padding: 60px 0;
  background-color: var(--page-resources-white);
}

.page-resources__section:nth-of-type(even) {
  background-color: var(--page-resources-light-grey);
}

.page-resources__section-title {
  font-size: 2.5em;
  color: var(--page-resources-dark-blue);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__subsection-title {
  font-size: 1.8em;
  color: var(--page-resources-dark-blue);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__text-content {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: var(--page-resources-text-color);
}

.page-resources__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-resources__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1em;
  text-align: center;
}

.page-resources__btn--primary {
  background-color: var(--page-resources-secondary-color);
  color: var(--page-resources-text-color);
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.page-resources__btn--primary:hover {
  background-color: #e0a800; /* Darker shade of secondary */
  box-shadow: 0 6px 15px rgba(255, 193, 7, 0.4);
}

.page-resources__btn--secondary {
  background-color: var(--page-resources-very-dark-blue);
  color: var(--page-resources-white);
  border: 1px solid var(--page-resources-very-dark-blue);
}

.page-resources__btn--secondary:hover {
  background-color: #001f40; /* Even darker blue */
  border-color: #001f40;
}

.page-resources__btn--large {
  padding: 15px 35px;
  font-size: 1.2em;
}

.page-resources__btn--small {
  padding: 8px 18px;
  font-size: 0.9em;
}

/* Article Grid for Resources */
.page-resources__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__article-card {
  background-color: var(--page-resources-white);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__article-title {
  font-size: 1.4em;
  color: var(--page-resources-dark-blue);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__article-title a {
  text-decoration: none;
  color: var(--page-resources-dark-blue);
}

.page-resources__article-title a:hover {
  text-decoration: underline;
  color: var(--page-resources-primary-color);
}

.page-resources__article-description {
  font-size: 0.95em;
  color: var(--page-resources-text-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Call to Action Section */
.page-resources__cta-section {
  background: linear-gradient(135deg, var(--page-resources-very-dark-blue), var(--page-resources-primary-color));
  padding: 80px 0;
  text-align: center;
  color: var(--page-resources-white);
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--page-resources-white);
  font-weight: bold;
}

.page-resources__cta-description {
  font-size: 1.15em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Utility Classes */
.page-resources__mt-30 {
  margin-top: 30px;
}

.page-resources__mt-40 {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }

  .page-resources__section-title {
    font-size: 2em;
  }

  .page-resources__subsection-title {
    font-size: 1.6em;
  }

  .page-resources__cta-title {
    font-size: 2.4em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-title {
    font-size: 2.2em;
  }

  .page-resources__hero-description {
    font-size: 1em;
  }

  .page-resources__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn {
    width: 80%;
    margin: 0 auto;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }

  .page-resources__subsection-title {
    font-size: 1.4em;
  }

  .page-resources__article-grid {
    grid-template-columns: 1fr;
  }

  .page-resources__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }

  .page-resources__hero-section,
  .page-resources__section,
  .page-resources__cta-section {
    padding: 40px 0;
  }

  .page-resources__btn {
    font-size: 0.9em;
    padding: 10px 20px;
  }

  .page-resources__btn--large {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-resources__container {
    padding: 0 15px;
  }
}