.nav{
    color: #45618f;
    font-size: 18px;
    margin-right: 30px;
}
body{
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #ffffff;
}

html, body {
    height: 100%;
    margin: 0;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

html { scroll-behavior: smooth; }

header{
    width: 100%;
    height: 100px;
    min-height: 100px;
    /* background-color: #a7def2; */
    background-color: #ececec;
    box-shadow: 0px 5px 5px rgb(195, 195, 195);
    /* background: linear-gradient(180deg,#A7DEF2 0%, #e6f3f7 100%); */
    background: linear-gradient(180deg,#d6d6d6 0%, #f7f7f7 100%);
    color: #45618f;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    align-self: center;
    box-sizing: border-box;

}

.title{
    user-select: none; 
    position: absolute; 
    padding-left: 90px; 
    padding-bottom: 5px; 
    font-family: 'Segoe UI Light', sans-serif; 
    font-weight: 1000;
}

header > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.software-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* two items per row */
    gap: 30px;
    max-width: 1250px;
}
/* .software-item {
    display: flex; 
    align-items: center;
    gap: 16px;
    height: 150px;
    padding: 12px;
    background-color: #edf6f9;
    border-radius: 5px;
    border: 3px solid #A7DEF2;
    margin: 0;
    box-sizing: border-box;
} */

.software-item {
    display: flex; 
    align-items: center;
    gap: 16px;
    height: 100px;
    padding: 12px;
    background-color: #f0f0f0;
    border-radius: 5px;
    /* border: 3px solid #dedede; */
    margin: 0;
    box-sizing: border-box;
    box-shadow: 0px 4px 5px rgb(195, 195, 195);
}

.software-item img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    flex: 0 0 75px;
}

.software-meta {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-right: 8px;
}

.software-meta h3 { margin: 0; font-size: 1.1rem; }
.software-meta p { margin: 0; color: #555; font-size: 0.95rem; }

/* .download-btn {
    flex: 0 0 auto;
    background: #8b4513;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    width: 80px;
} */
.download-btn {
    flex: 0 0 auto;
    background: linear-gradient(180deg, #32b100, #017510);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    width: 80px;
    border: 0;
}
.download-btn:hover {
    background: linear-gradient(180deg, #017510, #32b100);
}

.download-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.download-btn:hover { opacity: 0.9; }
/* ...existing code... */

@media (max-width: 1212px) {
    .software-list { grid-template-columns: 1fr; }
    .software-item { height: auto; flex-direction: column; text-align: center; }
    .nav { flex-direction: column; text-align: center; }
}
@media (max-width: 740px) {
  header { height: auto; padding: 10px; margin-top: -30px; }
  nav { height: auto; flex-direction: column; text-align: center; padding-top: 105px; position: relative; right: 20px; }
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #efefef;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 12px 16px;
  z-index: 1;
  border-radius: 6px;
  border: #d2d1d1 solid 2px;
  right: 0%;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.copyright {
    text-align: center; 
    color: #585858; 
    font-family: Arial, sans-serif;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 5px;
    padding-right: 5px;
    margin: 0;
}

.mailto {
    font-family: Arial, sans-serif;
    color: #585858;
    border-radius: 6px;
    margin-left: 20px;
    position: relative;
}

.contact {
    /* background-color: rgba(243, 243, 243, 0.912);  */
    margin-top: 150px;
    padding: 20px 0;
    border-top: 2px solid #dedede;
    max-height: 150px;
    max-width: 1300px;
    width: 1300px;
    color: #45618f;
    align-self: center;
}

.contact-div {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 3px; 
    padding: 12px 0;
}

#search {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    font-size: 16px;
}

.popup {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* semi-transparent background */
  justify-content: center;
  align-items: center;
}
/* The popup content box */
.popup-content {
  background: white;
  padding: 20px;
  max-width: 1000px;   /* increase this value to make it wider */
  width: 90%;         /* optional: make it responsive */
  max-height: 80vh;   /* keeps it from overflowing the viewport */
  overflow-y: auto;   /* scroll if content is too tall */
  border-radius: 8px;
}

.popup-content h2, 
.popup-content h3 {
  margin-top: 10px;
}

.popup-content p, 
.popup-content li {
  line-height: 1.5;
}
/* Close button */
.close {
  cursor: pointer;
  color: red;
  font-weight: bold;
  float: right;
  font-size: 18px;
}

.popup-content-hidden {
  display: none;
}

.pagination { margin-top: 15px; text-align: center; }
.pagination button {
  margin: 2px;
  padding: 5px 10px;
  cursor: pointer;
  border: 1px solid #ccc;
}
.pagination button.active {
  font-weight: bold;
  background: #8b4513;
  color: white;
  border: 1px solid #8b4513;
}
a {
    color: #0000EE;
}






