/* 
  Project: Website Pondok Pesantren Nururrokhayah
  Theme: Premium Islamic (Deep Green & Gold)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  /* Color Palette */
  --primary-color: #1A5F45;
  /* Deep Emerald Green */
  --primary-dark: #124231;
  --secondary-color: #D4AF37;
  /* Metallic Gold */
  --secondary-light: #F4D06F;
  --background-light: #F8F9FA;
  /* Off-White */
  --text-dark: #2C3E50;
  --text-light: #ECECEC;
  --white: #FFFFFF;

  /* Spacing */
  --section-padding: 4rem 2rem;

  /* Shadows (Glassmorphism/Elevation) */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
  --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--background-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  /* Elegant Serif for Headings */
  color: var(--primary-color);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* --- Utility Classes --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  /* Pillow shape */
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(26, 95, 69, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, var(--secondary-color), #BFA15F);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.5);
}

/* --- Section Styles --- */
section {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
  margin: 10px auto 0;
}

/* --- Navbar (Glassmorphism) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dark);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(18, 66, 49, 0.8), rgba(26, 95, 69, 0.7)), url('../images/bg.png');
  /* Placeholder Image */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
  /* Offset for fixed navbar */
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--secondary-light);
  /* Gold text for contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

/* Base Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* Form Responsive Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    /* Stack columns on mobile */
  }
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

/* --- Mobile Menu Toggle (Hidden on Desktop) --- */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {

  /* Navbar Mobile */
  .menu-toggle {
    display: block;
    /* Show hamburger on mobile */
  }

  .nav-links {
    position: absolute;
    top: 100%;
    /* Below navbar */
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    margin: 10px 0;
    font-size: 1.1rem;
  }

  /* Hero Section Mobile */
  .hero-content h1 {
    font-size: 2.5rem;
    /* Smaller Font */
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  /* Sections */
  .section-title {
    font-size: 2rem;
  }

  /* Grids (Auto-fit is good, but let's ensure full width on small screens) */
  .card {
    margin-bottom: 1rem;
  }

  /* Footer */
  footer .container>div {
    grid-template-columns: 1fr;
    /* Stack footer columns */
    gap: 2rem;
    text-align: center;
    /* Center text on mobile */
  }

  footer .container div h4::after {
    margin: 10px auto;
    /* Center underlines if any */
  }

  footer .sosmed-icons {
    justify-content: center;
  }
}

/* Slider Styles */
.slider-container {
  position: relative;
  max-width: 600px;
  /* Limit width for single card focus */
  margin: 0 auto;
  padding: 0 40px;
  /* Space for arrows */
}

.slider-track-container {
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 0;
  /* Remove gap so math is easier (100% width) */
  padding: 10px 0;
  /* Space for shadow */
}

.slider-slide {
  min-width: 100%;
  /* Show 1 card fully */
  flex: 0 0 100%;
  list-style: none;
  padding: 0 10px;
  /* Add internal padding instead of gap */
}

.slider-slide .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  color: var(--primary-color);
  z-index: 10;
  transition: all 0.3s;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--primary-color);
  color: white;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

@media (max-width: 768px) {
  .slider-slide {
    min-width: 100%;
    /* Full width on mobile */
  }
}/* --- Floating WhatsApp Widget --- */
.wa-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.wa-btn {
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s;
    border: none;
}

.wa-btn:hover {
    transform: scale(1.1);
}

.wa-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
}

.wa-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wa-header {
    background-color: #075E54;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-header h4 {
    margin: 0;
    font-size: 1rem;
}

.wa-header span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.wa-body {
    padding: 20px;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-color: #E5DDD5;
    min-height: 150px;
}

.wa-message {
    background-color: white;
    padding: 10px;
    border-radius: 0 10px 10px 10px;
    display: inline-block;
    max-width: 80%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-size: 0.9rem;
    position: relative;
}

.wa-footer {
    padding: 10px;
    text-align: center;
    background-color: white;
}

.wa-link {
    display: block;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    margin: 5px;
}

.wa-link:hover {
    background-color: #128c7e;
    color: white;
}
