/* === GENERAL STYLES === */
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f0f2f5;
  color: #001f3f;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  color: #1c294c;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* === NAVBAR === */
.navbar {
  background: #001f3f;
}

.navbar-brand,
.nav-link {
  color: #fff !important;
}

/* === BUTTONS === */
.btn-cerulean {
  background: #007BA7;
  color: #fff;
}

.btn-cerulean:hover {
  background: #005f80;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(rgba(0, 31, 63, .6), rgba(0, 123, 167, .6)), url('https://picsum.photos/1920/900?dj') center/cover;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0;
}

@media (max-width: 576px) {
  .hero {
    min-height: 80vh;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}
.container {
  display: flex;
  justify-content: center;        /* horizontally centers .container2 */
  align-items: flex-start;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}


/* === CONTAINER (TRUE MASONRY / PINTEREST STYLE) === */
.container2 {
  max-width: 1300px;
  display: inline-block;          /* ? allows shrink-to-content width */
  column-width: 350px;            /* ? each column up to 350px wide */
  column-gap: 5px;               /* ? spacing between columns */
  padding: 5px 0;                /* ? top & bottom spacing */
  margin: 0 auto;                 /* ? centers the entire masonry block */
  background: #f0f2f5;
  text-align: center;             /* ? ensures cards align visually in columns */
  vertical-align: top;            /* ? keeps layout top-aligned */
}


.card {
  display: inline-block;        /* ? Required for masonry flow */
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  margin: 0 0 20px;             /* ? Space between cards (no auto centering) */
  background: #add8e6;
  width: 95%;                   /* ? Slight inset ensures visual centering */
  break-inside: avoid;          /* ? Prevents splitting across columns */
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}

.card:hover {
  transform: translateY(0px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* === CARD HEADER === */
.card h2 {
  text-align: center; /* This will center the text */
  margin: 0;
  font-size: 1.35em;
  color: #005a9c;
  border-bottom: 2px solid #e7ecf7;
  padding-bottom: 0;
  font-weight: 700;
}

.rate {
  display: inline-block;
  background: #007BA7;
  color: #fff;
  padding: 5px 15px; /* More horizontal padding for a pill shape */
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 5px;
}


/* === LEVEL BLOCKS === */
.level {
  margin-bottom: 5px;
}

.level h3 {
  margin: 0 0 5px;
  font-size: 1em;
  color: #444;
  font-weight: 600;
}

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

/* === SKILL ITEMS === */
.level li {
  background: #f9fafc;
  border: 1px solid #e4e7eb;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.level li.completed {
  background: #e8fbe8;
  border-color: #b4e2b4;
  color: #267b26;
}

.level input[type="checkbox"] {
  accent-color: #007BA7;
  transform: scale(1.2);
}

/* === ADD SKILL BUTTON === */
.add-skill-btn {
  background-color: #e0eafc;
  border: 1px dashed #a7c0f0;
  color: #005a9c;
  padding: 8px;
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.add-skill-btn:hover {
  background-color: #d0e0f8;
}

/* === DELETE BUTTON === */
.delete-btn {
  background: none;
  border: none;
  color: #ff3b30;
  cursor: pointer;
  font-size: 1.1em;
  padding: 0 5px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.delete-btn:hover {
  opacity: 1;
}

/* === RESPONSIVE TWEAKS === */
@media (max-width: 992px) {
  .container2 {
    column-width: 300px;
    column-gap: 24px;
    padding: 15px 25px;
    max-width: 1000px;
  }
}

@media (max-width: 576px) {
  .container2 {
    column-width: 100%;
    column-gap: 0;
    padding: 10px 15px;
  }
}

/* === FOOTER === */
footer {
  background: #001f3f;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.social-icons a {
  color: #fff;
  margin: 0 15px;
  font-size: 2rem;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #007BA7;
}

/* === FORM IMPROVEMENTS === */
input,
textarea {
  font-size: 1rem;
}

input[type="email"] {
  inputmode: email;
}

input[type="text"] {
  inputmode: text;
}



