/* ==========================================================================
   GLOBAL STYLES & DESIGN SYSTEM - KOTAK SOLITAIRE OFFERS
   ========================================================================== */

:root {
    /* Brand Colors */
    --kotak-red: #ED1C24;
    --kotak-red-dark: #C70817;
    --kotak-red-gradient: linear-gradient(135deg, #FF1E27 0%, #C40612 100%);
    --kotak-dark-navy: #1D2336;
    --kotak-darker-navy: #131926;
    --kotak-midnight: #19192D;
    --kotak-blue-accent: #0056B3;

    /* Accent & Category Colors */
    --accent-peach: #FDEEE9;
    --accent-peach-border: #F7D5C9;
    --accent-gold: #DCA776;
    --accent-gold-light: #FFF6EE;
    --accent-solitaire-border: #DC968C;
    --accent-solitaire-gradient: linear-gradient(135deg, #FFF0E8 0%, #FFE3D3 100%);
    --accent-whatsapp: #25D366;
    --accent-whatsapp-dark: #128C7E;

    /* Neutral Palette */
    --bg-page: #F3F4F7;
    --bg-card: #FFFFFF;
    --bg-card-secondary: #F8F9FB;
    --bg-pill-inactive: #EFEFEF;
    --border-light: #E7EAEE;
    --border-subtle: #ECEFF3;
    --text-primary: #1C2534;
    --text-secondary: #586072;
    --text-muted: #848D9E;
    --text-white: #FFFFFF;

    /* Typography */
    --font-manrope: "Manrope", sans-serif;
    --font-source-sans: "Source Sans 3", 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-source-serif: "Source Serif 4", 'Times New Roman', serif;

    /* Elevation & Shadows */
    --shadow-sm: 0 2px 6px rgba(19, 25, 38, 0.04);
    --shadow-md: 0 6px 16px rgba(19, 25, 38, 0.07);
    --shadow-lg: 0 12px 28px rgba(19, 25, 38, 0.10);
    --shadow-hover: 0 18px 36px rgba(19, 25, 38, 0.13);
    --shadow-card-glow: 0 8px 24px rgba(237, 28, 36, 0.12);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-pill: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    font-family: var(--font-source-sans);
    background-color: #D4D4D4;
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: clip;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent background scroll when modal is open without shifting page layout */
html.modal-open,
body.modal-open {
    overflow: hidden;
    touch-action: none;
}

/* Base Layout Container */
.container {
    width: 100%;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 70px;
    padding-right: 70px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
    user-select: none;
}

/* Section Title Utility */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-title {
    font-family: var(--font-source-sans);
    font-size: 32px;
    font-weight: 700;
    color: var(--kotak-dark-navy);
}

.view-more-link {
    font-family: var(--font-source-sans);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #E1251B;
    font-size: 18px;
    font-weight: 700;
    transition: color var(--transition-fast);
}

.view-more-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 4;
}

.view-more-link:hover {
    color: var(--kotak-red-dark);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-4px) rotate(1deg);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.35);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(237, 28, 36, 0);
    }
}

.animate-fade-in {
    animation: fadeIn var(--transition-medium) forwards;
}

/* Scroll Animation Classes */
.reveal-on-scroll {
    will-change: opacity, transform;
}

/* Hide all scrollbars globally */
html,
body,
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
}

/* Retain scrollbars only inside OEM list */
.loan-oem-list {
    scrollbar-width: thin;
    scrollbar-color: #E2E6EC transparent;
    -ms-overflow-style: auto;
}

.loan-oem-list::-webkit-scrollbar {
    display: block !important;
    width: 6px !important;
    height: auto !important;
}

.loan-oem-list::-webkit-scrollbar-thumb {
    background-color: #E2E6EC;
    border-radius: 6px;
}

/* Responsive Text Display Helpers */
.desktop-text {
    display: inline;
}

.mobile-text {
    display: none;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-text {
        display: none !important;
    }

    .mobile-text {
        display: inline !important;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}