@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════
   VAYVAYLI PORTAL — FRONTEND CORE v3.0
   ═══════════════════════════════════════════════════════ */

:root {
  --primary: #1d4ed8;
  --primary-h: #1e40af;
  --primary-l: #eff6ff;
  --primary-glow: rgba(29, 78, 216, .2);
  --accent: #0ea5e9;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border2: #cbd5e1;

  --text: #0f172a;
  --text2: #334155;
  --muted: #64748b;
  --light: #94a3b8;

  --nav-h: 68px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --sh-xs: 0 1px 2px rgba(0, 0, 0, .05);
  --sh-sm: 0 2px 8px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --sh-md: 0 8px 24px rgba(0, 0, 0, .08), 0 2px 6px rgba(0, 0, 0, .04);
  --sh-lg: 0 20px 48px rgba(0, 0, 0, .1), 0 6px 12px rgba(0, 0, 0, .05);
  --sh-xl: 0 32px 64px rgba(0, 0, 0, .14);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ─── RESET ────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.03em;
  margin: 0 0 .6em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
  color: var(--text2);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .15s;
}

a:hover {
  color: var(--primary-h);
}

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

ul,
ol {
  padding-left: 1.4em;
}

/* ─── LAYOUT ───────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-lg {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  margin-bottom: 14px;
}

.section-title p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── NAVBAR ───────────────────────────────────────── */
header.blk-header {
  position: sticky;
  top: 0;
  z-index: 999999 !important;
  min-height: var(--nav-h);
  height: auto;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  box-shadow: var(--sh-xs);
  transition: background .3s, box-shadow .3s;
}

header.blk-header .logo span {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header .menu a {
  font-weight: 600;
  font-size: .93rem;
  color: var(--text2) !important;
  padding: 7px 14px !important;
  border-radius: var(--r-sm);
  transition: all .15s;
}

header .menu a:hover {
  background: rgba(29, 78, 216, .07);
  color: var(--primary) !important;
}

/* ─── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: all .2s var(--spring);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(.97) !important;
}

.btn,
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2563eb) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px var(--primary-glow) !important;
}

.btn:hover,
.btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px var(--primary-glow) !important;
}

.btn-secondary {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: var(--sh-xs) !important;
}

.btn-secondary:hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--sh-sm) !important;
}

.btn-outline {
  background: transparent !important;
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
}

.btn-outline:hover {
  background: var(--primary) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

.btn-white {
  background: #fff !important;
  color: var(--primary) !important;
  box-shadow: var(--sh-md) !important;
}

.btn-white:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--sh-lg) !important;
}

.btn-sm {
  padding: 8px 18px !important;
  font-size: .85rem !important;
}

.btn-lg {
  padding: 16px 36px !important;
  font-size: 1.05rem !important;
}

/* ─── HERO ─────────────────────────────────────────── */
.blk-hero {
  border-radius: var(--r-xl) !important;
  overflow: hidden;
  margin: 24px 0 64px !important;
  box-shadow: var(--sh-xl);
}

.blk-hero h1 {
  text-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}

.blk-hero[data-has-image="false"] {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0ea5e9 100%) !important;
  position: relative;
}

.blk-hero[data-has-image="false"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(29, 78, 216, .25) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(14, 165, 233, .2) 0%, transparent 40%);
  pointer-events: none;
}

/* ─── CARDS ────────────────────────────────────────── */
.blk-card,
.post-card,
.staff-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: var(--sh-sm) !important;
  transition: all .35s var(--spring) !important;
  overflow: hidden;
  position: relative;
}

.blk-card:hover,
.post-card:hover,
.staff-card:hover {
  transform: translateY(-7px) !important;
  box-shadow: var(--sh-lg) !important;
  border-color: rgba(29, 78, 216, .2) !important;
}

.blk-card img,
.post-card img,
.staff-card img {
  transition: transform .5s var(--ease);
}

.blk-card:hover img,
.post-card:hover img,
.staff-card:hover img {
  transform: scale(1.06);
}

.card-content h3,
.post-card h3 {
  font-size: 1.15rem;
  margin-bottom: .5rem;
  transition: color .15s;
}

.blk-card:hover h3,
.post-card:hover h3 {
  color: var(--primary);
}

.card-content p,
.post-card p {
  color: var(--muted);
  font-size: .93rem;
}

.post-card .date {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ─── GRID BLOCKS ──────────────────────────────────── */
.blk-grid-item h3 {
  font-size: 1.15rem;
  margin-top: .8rem;
}

.blk-grid-item p {
  font-size: .93rem;
  color: var(--muted);
}

/* ─── STATS / COUNTER ──────────────────────────────── */
.blk-counter .counter-item {
  text-align: center;
  padding: 32px 20px;
}

.blk-counter .counter-item .num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.blk-counter .counter-item .label {
  font-size: .9rem;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 600;
}

/* ─── ACCORDION / FAQ ──────────────────────────────── */
.blk-accordion .item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow .2s;
}

.blk-accordion .item:hover {
  box-shadow: var(--sh-sm);
}

.blk-accordion .item.open {
  box-shadow: var(--sh-sm);
  border-color: var(--border2);
}

.blk-accordion .q {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  transition: background .15s;
}

.blk-accordion .q:hover {
  background: var(--bg);
}

.blk-accordion .item.open .q {
  background: var(--primary-l);
  color: var(--primary);
}

.blk-accordion .q .arrow {
  font-size: 18px;
  transition: transform .25s var(--spring);
  flex-shrink: 0;
}

.blk-accordion .item.open .q .arrow {
  transform: rotate(180deg);
}

