/* ============================================
   NEVROZ ABA - Premium Financial Portal
   Global Design System v2.0
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700&display=swap');

/* ── CSS Custom Properties ──────────────────── */
:root {
    --brand-dark: #0f172a;
    --brand-primary: #3b82f6;
    --brand-secondary: #64748b;
    --brand-accent: #d4af37;
    --brand-light: #f8fafc;

    /* Typography Scale */
    --text-h1: clamp(2rem, 4vw, 3rem);
    /* 32-48px */
    --text-h2: clamp(1.5rem, 3vw, 2rem);
    /* 24-32px */
    --text-h3: clamp(1.125rem, 2vw, 1.5rem);
    /* 18-24px */
    --text-body: 1rem;
    /* 16px */

    /* Spacing Scale (4px base) */
    --space-1: 0.25rem;
    /* 4px  */
    --space-2: 0.5rem;
    /* 8px  */
    --space-4: 1rem;
    /* 16px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-24: 6rem;
    /* 96px */

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 2rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.10);
}

/* ── Global Reset & Base ────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: var(--text-body);
    color: #334155;
    line-height: 1.7;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ── Hero Slider — FIXED SIZES ──────────────── */
.hero-slider-wrapper {
    position: relative;
    height: 65vh;
    /* Desktop: 65% of viewport */
    max-height: 680px;
    /* Hard cap — never taller than this */
    min-height: 420px;
    /* Never shorter than this */
    overflow: hidden;
    background: var(--brand-dark);
}

@media (max-width: 768px) {
    .hero-slider-wrapper {
        height: 55vh;
        /* Mobile: 55% */
        max-height: 500px;
        min-height: 360px;
    }
}

.hero-slider-wrapper .swiper,
.hero-slider-wrapper .swiper-slide,
.hero-slider-wrapper .swiper-wrapper {
    height: 100% !important;
}

/* About page slider — slightly shorter */
.about-slider-wrapper {
    position: relative;
    height: 55vh;
    max-height: 560px;
    min-height: 340px;
    overflow: hidden;
    background: var(--brand-dark);
}

@media (max-width: 768px) {
    .about-slider-wrapper {
        height: 48vh;
        max-height: 420px;
        min-height: 300px;
    }
}

.about-slider-wrapper .swiper,
.about-slider-wrapper .swiper-slide,
.about-slider-wrapper .swiper-wrapper {
    height: 100% !important;
}

/* ── Swiper Pagination ──────────────────────── */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3) !important;
    width: 28px !important;
    height: 3px !important;
    border-radius: 3px !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--brand-primary) !important;
    width: 52px !important;
}

/* Slide content size normalisation */
.slide-title {
    font-size: clamp(1.75rem, 4vw, 3.5rem) !important;
    line-height: 1.15 !important;
}

.slide-desc {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem) !important;
}

/* ── Layout / Container ─────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Standard Section Padding */
.section-pad {
    padding: var(--space-24) 0;
}

.section-pad-sm {
    padding: var(--space-16) 0;
}

@media (max-width: 768px) {
    .section-pad {
        padding: var(--space-12) 0;
    }

    .section-pad-sm {
        padding: var(--space-8) 0;
    }
}

/* ── Typography ─────────────────────────────── */
.font-display {
    font-family: 'Poppins', sans-serif;
}

h1 {
    font-size: var(--text-h1);
    line-height: 1.2;
}

h2 {
    font-size: var(--text-h2);
    line-height: 1.3;
}

h3 {
    font-size: var(--text-h3);
    line-height: 1.4;
}

/* ── Card System ────────────────────────────── */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.15);
}

/* ── Blog Cards ─────────────────────────────── */
.blog-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(59, 130, 246, 0.2);
}

.blog-card img {
    transition: transform 0.7s ease;
}

.blog-card:hover img {
    transform: scale(1.06);
}

/* ── Announcement Items ─────────────────────── */
.announcement-item {
    background: #fff;
    border-left: 4px solid transparent;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.announcement-item:hover {
    background: #f8fafc;
    border-left-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.announcement-item.important {
    border-left-color: #f43f5e;
    background: rgba(244, 63, 94, 0.02);
}

/* ── Blog Detail Typography ─────────────────── */
.blog-detail-content {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #475569;
    max-width: 72ch;
}

.blog-detail-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 2.5rem 0 1.25rem;
}

.blog-detail-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin: 2rem 0 1rem;
}

.blog-detail-content p {
    margin-bottom: 1.25rem;
}

/* ── CTA Dynamic Box ────────────────────────── */
.cta-box-dynamic {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    position: relative;
    overflow: hidden;
}

/* ── Utility ────────────────────────────────── */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-md);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px -8px rgba(59, 130, 246, 0.14);
}

/* ── Touch Targets ──────────────────────────── */
a,
button,
[role="button"] {
    min-height: 44px;
}

/* ── Responsive Decorative Elements ────────── */
@media (max-width: 640px) {
    .decor-hide {
        display: none !important;
    }

    .gap-sm-2 {
        gap: 0.5rem !important;
    }
}

/* ── Scrollbar ──────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Animations ─────────────────────────────── */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.swiper-slide-active .slide-title {
    animation: fadeInUp 0.7s both 0.15s;
}

.swiper-slide-active .slide-desc {
    animation: fadeInUp 0.7s both 0.35s;
}

.swiper-slide-active .slide-btns {
    animation: fadeInUp 0.7s both 0.55s;
}

.swiper-slide-active .slide-subtitle {
    animation: fadeInUp 0.7s both 0s;
}