/* ========================================
   KREDISI - Modern Insurance Website
   ======================================== */

/* ========================================
   1. General Styles & Variables
   ======================================== */

:root {
    /* Brand Colors - KREDISI Logo */
    --primary-color: #54BCDE;
    --primary-dark: #3a9ac0;
    --primary-light: #6dc9e5;
    --primary-gradient: linear-gradient(135deg, #54BCDE 0%, #6dc9e5 100%);

    /* Secondary/Accent Colors */
    --secondary-color: #71C045;
    --secondary-dark: #5a9937;
    --secondary-light: #85d05a;
    --secondary-gradient: linear-gradient(135deg, #71C045 0%, #85d05a 100%);

    /* Additional Colors */
    --success-color: #71C045;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #54BCDE;

    /* Neutral Colors */
    --dark-color: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748b;
    --gray-500: #94a3b8;
    --gray-400: #cbd5e1;
    --gray-300: #e2e8f0;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --white-color: #ffffff;

    /* Spacing */
    --section-padding: 100px;
    --container-padding: 20px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;

    /* Shadows — hairline only, elevation via border */
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --shadow-xl: none;
    --shadow-2xl: none;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;

    /* Typography Scale - Major Third (1.25) */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-md: 1.125rem;
    --font-lg: 1.25rem;
    --font-xl: 1.5rem;
    --font-2xl: 2rem;
    --font-3xl: 2.5rem;
    --font-4xl: 3.25rem;
    --font-5xl: 4rem;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Instrument Sans', 'Inter', sans-serif;
    --bs-body-font-family: var(--font-body);
    --bs-font-sans-serif: var(--font-body);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1100px !important;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: var(--white-color);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-light);
    color: white;
}

::-moz-selection {
    background: var(--primary-light);
    color: white;
}

/* Links */
a {
    transition: var(--transition-smooth);
    text-decoration: none;
}

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

/* ========================================
   Buttons - Ultra Modern Design
   ======================================== */

.btn {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 0.7rem 1.35rem;
    font-size: 0.9rem;
    text-transform: none;
    box-shadow: none;
    border-radius: var(--radius-md);
}

.btn:hover {
    transform: none;
    box-shadow: none;
}

.btn:active {
    transform: none;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #2f8aaa;
    --bs-btn-border-color: #2f8aaa;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #246f88;
    --bs-btn-hover-border-color: #246f88;
    --bs-btn-active-bg: #1d5c72;
    --bs-btn-active-border-color: #1d5c72;
    --bs-btn-disabled-bg: #2f8aaa;
    --bs-btn-disabled-border-color: #2f8aaa;
    --bs-btn-focus-shadow-rgb: 47, 138, 170;
    background: #2f8aaa;
    border-color: #2f8aaa;
    color: #fff;
    box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #246f88;
    border-color: #246f88;
    color: #fff;
    box-shadow: none;
}

.btn-primary:active {
    background: #1d5c72;
    border-color: #1d5c72;
}

/* Success Button - Green Gradient */
.btn-success {
    background: #5a9e34;
    border-color: #5a9e34;
    color: #fff;
    box-shadow: none;
}

.btn-success:hover {
    background: #4b852b;
    border-color: #4b852b;
    color: #fff;
}

/* Warning Button */
.btn-warning {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
    box-shadow: none;
}

.btn-warning:hover {
    background: #b45309;
    border-color: #b45309;
    color: #fff;
}

/* Info Button */
.btn-info {
    background: #2f8aaa;
    border-color: #2f8aaa;
    color: #fff;
    box-shadow: none;
}

.btn-danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    box-shadow: none;
}

.btn-secondary {
    background: #475569;
    border-color: #475569;
    color: #fff;
}

.btn-outline-primary {
    --bs-btn-color: #2f8aaa;
    --bs-btn-border-color: #2f8aaa;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2f8aaa;
    --bs-btn-hover-border-color: #2f8aaa;
    --bs-btn-active-bg: #246f88;
    --bs-btn-active-border-color: #246f88;
    border: 1px solid #2f8aaa;
    color: #2f8aaa;
    background: transparent;
    font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: #2f8aaa;
    border-color: #2f8aaa;
    color: #fff;
    box-shadow: none;
}

