/* === Base Styles === */
:root {
  --mobile-header-height: 64px;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #0A0A0A;
  color: #fff;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.hidden {
  display: none !important;
}

/* === Header === */
.header {
  background: #1a1a1a;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

/* Logo box */
.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-text {
  color: #9D4EDD;
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Navigation alignment */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}


.nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
}

.nav a:hover,
.nav a.active {
  color: #9D4EDD;
}

.nav-auth {
  display: none;
  flex-direction: column;
  gap: 12px;
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #3B006A, #0A0A0A);
  text-align: center;
  padding: 100px 20px;
}

.hero h2 {
  font-size: 2.5rem;
  color: #fff;
}

.hero p {
  font-size: 1.2rem;
  color: #ddd;
  margin-top: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 30px;
  border-radius: 10px;
  background: #9D4EDD;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #7B2CBF;
}

/* === Sections === */
.about, .programs, .cta {
  padding: 80px 20px;
  text-align: center;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.program-card {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 12px;
  transition: 0.3s;
}

.program-card:hover {
  background: #2b2b2b;
  transform: translateY(-5px);
}

/* === Footer === */
.footer {
  background: #000;
  text-align: center;
  padding: 25px 0;
  font-size: 0.9rem;
  color: #aaa;
}

/* === Responsive Header Controls === */
.menu-toggle {
  position: relative;
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.menu-toggle:focus-visible {
  outline: 2px solid #9D4EDD;
  outline-offset: 3px;
}

.menu-toggle .bar {
  position: absolute;
  width: 22px;
  height: 2px;
  background-color: #fff;
  border-radius: 4px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle .bar:nth-child(2) {
  transform: translateY(-7px);
}

.menu-toggle .bar:nth-child(3) {
  transform: translateY(7px);
}

.menu-toggle.is-active {
  background: rgba(157, 78, 221, 0.15);
  border-color: rgba(157, 78, 221, 0.6);
}

.menu-toggle.is-active .bar:nth-child(1) {
  opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(2) {
  transform: rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(3) {
  transform: rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-hidden {
  display: none !important;
}

.nav-hidden {
  display: none !important;
}

@media (min-width: 769px) {
  .nav-desktop-hide {
    display: none !important;
  }
}

.nav-backdrop {
  position: fixed;
  top: var(--mobile-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 250;
}

@media (min-width: 769px) {
  .nav-backdrop {
    display: none;
  }
}

@media (max-width: 992px) {
  .nav {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  body.drawer-open {
    overflow: hidden;
  }

  .header {
    padding: 0;
    height: var(--mobile-header-height);
  }

  .header-flex {
    gap: 12px;
    height: 100%;
    padding: 0 16px;
  }

  .container.header-flex {
    width: 100%;
    max-width: none;
  }

  .header-flex {
    justify-content: flex-start;
  }

  .logo-box {
    min-width: 0;
    gap: 8px;
    flex: 1 1 auto;
  }

  .site-logo {
    width: 40px;
    height: 40px;
  }

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

  .nav {
    position: fixed;
    top: var(--mobile-header-height);
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    height: calc(100vh - var(--mobile-header-height));
    padding: 24px 24px 32px;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: none;
    z-index: 260;
    overflow-y: auto;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .nav a {
    width: 100%;
    display: block;
  }

  .nav-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .nav-auth .btn {
    width: 100%;
    text-align: center;
  }

  .auth-buttons {
    display: none;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-backdrop.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 600px) {
  :root {
    --mobile-header-height: 72px;
  }

  .header-flex {
    padding: 0 12px;
  }

  .auth-buttons {
    gap: 6px;
  }

  .auth-buttons .btn.small,
  [data-auth-container="mobile"] .btn.small {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 6px;
  }

  .btn.small.outline {
    border-width: 1px;
  }

  .site-logo {
    width: 34px;
    height: 34px;
  }

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

/* === About Page Styles === */

.about-hero {
  background: linear-gradient(135deg, #3B006A, #0A0A0A);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.about-hero h2 {
  font-size: 2.3rem;
  margin-bottom: 10px;
  color: #fff;
}

.about-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: #ddd;
  font-size: 1.1rem;
}

/* Mission / Vision / Values */
.mission, .vision, .values {
  padding: 80px 20px;
  text-align: center;
}

.mission h2, .vision h2, .values h2 {
  color: #9D4EDD;
  font-size: 2rem;
  margin-bottom: 20px;
}

.mission p, .vision p {
  color: #ccc;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Values Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.value-card {
  background: #1a1a1a;
  padding: 30px 20px;
  border-radius: 12px;
  transition: 0.3s ease;
  border: 1px solid #2a2a2a;
}

.value-card:hover {
  background: #24123A;
  transform: translateY(-5px);
}

.value-card h3 {
  color: #9D4EDD;
  margin-bottom: 10px;
}

.value-card p {
  color: #ccc;
  font-size: 1rem;
}
/* === Programs Page === */

.main-course {
  background: linear-gradient(135deg, #3B006A, #0A0A0A);
  text-align: center;
  color: #fff;
  padding: 100px 20px;
}

.main-course h2 {
  font-size: 2.3rem;
  color: #fff;
  margin-bottom: 20px;
}

.main-desc {
  max-width: 700px;
  margin: 0 auto;
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Course Modules */
.modules {
  padding: 80px 20px;
  text-align: center;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.module-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  padding: 30px 20px;
  border-radius: 12px;
  transition: 0.3s ease;
}

.module-card:hover {
  background: #24123A;
  transform: translateY(-5px);
}

.module-card h3 {
  color: #9D4EDD;
  margin-bottom: 10px;
}

.module-card p {
  color: #ccc;
  font-size: 1rem;
}

.module-card ul {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.module-card ul li {
  color: #aaa;
  font-size: 0.95rem;
  margin: 3px 0;
}

.cta-center {
  margin-top: 50px;
}
/* === News Page === */

.news-hero {
  background: linear-gradient(135deg, #3B006A, #0A0A0A);
  text-align: center;
  color: #fff;
  padding: 100px 20px;
}

.news-hero h2 {
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.news-hero p {
  color: #ddd;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.news-feed {
  padding: 60px 20px 100px;
}

.news-composer,
.news-post {
  background: #161616;
  border: 1px solid #252525;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.25);
}

.news-composer {
  margin-bottom: 32px;
}

.news-composer__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.news-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9D4EDD, #5A189A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.news-composer__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.news-composer__subtitle {
  font-size: 0.9rem;
  color: #b8b8b8;
}

.news-composer__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: #d0d0d0;
}

.news-field input,
.news-field textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #2c2c2c;
  background: #0f0f0f;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-field input:focus,
.news-field textarea:focus {
  border-color: #9D4EDD;
  box-shadow: 0 0 0 2px rgba(157, 78, 221, 0.2);
  outline: none;
}

.news-field textarea {
  resize: vertical;
  min-height: 120px;
}

.news-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-upload__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed #3a3a3a;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  color: #cfcfcf;
}

.news-upload__label:hover {
  border-color: #9D4EDD;
  background: rgba(157, 78, 221, 0.08);
}

.news-upload__label input {
  display: none;
}

.news-upload__icon {
  font-size: 1.4rem;
}

.news-upload__hint {
  font-size: 0.85rem;
  color: #9b9b9b;
  margin: 0;
}

.news-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-preview img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #2d2d2d;
}

.news-preview .btn {
  align-self: flex-start;
  margin-top: 0;
}

.news-posts {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.news-post {
  position: relative;
}

.news-post__header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.news-post__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-post__author {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.news-post__date {
  font-size: 0.85rem;
  color: #a5a5a5;
}

.news-post__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: #f2e9ff;
}

.news-post__body {
  margin: 0;
  color: #d5d5d5;
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.news-post__image {
  margin-top: 18px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2d2d2d;
}

.news-post__image img {
  width: 100%;
  display: block;
  max-height: 460px;
  object-fit: cover;
}

.news-post__actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.news-delete-btn {
  background: transparent;
  border: 1px solid rgba(255, 77, 109, 0.6);
  color: #ff6b81;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.news-delete-btn:hover {
  background: rgba(255, 107, 129, 0.1);
  border-color: #ff6b81;
  color: #ff8da0;
}

.news-loading,
.news-empty {
  text-align: center;
  color: #bdbdbd;
  font-size: 1rem;
  background: rgba(20, 20, 20, 0.7);
  border-radius: 12px;
  padding: 30px 20px;
  border: 1px solid #242424;
}

@media (max-width: 768px) {
  .news-composer,
  .news-post {
    padding: 18px;
  }

  .news-avatar {
    width: 44px;
    height: 44px;
    font-size: 0.85rem;
  }
}
/* === Contact Page === */

.contact-hero {
  background: linear-gradient(135deg, #3B006A, #0A0A0A);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.contact-hero h2 {
  font-size: 2.3rem;
  margin-bottom: 10px;
}

.contact-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: #ddd;
  font-size: 1.1rem;
}

.contact-section {
  padding: 80px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* Form */
.contact-form h3 {
  color: #9D4EDD;
  margin-bottom: 15px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  color: #ccc;
  font-weight: 500;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  font-size: 1rem;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #9D4EDD;
}

/* Info */
.contact-info h3 {
  color: #9D4EDD;
  margin-bottom: 15px;
}

.contact-info p {
  color: #ccc;
  line-height: 1.8;
  font-size: 1rem;
}

.map-box {
  margin-top: 20px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 0.9rem;
}
/* === Auth Pages (Register / Login) === */

.auth-section {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #3B006A, #0A0A0A);
}

.auth-box {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 40px 30px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

.auth-box h2 {
  color: #9D4EDD;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.auth-box form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-box label {
  color: #ccc;
  text-align: left;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.auth-box input {
  padding: 10px 12px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #0f0f0f;
  color: #fff;
  font-size: 1rem;
  transition: 0.3s;
}

.auth-box input:focus {
  border-color: #9D4EDD;
  outline: none;
}

.auth-box .btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: #9D4EDD;
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.auth-box .btn:hover {
  background: #7B2CBF;
}

.auth-link {
  color: #bbb;
  font-size: 0.95rem;
  margin-top: 10px;
}

.auth-link a {
  color: #9D4EDD;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}
/* === Auth Buttons in Header === */
/* Auth buttons alignment */
.auth-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: 20px;
}


.btn.small {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 8px;
}

.btn.small.outline {
  background: transparent;
  border: 1px solid #9D4EDD;
  color: #9D4EDD;
}

.btn.small.outline:hover {
  background: #9D4EDD;
  color: #fff;
}

/* Responsive: hide buttons inside slide menu */
@media (max-width: 768px) {
  .auth-buttons {
    display: none;
  }
}
/* === Mobile Auth Buttons inside slide menu === */
.auth-buttons-mobile {
  display: none;
}

@media (max-width: 768px) {
  .auth-buttons-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
  }

  .auth-buttons-mobile .btn.small {
    width: 80%;
    text-align: center;
  }
}
/* === Notification Toast === */
.toast {
  visibility: hidden;
  min-width: 260px;
  margin-left: -130px;
  background-color: #222;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 14px;
  position: fixed;
  left: 50%;
  top: 30px;
  z-index: 9999;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.5s, top 0.5s, visibility 0.5s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  top: 50px;
}

.toast.success {
  background-color: #28a745;
}

.toast.error {
  background-color: #d32f2f;
}
.user-name {
  color: #9D4EDD;
  font-weight: 600;
  margin-right: 10px;
}
/* === User Dropdown Menu === */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-btn {
  background: none;
  border: none;
  color: #9D4EDD;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1rem;
}

.user-btn:hover {
  color: #B86CFF;
}

.arrow-down {
  font-size: 0.8rem;
  color: #ccc;
}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 999;
  min-width: 160px;
  padding: 10px 0;
  text-align: left;
}

.dropdown.show {
  display: block;
  animation: fadeDown 0.25s ease;
}

.dropdown a,
.dropdown button {
  color: #fff;
  display: block;
  width: 100%;
  text-decoration: none;
  padding: 10px 18px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s;
}

.dropdown a:hover,
.dropdown button:hover {
  background-color: #24123A;
  color: #9D4EDD;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* === Profile Page === */
.profile-section {
  padding: 100px 20px;
}

.profile-heading {
  max-width: 620px;
  margin-bottom: 40px;
  text-align: left;
}

.profile-heading h2 {
  margin-bottom: 10px;
  font-size: 2.1rem;
}

.profile-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 30px;
  align-items: flex-start;
}

.profile-card {
  background: rgba(20, 16, 35, 0.95);
  border: 1px solid rgba(157, 78, 221, 0.18);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.profile-card--overview {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: linear-gradient(165deg, rgba(157, 78, 221, 0.28), rgba(20, 16, 35, 0.95));
  border-color: rgba(157, 78, 221, 0.35);
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: linear-gradient(135deg, #9d4edd, #7b2cbf);
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
}

.profile-details {
  text-align: left;
}

.profile-name {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.profile-email {
  margin: 6px 0 18px;
  color: rgba(255, 255, 255, 0.68);
  word-break: break-word;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.profile-role {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(157, 78, 221, 0.16);
  color: #e1c7ff;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.profile-id {
  opacity: 0.7;
}

.profile-actions {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.profile-card--form {
  background: rgba(12, 9, 23, 0.92);
}

.profile-card--password {
  background: linear-gradient(155deg, rgba(16, 13, 30, 0.95), rgba(123, 44, 191, 0.38));
  border-color: rgba(123, 44, 191, 0.4);
}

.profile-card__header h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: #fff;
}

.profile-card__header p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.form-group input {
  background: rgba(8, 6, 18, 0.9);
  border: 1px solid rgba(157, 78, 221, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
  border-color: #9d4edd;
  box-shadow: 0 0 0 2px rgba(157, 78, 221, 0.22);
  outline: none;
}

.profile-password-hint {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

.btn.small.full-width,
.btn.full-width {
  width: 100%;
  text-align: center;
}

@media (max-width: 960px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    padding: 24px;
  }

  .profile-card--overview {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
}

@media (max-width: 640px) {
  .profile-section {
    padding: 80px 16px;
  }

  .profile-heading {
    margin-bottom: 28px;
  }

  .profile-card--overview {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
/* === My Courses Page === */
.courses-section {
  padding: 100px 20px;
  text-align: center;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.course-item {
  background: #1a1a1a;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  padding: 25px;
  text-align: left;
  transition: 0.3s;
}

.course-item:hover {
  background: #24123A;
  transform: translateY(-5px);
}

.course-item h3 {
  color: #9D4EDD;
  margin-bottom: 10px;
}
/* === Admin Panel === */
.admin-section {
  padding: 80px 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.admin-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 25px 20px;
}

.admin-card h3 {
  color: #9D4EDD;
  margin-bottom: 15px;
}

.admin-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-card input,
.admin-card textarea,
.admin-card select {
  background: #0f0f0f;
  color: #fff;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px;
  font-size: 1rem;
}

.admin-card input:focus,
.admin-card textarea:focus,
.admin-card select:focus {
  border-color: #9D4EDD;
  outline: none;
}
/* === Hero Elegant Animated Background === */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(270deg, #3B006A, #0A0A0A, #9D4EDD);
  background-size: 600% 600%;
  animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  color: #fff;
  padding: 0 20px;
}

.hero-content h2 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 20px;
  animation: fadeIn 2s ease forwards;
}

.hero-content p {
  font-size: 1.2rem;
  color: #ddd;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn.glow {
  background: #9D4EDD;
  border-radius: 10px;
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(157, 78, 221, 0);
}

.btn.glow:hover {
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.7);
  transform: translateY(-3px);
}

/* Fade animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
}
.fade-in.delay {
  animation-delay: 0.7s;
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  color: #bbb;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}
/* === Mission Section === */
.mission-section {
  background: radial-gradient(circle at top, #1a1a1a, #0a0a0a);
  color: #fff;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.4rem;
  color: #9D4EDD;
  margin-bottom: 20px;
  animation: fadeIn 1.2s ease;
}

.section-desc {
  color: #ccc;
  max-width: 750px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
  line-height: 1.7;
  animation: fadeIn 1.5s ease;
}

/* Cards grid */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.vision-card {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 35px 25px;
  transition: all 0.4s ease;
  box-shadow: 0 0 0 rgba(157, 78, 221, 0);
}

.vision-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(157, 78, 221, 0.4);
}

.vision-card h3 {
  color: #9D4EDD;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.vision-card p {
  color: #ccc;
  line-height: 1.6;
  font-size: 1rem;
}

/* Animation (scroll-up appearance) */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up { opacity: 0; transform: translateY(40px); transition: all 1s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
/* === Why Intellectum Section === */
.why-section {
  background: #0F0F0F;
  color: #fff;
  padding: 100px 20px;
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.why-card {
  background: #1a1a1a;
  border-radius: 14px;
  padding: 40px 25px;
  border: 1px solid #2a2a2a;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(157, 78, 221, 0.4);
}

.why-card .icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  color: #9D4EDD;
}

.why-card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}

.why-card p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}

/* === Team Section === */
.team-section {
  background: linear-gradient(135deg, #3B006A, #0A0A0A);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.team-member {
  background: rgba(26, 26, 26, 0.85);
  border-radius: 16px;
  padding: 25px;
  transition: 0.3s;
  border: 1px solid #2a2a2a;
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(157, 78, 221, 0.4);
}

.team-member img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #9D4EDD;
}

.team-member h3 {
  color: #9D4EDD;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.team-member p {
  color: #ccc;
  font-size: 0.95rem;
}
/* ჰამბურგერ მენიუში არსებული ღილაკები (მობილური ვერსია) */
.auth-buttons-mobile {
  display: none;
}

.logo-box:hover {
  opacity: 0.85;
  transition: opacity 0.3s;
}
.logo-box:hover .logo-text {
  color: #b47aff;
  transition: color 0.3s;
}
.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none; /* ← ეს ხაზს მოხსნის */
}
.about-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(270deg, #3B006A, #0A0A0A, #9D4EDD);
  background-size: 600% 600%;
  animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.vision-card {
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 35px 25px;
  transition: all 0.4s ease;
  box-shadow: 0 0 0 rgba(157, 78, 221, 0);
}

.vision-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(157, 78, 221, 0.4);
}
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, #2A0055, #0A0A0A);
  padding: 100px 20px;
}

.cta-section h2 {
  color: #9D4EDD;
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-section p {
  color: #ccc;
  margin-bottom: 25px;
}

.form-status {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-status.success {
  color: #22c55e;
}

.form-status.warning {
  color: #f59e0b;
}

.form-status.error {
  color: #f87171;
}

.phone-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1200;
}

.phone-modal--visible {
  opacity: 1;
  pointer-events: auto;
}

.phone-modal__content {
  width: 100%;
  max-width: 340px;
  background: #0f0f0f;
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(157, 78, 221, 0.35);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.phone-modal--visible .phone-modal__content {
  transform: translateY(0);
}

.phone-modal__hint {
  margin: 8px 0 16px;
  font-size: 0.95rem;
  color: #cfc9ff;
}

.phone-modal__label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #e8e0ff;
}

.phone-modal__input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(157, 78, 221, 0.4);
  background: #151515;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-modal__input:focus {
  outline: none;
  border-color: #9d4edd;
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.25);
}

.phone-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.phone-modal__error {
  min-height: 18px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #f87171;
}