.blk-accordion .a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease), padding .3s;
  color: var(--text2);
  font-size: .95rem;
}

.blk-accordion .item.open .a {
  max-height: 600px;
  padding: 14px 20px 18px;
}

/* ─── TABS ─────────────────────────────────────────── */
.blk-tabs .tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.blk-tabs .tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  font-size: .93rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all .15s;
  white-space: nowrap;
}

.blk-tabs .tab-btn:hover {
  color: var(--text);
}

.blk-tabs .tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ─── TESTIMONIALS ─────────────────────────────────── */
.blk-testimonials .item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--sh-sm);
}

.blk-testimonials .stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.blk-testimonials .text {
  font-size: .97rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

.blk-testimonials .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blk-testimonials .author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.blk-testimonials .author .name {
  font-weight: 700;
  font-size: .93rem;
}

.blk-testimonials .author .role {
  font-size: .82rem;
  color: var(--muted);
}

/* ─── CTA BANNER ───────────────────────────────────── */
.blk-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
  border-radius: var(--r-xl);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.blk-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, .12) 0%, transparent 50%);
}

.blk-cta h2 {
  color: #fff;
  position: relative;
}

.blk-cta p {
  color: rgba(255, 255, 255, .8);
  position: relative;
}

/* ─── FOOTER ───────────────────────────────────────── */
.blk-footer {
  background: #0a0f1e !important;
  color: var(--light) !important;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.blk-footer a {
  color: #94a3b8 !important;
  font-size: .93rem;
  transition: color .15s;
}

.blk-footer a:hover {
  color: #fff !important;
}

.blk-footer .footer-social-icon {
  transition: transform .25s var(--spring), opacity .2s !important;
}

.blk-footer .footer-social-icon:hover {
  transform: scale(1.18) translateY(-2px) !important;
}

/* ─── HEADER DROPDOWN ──────────────────────────────── */
.dropdown-content {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
  z-index: 9999999 !important;
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--text2) !important;
  font-size: .9rem;
  font-weight: 500;
  border-radius: 7px;
  transition: background .12s, transform .1s;
}

.dropdown-content a:hover {
  background: var(--primary-l);
  color: var(--primary) !important;
  transform: translateX(2px);
}

.dropdown-arrow {
  transition: transform .2s var(--spring);
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* ─── SLIDERS / CAROUSEL ───────────────────────────── */
.blk-slider .slide {
  transition: opacity .4s var(--ease);
}

/* ─── GALLERY ──────────────────────────────────────── */
.blk-gallery img {
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform .3s var(--spring), box-shadow .3s;
}

.blk-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--sh-md);
}

/* ─── TIMELINE ─────────────────────────────────────── */
.blk-timeline .item {
  position: relative;
  padding-left: 36px;
  padding-bottom: 32px;
}

.blk-timeline .item::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.blk-timeline .item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-l);
}

.blk-timeline .item:last-child::before {
  display: none;
}

.blk-timeline .date {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

/* ─── PRICING ──────────────────────────────────────── */
.blk-pricing .plan {
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 28px;
  text-align: center;
  transition: all .3s var(--spring);
  background: var(--surface);
}

.blk-pricing .plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}

.blk-pricing .plan.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary-l), var(--surface));
}

.blk-pricing .price {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.blk-pricing .price sup {
  font-size: 1.5rem;
  vertical-align: top;
  margin-top: .3em;
}

.blk-pricing .price sub {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

/* ─── FORM ─────────────────────────────────────────── */
.blk-form input,
.blk-form textarea,
.blk-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.blk-form input:focus,
.blk-form textarea:focus,
.blk-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.blk-form label {
  display: block;
  margin-bottom: 6px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
}

.blk-form .form-group {
  margin-bottom: 18px;
}

/* ─── STAFF / TEAM ─────────────────────────────────── */
.staff-card .avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}

.staff-card:hover .avatar {
  border-color: var(--primary);
  box-shadow: 0 0 0 5px var(--primary-l);
}

.staff-card .name {
  font-weight: 800;
  font-size: 1.05rem;
}

.staff-card .role {
  font-size: .88rem;
  color: var(--muted);
}

/* ─── ANNOUNCEMENTS ────────────────────────────────── */
.blk-announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .2s;
}

.blk-announcement-item:hover {
  border-color: var(--border2);
  box-shadow: var(--sh-sm);
  transform: translateX(3px);
}

.blk-announcement-item .date-box {
  min-width: 52px;
  text-align: center;
  background: var(--primary-l);
  border-radius: var(--r-sm);
  padding: 8px 6px;
}

.blk-announcement-item .date-box .day {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.blk-announcement-item .date-box .month {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── SCROLL ANIMATIONS ────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.blk {
  animation: fadeInUp .6s var(--ease) backwards;
}

.blk:nth-child(1) {
  animation-delay: .05s;
}

.blk:nth-child(2) {
  animation-delay: .12s;
}

.blk:nth-child(3) {
  animation-delay: .19s;
}

.blk:nth-child(4) {
  animation-delay: .26s;
}

.blk:nth-child(5) {
  animation-delay: .33s;
}

/* ─── UTILITIES ────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-primary {
  background: var(--primary);
  color: #fff;
}

.rounded {
  border-radius: var(--r-md);
}

.shadow {
  box-shadow: var(--sh-md);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .section {
    padding: 56px 0;
  }

  .section-lg {
    padding: 80px 0;
  }

  .blk-hero {
    margin: 12px 0 48px !important;
    border-radius: var(--r-lg) !important;
  }

  .blk-cta {
    padding: 48px 24px;
  }

  .blk-pricing .price {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }

  .section {
    padding: 40px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }
}