.btn-outline-success:hover {
    background: var(--secondary-gradient);
    border-color: transparent;
    color: white;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

.btn-outline-light:hover {
    background: white;
    border-color: white;
    color: var(--primary-color);
    box-shadow: none;
}

/* Large Buttons */
.btn-lg {
    padding: 1.125rem 2.75rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Rounded Pill Buttons */
.btn.rounded-pill {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Button with Icon */
.btn i {
    transition: var(--transition-smooth);
}

.btn:hover i {
    transform: translateX(3px);
}

.btn i.bi-arrow-right {
    margin-left: 0.35rem;
}

/* Headings - Instrument Sans */
h1 {
    font-size: var(--font-3xl);
}

h2 {
    font-size: var(--font-2xl);
}

h3 {
    font-size: var(--font-xl);
}

h4 {
    font-size: var(--font-lg);
}

h5 {
    font-size: var(--font-md);
}

h6 {
    font-size: var(--font-base);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.display-1 {
    font-size: var(--font-5xl);
}

.display-2 {
    font-size: var(--font-4xl);
}

.display-3 {
    font-size: var(--font-3xl);
}

.display-4 {
    font-size: var(--font-2xl);
}

.display-5 {
    font-size: var(--font-xl);
}

.display-6 {
    font-size: var(--font-lg);
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* Body & Paragraph - Inter Font */
p,
span,
a,
li,
td,
th,
label,
input,
select,
textarea {
    font-family: var(--font-body);
}

/* Lead text - Inter Medium */
.lead {
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Typography Overrides */
/* Badge - Inter */
.badge {
    font-family: var(--font-body);
}

/* Card Titles - Instrument Sans */
.card-title,
.feature-title,
.product-title,
.article-title {
    font-family: var(--font-heading);
}

/* Numbers - Instrument Sans */
.feature-number,
.product-number,
.article-number {
    font-family: var(--font-heading);
}

/* ========================================
   2. Navbar Styles - Modern & Clean
   ======================================== */

.navbar {
    padding: 1.25rem 0;
    transition: var(--transition-smooth);
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: none;
    border-bottom: 1px solid var(--gray-200);
}

.navbar.shadow-sm,
.navbar.shadow,
.navbar.is-scrolled {
    box-shadow: none !important;
    border-bottom: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--dark-color) !important;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand img {
    transition: var(--transition-fast);
}

.navbar-nav .nav-link {
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
    text-align: center;
    position: relative;
    transition: var(--transition-smooth);
    letter-spacing: 0.01em;
    font-family: 'Inter', sans-serif;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0.5rem;
    left: 50%;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 10px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar .btn-primary {
    padding: 0.7rem 1.85rem;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    box-shadow: none;
    font-weight: 700;
}

.navbar .btn-primary:hover {
    transform: none;
    box-shadow: none;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ========================================
   3. Hero Slider - Modern & Elegant
   ======================================== */

.hero-slider {
    position: relative;
    overflow: hidden;
    padding-top: 90px;
}

.hero-slider .carousel-item {
    height: 540px;
    position: relative;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
}

.carousel-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(16, 161, 197, 0.88) 0%,
            rgba(98, 153, 68, 0.75) 50%,
            rgba(151, 229, 255, 0.82) 100%);
    z-index: 1;
}

.carousel-caption {
    top: 40%;
    transform: translateY(-40%);
    bottom: auto;
    z-index: 2;
    padding: 0 15px;
}

.carousel-caption h1 {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.154);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 48px;
}

.carousel-caption p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #fff;
}

.carousel-caption .btn {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
}

.carousel-caption .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.carousel-caption .btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    border: 2px solid white;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-smooth);
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   4. Feature Cards - Premium Modern Design
   ======================================== */

.features-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(84, 188, 222, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(113, 192, 69, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.feature-card-modern {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.8);
    cursor: pointer;
}

/* Decorative elements */
.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.feature-card-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(84, 188, 222, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

/* Hover Effects */
.feature-card-modern:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--gray-300);
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-card-modern:hover::after {
    opacity: 1;
    top: -30%;
    right: -30%;
}

/* Icon Wrapper */
.feature-icon-wrapper {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.feature-icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
    box-shadow: none;
}

.feature-icon-primary {
    background: linear-gradient(135deg, rgba(84, 188, 222, 0.12) 0%, rgba(84, 188, 222, 0.18) 100%);
    color: var(--primary-color);
}

.feature-icon-success {
    background: linear-gradient(135deg, rgba(113, 192, 69, 0.12) 0%, rgba(113, 192, 69, 0.18) 100%);
    color: var(--success-color);
}

.feature-icon-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: var(--warning-color);
}

.feature-icon-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.15) 100%);
    color: var(--danger-color);
}

