* {
  box-sizing: border-box;
}

/* Pengaturan untuk semua halaman Web */
body {
  font-family: Arial;
  background: #d8d7d7;
  margin: 0;
  padding: 0;
}

/* Judul */
.header-title {
  padding: 30px;
  font-size: 40px;
  text-align: center;
  color: white;
  /* background: white; */
  min-height: 30vh;

  /* Background Foto Gerbang */
  background-image: url('../img/sma1nglames.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Sticky Responsive Navbar with Dropdown*/
/* Top Navbar */
.topnav {
  overflow: hidden;
  background-color: #333;
  z-index: 1;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.active {
  background-color: #04AA6D;
  color: white;
}

.topnav .icon {
  display: none;
}

/* DropDown Style */
.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 17px;    
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  
}

.dropdown-content {
  display: none;
  position: fixed;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #555;
  color: white;
}

.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropbtn-inactive {
  background-color: inherit;
  font-family: inherit;  
}

.dropbtn-active {
  background-color: #04AA6D;
  color: white;
}

/* Membuat Navbar Agar Selalu Diatas */
.sticky {
  position: fixed;
  top: 0;
  width: 100%;
}

/* Content Style */
.content {
  padding: 20px;
}

/* Slider */
.image-container {
  position: relative;
  text-align: center;
  color: white;
}

.image-slider {  
  width: 100%;
  height: 400px;
}

/* Image Description */
.image-description {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  padding: 15px;
}

/* Next & previous buttons */
.prev-btn, .next-btn {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  font-size: 18px;
  background-color: rgba(0,0,0,0.8);
}

/* Position the "next button" to the right */
.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

/* Create two unequal columns that floats next to each other */
/* Left column */
.leftcolumn {   
  float: left;
  width: 65%;
}

/* Right column */
.rightcolumn {
  float: left;
  width: 35%;
  padding-left: 20px;
}

/* Article Card */
.article-container {
  display: flex;
  flex-wrap: wrap;
}

.article-image{
  float: left;
  flex: 40%;
  padding: 0 10px;
  text-align: center;  
}

.article-image img{
  width: 100%;
  max-height: 200px;
  object-fit: cover;  
}

.article-desc{
  float: left;
  flex: 60%;
  padding: 0 10px;
}

.read-more-btn{
  background-color: #008CBA;
  border: none;
  color: white;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  margin: 4px;
  border-radius: 8px;
  cursor: pointer;
}

/* Social Media Icon */
.fa {
  padding: 20px;
  font-size: 30px;
  width: 70px;
  text-align: center;
  text-decoration: none;
  margin: 5px 2px;
  border-radius: 50%;
}

.fa-instagram {
  background: #125688;
  color: white;
}

.fa-facebook {
  background: #3B5998;
  color: white;
}

.fa-youtube {
  background: #bb0000;
  color: white;
}

.fa-whatsapp {
  background: #25D366;
  color: white;
}

.fa-telegram {
  /* padding: 15px;
  font-size: 40px; */
  background: #229ED9;
  color: white;
}

/* Add a card effect for articles */
.card {
   background-color: white;
   padding: 20px;
   margin-top: 20px;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Footer */
.footer {
  padding: 10px 20px;
  font-size: 14px;
  text-align: left;
  color: white;
  background: black;
}

/* Responsive layout */
@media screen and (max-width: 800px) {
  /* Kolom jadi satu */
  .leftcolumn, .rightcolumn {   
    width: 100%;
    padding: 0;
  }

  /* Navbar menjadi dropdown */
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }

  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }

  /* Image Slider */
  .image-slider {
    height: 30vh;
    max-width: 100%;
  }

  /* Article Card */
  .article-image,  .article-desc{
    flex: 100%;
    padding: 0;
  }
}