* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #292e35;
  background-color: white;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  /* background-color: white; */
}

.home_img {
  width: 50%;
  height: 75%;
  aspect-ratio: 57/31;
}

.logo img {
  width: 150px;
}

.about_info_img {
  width: 70%;
  height: 70%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: #292e35;
  text-decoration: none;
  font-size: 16px;
}

.nav-links a:hover {
  color: #28618c;
}

.signup-btn {
  background-color: #0c4c6f;
  color: white !important;
  padding: 12px 22px;
  border-radius: 400%;
}

.hero {
  background-color: var(--background, #ffffff);
  color: var(--text, #292e35);
  display: flex;
  align-items: center;
  padding: 60px 42px;
}

.hero-content {
  align-items: center;
  width: 35%;
  display: flex;
  flex-direction: column;
  /* padding-left: 20px; */
  justify-content: center;
  /* max-width: 650px; */
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero p {
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.main-btn {
  display: inline-block;
  background-color: #062c50;
  color: #ffffff;
  padding: 2px 2px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  width: 230px;
  height: 50px;
  justify-content: center;
  align-items: center;
  /* margin-left: 50%; */
}

.main-content {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.about_info_img {
  justify-content: center;
  align-items: center;
  width: 90%;
  margin-bottom: 12px;
}

.img-column {
  width: 65%;
  /* padding: 20px; */
}

.img-column img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -20px;
  padding: 25px;
}
/* About */
.about {
  padding: 80px 8%;
  text-align: center;
}

.main-btn {
  margin-top: 28px;
}

.about h2 {
  font-size: 32px;
}

.about p {
  max-width: 700px;
  margin: 15px auto;
  line-height: 1.8;
  color: #606873;
}

footer {
  background-color: #082c50;
  color: white;
  text-align: center;
  padding: 20px;
}

@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero {
    padding: 80px 6%;
  }

  .hero h1 {
    font-size: 36px;
  }
}

.signin-page {
  min-height: 650px;
  padding: 75px 20px;
  background-color: #f3f6fa;
}

.signin-box {
  background-color: white;
  width: 50%;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid #e2e7ee;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(8, 44, 80, 0.06);
  background-color: #edf4fb;
}

.signin-box h1 {
  color: #082c50;
  margin-top: 0;
  margin-bottom: 10px;
}

.signin-box p {
  color: #606873;
  line-height: 1.5;
}

.signin-box form {
  margin-top: 12px;
}

.signin-box label {
  display: block;
  margin: 18px 0 8px;
  font-weight: bold;
}

.signin-box input {
  display: block;
  width: 100%;
  padding: 13px;
  border: 1px solid #bfc9d4;
  border-radius: 7px;
  font: inherit;
}

.signin-box input:focus {
  outline: 2px solid #28618c;
  outline-offset: 1px;
}

.signin-button {
  width: 100%;
  margin-top: 26px;
  padding: 14px;
  border: none;
  border-radius: 25px;
  background: #082c50;
  color: white;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.signin-button:hover {
  background-color: #28618c;
}

.signin-box .signin-message {
  color: #28618c;
  font-size: 14px;
}

.signin-box .signin-note {
  margin-top: 25px;
  font-size: 14px;
}

.signin-box > a {
  color: #28618c;
}

.signin-box textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #bfc9d4;
  border-radius: 7px;
  font: inherit;
  resize: vertical;
}

.signin-box textarea:focus {
  outline: 2px solid #28618c;
  outline-offset: 1px;
}

.signin-box p a {
  color: #28618c;
}

.dashboard {
  background-color: #f3f6fa;
  padding: 50px 8%;
  min-height: 100vh;
}

.dashboard-header {
  margin-bottom: 30px;
}

.dashboard-header h1 {
  color: #082c50;
  font-size: 36px;
  margin-bottom: 10px;
}

.dashboard-header p {
  color: #606873;
  font-size: 17px;
}

.dashboard-banner {
  background-color: #082c50;
  color: white;
  padding: 45px;
  border-radius: 14px;
  margin-bottom: 45px;
}

.dashboard-banner h2 {
  font-size: 30px;
  margin-top: 0;
}

.dashboard-banner p {
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 25px;
}

.dashboard-section {
  margin-bottom: 45px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-heading h2 {
  color: #082c50;
  font-size: 26px;
}

.section-heading a {
  color: #28618c;
  text-decoration: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.dashboard-card {
  background-color: white;
  border: 1px solid #e2e7ee;
  border-radius: 12px;
  padding: 28px;
}

.dashboard-card h3 {
  color: #082c50;
  font-size: 20px;
  margin: 15px 0;
}

.dashboard-card p {
  color: #606873;
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  margin-top: 15px;
  padding: 11px 20px;
  border-radius: 25px;
  background-color: #082c50;
  color: white;
  text-decoration: none;
}

.card-link:hover {
  background-color: #28618c;
}

.progress-bar {
  height: 10px;
  background-color: #e2e7ee;
  border-radius: 10px;
  margin-top: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 100%;
  background-color: #28618c;
}

@media (max-width: 700px) {
  .dashboard {
    padding: 30px 6%;
  }

  .dashboard-header h1 {
    font-size: 28px;
  }

  .dashboard-banner {
    padding: 25px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Learn page */
.learn-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 30px;
  margin-bottom: 35px;
  background: #082c50;
  color: white;
  border-radius: 14px;
}

.learn-intro h2 {
  margin-top: 0;
}

.learn-intro p {
  line-height: 1.6;
  max-width: 550px;
}

.learn-count {
  min-width: 170px;
  text-align: center;
}

.learn-count strong {
  display: block;
  font-size: 30px;
}

.learn-count span {
  font-size: 14px;
}

.module-status {
  display: inline-block;
  margin-bottom: 0;
  padding: 7px 12px;
  border-radius: 16px;
  background: #e7f1f8;
  color: #082c50 !important;
  font-weight: bold;
  font-size: 13px;
}

.learn-note {
  color: #606873;
  font-size: 14px;
}

.nav-links a[aria-current="page"] {
  color: #28618c;
  font-weight: bold;
}

@media (max-width: 700px) {
  .learn-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .learn-count {
    text-align: left;
  }
}

.connect-search {
  background-color: white;
  border: 1px solid #e2e7ee;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 35px;
}

.connect-search label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
  color: #082c50;
}

.connect-search input {
  width: 100%;
  padding: 13px;
  border: 1px solid #bfc9d4;
  border-radius: 7px;
  font: inherit;
}

.connect-search input:focus {
  outline: 2px solid #28618c;
}

.coffee-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.coffee-form label,
.discussion-form label {
  display: block;
  margin: 20px 0 8px;
  font-weight: bold;
}

.coffee-form input,
.coffee-form select,
.coffee-form textarea,
.discussion-form input,
.discussion-form select,
.discussion-form textarea {
  width: 100%;
  padding: 12px;
  font: inherit;
  border: 1px solid #bfc9d4;
  border-radius: 7px;
}

.coffee-form input:focus,
.coffee-form select:focus,
.coffee-form textarea:focus,
.discussion-form input:focus,
.discussion-form select:focus,
.discussion-form textarea:focus {
  outline: 2px solid #28618c;
}

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

.discussion-list {
  display: grid;
  gap: 20px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.profile-form label {
  display: block;
  margin: 18px 0 8px;
  font-weight: bold;
}

.profile-form input,
.profile-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #bfc9d4;
  border-radius: 7px;
  font: inherit;
}

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

.profile-preview-card {
  text-align: center;
}

.profile-picture-preview {
  margin: 20px auto;
}

#profile-picture-preview {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e7f1f8;
  margin: 0 auto;
}

#profile-name {
  color: #082c50;
  font-size: 24px;
  margin-top: 15px;
}

.profile-preview-card p {
  text-align: center;
}

#edit-picture {
  padding: 12px;
  background-color: #f3f6fa;
  cursor: pointer;
}

.profile-preview-card [hidden] {
  display: none !important;
}

.member-card {
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.member-picture {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e7f1f8;
  display: block;
  margin: 0 auto 15px;
}

.member-card h3 {
  color: #082c50;
  margin-bottom: 8px;
}

.member-card .member-role {
  font-weight: bold;
  color: #28618c;
}

.member-card p {
  margin: 8px 0;
}

.member-card[hidden],
#no-search-results[hidden] {
  display: none !important;
}

.signin-button:disabled {
  background-color: #bfc9d4;
  color: #606873;
  cursor: not-allowed;
  opacity: 0.7;
}

.coffee-form select:disabled {
  background-color: #f3f6fa;
  color: #606873;
  cursor: not-allowed;
}

.entry-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 35px;
}
.entry-secondary {
  color: #082c50;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid #8da5bc;
  border-radius: 25px;
}

.entry-secondary:hover {
  background-color: #eaf3f9;
}

html[data-theme="dark"] .entry-secondary {
  color: #f1f6fc;
  border-color: #8da5bc;
}

html[data-theme="dark"] .entry-secondary:hover {
  background-color: #263e58;
}

/* Application page */
.application-page {
  min-height: 100vh;
  background-color: #f3f6fa;
  padding: 60px 20px;
}

.application-container {
  max-width: 850px;
  margin: 0 auto;
  background: white;
  padding: 45px;
  border: 1px solid #e2e7ee;
  border-radius: 14px;
}

.application-head {
  margin-bottom: 30px;
}

.application-head h1 {
  font-size: 36px;
  color: #082c50;
  margin: 0 0 12px;
}

.application-head p,
.application-subtitle {
  color: #606873;
  line-height: 1.6;
}

.application-progress {
  margin-bottom: 35px;
  font-weight: bold;
  color: #28618c;
}

.application-track {
  height: 8px;
  margin-top: 12px;
  background-color: #e2e7ee;
  border-radius: 10px;
  overflow: hidden;
}

#application-progress-fill {
  height: 100%;
  background-color: #28618c;
  width: 33.33%;
}

