/* -------------------------
       Simple reset
       ------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  line-height: 1.5;
  color: #0f1724;
  background: #fff;
}

/* -------------------------
       Utility
       ------------------------- */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}
.flex {
  display: flex;
}
.center {
  display: flex;
  align-items: center;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

/* -------------------------
       Header
       ------------------------- */
header {
  border-bottom: 1px solid #e6edf3;
  background: #fff;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  width: 48px;
  height: 60px;
  border-radius: 8px;
  color: white;
  font-weight: 700;
}
nav a {
  margin-left: 18px;
  color: #0f1724;
  text-decoration: none;
  font-weight: 600;
}
.cta-sub {
  background: #0f1724;
  color: #fff;
}

/* -------------------------
       Hero
       ------------------------- */
.hero {
  padding: 56px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
.hero h1 {
  font-size: 32px;
  margin: 0 0 12px;
  color: #0b1220;
}
.lead {
  color: #334155;
  font-size: 16px;
  margin-bottom: 18px;
}
.signup {
  background: #dcfaff;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e6eef4;
}
.email-row {
  display: flex;
  gap: 8px;
}
input[type="email"] {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d1e5ef;
  font-size: 15px;
}
.meta {
  font-size: 13px;
  color: #64748b;
  margin-top: 10px;
}

/* -------------------------
       Highlights / Articles
       ------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.card {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid #eef6fb;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}
.card h3 {
  margin: 0 0 8px;
}
.card p {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

/*success modal of subscription*/
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background: white;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  width: 300px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-btn {
  background: #013966;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  margin-top: 15px;
  cursor: pointer;
}

/*bookes i read*/

.books-section {
  width: 100%;
  padding: 20px 0;
  font-family: Arial, sans-serif;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.section-title span {
  font-style: italic;
}

.books-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.book-card {
  width: 170px;
  min-width: 170px;
}

.book-cover {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  background: #f0f0f0;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-title {
  font-size: 16px;
  margin: 10px 0 4px;
  font-weight: 600;
}

.book-author {
  font-size: 14px;
  color: #555;
  margin-bottom: 4px;
}

.book-rating {
  font-size: 14px;
  color: #a55;
  font-weight: 600;
}
/*bookes i read*/

/*engineering network slide */
.connections-section {
  text-align: center;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.connections-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 35px;
}

.connections-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.logo-slider {
  display: flex;
  align-items: center;
  gap: 0px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  max-width: 80%;
  scrollbar-width: none; /* Firefox */
}

.logo-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.logo-slider img {
  height: 80px;
  object-fit: contain;
  transition: transform 0.2s ease;
  margin-right: 40px;
}

.logo-slider img:hover {
  transform: scale(1.1);
}

/* Arrow buttons */
.arrow-btn {
  background: #e5e9f0;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.arrow-btn:hover {
  background: #d0d5dc;
}

/* ---------- RESPONSIVE DESIGN ---------- */

/* Medium screens */
@media (max-width: 992px) {
  .logo-slider {
    max-width: 85%;
    gap: 30px;
  }

  .logo-slider img {
    height: 50px;
  }
}

/* Small screens */
@media (max-width: 768px) {
  .connections-title {
    font-size: 22px;
  }

  .arrow-btn {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .logo-slider img {
    height: 45px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .logo-slider {
    max-width: 90%;
    gap: 20px;
  }

  .logo-slider img {
    height: 40px;
  }
}
/*engineering network slide */

/*success modal of subscription*/

/* -------------------------
       Footer
       ------------------------- */
footer {
  border-top: 1px solid #e6edf3;
  margin-top: 48px;
  padding: 28px 0;
  color: #64748b;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* -------------------------
       Responsive
       ------------------------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  nav a {
    display: none;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding: 0 12px;
  }
  .logo {
    width: 40px;
    height: 40px;
  }
  .hero h1 {
    font-size: 24px;
  }
}
