/* ===================================
   POLICY PAGE PROFESSIONAL STYLES
   =================================== */

/* Policy Hero Section */
.policy-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a4d7a 100%);
  color: var(--bg-white);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.policy-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.policy-hero .container {
  flex-direction: column;
  position: relative;
  z-index: 1;
  gap: 16px;
}

.policy-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0;
}

.policy-hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin: 0;
  max-width: 600px;
}

/* Table of Contents Section */
.toc-section {
  background: var(--bg-white);
  padding: 60px 20px;
  border-bottom: 1px solid var(--border-color);
}

.toc-section .container {
  flex-direction: column;
  max-width: 1200px;
  gap: 0;
}

.toc-section h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 600;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.toc-list li {
  padding: 0;
}

.toc-list a {
  display: block;
  padding: 14px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.toc-list a:hover {
  background: var(--bg-white);
  border-color: var(--secondary-color);
  border-left-color: var(--secondary-color);
  transform: translateX(4px);
  color: var(--secondary-color);
  box-shadow: var(--shadow-sm);
}

/* Policy Content Section */
.policy-content {
  background: var(--bg-white);
  padding: 60px 20px;
}

.policy-content .container {
  flex-direction: column;
  max-width: 1200px;
  gap: 0;
}

/* Policy Section - Individual Articles */
.policy-section {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-color);
}

.policy-section:last-of-type {
  border-bottom: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.section-header h2 {
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.section-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: var(--bg-white);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 12px;
  flex-shrink: 0;
}

.section-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 52, 96, 0.08);
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.policy-section.is-collapsed .section-header {
  margin-bottom: 0;
}

.policy-section.is-collapsed .section-toggle-icon {
  transform: rotate(0deg);
}

.policy-section:not(.is-collapsed) .section-toggle-icon {
  transform: rotate(45deg);
  background: rgba(233, 69, 96, 0.14);
  color: var(--secondary-color);
}

/* Section Body */
.section-body {
  color: var(--text-dark);
  line-height: 1.8;
}

.section-body[hidden] {
  display: none;
}

.section-body p {
  margin-bottom: 16px;
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.section-body p:last-child {
  margin-bottom: 0;
}

/* Subsections */
.subsection {
  margin: 24px 0;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

.subsection h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.subsection p {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.03rem;
  font-weight: 600;
}

/* Policy Lists */
.policy-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.policy-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-dark);
  font-size: 1.02rem;
  font-weight: 600;
}

.policy-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

/* Conduct Grid */
.conduct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.conduct-item {
  padding: 24px;
  background: var(--bg-light);
  border-radius: 12px;
  border-top: 4px solid var(--secondary-color);
  transition: all 0.3s ease;
}

.conduct-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.conduct-item h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.conduct-item p {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 600;
}

/* Penalties Table */
.penalties-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.penalty-category {
  padding: 28px 24px;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.penalty-category:nth-child(1) {
  border-left: 4px solid #ffc107;
}

.penalty-category:nth-child(2) {
  border-left: 4px solid #fd7e14;
}

.penalty-category:nth-child(3) {
  border-left: 4px solid #dc3545;
}

.penalty-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.penalty-category h3 {
  color: var(--primary-color);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.penalty-category .policy-list li {
  padding: 8px 0 8px 24px;
  font-size: 1.02rem;
  font-weight: 600;
}

.penalty-category .policy-list li::before {
  left: 0;
}

/* Policy Acknowledgment */
.policy-acknowledgment {
  background: linear-gradient(135deg, rgba(15, 52, 96, 0.05) 0%, rgba(233, 69, 96, 0.05) 100%);
  padding: 40px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  margin-top: 60px;
  text-align: center;
}

.policy-acknowledgment h2 {
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.policy-acknowledgment p {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 12px;
  font-weight: 600;
}

.policy-acknowledgment p:last-child {
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
  .policy-hero {
    padding: 50px 20px;
  }

  .policy-hero h1 {
    font-size: 2rem;
  }

  .policy-hero p {
    font-size: 1rem;
  }

  .toc-section {
    padding: 40px 20px;
  }

  .toc-section h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

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

  .section-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .section-toggle-icon {
    margin-left: auto;
  }

  .section-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .section-header h2 {
    font-size: 1.4rem;
  }

  .conduct-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .penalties-table {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .policy-acknowledgment {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .policy-hero {
    padding: 40px 16px;
  }

  .policy-hero h1 {
    font-size: 1.5rem;
  }

  .policy-hero p {
    font-size: 0.95rem;
  }

  .toc-section {
    padding: 30px 16px;
  }

  .toc-section h2 {
    font-size: 1.2rem;
  }

  .toc-list a {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .policy-content {
    padding: 30px 16px;
  }

  .policy-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
  }

  .section-body p {
    font-size: 0.9rem;
  }

  .subsection {
    padding: 16px;
    margin: 16px 0;
  }

  .subsection h3 {
    font-size: 1rem;
  }

  .conduct-item {
    padding: 16px;
  }

  .conduct-item h3 {
    font-size: 1rem;
  }

  .penalty-category h3 {
    font-size: 1rem;
  }

  .policy-acknowledgment h2 {
    font-size: 1.2rem;
  }

  .policy-acknowledgment p {
    font-size: 0.9rem;
  }
}