/* style/resources-ios-tutorial.css */

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

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

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

/* Hero Section */
.page-resources-ios-tutorial__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  text-align: center;
  overflow: hidden;
  color: var(--text-light);
  background-color: var(--primary-color);
}

.page-resources-ios-tutorial__hero-section .page-resources-ios-tutorial__container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-resources-ios-tutorial__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-resources-ios-tutorial__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-resources-ios-tutorial__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-resources-ios-tutorial__btn-primary {
  display: inline-block;
  background-color: var(--button-register);
  color: var(--button-font-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-resources-ios-tutorial__btn-primary:hover {
  background-color: #a30606;
}

.page-resources-ios-tutorial__btn-secondary {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-resources-ios-tutorial__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Content Sections */
.page-resources-ios-tutorial__content-section {
  padding: 60px 0;
  background-color: var(--background-color);
  color: var(--text-dark);
}

.page-resources-ios-tutorial__section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-resources-ios-tutorial__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

/* Step-by-Step Guide */
.page-resources-ios-tutorial__step-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-resources-ios-tutorial__step-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources-ios-tutorial__ordered-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.05em;
}

.page-resources-ios-tutorial__ordered-list li {
  margin-bottom: 10px;
}

.page-resources-ios-tutorial__step-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-resources-ios-tutorial__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background-color: #000;
}

.page-resources-ios-tutorial__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-resources-ios-tutorial__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources-ios-tutorial__button-group {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-ios-tutorial__btn-register {
  background-color: var(--button-register);
  color: var(--button-font-color);
}

.page-resources-ios-tutorial__btn-login {
  background-color: var(--button-login);
  color: var(--button-font-color);
}

/* Features Section */
.page-resources-ios-tutorial__features-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-resources-ios-tutorial__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-ios-tutorial__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}