* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', sans-serif;
  background-color: #eceff1;
  
}


nav {
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.2);
  margin: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

/* LOGO CONTAINER */


.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* Container */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: 'Poppins', sans-serif;
}

/* TOP (BIM) */
.logo-text .top {
  font-size: 2rem;
  font-weight: 750;
  color: #1a237e;
  letter-spacing: 2px;
}

/* BOTTOM LINE */
.logo-text .bottom {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* LIBRARY */
.logo-text .library {
  font-size: 1.2rem;
  font-weight: 700;
  color: #3949ab;
}

/* HUB (with background only) */
.logo-text .hub {
  font-size: 1rem;
  font-weight: 700;
  background: #1a237e;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Hover */
.logo:hover {
  transform: scale(1.05);
  transition: 0.3s;
}

.logo img {
  height: 75px;
}

/* ICON (BIM GRID STYLE) */
.logo-icon {
  font-size: 28px;
  color: #3949ab;
  background: #e8eaf6;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: bold;
}


.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-icon span {
  width: 25px;
  height: 3px;
  background-color: #1a237e;
  border-radius: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: #1a237e;
  font-weight: 600;
}

/* ===== SEARCH HEADING — BADGE STYLE ===== */

.search-heading.badge-style h1 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e1e2f;
  line-height: 1.3;
  text-align: center;

}

.search-heading.badge-style p {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  max-width: 760px;
  margin: auto;
  text-align: center;
}

/* ================= SEARCH SECTION ================= */

.search-section {
  width: 62.5%;
  display: flex;
  justify-content: center;
  margin: 20px auto;
  flex-wrap: wrap;
 }

.search-form {
  display: flex;
  width: 100%;
  max-width: 700px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.search-form input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  font-size: 1rem;
  outline: none;
  font-family: 'Quicksand', sans-serif;
}

.search-form button {
  padding: 0 15px;
  background: #3949ab;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.search-form button:hover {
  background: #303f9f;
  transform: scale(1.05);
}

.search-form button i {
  font-size: 18px;
}

/*login-register button */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}


.auth-buttons a {
  text-decoration: none;
  padding: 6px 10px;
  background-color: #1a237e;
  color: white;
  border-radius: 4px;
  font-size: 0.85rem;
}


/* General Layout */
.content-section {
  width: 62.5%;
  margin: 20px auto;
  padding: 40px 20px;
  background-color: #f9fbff;
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

}




/* Title Style */
.page-title {
  text-align: center;
  font-size: 2.5rem;
  color: #1a237e;
  margin-bottom: 40px;
  font-weight: bold;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  color: #1e1e2f;
}

/* Card container grid */
  .card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 0;
    list-style: none;
    max-width: 1000px;
    margin: 0 auto;
    
  }
  

/* Card style */
.card-main a {
  background: rgb(255, 255, 255);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: #1e1e2f;
  font-size: 1.2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  height: 125x;
}
.card a {
  background: rgb(255, 255, 255);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: #1e1e2f;
  font-size: 1.2rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  height: 150px;
}

/* Hover effect */
.card a:hover {
  background-color: #f8f9ff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: #dbeafe;
}
.card-main a:hover {
  background-color: #f8f9ff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
  border-color: #dbeafe;
}

.arrow-icon {
  width: 24px;
  height: 24px;
  stroke: #6b7280;
  transition: transform 0.2s ease;
}

.card a:hover .arrow-icon {
  transform: translateX(5px);
}

.card-main a:hover .arrow-icon {
  transform: translateX(5px);
}

footer {
  background-color: #1e1e2f;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 16px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  bottom: 0;
  width: 100%;
}


/* footer */

/* ===== FOOTER ===== */

