﻿.portal-wrap {
      margin: 28px auto 70px;
      max-width: 1200px;
    }

    .portal-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      margin: 22px 0 24px;
    }

    @media (min-width: 768px) {
      .portal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
      }
    }

    @media (min-width: 1100px) {
      .portal-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      }
    }

    .portal-card {
      background: rgba(255, 255, 255, 0.70);
      border: 1px solid rgba(139, 71, 137, 0.18);
      border-radius: 22px;
      box-shadow: var(--shadow-md);
      overflow: hidden;
      position: relative;
      transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-height: 260px;
    }

    html[data-theme="dark"] .portal-card {
      background: rgba(45, 27, 46, 0.66);
      border: 1px solid rgba(255, 255, 255, 0.10);
    }

    .portal-card:hover,
    .portal-card:focus-within {
      transform: translateY(-8px);
      box-shadow: 0 18px 45px rgba(139, 71, 137, 0.18);
      border-color: rgba(212, 175, 55, 0.55);
    }

    .portal-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .portal-icon {
      width: 46px;
      height: 46px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--gradient-primary);
      color: white;
      font-size: 18px;
      box-shadow: 0 10px 22px rgba(139, 71, 137, 0.16);
      border: 1px solid rgba(255, 255, 255, 0.25);
      flex: 0 0 46px;
    }

    .portal-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      border-radius: 999px;
      font-weight: 900;
      font-size: 12px;
      letter-spacing: .3px;
      color: var(--text-dark);
      background: rgba(212, 175, 55, 0.18);
      border: 1px solid rgba(212, 175, 55, 0.35);
      white-space: nowrap;
    }

    .portal-title {
      font-family: 'Playfair Display', serif;
      font-size: 20px;
      line-height: 1.25;
      color: var(--text-dark);
      margin-top: 4px;
    }

    .portal-desc {
      color: var(--text-muted);
      font-size: 14.5px;
      line-height: 1.85;
    }

    .portal-actions {
      margin-top: auto;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      padding-top: 12px;
      border-top: 1px dashed rgba(139, 71, 137, 0.28);
    }

    .btn {
      border: none;
      cursor: pointer;
      border-radius: 999px;
      padding: 11px 16px;
      font-weight: 900;
      font-size: 13px;
      transition: transform .25s ease, box-shadow .25s ease;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }

    .btn-primary {
      background: var(--gradient-primary);
      color: #fff;
      box-shadow: var(--shadow-sm);
    }

    .btn-primary:hover,
    .btn-primary:focus-visible {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
      outline: none;
    }

    .btn-outline {
      background: rgba(255, 255, 255, 0.25);
      color: var(--text-dark);
      border: 1px solid rgba(139, 71, 137, 0.28);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    html[data-theme="dark"] .btn-outline {
      background: rgba(45, 27, 46, 0.22);
      border: 1px solid rgba(255, 255, 255, 0.10);
    }

    .btn-outline:hover,
    .btn-outline:focus-visible {
      transform: translateY(-2px);
      box-shadow: var(--shadow-sm);
      outline: none;
    }

    .btn-ghost {
      background: rgba(212, 175, 55, 0.16);
      border: 1px solid rgba(212, 175, 55, 0.32);
      color: var(--text-dark);
    }

    /* =======================
       MODAL
    ======================= */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      padding: 18px;
    }

    .modal {
      background: rgba(255, 255, 255, 0.88);
      border: 1px solid rgba(139, 71, 137, 0.18);
      border-radius: 22px;
      box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      width: min(440px, 96%);
      padding: 18px;
      color: var(--text-dark);
    }

    html[data-theme="dark"] .modal {
      background: rgba(45, 27, 46, 0.86);
      border: 1px solid rgba(255, 255, 255, 0.10);
    }

    .modal h3 {
      font-family: 'Playfair Display', serif;
      font-size: 22px;
      margin-bottom: 10px;
      color: var(--text-dark);
    }

    .modal p {
      color: var(--text-muted);
      font-weight: 700;
    }

    .modal input {
      width: 100%;
      margin-top: 10px;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid rgba(139, 71, 137, 0.22);
      outline: none;
      background: rgba(255, 255, 255, 0.35);
      color: var(--text-dark);
      font-weight: 700;
    }

    html[data-theme="dark"] .modal input {
      background: rgba(45, 27, 46, 0.35);
      border: 1px solid rgba(255, 255, 255, 0.10);
    }

    .modal .modal-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 14px;
    }

    .tiny {
      font-size: 13px;
      margin-top: 10px;
      font-weight: 800;
    }

    /* =======================
       FOOTER (same as courses)
    ======================= */
    footer {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: flex-start;
      padding: 40px 20px;
      padding-bottom: calc(40px + var(--safe-bottom));
      margin-top: 90px;
    }

    footer .footer-box {
      flex: 3 1 500px;
      background: rgba(139, 71, 137, 0.55);
      padding: 20px;
      border-radius: 18px;
      box-shadow: var(--shadow-md);
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 20px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }

    html[data-theme="dark"] footer .footer-box {
      background: rgba(45, 27, 46, 0.70);
      border: 1px solid rgba(255, 255, 255, 0.10);
    }

    footer .donation-card {
      background: rgba(255, 255, 255, 0.14);
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 15px;
      padding: 15px;
      text-align: center;
      color: #fff;
      flex: 1 1 220px;
      box-shadow: var(--shadow-sm);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    footer .donation-card h2 {
      color: #fff;
      font-size: 18px;
      margin-bottom: 8px;
    }

    footer .donation-card p {
      color: rgba(255, 255, 255, 0.88);
      font-size: 13px;
      margin-bottom: 12px;
    }

    footer .qr img {
      width: 120px;
      height: 120px;
      border-radius: 8px;
      border: 3px solid rgba(255, 255, 255, 0.25);
      display: block;
      margin: 0 auto;
    }

    footer .btn {
      display: block;
      background: rgba(255, 255, 255, 0.18);
      border: 1px solid rgba(255, 255, 255, 0.22);
      color: white;
      text-decoration: none;
      padding: 8px;
      border-radius: 20px;
      font-weight: 900;
      margin: 6px 0;
      transition: 0.3s;
      font-size: 13px;
    }

    footer .btn:hover {
      background: rgba(255, 255, 255, 0.26);
    }

    footer .footer-bottom {
      font-size: 12px;
      color: rgba(255, 255, 255, 0.90);
      text-align: center;
      margin-top: 15px;
      border-top: 1px solid rgba(255, 255, 255, 0.30);
      padding-top: 8px;
      flex-basis: 100%;
    }

    footer .footer-card {
      background: rgba(255, 255, 255, 0.10);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 18px;
      padding: 22px;
      max-width: 360px;
      box-shadow: var(--shadow-sm);
      color: #fff;
      font-family: 'Poppins', sans-serif;
      flex: 1 1 320px;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    footer .footer-brand-head {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 14px;
    }

    footer .footer-brand-head img {
      width: 72px;
      height: 72px;
      border-radius: 50%;
      border: 3px solid var(--secondary);
      box-shadow: 0 10px 22px rgba(212, 175, 55, 0.18);
      object-fit: cover;
    }

    footer .footer-brand-text h3 {
      margin: 0;
      font-family: 'Playfair Display', serif;
      font-size: 22px;
      color: #fff;
    }

    footer .footer-tagline {
      margin-top: 4px;
      font-size: 12.5px;
      font-weight: 900;
      letter-spacing: .4px;
      color: var(--secondary);
    }

    footer .footer-about {
      font-size: 14.5px;
      line-height: 1.8;
      color: rgba(255, 255, 255, 0.86);
      margin: 12px 0 18px;
    }

    footer .footer-social {
      display: flex;
      gap: 10px;
    }

    footer .footer-social a {
      width: 42px;
      height: 42px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.14);
      border: 1px solid rgba(255, 255, 255, 0.18);
      color: #fff;
      transition: 0.25s;
      text-decoration: none;
    }

    footer .footer-social a:hover {
      background: rgba(212, 175, 55, 0.22);
      border-color: rgba(212, 175, 55, 0.35);
      transform: translateY(-2px);
    }

    footer .footer-columns {
      display: flex;
      flex-direction: column;
      min-width: 150px;
    }

    footer .footer-column h3 {
      font-size: 16px;
      margin-bottom: 10px;
      font-weight: 900;
      color: #fff;
    }

    footer .footer-column a {
      display: block;
      font-size: 14px;
      color: rgba(255, 255, 255, 0.88);
      text-decoration: none;
      margin: 4px 0;
    }

    footer .footer-column a:hover {
      text-decoration: underline;
      color: #fff;
    }

    footer .contact-info {
      font-size: 14px;
      margin-top: 10px;
      color: rgba(255, 255, 255, 0.88);
    }

    footer .contact-info a {
      color: rgba(255, 255, 255, 0.88);
      text-decoration: none;
    }

    footer .contact-info a:hover {
      color: #fff;
      text-decoration: underline;
    }

    @media (max-width: 768px) {
      .top-header-info {
        display: none;
      }

      .navbar {
        padding: 14px 16px;
      }

      .logo-text {
        font-size: 20px;
      }

      .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.72);
        flex-direction: column;
        padding-top: 80px;
        transition: right 0.35s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
      }

      html[data-theme="dark"] .nav-menu {
        background: rgba(45, 27, 46, 0.72);
      }

      .nav-menu.active {
        right: 0;
      }

      .hamburger {
        display: flex;
      }

      .section-title::before,
      .section-title::after {
        display: none;
      }

      body {
        background-attachment: scroll;
      }

      body::before,
      body::after,
      .global-blob {
        filter: blur(40px);
      }
    }

    @media (hover: none) {

      .portal-card:hover,
      .btn:hover {
        transform: none !important;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      * {
        scroll-behavior: auto !important;
      }

      .portal-card,
      .btn {
        transition: none !important;
      }
    }
  
