/* ====== Global Base Styles ====== */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 0;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ====== Header Styles ====== */
header {
  background-color: #2c2b38;
  color: white;
  padding: 15px 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.header-title-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-button {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #007BFF;
  color: white;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.home-button:hover {
  background-color: #0056b3;
}

.title-pair {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.title-pair h1 {
  font-size: 22px;
  margin: 0;
  color: white;
}



/* ====== Main Container ====== */
.container {
  padding: 15px;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  margin-top: 90px; /* Offset for fixed header */
}

/* ====== Filter Input Styles ====== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
  min-height: 60px;
}

.filters input,
.filters datalist {
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background-color: #fff;
  outline: none;
}

.filters input:focus {
  border-color: #3256db;
  box-shadow: 0 4px 8px rgba(50, 86, 219, 0.2);
}

/* ====== Download Area ====== */
.download-area {
  position: relative;
}

.download-area h2 {
  text-align: center;
  font-size: 22px;
  color: #2315be;
  margin-bottom: 20px;
}

/* ====== Card Container Grid ====== */
.card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

/* ====== Card Styles ====== */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(50, 86, 219, 0.15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  border-top: 4px solid #3256db;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(50, 86, 219, 0.25);
}

.card h3 {
  margin: 10px 0;
  font-size: 18px;
  font-weight: 700;
  color: #06234b;
}

.card p {
  margin: 5px 0;
  font-size: 14px;
  color: #555;
}

.card p strong {
  color: #06234b;
}

/* ====== No Results Message ====== */
.no-results {
  margin-top: 20px;
  text-align: center;
  font-size: 18px;
  color: #666;
  display: none;
}

/* ====== Pagination Buttons ====== */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination button {
  padding: 10px 15px;
  margin: 0 5px;
  border: 1px solid #06234b;
  background-color: #06234b;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.pagination button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* ====== Footer Section ====== */
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background-color: #2c2b38;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  text-align: center;
  gap: 10px;
  position: relative;
}

.footer-text,
.linkedin-icon {
  flex: 1 1 100%;
  text-align: center;
}

.linkedin-icon img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.linkedin-icon:hover img {
  transform: scale(1.1);
}



/* ====== Download Button ====== */
#download-btn {
  margin-top: 20px;
  padding: 10px 15px;
  background-color: #06234b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#download-btn:hover {
  background-color: #06234b;
}

/* ====== Navbar Styling ====== */
.navbar {
  overflow: hidden;
  background-color: #06234b;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar a {
  float: left;
  display: block;
  color: white;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
}

.navbar a:hover {
  background-color: #06234b;
  color: white;
}

/* ====== Heading Style in Header ====== */
h3 {
  margin-top: 0px;
  color: #a1c1f1;
}

/* ====== Responsive Grid Layout ====== */

@media (max-width: 600px) {
  .header-title-wrapper {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .home-button {
    position: static;
    transform: none;
    margin-bottom: 10px;
  }

  .title-pair {
    position: static;
    transform: none;
  }

  .title-pair h1 {
    font-size: 20px;
  }
}



@media (max-width: 768px) {
  .card-container {
    grid-template-columns: repeat(1, 2fr);
  }
}

@media (max-width: 480px) {
  .card-container {
    grid-template-columns: repeat(1, 2fr);
  }
}

@media (max-width: 600px) {
  .filters {
    flex-direction: column;
    align-items: center;
  }
}


@media (min-width: 600px) {
  .footer-text,
  .linkedin-icon {
    flex: 1;
  }
  .footer-text {
    text-align: center;
  }

  .linkedin-icon {
    text-align: right;
  }
}

/* ====== Placeholder Style ====== */
::placeholder {
  font-size: 12px;
  color: #888;
}

/* ====== Landscape Download View for Image Export ====== */
.landscape-download {
  background: white;
  padding: 20px;
  border-radius: 10px;
}

.landscape-download .card-container {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-auto-rows: auto !important;
  gap: 10px !important;
}

.landscape-download .card {
  box-shadow: none !important;
  border: 1px solid #3256db;
  font-size: 13px !important;
  padding: 10px !important;
  margin: 0 !important;
}

.landscape-download #download-area {
  max-width: 100% !important;
  width: 100vw;
  background-color: white !important;
}

.landscape-download .watermark {
  opacity: 0.05 !important;
}
