/* ============================================================
   KKA — World Children Organization | Shared Stylesheet
   Version: 2.0 | Multi-page website
   ============================================================ */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --blue: #0099D8;
  --blue-dark: #0077AA;
  --blue-deeper: #005580;
  --blue-light: #E8F6FD;
  --blue-mid: #CCE9F7;
  --orange: #F26A21;
  --orange-dark: #D4581A;
  --orange-light: #FEF0E8;
  --green: #4CAF50;
  --green-dark: #388E3C;
  --green-light: #E8F5E9;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --red: #E53E3E;
  --yellow: #F6C90E;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --nav-height: 72px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; color: var(--gray-900); background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== UTILITY ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }
.text-center { text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.badge-blue { background: var(--blue-light); color: var(--blue-dark); }
.badge-orange { background: var(--orange-light); color: var(--orange); }
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-red { background: #FEE2E2; color: var(--red); }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.2; color: var(--gray-900); }
.section-subtitle { font-size: 17px; color: var(--gray-500); line-height: 1.7; max-width: 640px; margin: 0 auto; }
.section-header { margin-bottom: 56px; }
.section-header .badge { margin-bottom: 16px; }
.section-header .section-title { margin-bottom: 16px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 100px; font-size: 15px; font-weight: 600; transition: var(--transition); white-space: nowrap; cursor: pointer; border: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,153,216,0.35); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(242,106,33,0.35); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.btn-outline-blue { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: var(--white); }
.btn-outline-orange { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline-orange:hover { background: var(--orange); color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }
.btn-xl { padding: 20px 44px; font-size: 18px; }

/* ===== CARDS ===== */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

/* ===== ANIMATIONS ===== */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ===== PROGRESS BARS ===== */
.progress-bar-wrap { background: var(--gray-200); border-radius: 100px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--blue), var(--orange)); transition: width 1.5s cubic-bezier(0.4,0,0.2,1); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.form-control { width: 100%; padding: 14px 18px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 15px; color: var(--gray-900); background: var(--white); transition: var(--transition); outline: none; }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,153,216,0.12); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { cursor: pointer; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue) 50%, var(--blue-dark) 100%); padding: 120px 0 80px; position: relative; overflow: hidden; margin-top: 0; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: url('https://picsum.photos/1600/600?random=99') center/cover no-repeat; opacity: 0.12; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero-content { text-align: center; color: var(--white); }
.page-hero-content .badge { background: rgba(255,255,255,0.2); color: var(--white); margin-bottom: 20px; }
.page-hero-content h1 { font-family: 'Playfair Display', serif; font-size: clamp(36px, 5vw, 60px); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.page-hero-content p { font-size: 18px; opacity: 0.9; max-width: 640px; margin: 0 auto 32px; line-height: 1.7; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.75); margin-top: 24px; }
.breadcrumb a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar { background: var(--blue-deeper); color: rgba(255,255,255,0.9); font-size: 13px; padding: 8px 0; position: relative; z-index: 1001; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-left a { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.85); transition: color 0.2s; }
.topbar-left a:hover { color: var(--white); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle select { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: var(--white); padding: 4px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; }
.topbar-socials { display: flex; gap: 10px; }
.topbar-socials a { color: rgba(255,255,255,0.75); font-size: 13px; transition: color 0.2s; }
.topbar-socials a:hover { color: var(--white); }

/* ============================================================
   NAVBAR / MEGA MENU
   ============================================================ */
.navbar { background: var(--white); box-shadow: 0 2px 20px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; height: var(--nav-height); display: flex; align-items: center; transition: var(--transition); }
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.15); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 48px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .org-name { font-size: 14px; font-weight: 800; color: var(--blue-dark); line-height: 1.2; }
.nav-logo-text .org-tagline { font-size: 10px; color: var(--gray-500); font-weight: 500; letter-spacing: 0.3px; }

/* Nav Menu */
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; gap: 5px; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--gray-700); border-radius: 8px; transition: var(--transition); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--blue-light); }
.nav-link i.fa-chevron-down { font-size: 10px; transition: transform 0.3s; }
.nav-item:hover .nav-link i.fa-chevron-down { transform: rotate(180deg); }

/* Dropdown */
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); min-width: 220px; padding: 12px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.25s cubic-bezier(0.4,0,0.2,1); z-index: 999; border: 1px solid var(--gray-100); }
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--gray-700); font-weight: 500; transition: var(--transition); }
.dropdown-item:hover { background: var(--blue-light); color: var(--blue); }
.dropdown-item i { width: 18px; color: var(--blue); font-size: 13px; }
.dropdown-divider { height: 1px; background: var(--gray-100); margin: 6px 0; }