.application-step h2 {
  color: #082c50;
  font-size: 25px;
  margin-bottom: 8px;
}

.application-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 25px;
}

.application-grid label,
.application-field label,
.invitation-section label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 14px;
}

.application-grid input,
.application-grid select,
.application-field input,
.application-field textarea,
.invitation-section input {
  width: 100%;
  padding: 13px;
  border: 1px solid #bfc9d4;
  border-radius: 7px;
  font: inherit;
  background-color: white;
}

.application-grid input:focus,
.application-grid select:focus,
.application-field input:focus,
.application-field textarea:focus,
.invitation-section input:focus {
  outline: 2px solid #28618c;
  outline-offset: 1px;
}

.invitation-section,
.application-field {
  margin-top: 28px;
}

.funding-section {
  margin-top: 30px;
  padding: 25px;
  border: 1px solid #e2e7ee;
  border-radius: 12px;
}

.funding-section h3 {
  margin-top: 0;
  color: #082c50;
}

.application-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 35px;
}

.application-next,
.application-back {
  border-radius: 25px;
  padding: 13px 28px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.application-next {
  background-color: #082c50;
  color: white;
  border: none;
}

.application-back {
  background-color: white;
  color: #082c50;
  border: 1px solid #bfc9d4;
}

.application-step[hidden],
.application-actions [hidden],
.application-complete[hidden] {
  display: none !important;
}

.application-complete h2 {
  color: #082c50;
}

.application-complete p {
  line-height: 1.7;
}

@media (max-width: 700px) {
  .application-container {
    padding: 25px;
  }

  .application-grid {
    grid-template-columns: 1fr;
  }

  .application-head h1 {
    font-size: 28px;
  }
}

.dashboard-hero {
  border-radius: 18px;
  padding: 50px;
}

.dashboard-eyebrow {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #b8d7eb;
}

.dashboard-hero h2 {
  font-size: 34px;
  margin: 15px 0;
}

.calendar-dashboard-card {
  background: white;
  padding: 28px;
  border: 1px solid #e2e7ee;
  border-radius: 14px;
}

.calendar-top h3 {
  margin: 0;
  color: #082c50;
  font-size: 22px;
}

.calendar-top p {
  color: #606873;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-weekdays {
  margin-top: 30px;
  margin-bottom: 12px;
  text-align: center;
  font-size: 13px;
  color: #606873;
}

.calendar-day {
  min-height: 58px;
  border: 1px solid #e2e7ee;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #292e35;
  background-color: white;
}

.calendar-day.today {
  background-color: #082c50;
  color: white;
  font-weight: bold;
}

.calendar-day.empty {
  border: none;
  background: transparent;
}

.calendar-upcoming {
  border-top: 1px solid #e2e7ee;
  margin-top: 25px;
  padding-top: 20px;
}

.calendar-upcoming h3 {
  color: #082c50;
}

.calendar-upcoming p {
  color: #606873;
}

/* Responsive dashboard */

@media (max-width: 800px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    padding: 30px;
  }

  .calendar-dashboard-card {
    padding: 15px;
  }

  .calendar-weekdays,
  .calendar-days {
    gap: 4px;
  }

  .calendar-day {
    min-height: 42px;
    font-size: 13px;
  }
}