/* Icon Background Decoration */
.feature-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: inherit;
    z-index: 1;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.feature-card-modern:hover .feature-icon-circle {
    transform: none;
    box-shadow: none;
}

.feature-card-modern:hover .feature-icon-bg {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.1;
}

/* Content */
.feature-content {
    position: relative;
    z-index: 2;
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    transition: var(--transition-smooth);
}

.feature-card-modern:hover .feature-title {
    color: var(--primary-color);
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 0;
}

/* Feature Number */
.feature-number {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 4rem;
    font-weight: 800;
    color: var(--gray-100);
    line-height: 1;
    opacity: 0.5;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.feature-card-modern:hover .feature-number {
    opacity: 0.8;
    transform: scale(1.1);
    color: rgba(84, 188, 222, 0.1);
}

/* Animation delays for stagger effect */
.feature-card-modern:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card-modern:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card-modern:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card-modern:nth-child(4) {
    animation-delay: 0.4s;
}

/* ========================================
   5. Product Cards - Modern Style (same as Features)
   ======================================== */

.product-card-modern {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.8);
    cursor: pointer;
}

/* Decorative elements */
.product-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.product-card-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(84, 188, 222, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

/* Hover Effects */
.product-card-modern:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--gray-300);
}

.product-card-modern:hover::before {
    transform: scaleX(1);
}

.product-card-modern:hover::after {
    opacity: 1;
    top: -30%;
    right: -30%;
}

/* Badge Wrapper */
.product-badge-wrapper {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 3;
}

.product-badge-wrapper .badge {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: none;
    letter-spacing: 0.025em;
}

/* Icon Wrapper */
.product-icon-wrapper {
    position: relative;
    margin-bottom: 2rem;
    display: inline-block;
}

.product-icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
    box-shadow: none;
}

.product-icon-primary {
    background: linear-gradient(135deg, rgba(84, 188, 222, 0.12) 0%, rgba(84, 188, 222, 0.18) 100%);
    color: var(--primary-color);
}

.product-icon-success {
    background: linear-gradient(135deg, rgba(113, 192, 69, 0.12) 0%, rgba(113, 192, 69, 0.18) 100%);
    color: var(--success-color);
}

.product-icon-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: var(--warning-color);
}

.product-icon-info {
    background: linear-gradient(135deg, rgba(84, 188, 222, 0.1) 0%, rgba(84, 188, 222, 0.15) 100%);
    color: var(--info-color);
}

.product-icon-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.15) 100%);
    color: var(--danger-color);
}

.product-icon-secondary {
    background: linear-gradient(135deg, rgba(113, 192, 69, 0.1) 0%, rgba(113, 192, 69, 0.15) 100%);
    color: var(--secondary-color);
}

/* Icon Background Decoration */
.product-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: inherit;
    z-index: 1;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.product-card-modern:hover .product-icon-circle {
    transform: none;
    box-shadow: none;
}

.product-card-modern:hover .product-icon-bg {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.1;
}

/* Content */
.product-content {
    position: relative;
    z-index: 2;
}

.product-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    transition: var(--transition-smooth);
}

.product-card-modern:hover .product-title {
    color: var(--primary-color);
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* Product Features List */
.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.75rem;
}

.product-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray-700);
    transition: var(--transition-fast);
}

