/* Footer Banew Theme - Standalone CSS untuk Upload Admin */
/* Jurnal Teknik Sipil dan Lingkungan IPB */
/* Disesuaikan dengan warna existing: Header #800020, Footer #213782 */

/* Main Footer Styles - menggunakan warna footer existing */
.eds-c-footer {
  background: #213782;
  position: relative;
  min-height: auto;
  padding: 10px 0;
  color: #ffffff;
  font-family: 'Merriweather Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

/* Pattern background sesuai existing */
.eds-c-footer::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  height: 65px;
  background-image: url('https://www.ipb.ac.id/wp-content/uploads/2019/02/agrobhuana_footer-scaled.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Konten footer di atas pattern */
.eds-c-footer > * {
  position: relative;
  z-index: 2;
}

/* Table Structure */
.main-table {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: 0;
  border-collapse: collapse;
}

.content-table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
}

.content-row {
  display: table-row;
  width: 100%;
}

.content-row td {
  vertical-align: top;
  padding: 0.2rem;
  width: 33.333%;
}

/* Logo Container - disesuaikan dengan sidebar color scheme */
.logo-container {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid #EFF3C4;
  backdrop-filter: blur(5px);
  padding: 0.2rem;
}

.logo-img {
  width: 300px;
  height: 200px;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  object-fit: contain;
}

.logo-container:hover .logo-img {
  transform: scale(1.05);
}

/* Map Container - menggunakan accent color EB6C25 */
.map-container {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid #EFF3C4;
  backdrop-filter: blur(5px);
  padding: 0.2rem;
}

.map-frame {
  border: 2px solid #EB6C25;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 300px;
  height: 200px;
  max-width: 100%;
  transition: border-color 0.3s ease;
}

.map-container:hover .map-frame {
  border-color: #EFF3C4;
}

/* Info Container - menggunakan warna sidebar existing */
.info-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid #EFF3C4;
  backdrop-filter: blur(5px);
  padding: 0.2rem;
}

.info-text {
  line-height: 1.4;
  font-size: 0.9rem;
  color: #ffffff;
}

.info-text p {
  margin-bottom: 1rem;
}

.info-text strong {
  font-weight: 700;
  color: #ffffff;
}

/* Footer Links - menggunakan warna existing EFF3C4 dan EB6C25 */
.eds-c-footer a,
.info-text a {
  color: #EFF3C4 !important;
  text-decoration: none;
  border-bottom: 1px dotted #EFF3C4;
  transition: all 0.3s ease;
}

.eds-c-footer a:hover,
.info-text a:hover {
  color: #EB6C25 !important;
  border-bottom-color: #EB6C25;
  text-decoration: none;
}

.eds-c-footer a:visited,
.info-text a:visited {
  color: #EFF3C4;
}

/* Responsive Design - Tablet */
@media (max-width: 992px) {
  .content-row {
    display: block;
  }
  
  .content-row td {
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .map-frame {
    width: 100%;
    max-width: 400px;
    height: 250px;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
  .footer-banew {
    padding: 1.5rem 0.5rem;
  }
  
  .content-row td {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .map-frame {
    width: 100%;
    max-width: 350px;
    height: 250px;
  }
  
  .logo-img {
    max-width: 150px;
    max-height: 150px;
  }
  
  .info-text {
    text-align: left;
    margin: 0 auto;
    max-width: 400px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .footer-banew {
    padding: 1rem 0.5rem;
  }
  
  .content-row td {
    padding: 0.5rem;
  }
  
  .map-frame {
    max-width: 300px;
    height: 200px;
  }
  
  .logo-img {
    max-width: 120px;
    max-height: 120px;
  }
  
  .info-text {
    font-size: 0.9rem;
  }
}

/* Compatibility dengan HTML table yang ada */
.eds-c-footer table {
  border: 0 !important;
  width: 100%;
}

.eds-c-footer td {
  border: 0 !important;
  vertical-align: top;
}

/* Styling khusus untuk elemen dalam HTML yang diberikan */
.eds-c-footer .main-table {
  background: transparent;
  position: relative;
  z-index: 2;
}

.eds-c-footer .content-table {
  background: transparent;
}

/* Override untuk memastikan warna text tetap putih */
.eds-c-footer * {
  color: inherit;
}

.eds-c-footer span {
  color: #ffffff;
}

/* Tambahan styling untuk konsistensi dengan theme existing */
.eds-c-footer strong {
  color: #EFF3C4;
}

/* Header masthead reference untuk konsistensi */
.app-masthead {
  background: #800020;
}

/* Print styles */
@media print {
  .eds-c-footer {
    background: #213782 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .eds-c-footer::after {
    display: none;
  }
}
/* warna tulisan dan link di sidebar */
.app-journal-nav-sidebar__icon-container {
    background-color: #EB6C25;
}

.app-journal-nav-sidebar__link {
    color: #EB6C25;
}