.full-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}

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

.full-calendar-header h2 {
  color: #082c50;
  font-size: 24px;
  margin: 0;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-controls button {
  background: white;
  color: #082c50;
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
}

.calendar-controls button:hover {
  background-color: #eaf3f9;
}

#full-calendar-days .calendar-day {
  min-height: 76px;
  cursor: pointer;
  font: inherit;
}

#full-calendar-days button.calendar-day:hover {
  border-color: #28618c;
  background: #eaf3f9;
}

#full-calendar-days .calendar-day.selected {
  background: #dceaf5;
  color: #082c50;
  border: 2px solid #28618c;
  font-weight: bold;
}

#full-calendar-days .calendar-day.today.selected {
  background: #082c50;
  color: white;
}

.calendar-details h2 {
  color: #082c50;
  margin-top: 0;
}

.calendar-detail-actions {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .full-calendar-layout {
    grid-template-columns: 1fr;
  }

  .full-calendar-header {
    flex-wrap: wrap;
  }

  #full-calendar-days .calendar-day {
    min-height: 48px;
  }
}

.picture-drop-zone {
  border: 2px dashed #b5c8d8;
  border-radius: 12px;
  padding: 30px 20px;
  background-color: #f5f9fc;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}

.picture-drop-zone:hover,
.picture-drop-zone.drag-over {
  border-color: #28618c;
  background-color: #e8f2f9;
}

.picture-upload-icon {
  font-size: 36px;
  font-weight: bold;
  color: #28618c;
  margin-bottom: 10px;
}

.picture-drop-zone strong {
  display: block;
  color: #082c50;
}

.picture-drop-zone p {
  margin: 10px 0;
  color: #606873;
}

.picture-drop-zone small {
  color: #606873;
}

.picture-drop-zone input {
  margin-top: 18px;
  max-width: 100%;
}

.picture-editor {
  width: min(430px, 95vw);
  max-height: 90vh;
  overflow-y: auto;
  border: none;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.picture-editor::backdrop {
  background: rgba(0, 20, 40, 0.65);
}

.picture-editor h2 {
  color: #082c50;
  margin-top: 0;
}

.picture-editor p {
  color: #606873;
  line-height: 1.5;
}

.crop-area {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

#crop-canvas {
  width: min(320px, 100%);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  background-color: #e8edf2;
}

#crop-canvas:active {
  cursor: grabbing;
}

#crop-zoom {
  display: block;
  width: 100%;
  margin: 15px 0 25px;
  accent-color: #28618c;
}

.crop-actions {
  display: flex;
  gap: 12px;
}

.crop-actions button {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 13px;
  font: inherit;
  cursor: pointer;
}

#crop-cancel {
  background: #e8edf2;
  color: #082c50;
}

#crop-apply {
  background: #082c50;
  color: white;
}

#crop-apply:hover {
  background: #28618c;
}

html,
body {
  background-color: var(--background, #ffffff);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border-radius: 100px;
  font: 500 14px "Roboto", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}

.btn-google-pill {
  background: #fff;
  border: 1px solid #dadce0;
  color: #3c4043;
}
.btn-google-pill:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px rgba(60, 64, 67, 0.15);
}

.btn-blue-pill {
  background: #082c50;
  border: none;
  color: #fff;
}
.btn-blue-pill:hover {
  background: #28618c;
}
