/**
 * CSAE Policy Stylesheet
 */

/* CSAE Page Document Styling */
      .csae-wrapper {
        max-width: 900px;
        margin: 2.5rem auto 4rem auto;
        padding: 0 1.25rem;
      }
      .csae-hero {
        text-align: center;
        margin-bottom: 2.5rem;
      }
      .csae-icon-bubble {
        width: 76px;
        height: 76px;
        border-radius: 50%;
        background: rgba(244, 63, 94, 0.12);
        border: 1px solid rgba(244, 63, 94, 0.35);
        color: #f43f5e;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 2.2rem;
        margin-bottom: 1.25rem;
        box-shadow: 0 0 30px rgba(244, 63, 94, 0.25);
      }
      .csae-hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        background: rgba(244, 63, 94, 0.15);
        color: #fb7185;
        font-weight: 700;
        font-size: 0.8rem;
        padding: 0.35rem 0.95rem;
        border-radius: var(--radius-pill);
        border: 1px solid rgba(244, 63, 94, 0.3);
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }
      body.light-theme .csae-hero-badge {
        background: rgba(225, 29, 72, 0.1);
        color: #e11d48;
        border-color: rgba(225, 29, 72, 0.25);
      }
      .csae-hero-title {
        font-family: "Outfit", sans-serif;
        font-size: 2.1rem;
        font-weight: 800;
        color: var(--text-main);
        line-height: 1.25;
        margin-bottom: 0.75rem;
      }
      .csae-hero-desc {
        font-size: 1rem;
        color: var(--text-sub);
        max-width: 680px;
        margin: 0 auto;
        line-height: 1.6;
      }

      /* Language Selector Tabs */
      .lang-switcher-row {
        display: flex;
        justify-content: center;
        gap: 0.6rem;
        margin-bottom: 2.5rem;
        flex-wrap: wrap;
      }
      .lang-chip {
        background: var(--bg-card);
        border: 1px solid var(--border-card);
        color: var(--text-sub);
        padding: 0.5rem 1.15rem;
        border-radius: var(--radius-pill);
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition-fast);
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        font-family: inherit;
      }
      .lang-chip:hover {
        background: var(--bg-card-hover);
        border-color: var(--border-gold);
        color: var(--text-main);
        transform: translateY(-1px);
      }
      .lang-chip.active {
        background: linear-gradient(135deg, var(--primary) 0%, #e2bf4b 100%);
        color: #070a13;
        border-color: var(--primary);
        font-weight: 700;
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
      }

      /* Cards & Layout */
      .csae-meta-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem 1.5rem;
        background: var(--bg-surface);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        font-size: 0.85rem;
        color: var(--text-muted);
        margin-bottom: 2rem;
      }
      .csae-card {
        background: var(--bg-glass-card);
        border: 1px solid var(--border-card);
        border-radius: var(--radius-lg);
        padding: 2.25rem;
        margin-bottom: 1.75rem;
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(10px);
      }
      body.light-theme .csae-card {
        background: #ffffff;
        border-color: #e2e8f0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      }
      .csae-card-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border-subtle);
      }
      .csae-card-icon {
        font-size: 1.5rem;
      }
      .csae-card-title {
        font-family: "Outfit", sans-serif;
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--text-main);
        margin: 0;
      }
      .csae-card-highlight {
        background: linear-gradient(
          135deg,
          rgba(244, 63, 94, 0.08) 0%,
          rgba(30, 41, 59, 0.85) 100%
        );
        border: 1px solid rgba(244, 63, 94, 0.35);
      }
      body.light-theme .csae-card-highlight {
        background: linear-gradient(
          135deg,
          rgba(244, 63, 94, 0.05) 0%,
          #ffffff 100%
        );
        border-color: rgba(244, 63, 94, 0.3);
      }
      .csae-card-info {
        background: linear-gradient(
          135deg,
          rgba(59, 130, 246, 0.08) 0%,
          rgba(30, 41, 59, 0.85) 100%
        );
        border: 1px solid rgba(59, 130, 246, 0.35);
      }
      body.light-theme .csae-card-info {
        background: linear-gradient(
          135deg,
          rgba(59, 130, 246, 0.05) 0%,
          #ffffff 100%
        );
        border-color: rgba(59, 130, 246, 0.3);
      }
      .csae-p {
        color: var(--text-sub);
        font-size: 0.95rem;
        line-height: 1.75;
        margin-bottom: 1rem;
      }
      .csae-p:last-child {
        margin-bottom: 0;
      }
      .csae-p strong {
        color: var(--text-main);
      }
      .csae-list {
        margin: 0.75rem 0 1rem 1.4rem;
        color: var(--text-sub);
        line-height: 1.8;
        font-size: 0.95rem;
      }
      .csae-list li {
        margin-bottom: 0.35rem;
      }
      .csae-report-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        background: var(--bg-surface);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        padding: 1.25rem 1.5rem;
        margin-top: 1.5rem;
        flex-wrap: wrap;
      }

      /* Language sections */
      [lang="fr"],
      [lang="ar"] {
        display: none;
      }
      [lang="ar"] {
        direction: rtl;
        text-align: right;
        font-family: "Cairo", system-ui, sans-serif;
      }
      [lang="ar"] .csae-card-header {
        flex-direction: row;
      }
      [lang="ar"] .csae-list {
        margin: 0.75rem 1.4rem 1rem 0;
      }
      [lang="ar"] .csae-hero-title,
      [lang="ar"] .csae-card-title {
        font-family: "Cairo", sans-serif;
      }

      /* RESPONSIVE BREAKPOINTS (Mobile, Tablet, Laptop) */
      @media (max-width: 768px) {
        .csae-wrapper {
          padding: 0 1rem;
          margin: 1.75rem auto 3rem auto;
        }
        .csae-hero {
          margin-bottom: 2rem;
        }
        .csae-hero-title {
          font-size: 1.75rem;
        }
        .csae-card {
          padding: 1.5rem 1.25rem;
          margin-bottom: 1.25rem;
          border-radius: var(--radius-md);
        }
        .csae-card-title {
          font-size: 1.15rem;
        }
        .csae-meta-bar {
          flex-direction: column;
          align-items: flex-start;
          gap: 0.5rem;
          padding: 0.85rem 1rem;
        }
      }

      @media (max-width: 540px) {
        .csae-hero-title {
          font-size: 1.5rem;
        }
        .csae-card {
          padding: 1.25rem 1rem;
        }
        .csae-report-box {
          flex-direction: column;
          align-items: stretch;
          text-align: center;
          gap: 1rem;
          padding: 1.15rem 1rem;
        }
        .csae-report-box .btn {
          width: 100%;
          justify-content: center;
        }
        .lang-switcher-row {
          gap: 0.4rem;
        }
        .lang-chip {
          padding: 0.45rem 0.85rem;
          font-size: 0.8rem;
          min-height: 38px;
        }
      }