/* Mega Dropdown */
.mega-dropdown { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mega-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gray-400); padding: 8px 14px 4px; }

/* Nav CTAs */
.nav-ctas { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-ctas .btn { padding: 9px 16px; font-size: 13px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); z-index: 9999; overflow-y: auto; padding: 80px 24px 40px; }
.mobile-menu.open { display: block; }
.mobile-menu-close { position: absolute; top: 20px; right: 20px; font-size: 24px; color: var(--gray-700); cursor: pointer; padding: 8px; }
.mobile-nav-item { border-bottom: 1px solid var(--gray-100); }
.mobile-nav-link { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--gray-900); }
.mobile-nav-link i { font-size: 12px; transition: transform 0.3s; }
.mobile-nav-link.open i { transform: rotate(180deg); }
.mobile-sub-menu { display: none; padding: 0 0 12px 16px; }
.mobile-sub-menu.open { display: block; }
.mobile-sub-link { display: block; padding: 10px 0; font-size: 14px; color: var(--gray-600); border-bottom: 1px solid var(--gray-50); }
.mobile-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.mobile-ctas .btn { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--gray-900); color: rgba(255,255,255,0.8); }
.footer-top { padding: 80px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-brand .footer-logo img { height: 52px; filter: brightness(0) invert(1); }
.footer-brand .footer-logo-text .org-name { font-size: 15px; font-weight: 800; color: var(--white); }
.footer-brand .footer-logo-text .org-tagline { font-size: 11px; color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.65); margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); font-size: 15px; transition: var(--transition); }
.footer-socials a:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s; display: flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: var(--blue); }
.footer-col ul li a i { font-size: 11px; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 16px; }
.footer-contact-item i { color: var(--blue); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.footer-contact-item p { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.6; }
.footer-contact-item strong { color: rgba(255,255,255,0.9); display: block; margin-bottom: 2px; }
.footer-newsletter { background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.footer-newsletter h5 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer-newsletter p { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.footer-newsletter-form { display: flex; gap: 8px; }
.footer-newsletter-form input { flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); color: var(--white); font-size: 13px; outline: none; }
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter-form button { padding: 10px 18px; background: var(--blue); color: var(--white); border-radius: 8px; font-size: 13px; font-weight: 600; transition: var(--transition); }
.footer-newsletter-form button:hover { background: var(--blue-dark); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-bottom { padding: 24px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--blue); }

/* ============================================================
   AI CHAT WIDGET
   ============================================================ */
.ai-chat-widget { position: fixed; bottom: 28px; right: 28px; z-index: 9998; }
.ai-chat-btn { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: var(--white); font-size: 24px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 32px rgba(0,153,216,0.45); cursor: pointer; transition: var(--transition); border: none; position: relative; }
.ai-chat-btn:hover { transform: scale(1.1); box-shadow: 0 12px 40px rgba(0,153,216,0.55); }
.ai-chat-btn .pulse { position: absolute; top: 0; right: 0; width: 14px; height: 14px; background: var(--green); border-radius: 50%; border: 2px solid var(--white); }
.ai-chat-panel { position: absolute; bottom: 72px; right: 0; width: 340px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); overflow: hidden; display: none; }
.ai-chat-panel.open { display: block; }
.ai-chat-header { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); padding: 16px 20px; display: flex; align-items: center; gap: 12px; }
.ai-chat-header .ai-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--white); }
.ai-chat-header .ai-info h5 { font-size: 14px; font-weight: 700; color: var(--white); }
.ai-chat-header .ai-info p { font-size: 12px; color: rgba(255,255,255,0.75); }
.ai-chat-body { padding: 20px; min-height: 200px; }
.ai-chat-body .ai-msg { background: var(--blue-light); border-radius: 12px 12px 12px 4px; padding: 12px 16px; font-size: 14px; color: var(--gray-700); line-height: 1.6; margin-bottom: 12px; }
.ai-chat-footer { padding: 12px 16px; border-top: 1px solid var(--gray-100); display: flex; gap: 8px; }
.ai-chat-footer input { flex: 1; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 13px; outline: none; }
.ai-chat-footer button { padding: 10px 14px; background: var(--blue); color: var(--white); border-radius: 8px; font-size: 13px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .nav-ctas .btn:nth-child(3), .nav-ctas .btn:nth-child(4) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-ctas { display: none; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar-left { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section-pad { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .ai-chat-panel { width: 300px; right: -8px; }
  .topbar-right { gap: 8px; }
}
