/* ===== General Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Visually Hidden for Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

body {
  background: #0f172a; /* dark blue */
  color: #e5e7eb; /* light text */
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

/* ===== Header ===== */
header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e293b;
  position: relative;
}

header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #e2e8f0;
}

/* Header Buttons */
.header-buttons {
  position: absolute;
  right: 0;
  top: 5px;
  display: flex;
  gap: 8px;
}

.about-btn {
  font-size: 14px;
  padding: 6px 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
  color: #e5e7eb;
}

.about-btn:hover {
  background: #334155;
}

/* ===== Profile Section ===== */
.profile {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 30px;
}

.highlight {
  background: #1e3a8a;
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-block;
  font-weight: 600;
  color: #e5e7eb;
}

.profile p {
  font-size: 15px;
  line-height: 1.6;
  color: #cbd5f5;
}

/* ===== Contact Buttons ===== */
.contact-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-btn {
  font-size: 14px;
  padding: 6px 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  text-decoration: none;
  color: #e5e7eb;
  transition: 0.2s;
}

.contact-btn:hover {
  background: #334155;
}

/* ===== Search Bar Styling ===== */
input#searchInput[type="text"] {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  display: block;

  padding: 12px 16px;
  margin: 20px 0;

  font-size: 16px;
  border: 2px solid #334155;
  border-radius: 8px;

  background: #020617;
  color: #e5e7eb;
  box-sizing: border-box;
}

/* ===== Blog Cards ===== */
.blog-card {
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  transition: 0.2s;
}

.blog-card:hover {
  background: #020617;
}

.blog-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #e2e8f0;
}

.blog-date {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.blog-content {
  font-size: 16px;
  line-height: 1.6;
  max-height: 80px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #cbd5f5;
}

.view-more {
  margin-top: 12px;
  display: inline-block;
  font-size: 14px;
  color: #60a5fa;
  cursor: pointer;
}

/* ===== Modal ===== */
.modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2,6,23,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-box {
  background: #020617;
  max-width: 600px;
  width: 90%;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  color: #e5e7eb;
}

.modal-box h2 {
  margin-bottom: 12px;
}

.modal-box p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.close-modal {
  margin-top: 15px;
  padding: 6px 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  cursor: pointer;
  color: #e5e7eb;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 15px;
  border-top: 1px solid #1e293b;
  font-size: 14px;
  color: #94a3b8;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  header h1 {
    font-size: 26px;
  }
  .blog-title {
    font-size: 20px;
  }
  .profile p {
    font-size: 14px;
  }
  .header-buttons {
    position: static;
    justify-content: center;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px;
  }
  header h1 {
    font-size: 22px;
  }
  .blog-title {
    font-size: 18px;
  }
  .blog-content {
    font-size: 15px;
  }
  .profile p {
    font-size: 13px;
  }
  .about-btn, .contact-btn {
    font-size: 13px;
    padding: 5px 10px;
  }
}

/* For ul Bullet Dots */
.blog-content ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 10px;
  color: #cbd5f5;
}

/* ===== Visually Hidden (for accessibility) ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
