@charset "utf-8";
/* --- Global --- */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-color: aliceblue;
  font-family: Aptos-Display;
}

.content {
  margin-top: 280px;
  font-family: Aptos-Display;
}
/* Style tab links */
.tablink {
  background-color: #979797;
  color: rgb(255, 255, 255);
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  height: 60px;
  font-size: 17px;
  width: 33.33%;
  font-family: Roboto-Bold;
  text-decoration: none;
  text-align: center;
}
a .tablink{
  vertical-align: middle;
  text-align: center;
  justify-content: center;
  margin: auto;
}
.tablink:hover {
  background-color: #777;
}
/* Style the tab content (and add height:100% for full page content) */
.tabcontent {
  color: rgb(31, 31, 31);
  display: none;
  padding: 50px 20px;
  height: 100%;
}
.tablink.active {
    background: dodgerblue;
    color: white;
}
.tabcontent h2{
  text-align: center;
  background-color: dodgerblue;
  color: white;
  width: 100%;
  padding: 10px;
}
form {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
}
.filter-box input{
  padding: 10px;
  margin: 20px 0px;
  width: 300px;
}

.filter-box button{
  background-color: #3498db;
  padding: 12px 40px;
  margin-left: 20px;
  border: none;
  color: white;
  cursor: pointer;
}
.doc-list {
  display:flex; 
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px; 
}
.doc-item { 
  background:#fff; 
  border-radius:6px; 
  padding: 20px; 
  box-shadow:0 2px 6px rgba(0, 0, 0, 0.164); 
  display:flex; 
  justify-content:space-between; 
  align-items:center;
  flex: 0 0 calc(50% - 20px); /* 2 columns */
  box-sizing: border-box;
  min-height: 200px;

}
.doc-meta { 
  max-width:65%;
}
.doc-title { 
  font-weight:600; 
  margin:0 0 20px 0; 
  line-height: 1.6;
}
.doc-sub { 
  color:#666; 
  font-size:14px; 
  margin:0; 
}
.doc-actions { 
  text-align:center;
}
.btn { 
  display:inline-block; 
  padding:10px 10px; 
  border-radius:6px; 
  text-decoration:none; 
  color:#fff; 
  background:#3498db; 
  margin: 10px;
  width: 120px;
}
.btn-outline { 
  background:transparent; 
  border:1px solid #3498db; 
  color:#3498db; 
}
.missing { 
  color:#c0392b; 
  font-weight:600; 
}
.empty-note { 
  color:#666; 
  padding:18px; 
  background:#fff; 
  border-radius:6px; 
  text-align:center; 
}
.pagination{
  text-align: center;
  margin-top: 40px;
}
.pagination .pg{
  margin: 5px ;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 4px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
}
@media screen and (max-width:800px) {
  .content {
    margin-top: 150px;
  }
  .filter-box input{
    width: 200px;
  }
}
/* MOBILE (max-width: 768px) */
@media (max-width: 768px) {

  .doc-list {
    flex-direction: column;
    gap: 20px;
  }
  .doc-meta { 
    max-width:100%;
  }
  .doc-item {
    flex: 0 0 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    min-height: auto;
  }

  .doc-actions {
    margin-top: 15px;
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .doc-actions .btn {
    flex: 1;
    text-align: center;
  }
}

/* VERY SMALL PHONES (max-width: 480px) */
@media (max-width: 480px) {

  .doc-item {
    padding: 15px;
  }

  .doc-actions {
    flex-direction: column;
  }

  .doc-actions .btn {
    width: 100%;
  }
}


