@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* #paywall-modal.flex { display: flex !important; } */

/* General tags */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
  padding: 0 15px;
}

header {
  margin-bottom: 30px;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #493DC7;
  margin-bottom: 10px;
}

nav a {
  color: #493DC7;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #322A88;
}

textarea {
  font-family: 'Inter', sans-serif;
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease;
}

textarea:focus {
  border-color: #493DC7;
  outline: none;
}

button {
  background-color: #493DC7;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
}

button:hover {
  background-color: #322A88;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 15px;
}

p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}

/* layout.html */

.layout.no-sidebar {
  display: block;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar .nav-link.active {
  background-color: #dcd7fc;
  font-weight: 600;
  border-left: 4px solid #493DC7;
  padding-left: 12px;
}

.sidebar {
  width: 220px;
  background-color: #f5f6ff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-right: 1px solid #ddd;
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.logo-img {
  width: 180px; /* adjust to match the size of the text */
  height: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  object-fit: contain;
}

.sidebar .nav-link {
  all: unset;
  display: block;
  color: #493DC7;
  font-weight: 500;
  margin: 10px 0;
  cursor: pointer;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link:focus {
  background-color: #e7e5fa;
  transform: translateX(5px);
  outline: none;
}

.main-content {
  flex: 1;
  padding: 30px;
}

.topbar {
  text-align: center;
  margin: 20px 0;
}

.topbar a {
  color: #493DC7;
  text-decoration: none;
  font-weight: 500;
  margin: 0 10px;
}

.topbar a:hover {
  color: #322A88;
  text-decoration: underline;
}


/* add_question.html */

a.button-link {
  display: inline-block;
  background-color: #493DC7;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  font-family: inherit;
  border: none;
  box-sizing: border-box;
  line-height: normal;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
}

a.button-link:hover {
  background-color: #322A88;
  transform: translateY(-2px);
}

.container-edit-question {
  max-width: 1000px;
  margin: 40px auto;
  background: linear-gradient(135deg, #f5f7ff 0%, #e7e5fa 100%);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(73, 61, 199, 0.1);
}

.container-edit-question h2 {
  font-size: 2rem;
  color: #493DC7;
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-wrapper label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #493DC7;
  font-weight: 500;
}

.form-wrapper input[type="text"],
.form-wrapper textarea,
.form-wrapper select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease;
}

.form-wrapper input[type="text"]:focus,
.form-wrapper textarea:focus,
.form-wrapper select:focus {
  border-color: #493DC7;
  outline: none;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 10px; /* space between buttons */
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* cram_hub_dashboard.html */

/* a.button-link */

/* a.button-link:hover */

  .cram-sheet-markdown h2 {
    font-size: 18px;
    font-weight: bold;
    margin-top: 1em;
  }
  
  .cram-sheet-markdown ul {
    padding-left: 20px;
    margin: 0;
  }
  
  .cram-sheet-markdown li {
    margin-bottom: 4px;
  }
  
  .cram-sheet-markdown p {
    margin: 0.3em 0;
  }
  
  .delete-link:hover,
  .delete-link:focus {
    color: #e63946;
    text-decoration: underline;
    transform: translateY(-2px);
    background-color: transparent;  /* 👈 prevents hover background */
    box-shadow: none;
    outline: none;
  }

  .ul_no_bullets {
    list-style-type: none;
    padding-left: 0;
    font-size: 0.9rem;
    margin-top: 10px;
  }
  
  .drop-zone .upload-icon{
    font-size: 30px;
    color: #493DC7;
  }

  .spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #493DC5; /* Cramora purple */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
  }

  .pending-file-info {
    flex-grow: 1;
  }
  
  .pending-file-info small {
    color: #6c757d;
    display: block;
    margin-top: 5px;
  }

  .dashboard-container {
    max-width: 1000px;
    margin: 0 auto 3rem;
    background: linear-gradient(135deg, #f5f7ff 0%, #e7e5fa 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(73, 61, 199, 0.08);
  }
  
  
/* === Headings === */

.dashboard-subtitle {
  font-size: 1.05rem;
  color: #666;
  text-align: center;
  margin-top: -0.5rem;
  margin-bottom: 2.5rem;
}

.section-heading {
  font-size: 1.5rem;
  color: #493DC7;
  margin: 2rem 0 1rem;
}

/* === Dashboard Action Buttons === */
.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.dashboard-actions button,
.dashboard-actions a.button-link {
  background-color: #493DC7;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.dashboard-actions button:hover,
.dashboard-actions a.button-link:hover {
  background-color: #322A88;
  transform: translateY(-2px);
}

.dashboard-actions i {
  font-size: 1rem;
}

/* === Cram Sheet Box === */
#cram-sheet {
  background-color: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

/* === Question Cards === */
.question-box {
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

.question-box:hover {
  transform: translateY(-2px);
}

.question-box p {
  margin: 6px 0;
  color: #333;
}

.question-box strong {
  color: #493DC7;
}

/* === Icons for Edit/Delete === */
.edit-link i,
.delete-link i {
  font-size: 1.1rem;
}

.edit-link:hover {
  color: #322A88;
}

.delete-link {
  all: unset;
  color: #493DC7;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* === Add Question === */
.center-wrapper {
  margin-top: 2.5rem;
  text-align: center;
}

/* Modal overlay (already exists, just confirming) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Modal box style */
.modal {
  background: linear-gradient(135deg, #f5f7ff 0%, #e7e5fa 100%);
  padding: 2rem;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  box-shadow: 0 12px 30px rgba(73, 61, 199, 0.15);
  font-family: 'Inter', sans-serif;
}

/* Modal headings */
.modal h3 {
  font-size: 1.5rem;
  color: #493DC7;
  margin-bottom: 1rem;
}

.modal h4 {
  font-size: 1.2rem;
  color: #555;
  margin-top: 1.5rem;
}

/* Uploaded file links */
.uploaded-file-link {
  color: #493DC7;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.uploaded-file-link:hover {
  color: #322A88;
  text-decoration: underline;
}

/* Dropzone style */
.dropzone {
  border: 2px dashed #493DC7;
  border-radius: 10px;
  padding: 1.5rem;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dropzone.highlight {
  background-color: #e7e5fa;
  border-color: #322A88;
}

.dropzone .upload-icon {
  font-size: 2rem;
  color: #493DC7;
  margin-bottom: 0.5rem;
}

/* Buttons inside modal */
.modal button {
  background-color: #493DC7;
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal button:hover {
  background-color: #322A88;
  transform: translateY(-2px);
}

/* Pending file item layout */
.pending-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 1px solid #eee;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.pending-file-info strong {
  color: #493DC7;
}

.remove-file-btn {
  background: none;
  border: none;
  color: #493DC7;
  cursor: pointer;
  transition: color 0.2s ease;
}

.remove-file-btn:hover {
  color: #dc3545;
  /* color: #a4161a; */
}


/* create_cram_hub.html */
.upload-form-container{
  display: flex; /* Enable Flexbox */
  justify-content: center; 
  flex-direction: column; /* ← Stack children vertically */
  align-items: center;
  background-color: white;
  width: 100%;
  max-width: 600px;
  min-height: 350px;
  padding: 30px;
  border-radius: 30px;
  position: relative; /* Ensure other elements can be positioned if needed */
  margin: auto;
  margin-top: 35px;
}

.drop-zone {
  display: flex; /* Enable Flexbox */
  justify-content: center; /* Horizontally center the .drop-zone */
  align-items: center; /* Corrected comment */
  border: 2px dashed #493DC7;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
  width: 500px;
  height: 200px;
  margin-top: 20px;
}

.drop-zone.drag-over {
  background-color: #e6f2ff;
}

.outer-card-container {
  max-width: 1000px;
  margin: 0 auto 3rem;
  background: linear-gradient(135deg, #f5f7ff 0%, #e7e5fa 100%);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(73, 61, 199, 0.08);
}

#submitHubBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none; /* 🚀 critical to stop clicks */
}

/* .dropzone .upload-icon */

/* .drop-zone .upload-icon */

/* .ul_no_bullets */

/* .modal-overlay */

/* .modal */

/* edit_questions.html */

/* .container-edit-question */

/* form-wrapper */

/* button-link */

/* my_cram_hubs.html */


.my-hubs-container {
  max-width: 1000px;
  margin: 0 auto 3rem;
  background: linear-gradient(135deg, #f5f7ff 0%, #e7e5fa 100%);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(73, 61, 199, 0.08);
}

.page-heading {
  font-size: 2rem;
  color: #493DC7;
  margin-bottom: 2rem;
  text-align: center;
}

.hub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hub-list-item {
  background-color: white;
  border-radius: 12px;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.hub-link {
  display: block;
  padding: 1.2rem 1.5rem;
  text-decoration: none;
  color: #493DC7;
  font-size: 1.1rem;
  font-weight: 500;
}

.hub-link:hover {
  color: #322A88;
}

.no-hubs-msg {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
}

.hub-item-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hub-link {
  flex: 1;
  text-decoration: none;
  color: #333;
}

.delete-form {
  margin-right: 20px;
}

/* quiz.html */

/* .button-link */
/* Quiz Card */
.card {
  background: linear-gradient(135deg, #f5f7ff 0%, #e7e5fa 100%);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(73, 61, 199, 0.1);
  padding: 2.5rem;
  width: 100%;
  max-width: 900px;
  text-align: center;
}

/* Question count */
.question-count {
  font-size: 1rem;
  font-weight: 500;
  color: #493DC7;
  margin-bottom: 1rem;
}

/* Answers grid */
.answers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

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

/* Answer buttons */
.answer-btn {
  background-color: white;
  color: #493DC7;
  border: 2px solid #493DC7;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.answer-btn:hover:not(:disabled) {
  background-color: #f0f2f5;
}

.answer-btn.correct {
  border-color: #28a745;
  background-color: #e6ffe6;
  color: #28a745;
}

.answer-btn.wrong {
  border-color: #dc3545;
  background-color: #ffe6e6;
  color: #dc3545;
}

.answer-btn:disabled {
  opacity: 0.95;
  cursor: not-allowed;
}

/* Note for next question */
.note {
  margin-top: 1.5rem;
  font-style: italic;
  color: #666;
}

/* Missed questions section */
.missed-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.missed-question {
  background-color: #f0f2f5;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid #dc3545;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-size: 0.95rem;
  text-align: left;
}

.missed-question strong {
  color: #493DC7;
}

/* Headings in quiz card */
.card h3 {
  font-size: 1.6rem;
  color: #493DC7;
  margin-bottom: 1.2rem;
}

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

/* Back button consistency */
.button-link {
  display: inline-block;
  background-color: #493DC7;
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-link:hover {
  background-color: #322A88;
  transform: translateY(-2px);
}


/* login.html */
.password-field-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field-container input {
  width: 100%;
  padding-right: 2.5rem; /* Add space for the icon */
}

.password-toggle-icon {
  position: absolute;
  right: 10px; /* Position the icon inside the input field */
  top: 40%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.password-toggle-icon:hover {
  color: #493DC7; /* Matches your theme */
}
/* .center-wrapper */


/* .button */

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 0;
  margin: 0 auto; /* center horizontally */
}


.log-in-box {
  background-color: #f0f2f5;
  max-width: 300px;
  padding: 30px;
  border: black 1px solid;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.auth-card {
  background: linear-gradient(135deg, #f5f7ff 0%, #e7e5fa 100%);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 12px 30px rgba(73, 61, 199, 0.1);
  width: 100%;
  max-width: 420px;
  /* Remove text-align to allow natural alignment */
}

.auth-card h2 {
  font-size: 2rem;
  color: #493DC7;
  margin-bottom: 0.5rem;
  text-align: center;
}

.auth-card p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.auth-card form {
  width: 100%;
}

.auth-card label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: #493DC7;
}

.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"] {
  font-family: 'Inter', sans-serif;
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 1.2rem;
  background-color: #fff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.auth-card input[type="text"]:focus,
.auth-card input[type="password"]:focus,
.auth-card input[type="email"]:focus {
  border-color: #493DC7;
  outline: none;
}

.auth-card button {
  background-color: #493DC7;
  color: white;
  padding: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 100%;
}

.auth-card button:hover {
  background-color: #322A88;
  transform: translateY(-2px);
}

.auth-switch-text {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #666;
  text-align: center;
}

.auth-switch-text a {
  color: #493DC7;
  text-decoration: none;
  font-weight: 500;
}

.auth-switch-text a:hover {
  color: #322A88;
  text-decoration: underline;
}



/* End */

.cram-sheet {
  background: #f9f9f9;
  border-left: 5px solid #493DC7;
  padding: 16px;
  margin-top: 20px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.25;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 800px;
}

/* Remove spacing from headings */
.cram-sheet h1,
.cram-sheet h2,
.cram-sheet h3 {
  margin-top: 8px;
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.2;
}

/* List styles */
.cram-sheet ul {
  padding-left: 20px;
  margin: 0;
}
.cram-sheet li {
  margin-bottom: 3px;
}

/* Paragraph styles */
.cram-sheet p {
  margin: 4px 0;
}

.question-list ul {
  padding-left: 20px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.edit-link {
  all: unset;
  margin-right: 10px;
  display: inline-block;
  color: #493DC7;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  background-color: transparent;  /* 👈 ensures no background */
  border: none;
  box-shadow: none;
  padding: 0;
  transition: color 0.3s ease, text-decoration 0.3s ease, transform 0.2s ease;
}

.edit-link:hover,
.edit-link:focus {
  color: #322A88;
  text-decoration: underline;
  transform: translateY(-2px);
  background-color: transparent;  /* 👈 prevents hover background */
  box-shadow: none;
  outline: none;
}

.form-input-style {
  font-family: 'Inter', sans-serif;
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  background-color: #fff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease;
  box-sizing: border-box;  /* 🔥 ensures padding doesn't overflow */
  max-width: 100%;         /* just to be safe */
}

.form-input-style:focus {
  border-color: #493DC7;
  outline: none;
}


/* create-cram-hub.html styling */
#hub-form label{
  font-weight: bold;
}

.pending-file-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 12px;
  margin-bottom: 8px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* quiz.html */

/* .button-link */

#quiz-container {
  display: flex;
  justify-content: center;
  padding: 2rem;
}


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

/* Answer Buttons */
.answer-btn {
  background-color: #f9f9f9;
  color: #222;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.answer-btn:hover:not(:disabled) {
  background-color: #f0f0f0;
}

.answer-btn.correct {
  border-color: #28a745;
  background-color: #e6ffe6;
}

.answer-btn.wrong {
  border-color: #dc3545;
  background-color: #ffe6e6;
}

.answer-btn:disabled {
  opacity: 0.95;
  cursor: not-allowed;
}

/* home.html */
.home-welcome {
  text-align: center;
  margin: 1.5rem 0 2rem;
}

.home-welcome h2 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
  color: #493DC7;
}

.welcome-text {
  font-size: 1.2rem;
  color: #666;
}
.typing-text {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  position: relative;
  animation: typing 5.5s steps(40, end) forwards;
}

.typing-text::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background-color: #493DC7;
  animation: cursor-hide 0.1s forwards;
  animation-delay: 1.1s;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes cursor-hide {
  to { opacity: 0; }
}

/* Create Cram Hub Section */
.home-create-cram-hub-container {
  background: linear-gradient(135deg, #f5f7ff 0%, #e7e5fa 100%);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 0 auto 3.5rem;
  max-width: 1200px;
  box-shadow: 0 12px 40px rgba(73, 61, 199, 0.12);
}

.create-hub-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.create-hub-text {
  flex: 1;
}

.create-hub-text h3 {
  font-size: 2.2rem;
  color: #493DC7;
  margin-bottom: 1rem;
}

.create-hub-text p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: #555;
  max-width: 550px;
}

.create-hub-button {
  display: inline-block;
  background-color: #493DC7;
  color: white;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(73, 61, 199, 0.15);
}

.create-hub-button:hover {
  background-color: #322A88;
  transform: translateY(-2px);
}

.create-hub-image {
  flex: 0 0 220px;
  text-align: center;
}

.create-hub-image i {
  font-size: 8rem;
  color: #493DC7;
  opacity: 0.85;
}

/* Action Cards Section */
.home-flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.home-card {
  flex: 1 1 0;
  min-width: 0;
  background: linear-gradient(135deg, #f5f7ff 0%, #e7e5fa 100%);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(73, 61, 199, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-card h3 {
  color: #493DC7;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  gap: 0.6rem;
}

.home-card i {
  font-size: 1.4rem;
  color: #493DC7;
  opacity: 0.8;
}

.home-card p {
  margin-bottom: 2rem;
  color: #555;
  font-size: 1.1rem;
}

.card-link {
  display: inline-block;
  background-color: #493DC7;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: center;
}

.card-link:hover {
  background-color: #322A88;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .create-hub-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .home-flex-container {
    flex-direction: column;
    align-items: center;
  }

  .create-hub-image {
    margin-bottom: 1.5rem;
  }
}
