/* 
 * Rules & Regulations CSS 
 */

.gedu-rules-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.gedu-rule-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-bottom: 40px;
  font-family: inherit;
}

.gedu-rule-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.gedu-rule-icon-wrap {
  width: 90px;
  height: 90px;
  background-color: #fcf0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gedu-rule-icon-wrap img {
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
}

.gedu-rule-icon-wrap i,
.gedu-rule-icon-wrap svg {
  font-size: 48px !important;
  width: 48px;
  height: 48px;
  color: #6a1b21;
}

.gedu-rule-title-wrap {
  flex: 1;
}

.gedu-rule-title {
  color: #6a1b21; /* Maroon */
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.gedu-rule-divider {
  border: none;
  height: 2px;
  width: 40px;
  background-color: #e6b741; /* Gold */
  margin: 0 0 15px 0;
}

.gedu-rule-desc {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

.gedu-rule-desc p {
  margin-bottom: 10px;
}

.gedu-rule-points-section {
  margin-bottom: 30px;
}

.gedu-rule-points-title {
  color: #6a1b21;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gedu-icon-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e6b741;
  border-radius: 50%;
  color: #e6b741;
  font-size: 14px;
}

.gedu-rule-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.gedu-rule-points-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border-bottom: 1px solid #f5f5f5;
  background: #fafafa;
}

.gedu-rule-points-list li:last-child {
  border-bottom: none;
}

.gedu-rule-points-list li:nth-child(even) {
  background: #ffffff;
}

.gedu-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #fef0db;
  color: #e6a23c;
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
}

.gedu-point-text {
  color: #444;
  font-size: 15px;
  font-weight: 500;
}

.gedu-rule-footer {
  background-color: #fbf5f5;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.gedu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.gedu-btn i {
  font-size: 16px;
}

.gedu-btn-dl {
  background-color: #6a1b21;
  color: #ffffff;
  border: 1px solid #6a1b21;
}

.gedu-btn-dl:hover {
  background-color: #8c262f;
  border-color: #8c262f;
  color: #ffffff;
}

.gedu-pdf-size {
  color: #6a1b21;
  font-size: 14px;
  font-weight: 500;
  margin-left: 5px;
}

/* Ensure size string has margin from button text but is part of the layout */
.gedu-btn-dl .gedu-pdf-size {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.gedu-btn-view {
  background-color: transparent;
  color: #6a1b21;
  border: 1px solid #6a1b21;
}

.gedu-btn-view:hover {
  background-color: #f2e6e6;
  color: #6a1b21;
}

/* Specific text color for size outside button if placed incorrectly in HTML, 
but we put it inside the button. The UI shows it outside the button though. */
.gedu-rule-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gedu-rule-footer-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.gedu-rule-footer-right {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .gedu-rule-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .gedu-rule-divider {
    margin: 0 auto 15px auto;
  }
  .gedu-rule-footer {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    text-align: center;
  }
  .gedu-rule-footer-left {
    flex-direction: column;
  }
  .gedu-pdf-size {
    display: block;
    margin-top: 10px;
    color: #555;
  }
}