.product-features li i {
    color: var(--success-color);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.product-features li:hover {
    padding-left: 0.75rem;
    color: var(--primary-color);
}

/* Product Number */
.product-number {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 4rem;
    font-weight: 800;
    color: var(--gray-100);
    line-height: 1;
    opacity: 0.5;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.product-card-modern:hover .product-number {
    opacity: 0.8;
    transform: scale(1.1);
    color: rgba(84, 188, 222, 0.08);
}

/* Button in Product Card */
.product-card-modern .btn {
    position: relative;
    z-index: 2;
    font-weight: 700;
    letter-spacing: 0.025em;
}

/* ========================================
   6. Article Cards - Modern Style with Image
   ======================================== */

/* Article Card dengan Image */
.article-card-with-image {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 100%;
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.8);
    cursor: pointer;
    position: relative;
}

/* Link Wrapper for entire card */
.article-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.article-link-wrapper:hover {
    color: inherit;
}

/* Fallback for broken images */
.article-card-with-image img {
    background: var(--gray-100);
}

.article-card-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
    z-index: 3;
}

.article-card-with-image:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--gray-300);
}

.article-card-with-image:hover::before {
    transform: scaleX(1);
}

/* Image Wrapper */
.article-card-with-image .article-image-wrapper {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.article-card-with-image .article-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card-with-image:hover .article-image-wrapper img {
    transform: scale(1.12);
}

/* Overlay on image */
.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.article-card-with-image:hover .article-overlay {
    opacity: 1;
}

/* Badge on Image */
.article-card-with-image .article-badge-wrapper {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

/* Content Bottom */
.article-content-bottom {
    padding: 1.75rem;
}

.article-card-with-image .article-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    line-height: 1.5;
    transition: var(--transition-smooth);
}

.article-card-with-image:hover .article-title {
    color: var(--secondary-color);
}

.article-card-with-image .article-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 0;
}

.article-card-with-image .article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.article-card-with-image .article-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.article-card-with-image .article-meta i {
    font-size: 1rem;
}

.article-card-with-image .article-meta .bi-calendar3 {
    color: var(--gray-500);
}

.article-card-with-image .article-meta .bi-eye {
    color: var(--secondary-color);
}

/* Article Card Modern (tanpa image - untuk compatibility) */
.article-card-modern {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: var(--transition-smooth);
    border: 1px solid rgba(226, 232, 240, 0.8);
    cursor: pointer;
}

/* Decorative elements */
.article-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.article-card-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(113, 192, 69, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

/* Hover Effects */
.article-card-modern:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--gray-300);
}

.article-card-modern:hover::before {
    transform: scaleX(1);
}

.article-card-modern:hover::after {
    opacity: 1;
    top: -30%;
    right: -30%;
}

/* Badge Wrapper */
.article-badge-wrapper {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 3;
}

.article-badge-wrapper .badge {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: none;
    letter-spacing: 0.025em;
}

/* Icon Wrapper */
.article-icon-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.article-icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
    box-shadow: none;
}

.article-icon-primary {
    background: linear-gradient(135deg, rgba(84, 188, 222, 0.12) 0%, rgba(84, 188, 222, 0.18) 100%);
    color: var(--primary-color);
}

.article-icon-success {
    background: linear-gradient(135deg, rgba(113, 192, 69, 0.12) 0%, rgba(113, 192, 69, 0.18) 100%);
    color: var(--success-color);
}

.article-icon-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.15) 100%);
    color: var(--warning-color);
}

.article-icon-info {
    background: linear-gradient(135deg, rgba(84, 188, 222, 0.1) 0%, rgba(84, 188, 222, 0.15) 100%);
    color: var(--info-color);
}

/* Icon Background Decoration */
.article-icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: inherit;
    z-index: 1;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.article-card-modern:hover .article-icon-circle {
    transform: none;
    box-shadow: none;
}

.article-card-modern:hover .article-icon-bg {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.1;
}

/* Content */
.article-content {
    position: relative;
    z-index: 2;
}

/* Meta info */
.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.article-meta i {
    font-size: 1rem;
}

.article-meta .bi-calendar3 {
    color: var(--gray-500);
}

.article-meta .bi-clock {
    color: var(--primary-color);
}

/* Title */
.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.article-card-modern:hover .article-title a {
    color: var(--secondary-color);
}

