/* style/resources-security-guide.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-login-color: #C30808;
  --register-login-font-color: #FFFF00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-resources-security-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color); /* Body background is #FFFFFF, so text should be dark */
}

.page-resources-security-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-security-guide__section {
  padding: 60px 0;
}

.page-resources-security-guide__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-resources-security-guide__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-resources-security-guide__subsection-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-security-guide__content-block p {
  margin-bottom: 20px;
  font-size: 17px;
}

.page-resources-security-guide__content-block img {
  margin: 30px auto;
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-resources-security-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a9d68 100%); /* Green gradient */
  color: var(--text-light);
  overflow: hidden;
}

.page-resources-security-guide__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-resources-security-guide__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-resources-security-guide__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-security-guide__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources-security-guide__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-security-guide__intro-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.page-resources-security-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-security-guide__btn-register,
.page-resources-security-guide__btn-login {
  display: inline-block;
  padding: 15px 40px;
  background: var(--register-login-color);
  color: var(--register-login-font-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.page-resources-security-guide__btn-register:hover,
.page-resources-security-guide__btn-login:hover {
  background: #a80707; /* Darker red on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Cards for security measures and tips */
.page-resources-security-guide__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-resources-security-guide__card {
  background: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-resources-security-guide__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources-security-guide__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block; /* Ensure image behaves as a block element */
  margin-left: auto;
  margin-right: auto;
}

.page-resources-security-guide__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources-security-guide__card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Dark background sections */
.page-resources-security-guide__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-resources-security-guide__dark-section .page-resources-security-guide__section-title,
.page-resources-security-guide__dark-section .page-resources-security-guide__subsection-title {
  color: var(--text-light);
}

.page-resources-security-guide__dark-section .page-resources-security-guide__section-title::after {
  background-color: var(--text-light);
}

.page-resources-security-guide__dark-section .page-resources-security-guide__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-resources-security-guide__dark-section .page-resources-security-guide__card-title {
  color: var(--register-login-font-color); /* Use yellow for contrast */
}

.page-resources-security-guide__dark-section .page-resources-security-guide__card p {
  color: var(--text-light);
}

/* CTA Bottom Section */
.page-resources-security-guide__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources-security-guide__cta-bottom-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-security-guide__cta-bottom-section .page-resources-security-guide__section-title {
  color: var(--text-light);
}

.page-resources-security-guide__cta-bottom-section p {
  font-size: 18px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-resources-security-guide__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--register-login-color);
  color: var(--register-login-font-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}