main {
    --regulations-bg: #071924;
    --regulations-red: #901613;
    --regulations-blue: #265d8c;
    --regulations-violet: #713984;
    --regulations-footer-clearance: calc(
        var(--site-footer-overlap-space, 200px)
        + clamp(4rem, 8vh, 6rem)
        + env(safe-area-inset-bottom, 0px)
    );
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-sizing: border-box;
    padding: clamp(7rem, 14vh, 9rem) clamp(1.25rem, 12vw, 14rem) var(--regulations-footer-clearance);
    color: #ffffff;
    background:
        radial-gradient(circle at 14% 22%, color-mix(in srgb, var(--regulations-red), transparent 48%), transparent 30%),
        radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--regulations-blue), transparent 42%), transparent 32%),
        radial-gradient(circle at 70% 82%, color-mix(in srgb, var(--regulations-violet), transparent 54%), transparent 34%),
        linear-gradient(135deg, rgba(5, 16, 24, 0.98), rgba(7, 25, 36, 0.92) 48%, rgba(13, 35, 49, 0.96));
    background-size: 120% 120%, 125% 125%, 118% 118%, 100% 100%;
    box-shadow: inset 0 10vh 8vh -4vh rgba(0, 0, 0, 0.62);
    text-shadow: none;
    text-align: left;
}

main::before,
main::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

main::before {
    z-index: -2;
    background:
        linear-gradient(115deg, transparent 0 20%, rgba(255, 255, 255, 0.08) 25%, transparent 34% 56%, rgba(255, 255, 255, 0.055) 62%, transparent 72%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 92px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 92px);
    background-size: 180% 180%, 92px 92px, 92px 92px;
    opacity: 0.46;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    animation: regulations-light-drift 22s ease-in-out infinite;
}

main::after {
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03) 58%, transparent 58%) 8% 18% / min(42vw, 520px) min(30vw, 360px) no-repeat,
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 62%, transparent 62%) 92% 70% / min(36vw, 440px) min(26vw, 320px) no-repeat,
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.16), transparent 62%) 50% 20% / 58vw 18vw no-repeat;
    opacity: 0.7;
    filter: blur(0.2px);
}

main > * {
    position: relative;
    z-index: 1;
}

main > h1 {
    margin: 0 auto clamp(1.8rem, 5vh, 3rem);
    max-width: min(900px, 100%);
    font-family: "Poppins", sans-serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: rgba(0, 0, 0, 0.52) 0 12px 28px;
}

article {
    width: min(960px, 100%);
    margin: 0 auto clamp(1.6rem, 4vh, 2.4rem);
    box-sizing: border-box;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055)),
        rgba(7, 25, 36, 0.5);
    box-shadow: 0 26px 72px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px) saturate(1.16);
    -webkit-backdrop-filter: blur(16px) saturate(1.16);
}

article h2 {
    margin-bottom: 5vh;
    text-align: center;
    font-weight: normal;
}

article h3 {
    font-weight: 500;
}

article li {
    margin-bottom: 0.5vh;
}

article .conclusion {
    text-align: right;
    font-weight: 500;
}

.download-btn {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
        color-mix(in srgb, var(--regulations-blue), #071924 48%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 0.78rem 1.15rem;
    font-family: "Poppins", sans-serif;
    margin: 0 auto;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    display: block;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.download-btn:hover {
    border-color: rgba(255, 255, 255, 0.42);
    filter: none;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

.download-btn:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.regulations-list {
    display: grid;
    gap: 0.85rem;
    width: min(860px, 100%);
    margin: 0 auto clamp(2rem, 5vh, 3.2rem);
    padding: 0;
    list-style: none;
    font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.regulations-list li {
    margin: 0;
}

.regulations-list a {
    display: block;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
        rgba(7, 25, 36, 0.38);
    color: #ffffff;
    text-decoration: none;
    text-shadow: none;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px) saturate(1.12);
    -webkit-backdrop-filter: blur(12px) saturate(1.12);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.regulations-list a:hover,
.regulations-list a:focus-visible {
    border-color: rgba(255, 255, 255, 0.38);
    filter: none;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.25), 0 0 30px color-mix(in srgb, var(--regulations-blue), transparent 72%);
    outline: none;
    transform: translateY(-2px);
}

.regulations-list p {
    margin: 0;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(7, 25, 36, 0.38);
}

.academic-years {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    width: min(860px, 100%);
    margin: 0 auto clamp(2rem, 5vh, 3.2rem);
}

.academic-years a {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff;
    padding: 0.58rem 0.9rem;
    font-family: "Quantico", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-shadow: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.academic-years a.active,
.academic-years a:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #071924;
    transform: translateY(-1px);
    text-shadow: none;
    filter: none;
}

.regulations-year-heading {
    width: min(860px, 100%);
    margin: 0 auto 1rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 1.35vw, 1.28rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: rgba(0, 0, 0, 0.35) 0 8px 18px;
}

@keyframes regulations-light-drift {
    0%,
    100% {
        background-position: 0% 18%, 0 0, 0 0;
        transform: translate3d(-0.6%, 0, 0) scale(1);
    }

    50% {
        background-position: 72% 64%, 24px 0, 0 24px;
        transform: translate3d(0.8%, -0.8%, 0) scale(1.015);
    }
}

@media (prefers-reduced-motion: reduce) {
    main::before {
        animation: none;
    }
}

@media (max-width: 480px) {
    main {
        --regulations-footer-clearance: calc(
            var(--site-footer-overlap-space, 245px)
            + 3.5rem
            + env(safe-area-inset-bottom, 0px)
        );
        padding: 6.8rem 1rem var(--regulations-footer-clearance);
    }

    h1 {
        font-size: clamp(2.25rem, 13vw, 3.3rem);
    }

    article {
        padding: 1.25rem;
    }
    
    article h2 {
        margin-bottom: 5vh;
        text-align: center;
        font-weight: normal;
    }
    
    article h3 {
        font-weight: 500;
    }
    
    article li {
        margin-bottom: 0.5vh;
    }
    
    article .conclusion {
        text-align: right;
        font-weight: 500;
    }
    
    .download-btn {
        width: 100%;
        max-width: 320px;
    }

    .academic-years {
        gap: 0.5rem;
    }
    
}

@media print {
    body * {
      visibility: hidden;
    }
  
    article, article * {
      visibility: visible;
    }
  
    article {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      background: white;
      color: black;
      font-size: 10pt;
      text-align: justify;
    }
  
    * {
      background: none !important;
      box-shadow: none !important;
      text-shadow: none !important;
      border: none !important;
    }

    main::before,
    main::after {
      display: none !important;
    }
  
    @page {
      size: A4;
      margin: 2cm;
    }
  
    article h2 {
      font-size: 14pt;
      text-align: center;
      margin-bottom: 1cm;
    }
  
    article h3 {
      font-size: 12pt;
      text-align: center;
      margin-bottom: 0.4cm;
    }

    article ul, article ol {
        font-size: 10pt;
      }

    article a {
      color: black;
      display: inline;
      text-decoration: underline;
    }

    article a:visited{
      color: black;
    }
  
    /* section {
      page-break-inside: avoid;
    } */
  }
