/*
Theme Name: PPDB Rabbani v2 Elementor
Theme URI: https://mahadrabbani.org/ppdb
Author: TIM IT Mahad Rabbani
Author URI: https://mahadrabbani.org
Description: Tema Landing Page SPMB dan PPDB Mahad Rabbani - kompatibel Elementor, desain modern, responsif, dengan dukungan penuh page builder.
Version: 2.1.0
Requires at least: 5.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ppdb-rabbani
Tags: education, one-column, custom-menu, featured-images, elementor-ready
*/

/* CSS Reset & Variables */
:root {
  --primary: #001188;
  --primary-dark: #000c5c;
  --primary-light: #1e3a8a;
  --accent: #0284c7;
  --success: #25d366;
  --text-main: #1e293b;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 15px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,17,136,0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Ticker */
.top-ticker {
  background-color: var(--primary);
  color: #ffffff;
  padding: 8px 0;
  font-size: 13px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.site-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: #334155;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.btn-nav-wa {
  background-color: var(--success);
  color: #ffffff !important;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

.btn-nav-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.badge-tag {
  display: inline-block;
  background-color: rgba(0, 17, 136, 0.08);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 35px;
}

.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 17, 136, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 17, 136, 0.35);
  color: #ffffff;
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: #0369a1;
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-whatsapp {
  background-color: var(--success);
  color: #ffffff;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #1eb954;
  transform: translateY(-2px);
  color: #ffffff;
}

.hero-image-wrapper {
  text-align: center;
}

.hero-image-wrapper img {
  border-radius: var(--radius-md);
  max-height: 480px;
  margin: 0 auto;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.08));
}

/* Alur PPDB Section */
.section-alur {
  padding: 80px 0;
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.step-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 17, 136, 0.2);
}

.step-icon {
  flex-shrink: 0;
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: rgba(0, 17, 136, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.step-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.step-content h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Unit Pendidikan Sections */
.unit-section {
  padding: 80px 0;
  position: relative;
}

.unit-section.bg-alt {
  background-color: var(--bg-light);
}

.unit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.unit-grid.reverse {
  direction: rtl;
}

.unit-grid.reverse > * {
  direction: ltr;
}

.unit-info h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.3;
}

.unit-info .unit-btn-daftar {
  margin-bottom: 30px;
}

.unit-brosur-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.unit-section.bg-alt .unit-brosur-box {
  background: #ffffff;
}

.unit-brosur-box h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.unit-brosur-box p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.5;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent);
  color: #ffffff;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
}

.btn-download:hover {
  background-color: #0369a1;
  color: #ffffff;
}

.unit-poster {
  text-align: center;
}

.unit-poster img {
  max-height: 480px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.unit-poster img:hover {
  transform: scale(1.02);
}

/* Contact / WhatsApp Grid */
.section-contact {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.contact-card:hover {
  background: #ffffff;
  border-color: var(--success);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.15);
  transform: translateY(-2px);
}

.contact-info h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.contact-info span {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-wa-card {
  background-color: var(--success);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-wa-card:hover {
  background-color: #1eb954;
  color: #ffffff;
}

/* Footer */
.site-footer {
  background-color: var(--primary);
  color: #ffffff;
  padding: 50px 0 30px;
  text-align: center;
}

.footer-logo img {
  height: 55px;
  width: auto;
  margin: 0 auto 20px;
}

.footer-text {
  font-size: 14px;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 25px;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 13px;
  color: #94a3b8;
}

/* Floating WhatsApp Button */
.floating-wa-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--success);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulseWa 2s infinite;
}

.floating-wa-btn:hover {
  transform: scale(1.06);
  color: #ffffff;
}

@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .unit-grid, .unit-grid.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr !important;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .steps-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-btn-group {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}

/* ============================================
   ELEMENTOR COMPATIBILITY STYLES
   ============================================ */

/* Elementor Full Width Content Area */
.elementor-full-width-content {
  padding: 0;
}

.elementor-full-width-content .ppdb-elementor-content-area {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Elementor Canvas — minimal styles */
.ppdb-elementor-canvas {
  margin: 0;
  padding: 0;
}

.ppdb-canvas-content {
  width: 100%;
}

/* Elementor page overrides — remove default spacing when Elementor controls layout */
.elementor-page .site-main {
  padding: 0;
}

.elementor-page .page-content-wrapper {
  max-width: 100%;
  padding: 0;
}

/* Standard page content wrapper (non-Elementor pages) */
.page-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 0;
}

/* Page header & entry styles */
.page-header {
  margin-bottom: 30px;
}

.page-title,
.entry-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 15px;
}

.entry-header {
  margin-bottom: 30px;
}

.entry-meta {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
}

.entry-thumbnail {
  margin-bottom: 30px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-main);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 15px;
}

.entry-content p {
  margin-bottom: 18px;
}

.entry-content img {
  border-radius: var(--radius-sm);
  max-width: 100%;
  height: auto;
}

.entry-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-muted);
}

.entry-footer .cat-links,
.entry-footer .tags-links {
  display: block;
  margin-bottom: 5px;
}

.entry-footer a {
  color: var(--primary);
}

.entry-footer a:hover {
  text-decoration: underline;
}

/* Widget styles */
.widget {
  margin-bottom: 30px;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

/* Page links (pagination within post) */
.page-links {
  margin-top: 25px;
  font-weight: 600;
  color: var(--text-muted);
}

.page-links a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  margin: 0 4px;
}

.page-links a:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* ==========================================================================
   Elementor Support & Full Width Compatibility
   ========================================================================== */
.elementor-full-width-content,
.ppdb-elementor-content-area {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

.ppdb-elementor-canvas {
  background: #ffffff;
  margin: 0;
  padding: 0;
}

.ppdb-canvas-content {
  width: 100%;
  min-height: 100vh;
}

/* Ensure Elementor full width sections stretch properly */
.elementor-page .site-main {
  padding: 0;
  margin: 0;
}

/* Fix Elementor icons / fontawesome conflict if any */
.elementor-widget-icon .elementor-icon i,
.elementor-button i {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome, sans-serif !important;
}

