/* =========================
   GLOBAL RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6a6cff;
  --secondary: #9b9cff;
  --accent: #ffe082;
  --bg: #f4f6fb;
  --text: #333;
  --white: #ffffff;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-soft: 0 12px 30px rgba(0,0,0,0.08);
  --shadow-strong: 0 22px 50px rgba(0,0,0,0.12);
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* =========================
   LAYOUT
========================= */
.container {
  display: flex;
  min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
  width: 240px;
  padding: 32px 22px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 4px 0 30px rgba(0,0,0,0.15);
}

.logo {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 45px;
}

.menu a {
  display: block;
  padding: 13px 18px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  transition: 0.35s ease;
}

.menu a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.18);
  opacity: 0;
  transition: 0.35s ease;
}

.menu a:hover::before,
.menu a.active::before {
  opacity: 1;
}

.menu a:hover {
  transform: translateX(6px);
}

/* =========================
   MAIN
========================= */
.main {
  flex: 1;
  padding: 32px 42px;
}

/* =========================
   TOPBAR
========================= */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.search input {
  width: 280px;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  border: none;
  outline: none;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
  transition: 0.35s ease;
}

.search input:focus {
  box-shadow: 0 14px 35px rgba(106,108,255,0.35);
}

.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
}

.profile img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

/* =========================
   HERO
========================= */
.hero {
  background:
    linear-gradient(rgba(106,108,255,0.7), rgba(155,156,255,0.7)),
    url("LOGO\ YAYASAN\ warna.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(2px);

  border-radius: var(--radius-lg);
  padding: 60px;
  color: var(--white);
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: -90px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
}

.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  max-width: 650px;
  opacity: 0.95;
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--white);
  color: var(--primary);
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.35s ease;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

/* =========================
   PROGRAM SECTION
========================= */
.section-title {
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: 0.4s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.88rem;
  opacity: 0.75;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .main {
    padding: 24px;
  }

  .search input {
    width: 200px;
  }
}

@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .search input {
    width: 100%;
  }

  .hero {
    padding: 36px 30px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }
}

/* =========================
   CARD LINK FIX
========================= */
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* FOOTER */

.footer{
background:#4a4aff;
color:white;
padding:50px 40px 20px;
margin-top:60px;
}

.footer-container{
max-width:1000px;
margin:auto;
display:flex;
justify-content:space-between;
gap:40px;
flex-wrap:wrap;
}

.footer-item{
flex:1;
min-width:240px;
}

.footer-item h3{
font-size:16px;
margin-bottom:14px;
}

.footer-item p{
font-size:14px;
line-height:1.6;
opacity:0.9;
}

/* link maps */

.footer-link{
display:inline-block;
margin-top:10px;
color:white;
text-decoration:none;
font-size:14px;
opacity:0.9;
}

.footer-link i{
margin-right:6px;
}

.footer-link:hover{
opacity:1;
}

/* social */

.footer-social{
display:flex;
flex-direction:column;
gap:10px;
}

.social-btn{
display:flex;
align-items:center;
gap:10px;
padding:10px 14px;
border-radius:8px;
text-decoration:none;
color:white;
font-size:14px;
transition:0.25s;
}

/* whatsapp */

.whatsapp{
background:#25D366;
}

.whatsapp:hover{
transform:translateY(-2px);
box-shadow:0 5px 12px rgba(0,0,0,0.2);
}

/* instagram */

.instagram{
background:#E4405F;
}

.instagram:hover{
transform:translateY(-2px);
box-shadow:0 5px 12px rgba(0,0,0,0.2);
}

/* footer bottom */

.footer-bottom{
text-align:center;
margin-top:35px;
padding-top:18px;
border-top:1px solid rgba(255,255,255,0.25);
font-size:13px;
opacity:0.8;
}

/* =========================
   RESPONSIVE FOOTER
========================= */
@media (max-width: 768px) {
  .footer {
    padding: 40px 25px 20px 25px;
  }

  .footer-container {
    flex-direction: column;
    gap: 25px;
  }
}

/* =========================
   PAGE HERO
========================= */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 50px;
  border-radius: var(--radius-lg);
  margin-bottom: 50px;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-hero p {
  opacity: 0.9;
}

/* =========================
   PROFILE SECTION
========================= */
.profile-section {
  margin-bottom: 70px;
}

.profile-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.profile-section p {
  margin-bottom: 16px;
  line-height: 1.8;
  max-width: 900px;
}

/* =========================
   VISION & MISSION
========================= */
.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.vision-box,
.mission-box {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.vision-box h3,
.mission-box h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.mission-box ul {
  padding-left: 18px;
}

.mission-box li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .vision-mission {
    grid-template-columns: 1fr;
  }
}

/* =========================
   ANIMATION
========================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-35px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero animation */
.hero-text {
  animation: fadeUp 1s ease;
}

/* Card animation default hidden */
.card {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.6s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Button pulse */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255,255,255,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,255,255,0);
  }
}

.btn-primary {
  animation: pulse 3s infinite;
}

/* Sidebar animation */
.sidebar {
  animation: fadeLeft 0.8s ease;
}

/* HERO PAGE ANIMATION */

.page-hero{
opacity:0;
transform:translateY(40px);
animation:heroFade 1s ease forwards;
}

@keyframes heroFade{
to{
opacity:1;
transform:translateY(0);
}
}

.profile-section{
opacity:0;
transform:translateY(50px);
animation:sectionFade 1s ease forwards;
animation-delay:0.4s;
}

@keyframes sectionFade{
to{
opacity:1;
transform:translateY(0);
}
}

.vision-box,
.mission-box{
opacity:0;
transform:translateY(30px) scale(0.97);
animation:boxFade 0.8s ease forwards;
}

.vision-box{
animation-delay:0.6s;
}

.mission-box{
animation-delay:0.8s;
}

@keyframes boxFade{
to{
opacity:1;
transform:translateY(0) scale(1);
}
}

.vision-box:hover,
.mission-box:hover{
transform:translateY(-5px);
box-shadow:0 10px 25px rgba(0,0,0,0.12);
transition:0.3s;
}

.footer{
animation:footerFade 1.2s ease;
}

@keyframes footerFade{
from{
opacity:0;
transform:translateY(40px);
}
to{
opacity:1;
transform:translateY(0);
}
}