.article-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Number */
.article-number {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 4rem;
    font-weight: 800;
    color: var(--gray-100);
    line-height: 1;
    opacity: 0.5;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.article-card-modern:hover .article-number {
    opacity: 0.8;
    transform: scale(1.1);
    color: rgba(113, 192, 69, 0.08);
}


/* ========================================
   8. Floating Chat Button - Brand Colors
   ======================================== */

.floating-chat-container {
    position: fixed;
    bottom: 35px;
    right: 35px;
    z-index: 1000;
}

.floating-chat-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    animation: none;
}

/* Ripple ring effect */
.floating-chat-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(84, 188, 222, 0.5);
    animation: rippleRing 2s ease-out infinite;
}

/* Shine effect */
.floating-chat-btn::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.6;
}

/* WhatsApp Brand Color */
.floating-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.floating-whatsapp:hover {
    box-shadow: none;
}

.floating-whatsapp::before {
    border-color: rgba(37, 211, 102, 0.5);
}

/* KREDISI Brand Gradient (for other use) */
.floating-livechat {
    background: linear-gradient(135deg, #54BCDE 0%, #71C045 100%);
}

/* Notification Badge */
.floating-chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #71C045 0%, #85d05a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    border: 3px solid white;
    box-shadow: none;
    animation: none;
}

/* Hover State */
.floating-chat-btn:hover {
    transform: none;
    color: white;
    box-shadow: none;
}

.floating-chat-btn:active {
    transform: scale(1.05);
}

/* Animations */
@keyframes chatPulse {

    0%,
    100% {
        box-shadow:
            0 8px 28px rgba(84, 188, 222, 0.35),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    }

    50% {
        box-shadow:
            0 12px 35px rgba(84, 188, 222, 0.45),
            0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    }
}

@keyframes rippleRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes badgeBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* ========================================
   9. Article Detail Page
   ======================================== */

.article-detail h3 {
    color: var(--dark-color);
    margin-top: 2rem;
}

.article-detail p,
.article-detail li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.article-detail ul {
    padding-left: 1.5rem;
}

.article-featured-image img {
    box-shadow: none;
}

.author-avatar {
    font-size: 0.9rem;
}

