﻿.courses-wrap {
      margin: 28px auto 10px;
      max-width: 1200px;
    }

    .courses-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      justify-content: space-between;
      margin: 18px 0 16px;
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.62);
      border: 1px solid rgba(139, 71, 137, 0.18);
      box-shadow: var(--shadow-md);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

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

    .chip-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .chip {
      border: 1px solid rgba(139, 71, 137, 0.22);
      background: rgba(255, 255, 255, 0.25);
      color: var(--text-dark);
      padding: 8px 12px;
      border-radius: 999px;
      font-weight: 800;
      font-size: 13px;
      cursor: pointer;
      transition: transform .25s ease, box-shadow .25s ease;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      user-select: none;
    }

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

    .chip.active {
      background: var(--gradient-primary);
      color: #fff;
      border-color: transparent;
    }

    .chip:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-sm);
    }

    .search-box {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 999px;
      border: 1px solid rgba(139, 71, 137, 0.22);
      background: rgba(255, 255, 255, 0.25);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      min-width: min(420px, 100%);
    }

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

    .search-box i {
      color: var(--primary);
    }

    .search-box input {
      width: 100%;
      border: none;
      outline: none;
      background: transparent;
      color: var(--text-dark);
      font-weight: 600;
      font-size: 14px;
    }

    .search-box input::placeholder {
      color: var(--text-muted);
      font-weight: 600;
    }

    /* =======================
       GRID + CARDS
    ======================= */
    .courses-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      margin: 18px 0 26px;
    }

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

    @media (min-width: 1100px) {
      .courses-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .course-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;
      outline: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-height: 268px;
    }

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

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

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

    .course-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;
    }

    .course-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;
    }

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

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

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

    .meta-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.25);
      border: 1px solid rgba(139, 71, 137, 0.22);
      color: var(--text-dark);
      font-weight: 800;
      font-size: 12.5px;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

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

    .course-actions {
      display: flex;
      gap: 10px;
      margin-top: 8px;
      flex-wrap: wrap;
    }

    .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;
    }

    /* =======================
       DOWNLOAD + ADMISSION
    ======================= */
    .info-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
      margin: 18px 0 70px;
    }

    @media (min-width: 900px) {
      .info-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    .info-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);
    }

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

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

    .info-head {
      padding: 18px 18px 14px;
      background: linear-gradient(135deg, rgba(139, 71, 137, 0.10), rgba(212, 175, 55, 0.12));
      border-bottom: 1px solid rgba(139, 71, 137, 0.18);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    html[data-theme="dark"] .info-head {
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .info-title {
      display: flex;
      gap: 12px;
      align-items: center;
      min-width: 0;
    }

    .info-icon {
      width: 44px;
      height: 44px;
      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 44px;
    }

    .info-head h2 {
      font-family: 'Playfair Display', serif;
      font-size: 22px;
      color: var(--text-dark);
      line-height: 1.2;
    }

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

    .info-body {
      padding: 16px 18px 18px;
    }

    .info-body p {
      font-size: 14.8px;
      margin-bottom: 12px;
      color: var(--text-muted);
      font-weight: 600;
    }

    /* =======================
       SYLLABUS VIEWER
    ======================= */
    .syllabus-viewer-card {
      grid-column: 1 / -1;
    }

    /* Admission card spans full width */
    .admission-card-wide {
      grid-column: 1 / -1;
    }

    .admission-card-wide .info-body {
      padding: 20px 24px 24px;
    }

    .admission-card-wide .steps {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px 28px;
      margin: 14px 0 4px;
      padding-left: 22px;
    }

    @media (max-width: 600px) {
      .admission-card-wide .steps {
        grid-template-columns: 1fr;
      }
    }

    .admission-card-wide .steps li {
      font-size: 14.5px;
      color: var(--text-muted);
      font-weight: 600;
      line-height: 1.8;
    }

    .syllabus-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      align-items: flex-end;
      margin-bottom: 18px;
    }

    .syllabus-field {
      flex: 1 1 200px;
      min-width: 180px;
    }

    .syllabus-field label {
      display: block;
      font-weight: 800;
      font-size: 13px;
      color: var(--text-dark);
      margin-bottom: 6px;
      letter-spacing: .3px;
    }

    .syllabus-field label i {
      color: var(--secondary);
      margin-right: 6px;
    }

    .syllabus-select {
      width: 100%;
      padding: 12px 16px;
      border-radius: 14px;
      border: 1px solid rgba(139, 71, 137, 0.22);
      background: rgba(255, 255, 255, 0.35);
      color: var(--text-dark);
      font-weight: 700;
      font-size: 14px;
      font-family: 'Poppins', sans-serif;
      cursor: pointer;
      transition: border-color 0.3s, box-shadow 0.3s;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%238B4789'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
      padding-right: 38px;
    }

    html[data-theme="dark"] .syllabus-select {
      background: rgba(45, 27, 46, 0.35);
      border: 1px solid rgba(255, 255, 255, 0.12);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23FFD700'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 14px center;
    }

    .syllabus-select:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(139, 71, 137, 0.18);
    }

    .syllabus-select option {
      background: var(--bg-card);
      color: var(--text-dark);
    }

    .btn-get-syllabus {
      border: none;
      cursor: pointer;
      border-radius: 14px;
      padding: 12px 28px;
      font-weight: 900;
      font-size: 14px;
      font-family: 'Poppins', sans-serif;
      background: var(--gradient-primary);
      color: #fff;
      box-shadow: var(--shadow-sm);
      display: inline-flex;
      align-items: center;
      gap: 10px;
      transition: transform 0.3s, box-shadow 0.3s;
      white-space: nowrap;
      align-self: flex-end;
      height: 46px;
    }

    .btn-get-syllabus:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-md);
    }

    .btn-get-syllabus:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    .btn-get-syllabus .spinner {
      display: none;
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.6s linear infinite;
    }

    .btn-get-syllabus.loading .spinner {
      display: inline-block;
    }

    .btn-get-syllabus.loading .btn-text {
      display: none;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .pdf-viewer-wrap {
      display: none;
      margin-top: 4px;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid rgba(139, 71, 137, 0.18);
      box-shadow: var(--shadow-md);
      background: rgba(255,255,255,0.1);
      position: relative;
    }

    .pdf-viewer-wrap.active {
      display: block;
      animation: fadeSlideIn 0.5s ease-out;
    }

    @keyframes fadeSlideIn {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .pdf-viewer-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 16px;
      background: linear-gradient(135deg, rgba(139, 71, 137, 0.12), rgba(212, 175, 55, 0.10));
      border-bottom: 1px solid rgba(139, 71, 137, 0.15);
    }

    .pdf-viewer-toolbar .pdf-title {
      font-weight: 800;
      font-size: 13px;
      color: var(--text-dark);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .pdf-viewer-toolbar .pdf-title i {
      color: #e74c3c;
    }

    .pdf-viewer-actions {
      display: flex;
      gap: 8px;
    }

    .pdf-action-btn {
      border: none;
      cursor: pointer;
      border-radius: 10px;
      padding: 8px 14px;
      font-weight: 800;
      font-size: 12px;
      font-family: 'Poppins', sans-serif;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: transform 0.25s, box-shadow 0.25s;
    }

    .pdf-action-btn:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-sm);
    }

    .pdf-action-download {
      background: var(--gradient-primary);
      color: #fff;
    }

    .pdf-action-close {
      background: rgba(255,255,255,0.25);
      color: var(--text-dark);
      border: 1px solid rgba(139,71,137,0.22);
    }

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

    .pdf-viewer-frame {
      width: 100%;
      height: 600px;
      border: none;
      background: #f5f5f5;
    }

    html[data-theme="dark"] .pdf-viewer-frame {
      background: #1a1a1a;
    }

    @media (max-width: 600px) {
      .pdf-viewer-frame {
        height: 400px;
      }
    }

    .syllabus-placeholder {
      text-align: center;
      padding: 40px 20px;
      color: var(--text-muted);
    }

    .syllabus-placeholder i {
      font-size: 48px;
      color: var(--secondary);
      margin-bottom: 14px;
      display: block;
      opacity: 0.6;
    }

    .syllabus-placeholder p {
      font-weight: 700;
      font-size: 15px;
    }

    .steps {
      padding-left: 16px;
      color: var(--text-muted);
      font-weight: 700;
      line-height: 1.95;
      margin-top: 6px;
    }

    /* =======================
       FOOTER (same)
    ======================= */
    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) {

      .chip:hover,
      .course-card:hover,
      .info-card:hover,
      .btn:hover {
        transform: none !important;
      }
    }

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

      .course-card,
      .chip,
      .btn,
      .info-card {
        transition: none !important;
      }
    }
  