:root {
    --primary: #1AADA3;
    --primary-light: #2BC4BA;
    --primary-dark: #168B82;
    --accent: #FF6B9D;
    --success: #48BB78;
    --danger: #F56565;
    --warning: #F6AD55;
    --info: #4299E1;
    --text-light: #FFFFFF;
    --text-dark: #2D3748;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

html {
    background: linear-gradient(135deg, #1AADA3 0%, #2BC4BA 50%, #1AADA3 100%);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: gradientShift 15s ease infinite;
}

body {
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
    background: transparent;
    color: var(--text-light);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Decorative background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

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

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* new-age.min.css ships header.masthead with padding-top:150px/padding-bottom:100px
   sitewide — override with matching specificity so it doesn't leave a big gap. */
header.masthead {
    height: auto !important;
    min-height: 0 !important;
}

.expense-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Banner */
.expense-banner-main {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.expense-banner-main h1 {
    font-family: 'Kanit', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.expense-banner-main hr {
    width: 80px;
    height: 3px;
    background-color: #fff;
    border: none;
    margin: 20px auto;
    opacity: 0.7;
}

.expense-banner-main h2 {
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

/* Body text */
.detail-text {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
}

.detail-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.detail-text a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-text a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Detail section */
.detail-section {
    padding: 20px 20px 80px;
}

/* Left-aligned section heading (for text2, shown left-aligned in the original) */
.section-header-left {
    max-width: 900px;
    margin: 0 auto 1.5rem;
}
section {padding-bottom: inherit;}
.section-title-left {
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Steps Grid */
.steps-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-items: center;
}

.wfh-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(340px, 440px));
    justify-content: center;
}

.wfh-grid-1 {
    grid-template-columns: minmax(300px, 900px);
    justify-content: center;
}

.step-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.step-card.wide-card {
    max-width: 900px;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.step-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

.step-card:hover::before {
    opacity: 1;
}

.step-icon {
    text-align: center;
}

.expense-phone-block img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.expense-phone-block img:hover {
    transform: translateY(-5px);
}

/* Stagger animation for step cards */
.step-card:nth-child(1) {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.step-card:nth-child(2) {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Responsive */
@media (max-width: 768px) {
    header.masthead {
        padding: 40px 20px 10px !important;
    }

    .expense-banner-main h1 {
        font-size: 1.9rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-card,
    .step-card.wide-card {
        max-width: 400px;
    }

    .section-title-left {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .expense-banner-main h1 {
        font-size: 1rem;
    }
}