.site-footer {
  background: #2f3e46;
  color: #ffffff;
  padding: 50px 20px 30px;
  font-family: 'Quicksand', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Columns */
.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-column ul li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Center */
.footer-column.center {
  text-align: center;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 26px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  background: #4f772d;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-4px) scale(1.05);
  background: #6a994e;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Brand hover colors */
.social-icons a:hover .fa-facebook-f { color: #1877f2; }
.social-icons a:hover .fa-instagram { color: #e1306c; }
.social-icons a:hover .fa-linkedin-in { color: #0a66c2; }
.social-icons a:hover .fa-youtube { color: #ff0000; }
.social-icons a:hover .fa-whatsapp { color: #25d366; }

/* Contact */
.footer-column p {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #d1d5db;
}

.footer-column i {
  margin-right: 8px;
  color: #84cc16;
}

/* Copyright */
.footer-copy {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

footer p {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.5px;
  
}

/* Type Card Styling */
.type-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Type Title */
.type-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

/* Image Styling */
.type-image {
  width: 100%;          /* 🔥 IMPORTANT */
  height: 180px;
  object-fit: contain;  /* ✅ show full image */
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
}

/* Placeholder Styling */
.type-placeholder {
  height: 180px;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  border-radius: 12px;
  font-style: italic;
  margin-bottom: 16px;
}

/* View Files Button */
.view-button {
  display: inline-block;
  background-color: #3949ab;
  color: #ffffff;
  padding: 10px 50px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  
}

.view-button:hover {
  background-color: #2563eb;
}


/*login page*/

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-card {
  background-color: #f9fbff;
  padding: 2rem;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-card h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #333;
}

.login-card form p {
  margin-bottom: 1rem;
  text-align: left;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.btn {
  width: 100%;
  padding: 0.75rem;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

.btn:hover {
  background-color: #357ab7;
}

.register-link {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.register-link a {
  color: #4a90e2;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

/*register page*/


.content-section.auth-form {
  background-color: #f9fbff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  
  text-align: center;
  
  transition: all 0.3s ease-in-out;
}

.auth-form h2 {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.8rem;
  font-weight: 600;
}

.auth-form form p {
  text-align: left;
  margin-bottom: 1rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: rgb(255, 255, 255);
  margin-top: 0.3rem;
  box-sizing: border-box;
}

.auth-form input:focus {
  border-color: #4a90e2;
  outline: none;
  background-color: #fff;
}

.btn {
  width: 100%;
  padding: 0.75rem;
  background-color: #4a90e2;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #357ab7;
}

.auth-form p {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.auth-form a {
  color: #4a90e2;
  text-decoration: none;
}

.auth-form a:hover {
  text-decoration: underline;
}

/* file download */

.file-top-image-container {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.file-top-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* recent */
.recent-section {
  width: 62.5%;
  margin: 20px auto;
  padding: 40px 20px;
  background-color: #f9fbff;
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

}

.recent-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  grid-template-columns: repeat(4, 1fr);
}

/* CARD */
.recent-card {
  background: #fff;
  padding: 15px;
  border-radius: 14px;
  text-align: center;

  display: flex;
  flex-direction: column;   /* 🔥 vertical layout */
  justify-content: space-between;

  height: 100%; /* equal height */
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.recent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* IMAGE */
.recent-image {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 10px;
  
}

/* TEXT 
  */
.recent-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* BUTTON */
.recent-btn {

  margin-top: auto;   /* 🔥 push to bottom */
  padding: 10px;
  background: #3949ab;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.recent-btn:hover {
  background: #2c3e9e;
}

/* LOAD MORE */
.recent-load-box {
  text-align: center;
  margin-top: 30px;
}

#loadMoreBtn {
  padding: 12px 25px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}

#loadMoreBtn:hover {
  background: #333;
}

/* HIDDEN */
.hidden {
  display: none;
}

/* 🔥 SEO CONTENT SECTION */
.seo-section {
  width: 62.5%;
    margin: 20px auto;
    padding: 40px 20px;
    background-color: #ffffff;
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #3949ab;
}

/* Title */
.seo-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #222;
}

/* Subheading */
.seo-section h3 {
  font-size: 20px;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #3949ab;
}

/* Paragraph */
.seo-section p {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

/* List */
.seo-section ul {
  padding-left: 20px;
}

.seo-section li {
  margin-bottom: 8px;
}

/* Links */
.seo-section a {
  text-decoration: none;
  color: #3949ab;
  font-weight: 500;
  transition: 0.3s;
}

.seo-section a:hover {
  color: #1a237e;
  text-decoration: underline;
}


@media (max-width: 1100px) {
  .recent-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile styles */
@media (max-width: 916px) {
  
  .menu-icon {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 90px;
    left: 0;
    padding: 1rem 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
  }

  .nav-links.show {
    display: flex;
    
  }
  
  
  .search-heading.badge-style h1 {
    font-size: 1rem;
  }

  .search-heading.badge-style p {
    font-size: 0.9rem;
  }

  .search-form input {
    font-size: 0.9rem;
  }

  .auth-buttons {
    display: none;
  }

  .auth-buttons.show {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    top: 375px;
    position: absolute;
    left: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  

  .search-section.show {
    position: relative;
    top: 350px;
  }


  .search-form {
    max-width: 100%;
  }

  .content-section.show {
    position: relative;
    top: 350px;
  }  

  .section-title {
    font-size: 1.8rem;
  }

  .recent-section.show {
    position: relative;
    top: 350px;
  }  
  
  .login-container.show {
    position: relative;
    top: 350px;
  }  

  .content-section auth-form.show {
    position: relative;
    top: 350px;
  }  

  .site-footer.show {
    position: relative;
    bottom: -350px;
  }

  .site-footer {
    padding: 40px 18px 28px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-column h4 {
    font-size: 1.05rem;
    margin-bottom: 14px;
  }

  /* Menu */
  .footer-column ul li {
    margin-bottom: 9px;
  }

  .footer-column ul li a {
    font-size: 0.95rem;
  }

  /* Social icons */
  .social-icons {
    gap: 14px;
    margin: 16px 0 22px;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }

  /* Contact text */
  .footer-column p {
    font-size: 0.95rem;
    margin-bottom: 9px;
  }

  .footer-column i {
    margin-right: 7px;
  }

  /* Copyright */
  .footer-copy {
    font-size: 0.9rem;
  }

  .recent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* TOP (BIM) */
.logo-text .top {
  font-size: 1.6rem;
}



/* LIBRARY */
.logo-text .library {
  font-size: 0.9rem;
}

/* HUB (with background only) */
.logo-text .hub {
  font-size: 0.75rem;
}

  .logo img {
    height: 60px;
  }
  
  
  /* TEXT */
  .logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a237e;
  }


  .seo-section {
    padding: 20px 15px;
  }

  .seo-section h2 {
    font-size: 22px;
  }

  .seo-section p {
    font-size: 14px;
  }

  .seo-section.show {
    position: relative;
    top: 350px;
  }  
  
  
}

@media (max-width: 600px) {
  .recent-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


@media (max-width: 420px) {

  /* ---------- NAVBAR ---------- */
  nav {
    margin: 0.5rem;
    padding: 0.8rem 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .menu-icon {
    display: flex;
  }

  .nav-links {
    top: 100px;
    padding: 0.8rem 1.2rem;
    gap: 1rem;
    border-radius: 12px;
  }

  .nav-links li a {
    font-size: 0.95rem;
  }

  .search-heading.badge-style h1 {
    font-size: 0.9rem;
  }

  .search-heading.badge-style p {
    font-size: 0.8rem;
  }

  .search-form input {
    font-size: 0.8rem;
  }

  .auth-buttons.show {
    top: 340px;
    padding: 0.8rem 1.2rem;
    flex-direction: column;
    gap: 10px;
    border-radius: 12px;
  }
  
  .search-section {
    width: 80%;
   }
  .search-form {
    border-radius: 12px;
  }

  .search-form input {
    padding: 10px;
    font-size: 0.95rem;
  }


  /* ---------- CONTENT SECTION ---------- */
  .content-section {
    width: 75%;
    padding: 25px 15px;
    top: 350px;
  }

  .recent-section {
    width: 75%;
    padding: 25px 15px;
    top: 350px;
  }


  /* ---------- TITLES ---------- */
  .page-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  /* ---------- CARDS ---------- */
  .card-container {
    gap: 20px;
    
  }

  .card a,
  .card-main a {
    padding: 20px;
    font-size: 1rem;
    height: auto;
  }

  .arrow-icon {
    width: 20px;
    height: 20px;
  }

  /* ---------- TYPE CARDS ---------- */
  .type-card {
    padding: 16px;
  }

  .type-title {
    font-size: 1.05rem;
  }

  .type-image,
  .type-placeholder {
    height: 150px;
  }

  /* ---------- FILE IMAGE ---------- */
  .file-top-image-container {
    height: 220px;
  }

  /* ---------- LOGIN / REGISTER ---------- */
  .login-card,
  .content-section.auth-form {
    padding: 1.5rem;
  }

  .login-card h2,
  .auth-form h2 {
    font-size: 1.5rem;
  }

  /* ---------- FOOTER ---------- */

  .site-footer.show {
    bottom: -350px;
  }

  .site-footer {
    padding: 35px 15px 25px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .footer-column h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  /* Menu links */
  .footer-column ul li {
    margin-bottom: 8px;
  }

  .footer-column ul li a {
    font-size: 0.9rem;
  }

  /* Social icons */
  .social-icons {
    gap: 12px;
    margin: 14px 0 18px;
  }

  .social-icons a {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  /* Contact text */
  .footer-column p {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .footer-column i {
    margin-right: 6px;
  }

  /* Copyright */
  .footer-copy {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .seo-section {
    width: 75%;
    padding: 25px 15px;
  }
}
