h1 {
    font-size: 2.7rem;
    margin-bottom: 1rem;
    /*background: linear-gradient(45deg, #00ff88, #ffffff);*/
    background: var(--color-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2rem;
    max-width: 900px;
    line-height: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-section {
    text-align: center;
    margin: 3rem 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
    box-shadow: 0 10px 10px rgba(0, 255, 136, 0.2);
}

.feature-card h3 {
    background: var(--color-primary);
    -webkit-background-clip: text;  /* Safari/Chrome */
    -webkit-text-fill-color: transparent;
    background-clip: text;  /* modern spec */
    color: transparent;
    /*color: #00ff88;*/
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.85rem;
    text-align: justify;
    line-height: 1.5rem;
}
/* action container aligned bottom-right */
.card-actions {
  display: flex;
  gap: 0.5rem;
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
}

/* tiny button styling */
.action-btn {
  background: transparent;
  border: none;
  border-radius: 3px;
  padding: 0.25rem 0.5rem;
  font-size: 0.65rem;
  cursor: pointer;
  color: white;
  transition: background 0.2s ease;
}

.action-btn:hover {
    text-decoration: underline;
    text-decoration-color: #00ff88;
}
.action-btn > b {
    background: var(--color-primary);
    -webkit-background-clip: text;  /* Safari/Chrome */
    -webkit-text-fill-color: transparent;
    background-clip: text;  /* modern spec */
    color: transparent;
    font-size: 0.6rem;
}

.btn-large {
    font-size: 1.3rem;
    padding: 1.3rem 3rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    overflow-y: auto;
}

/* Chrome, Safari */
.modal::-webkit-scrollbar {
  width: 5px; /* make it thin */
}

.modal::-webkit-scrollbar-track {
  background: transparent; /* blends with background */
}

.modal::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2); /* subtle thumb */
  border-radius: 4px;
}

/* Firefox */
.modal {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a3e 0%, #2a2a5e 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 0.8rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    bottom: 7em;
}

.close:hover {
    background: var(--color-primary);
    -webkit-background-clip: text;  /* Safari/Chrome */
    -webkit-text-fill-color: transparent;
    background-clip: text;  /* modern spec */
    color: transparent;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cccccc;
    font-size: 0.8rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.8rem;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

input[type="file"]::file-selector-button {
  background-color: transparent;
  color: var(--color-text);
  border: none;
  padding: 10px 0px 0px 0px;
  cursor: pointer;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    background: var(--color-primary);
    -webkit-background-clip: text;  /* Safari/Chrome */
    -webkit-text-fill-color: transparent;
    background-clip: text;          /* modern spec */
    color: transparent;
    /*color: #00ff88;*/
}

.success { color: #00ff88; font-weight: bold; }
.loading { color: #ffaa00; }
.error { color: #ff6b6b; }

.hidden { display: none; }

input[type="checkbox"] {
  z-index: 13;
  cursor: pointer;
  font-size: 0.8rem;
  width: 10%;
}
.sub-form {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 1em;
}
.sub-form > span {
    display: flex;
    width: 100%;
}
.sub-form > span > p {
  font-size: 0.8rem;
  font-weight: 600;
  width: 100%;
  margin-left: 0.5em;
  position: relative;
  right: 0;
}
.sub-form a {
    font-size: 0.8rem;
    width: 100%;
    text-align: right;
    text-decoration: underline;
}
.error {
  color: red;
  font-size: 13px;
}


@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .features { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .courses-grid { grid-template-columns: 1fr; }
}