
.body{
    background-color:  #f8f9fa;
}

.navbar-brand {
    font-size: 20px; 
    font-weight: bold; 
}

span { font-size: 25px; font-weight: bold; }
 span { color: #288ada; }

header {
    height: 100vh;
    background:url('https://i.pinimg.com/1200x/45/0b/11/450b1195c4357c49020bcd5baf7f75b0.jpg') no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}



.galeri-section {
    padding: 60px 0;
    background-color: #f9f9f9;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title span {
    font-size: 30px; font-weight: bold;
    color: #3498db; 
}

.section-subtitle {
    color: #666;
    margin-bottom: 40px;
}


.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
    padding: 0 5%;
}

.galeri-item {
    overflow: hidden;
    border-radius: 12px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: 250px; 
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease; 
    cursor: pointer;
}


.galeri-item img:hover {
    transform: scale(1.1);
}



/* fotter */


.footer-content span {
    color: #3498db; 
}


.footer-links a {
    color: #888;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

/* artikel */
.articles-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)) !important; 
  gap: 20px !important;           
  max-width: 1040px !important;     
  margin: 0 auto !important;  
  padding: 0 20px;     
}

.article-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}

.article-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.article-card img {
  width: 100%;
  height: 180px; 
  object-fit: cover;
}

.article-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-category {
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.cat-tips { color: #ffc107; }
.cat-recom { color: #28a745; }
.cat-health { color: #dc3545; }

.article-card h3 {
  font-size: 1.2rem; 
  font-weight: bold;
  margin: 10px 0;
  line-height: 1.4;
  color: #212529;
}

.article-card p {
  color: #6c757d;
  font-size: 0.92rem; 
  margin-bottom: 20px;
  line-height: 1.5;
}

.article-btn {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
}

.article-btn:hover {
  text-decoration: underline;
}



@media (max-width: 600px) {
    .news-container {
        grid-template-columns: 1fr; 
    }
    .news-image-wrapper {
        height: 200px;
    }
}


