/* ==========================================================================
   MIN 3 MADIUN - Frontend Stylesheet
   Warna Utama: Hijau Gradasi & Putih
   ========================================================================== */

:root {
    --primary: #059669; /* Emerald 600 */
    --primary-dark: #047857; /* Emerald 700 */
    --primary-light: #34d399; /* Emerald 400 */
    --primary-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --secondary: #f59e0b; /* Amber 500 */
    --dark: #1e293b; /* Slate 800 */
    --light: #f8fafc; /* Slate 50 */
    --text-primary: #334155; /* Slate 700 */
    --text-muted: #64748b; /* Slate 500 */
    --border: #e2e8f0; /* Slate 200 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(5, 150, 105, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY UTILITIES
   -------------------------------------------------------------------------- */
.text-primary { color: var(--primary) !important; }
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 8px 22px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.2);
}

/* --------------------------------------------------------------------------
   NAVBAR
   -------------------------------------------------------------------------- */
.navbar-brand-img { height: 50px; object-fit: contain; }
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    transition: all 0.3s ease;
}
.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: rgba(5, 150, 105, 0.05);
}

/* --------------------------------------------------------------------------
   HERO BANNER
   -------------------------------------------------------------------------- */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 500px;
    background: var(--dark);
    overflow: hidden;
}
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.hero-bg-blur {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    filter: blur(30px) brightness(0.5);
    transform: scale(1.2);
    display: none;
}
/* Portrait mode: show blurred bg + contain the actual image */
.hero-slide.hero-portrait .hero-bg-blur { display: block; }
.hero-slide.hero-portrait .hero-img { object-fit: contain; z-index: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
    display: flex; align-items: center; z-index: 2;
}
.hero-content {
    color: #fff; max-width: 600px;
    transform: translateY(30px); opacity: 0; transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.hero-slide.active .hero-content { transform: translateY(0); opacity: 1; }
.hero-title { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }

@media (max-width: 768px) {
    .hero-slider { height: 60vh; min-height: 350px; }
    .hero-title { font-size: 1.8rem; }
    .hero-slide.hero-portrait .hero-img { object-fit: contain; }
}

/* --------------------------------------------------------------------------
   CARDS & GRIDS
   -------------------------------------------------------------------------- */
.card-hover {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: #fff;
    overflow: hidden;
    height: 100%;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.card-img-top { height: 200px; object-fit: cover; }

/* --------------------------------------------------------------------------
   SECTION STYLES
   -------------------------------------------------------------------------- */
.section-padding { padding: 80px 0; }
.section-title {
    text-align: center; margin-bottom: 50px; position: relative;
}
.section-title h2 { font-size: 2.2rem; margin-bottom: 12px; }
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--primary-gradient); margin: 0 auto; border-radius: 4px;
}
.section-title.text-start::after { margin: 0; }

.bg-pattern {
    background-color: var(--primary-50);
    background-image: radial-gradient(rgba(5, 150, 105, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* --------------------------------------------------------------------------
   PAGE HEADER (Breadcrumbs)
   -------------------------------------------------------------------------- */
.page-header-public {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}
.page-header-public::before {
    content: ''; position: absolute; inset: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>') repeat;
    opacity: 0.5;
}
.breadcrumb-custom {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.1); padding: 8px 16px;
    border-radius: 30px; font-size: 14px; backdrop-filter: blur(4px);
    position: relative; z-index: 1;
}
.breadcrumb-custom a { color: rgba(255,255,255,0.8); text-decoration: none; }
.breadcrumb-custom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer-area {
    background: var(--dark);
    color: #cbd5e1;
    padding: 70px 0 30px;
    margin-top: auto;
}
.footer-title {
    color: #fff; font-size: 1.2rem; margin-bottom: 24px; position: relative; padding-bottom: 12px;
}
.footer-title::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 3px; background: var(--primary); border-radius: 2px;
}
.footer-link {
    display: block; color: #cbd5e1; text-decoration: none;
    margin-bottom: 12px; transition: 0.3s;
}
.footer-link:hover { color: var(--primary-light); padding-left: 5px; }
.social-icon {
    display: inline-flex; width: 40px; height: 40px;
    background: rgba(255,255,255,0.1); align-items: center; justify-content: center;
    border-radius: 50%; color: #fff; text-decoration: none; transition: 0.3s;
}
.social-icon:hover { background: var(--primary); transform: translateY(-3px); color:#fff; }

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-slider { height: 60vh; }
    .section-padding { padding: 50px 0; }
}
