/* File: assets/css/style.css */
/* Custom CSS untuk SD Muhammadiyah Birrul Walidain Kudus */

/* Color Palette - WAJIB */
:root {
  --color-bg: #EAE0CF;
  --color-secondary: #94B4C1;
  --color-accent: #547792;
  --color-header: #000000;
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--color-bg);
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background-color: var(--color-header) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.2rem;
  color: white !important;
}

.navbar-brand img {
  height: 80px;
  margin-right: 10px;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.9) !important;
  margin: 0 10px;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: var(--color-secondary) !important;
}

.navbar-nav .nav-link.active {
  color: var(--color-secondary) !important;
  font-weight: 600;
}

.dropdown-menu {
  background-color: var(--color-header);
  border: none;
}

.dropdown-item {
  color: white !important;
}

.dropdown-item:hover {
  background-color: var(--color-accent);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(33, 52, 72, 0.7), rgba(33, 52, 72, 0.7)), 
              url('../images/halaman.jpeg') center/cover no-repeat;
  color: white;
  padding: 150px 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.btn-primary-custom {
  background-color: var(--color-accent);
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  transition: background-color 0.3s;
}

.btn-primary-custom:hover {
  background-color: var(--color-secondary);
  color: var(--color-header);
}

/* Section Wrapper */
.section-wrapper {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-header);
  font-weight: bold;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--color-accent);
}

/* Card */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  background-color: white;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.card-img-top {
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-title {
  color: var(--color-header);
  font-weight: bold;
  margin-bottom: 15px;
}

.card-text {
  color: #666;
  line-height: 1.6;
}

/* Berita Card */
.berita-card .card-img-top {
  height: 250px;
}

.berita-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
}

.berita-meta i {
  margin-right: 5px;
  color: var(--color-accent);
}

/* Button */
.btn-custom {
  background-color: var(--color-accent);
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
}

.btn-custom:hover {
  background-color: var(--color-header);
  color: white;
}

/* Footer */
footer {
  background-color: var(--color-header);
  color: white;
  padding: 40px 0 20px;
  margin-top: 60px;
}

footer h5 {
  color: var(--color-secondary);
  margin-bottom: 20px;
  font-weight: bold;
}

footer p, footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  line-height: 2;
}

footer a:hover {
  color: var(--color-secondary);
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: var(--color-accent);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: background-color 0.3s;
}

.social-icons a:hover {
  background-color: black;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
}

/* Galeri Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Pagination */
.pagination {
  margin-top: 30px;
  justify-content: center;
}

.pagination .page-link {
  color: var(--color-accent);
  border: 1px solid var(--color-secondary);
}

.pagination .page-link:hover {
  background-color: var(--color-accent);
  color: white;
}

.pagination .page-item.active .page-link {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Contact Form */
.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-form .form-control {
  margin-bottom: 15px;
  border: 2px solid var(--color-secondary);
  border-radius: 5px;
}

.contact-form .form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.2rem rgba(84, 119, 146, 0.25);
}

.contact-info {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  color: var(--color-header);
}

.contact-info h5 {
  margin-bottom: 15px;
  font-weight: bold;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info i {
  margin-right: 10px;
  color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Quick Contact Cards */
.quick-contact-card {
    transition: transform 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.quick-contact-card:hover {
    transform: translateY(-5px);
}

.quick-contact-card .card-body {
    padding: 40px 20px;
}

.quick-contact-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* Contact Info Box */
.contact-info-box {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info-box h4 {
    color: white;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-detail-item i {
    width: 40px;
    font-size: 1.3rem;
    color: white;
    margin-top: 5px;
}

.contact-detail-item div {
    flex: 1;
}

.contact-detail-item h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-detail-item p {
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.5;
}

.contact-detail-item a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-detail-item a:hover {
    color: white;
    text-decoration: underline;
}