.blockquote-custom {
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.blockquote-custom .bi-quote {
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 10px;
}

/* ========================================
   10. Contact Page - Modern Style
   ======================================== */

/* Contact Link */
.contact-link {
    display: inline-block;
    font-size: 1.15rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: var(--transition-smooth);
}

.contact-link:hover::after {
    width: 100%;
}

.contact-link:hover {
    transform: scale(1.05);
}

/* Map Container */
.map-container {
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
}

.map-container iframe {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.contact-form-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: rgba(84, 188, 222, 0.2);
}

/* ========================================
   11. Footer - Modern Dark
   ======================================== */

footer {
    background: var(--band-footer, #18424d);
    padding-top: 4rem;
    padding-bottom: 2rem;
    position: relative;
}

footer h5 {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

footer p,
footer a {
    color: var(--gray-400);
    transition: var(--transition-smooth);
}

footer a:hover {
    color: white !important;
    transform: translateX(5px);
    padding-left: 5px;
}

footer .list-unstyled li {
    margin-bottom: 0rem;
}

footer .btn {
    border-width: 2px;
    transition: var(--transition-smooth);
}

footer .btn:hover {
    transform: scale(1.08);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

footer hr {
    border-color: var(--gray-700);
    opacity: 0.3;
}

footer .btn-outline-light {
    border-color: var(--gray-600);
}

footer .btn-outline-light:hover {
    background-color: var(--gray-700);
    border-color: var(--gray-500);
}

/* ========================================
   12. Breadcrumb Section
   ======================================== */
.pt-90 {
    padding: 140px 0 40px 0;
}

.breadcrumb-section {
    padding-top: 176px;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

/* ========================================
   13. Chat Modal - Modern Design
   ======================================== */

.chat-modal-modern {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

/* Header with Brand Gradient */
.chat-header-gradient {
    background: linear-gradient(135deg, #54BCDE 0%, #71C045 100%);
    padding: 1.5rem;
    border: none;
    position: relative;
}

.chat-header-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.chat-header-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-header-gradient .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
}

/* Chat Container */
.chat-container {
    background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    min-height: 320px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
}

/* Custom Scrollbar */
.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 10px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* Chat Messages */
.chat-message {
    margin-bottom: 1.5rem;
    animation: slideInMessage 0.3s ease;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-avatar-small {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(84, 188, 222, 0.25);
}

/* Chat Bubbles */
.chat-bubble {
    max-width: 75%;
    position: relative;
}

.chat-bubble-agent {
    background: white;
    border: 1px solid var(--gray-200);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.chat-bubble-agent p {
    margin-bottom: 0.5rem;
    color: var(--gray-800);
    font-size: 0.95rem;
    line-height: 1.6;
}

.chat-time {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.chat-bubble-user {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md) 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 4px 12px rgba(84, 188, 222, 0.25);
}

/* Chat Input */
.chat-input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gray-200);
    transition: var(--transition-smooth);
}

.chat-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow:
        0 4px 16px rgba(84, 188, 222, 0.2),
        0 0 0 3px rgba(84, 188, 222, 0.1);
}

.chat-input {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
}

.chat-input:focus {
    box-shadow: none;
    border: none;
}

.chat-send-btn {
    border-radius: 0 50px 50px 0;
    padding: 1rem 1.75rem;
    font-size: 1.1rem;
    border: none;
}

.chat-send-btn:hover {
    transform: scale(1.05);
}

/* ========================================
   14. Accordion (FAQ)
   ======================================== */

.accordion-button:not(.collapsed) {
    background-color: #eef7fa;
    color: #1d5c72;
}

.accordion-button:focus {
    border-color: #2f8aaa;
    box-shadow: 0 0 0 2px rgba(47, 138, 170, 0.2);
}

/* ========================================
   14.5 Pagination - Modern Style
   ======================================== */

.pagination {
    gap: 0.5rem;
}

.pagination .page-item .page-link {
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    font-weight: 600;
    padding: 0.65rem 1rem;
    transition: var(--transition-smooth);
    margin: 0;
    background: white;
}

.pagination .page-item .page-link:hover {
    background: #eef7fa;
    border-color: #b7d7e2;
    color: #1d5c72;
    transform: none;
    box-shadow: none;
}

.pagination .page-item.active .page-link {
    background: #2f8aaa;
    border-color: #2f8aaa;
    color: white;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link {
    background: var(--gray-100);
    border-color: var(--gray-200);
    color: var(--gray-400);
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: none;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: var(--radius-sm);
}

/* ========================================
   14.6 Search Form - Modern Style
   ======================================== */

.pt-90 .input-group {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    transition: var(--transition-smooth);
}

.pt-90 .input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow:
        0 8px 24px rgba(84, 188, 222, 0.2),
        0 0 0 3px rgba(84, 188, 222, 0.1);
}

.pt-90 .input-group .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: white;
}

.pt-90 .input-group .form-control:focus {
    box-shadow: none;
    border: none;
}

.pt-90 .input-group .btn {
    border-radius: 0;
    padding: 1rem 2rem;
    font-weight: 700;
    border: none;
}

.pt-90 .input-group .btn-outline-secondary {
    background: white;
    border-left: 1px solid var(--gray-200);
    color: var(--gray-600);
    padding: 1rem 1.5rem;
    border-radius: 0 50px 50px 0;
}

.pt-90 .input-group .btn-outline-secondary:hover {
    background: var(--gray-100);
    color: var(--gray-800);
    border-color: var(--gray-200);
}

.pt-90 .input-group .btn-primary {
    border-radius: 0;
}

/* Search Results Info */
.pt-90 .mt-3 small {
    font-size: 0.95rem;
    font-weight: 500;
}

.pt-90 .mt-3 strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* ========================================
   15. Responsive Styles
   ======================================== */


@media (max-width: 767px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .product-image-wrapper,
    .article-image-wrapper {
        height: 200px;
    }

    .floating-chat-container {
        bottom: 15px;
        right: 15px;
    }

    .floating-chat-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* ========================================
   16. Utility Classes
   ======================================== */

.shadow-hover {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: none !important;
}

.text-gradient {
    background: #2f8aaa;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   18. Print Styles
   ======================================== */

@media print {

    .navbar,
    .floating-chat-container,
    footer,
    .btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .container {
        width: 100%;
        max-width: 100%;
    }
}