:root {
    /* Law Firm Ando Official Style Guide */
    --bg-color: #F5F3EE;
    /* Light Ivory/Beige */
    --primary-color: #0A4228;
    /* Deep Forest Green */
    --text-color: #1A2B23;
    /* Charcoal Green */
    --accent-gold: #C5A065;
    /* Official Gold */
    --white: #FFFFFF;

    /* Typography */
    --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-serif: "Noto Serif KR", serif;

    /* Layout */
    --nav-height: 86px;
    --section-padding: 160px 20px;
    --mobile-padding: 80px 20px;

    /* Transitions */
    --transition-smooth: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-reveal: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Helpers */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
    word-break: keep-all;
    color: var(--primary-color);
}

.serif {
    font-family: var(--font-serif);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Buttons (Matching pill-shape official buttons) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 24px 60px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    gap: 12px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 10px 30px rgba(10, 66, 40, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(10, 66, 40, 0.3);
    background-color: #083621;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* Navigation (Matching official header) */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-gold);
}

/* Hero Section: Exact Palma Style */
.hero {
    padding-top: calc(var(--nav-height) + 100px);
    padding-bottom: calc(var(--nav-height) + 100px);
    background-color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Story Sections (Premium Storytelling Layout) */
.story-section {
    padding: 100px 20px;
    background-color: var(--white);
    overflow: hidden;
}

.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
}

.story-section.story-center .story-container {
    display: block;
    text-align: center;
    max-width: 800px;
}

.story-section.story-center .story-content {
    text-align: center;
    margin-bottom: 50px;
}

.story-section.story-center .story-visual img {
    max-width: 600px;
    margin: 40px auto 0;
}

.story-visual img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.story-section:hover .story-visual img {
    transform: translateY(-10px) scale(1.02);
}

.highlight-gold {
    color: var(--accent-gold);
}

.story-debt {
    background-color: var(--white);
}

.story-hope {
    background-color: var(--white);
}

.story-disaster {
    background-color: var(--white);
}

.emotional-text {
    font-family: 'Nanum Pen Script', cursive;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--primary-color);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 30px;
}

.trust-text {
    font-family: 'Pretendard', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--text-color);
    font-weight: 800;
    line-height: 1.8;
    letter-spacing: -1px;
}

@media (max-width: 1024px) {
    .story-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .story-content {
        text-align: center;
    }
}

.hero-text-wrap {
    margin-bottom: 150px;
    /* Increased to push image further down from text */
}

.hero-main {
    font-size: clamp(2rem, 5vw, 4.2rem);
    font-weight: 800;
    color: #333;
    line-height: 1.25;
    letter-spacing: -2px;
    margin: 0;
    word-break: keep-all;
}

.hero-main.sub {
    font-weight: 700;
    margin-bottom: 15px;
}

.highlight-green {
    color: #27B061;
    /* Vibrant Palma Green */
}

.blink {
    animation: smooth-pulse 2.5s ease-in-out infinite;
    -webkit-animation: smooth-pulse 2.5s ease-in-out infinite;
}

@keyframes smooth-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.1;
    }
}

@-webkit-keyframes smooth-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.1;
    }
}

/* Perfected EXIT Sign */
.exit-sign-wrap {
    margin-top: 20px;
    -webkit-box-reflect: below 5px linear-gradient(transparent 40%, rgba(255, 255, 255, 0.4));
}

.exit-sign {
    background-color: #27B061;
    color: #FFFFFF;
    padding: 25px 55px;
    border: 6px solid #FFFFFF;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    gap: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    outline: 2px solid #27B061;
}

.exit-text {
    font-size: 5rem;
    /* Larger and bolder */
    font-weight: 900;
    letter-spacing: -2px;
    font-family: 'Pretendard', sans-serif;
    line-height: 1;
}

.exit-icons {
    display: flex;
    align-items: center;
    gap: 25px;
    height: 100%;
}

/* doorway running man icon */
.doorway {
    position: relative;
    width: 60px;
    height: 75px;
    background-color: #FFFFFF;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.doorway i {
    color: #27B061;
    font-size: 3.5rem;
    z-index: 2;
}

.exit-arrow {
    font-size: 4rem;
    font-weight: 900;
}

/* Sub-stats repositioned */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 650px;
    /* Greatly increased to completely clear the long reflection */
    opacity: 0.5;
}


.fa-person-running {
    transform: translateX(5px);
}

.fa-arrow-right {
    font-size: 2.2rem;
}

/* Subtle Hero Stats to focus on the message */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 80px;
}

.stat-item h3 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 0;
}

/* Lawyer Section */
.lawyer-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.lawyer-profile {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.lawyer-image .image-box {
    aspect-ratio: 4/5;
    background: #EAE8E3;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: #D1CEC7;
}

.lawyer-info .sub-title {
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
}

.lawyer-info h2 {
    font-size: 3.2rem;
    margin-bottom: 25px;
}

.lawyer-info .job-title {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.6;
}

.philosophy {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 40px;
    line-height: 1.5;
}

.credentials {
    list-style: none;
}

.credentials li {
    margin-bottom: 15px;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
}

.credentials li i {
    color: var(--accent-gold);
    font-size: 0.9rem;
}

/* 6 Andos (Card Style matching original) */
.special-section {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    margin-bottom: 100px;
    /* Increased margin for better spacing */
}

.section-title h2 {
    font-size: 3.5rem;
    /* Increased size for the main heading */
    margin-bottom: 25px;
}

.section-title p {
    font-size: 1.5rem;
    /* Increased to sub-title size */
    color: var(--text-color);
    opacity: 0.9;
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.special-card {
    padding: 60px 45px;
    background: var(--white);
    border-radius: 30px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(10, 66, 40, 0.05);
}

.special-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.icon-wrap {
    width: 50px;
    height: 50px;
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.special-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

/* Success Cases */
.cases {
    padding: var(--section-padding);
    background-color: var(--white);
}

.cases .grid {
    display: grid;
    gap: 40px;
}

.case-card {
    background: var(--bg-color);
    border-radius: 30px;
    padding: 50px;
    transition: var(--transition-smooth);
}

.case-card:hover {
    border-color: var(--accent-gold);
}

.case-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.case-tag {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
}

.case-result {
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 1.4rem;
}

/* CTA & Form */
.cta-section {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.cta-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.cta-text h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.form-container {
    background: var(--white);
    padding: 60px;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 45px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    display: block;
    background-color: var(--bg-color);
    border: 1px solid rgba(10, 66, 40, 0.1);
    padding: 20px;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    /* Crucial for width: 100% */
}

#contactForm button {
    margin-top: 30px;
}


/* Footer (Official Layout) */
footer {
    padding: 100px 20px;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(10, 66, 40, 0.05);
    color: var(--text-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-logo-hanja {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--accent-gold);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-reveal);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .special-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lawyer-profile,
    .cta-flex {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .special-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 40px;
    }

    .btn {
        width: 100%;
    }
}

/* Process Roadmap Section */
.process-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.process-roadmap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 60px;
    position: relative;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary-color);
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.step-num {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.process-step h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.process-step p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

.process-line {
    flex: 0.5;
    height: 2px;
    background: rgba(10, 66, 40, 0.1);
    margin-top: 40px;
}

.highlight-step .step-icon {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(10, 66, 40, 0.2);
    position: relative;
}

.highlight-step h4 {
    color: var(--accent-gold);
}

/* Sequential Blinking & Sparkle Animations */
.process-section.active .process-step:nth-child(1) .step-icon {
    animation: step-blink 1.5s ease-in-out 0.8s;
}

.process-section.active .process-step:nth-child(3) .step-icon {
    animation: step-blink 1.5s ease-in-out 2.0s;
}

.process-section.active .process-step:nth-child(5) .step-icon {
    animation: step-blink 1.5s ease-in-out 3.2s;
}

.process-section.active .process-step:nth-child(7) .step-icon {
    animation: step-blink-final 1.5s ease-in-out 4.4s, sparkle-pulse 2s infinite ease-in-out 5.9s;
}

@keyframes step-blink {

    0%,
    100% {
        transform: scale(1);
        background: var(--bg-color);
        color: var(--primary-color);
    }

    50% {
        transform: scale(1.15);
        background: var(--primary-color);
        color: var(--white);
        box-shadow: 0 0 20px rgba(10, 66, 40, 0.4);
    }
}

@keyframes step-blink-final {

    0%,
    100% {
        transform: scale(1);
        background: var(--primary-color);
        color: var(--white);
    }

    50% {
        transform: scale(1.15);
        background: #0c5a36;
        box-shadow: 0 0 30px rgba(10, 66, 40, 0.6);
    }
}

@keyframes sparkle-pulse {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(10, 66, 40, 0.2);
    }

    50% {
        box-shadow: 0 0 30px var(--primary-color), 0 0 50px rgba(10, 66, 40, 0.4), 0 0 10px #fff;
        transform: scale(1.05);
    }
}

/* Sparkle stars effect for Step 04 */
.process-section.active .highlight-step .step-icon::before,
.process-section.active .highlight-step .step-icon::after {
    content: '✦';
    position: absolute;
    color: var(--accent-gold);
    font-size: 1.2rem;
    opacity: 0;
    animation: star-fade 2s infinite ease-in-out 3.6s;
}

.process-section.active .highlight-step .step-icon::before {
    top: -10px;
    right: -10px;
}

.process-section.active .highlight-step .step-icon::after {
    bottom: -5px;
    left: -15px;
    animation-delay: 4.6s;
}

@keyframes star-fade {

    0%,
    100% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* Social Proof (Decision/Reviews) */
.social-proof-wrap {
    margin-top: 80px;
    padding: 0 20px;
}

.proof-slider {
    background: #EAE8E3;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    height: 500px;
    display: flex;
    justify-content: center;
    background-color: #f7f7f7;
}

.chat-scroll-container {
    display: flex;
    gap: 30px;
    width: 100%;
    padding: 20px;
    justify-content: center;
}

.chat-column {
    flex: 1;
    max-width: 300px;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 24px;
    background: #AAB9D1;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.chat-track {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    animation: scroll-vertical 25s linear infinite;
}

@keyframes scroll-vertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.chat-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    filter: blur(5px);
}

.chat-date {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 15px 0;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.chat-name {
    font-size: 0.75rem;
    color: #444;
    margin-bottom: 4px;
}

.bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    position: relative;
}

.bubble.received {
    align-self: flex-start;
    background: #FFFFFF;
    color: #000;
    border-top-left-radius: 2px;
}

.bubble.sent {
    align-self: flex-end;
    background: #FEE500;
    color: #000;
    border-top-right-radius: 2px;
}

.proof-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px 30px;
    background: linear-gradient(transparent, rgba(10, 66, 40, 0.95));
    color: #fff;
    z-index: 10;
    pointer-events: none;
}

.proof-overlay span {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-serif);
}

.proof-caption {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.6;
}

/* FAQ Section */
.faq-section {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 20px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(10, 66, 40, 0.05);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
}

.faq-answer p {
    padding-bottom: 25px;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-top: 10px;
}

/* Responsive adjustments for Roadmap */
@media (max-width: 768px) {
    .process-roadmap {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .process-line {
        display: none;
    }

    .process-step {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .proof-item {
        aspect-ratio: 1 / 1;
    }
}

/* ============================================
   Category Case Cards - Interactive Flip Style
   (Matching the reference image design)
   ============================================ */

.case-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 60px;
}

.case-category-card {
    position: relative;
    height: 420px;
    perspective: 1000px;
    cursor: pointer;
}

.category-front,
.category-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Front side - Default state */
.category-front {
    background: linear-gradient(145deg, #1B5E3C 0%, #0A4228 50%, #083621 100%);
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    z-index: 2;
}

.case-category-card:hover .category-front {
    opacity: 0;
    transform: scale(0.95);
    z-index: 1;
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.category-icon i {
    font-size: 2rem;
    color: var(--accent-gold);
}

.case-category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-front h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
}

/* Back side - Hover state with case details */
.category-back {
    background: linear-gradient(145deg, #1B5E3C 0%, #0A4228 50%, #083621 100%);
    padding: 24px;
    opacity: 0;
    transform: scale(1.05);
    z-index: 1;
}

.case-category-card:hover .category-back {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.category-icon-small {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.category-icon-small i {
    font-size: 1rem;
    color: var(--accent-gold);
}

.category-back h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.case-tag-inline {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.case-amount {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
}

.case-rate {
    font-size: 1.4rem;
    font-weight: 800;
    color: #4ADE80;
    margin-bottom: 12px;
}

.case-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 12px 0 14px;
}

.case-story {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    flex-grow: 1;
}

/* Responsive */
@media (max-width: 1200px) {
    .case-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .case-category-card {
        height: 440px;
    }
}

@media (max-width: 768px) {
    .case-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .case-category-card {
        height: 460px;
    }

    .category-front h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .case-category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .case-category-card {
        height: auto;
        min-height: 200px;
    }

    /* On mobile, show both front and back stacked */
    .category-front,
    .category-back {
        position: relative;
        backface-visibility: visible;
        opacity: 1;
        transform: none;
    }

    .case-category-card:hover .category-front {
        opacity: 1;
        transform: none;
    }

    .case-category-card:hover .category-back {
        transform: none;
    }

    .category-front {
        padding: 20px;
        flex-direction: row;
        gap: 15px;
        justify-content: flex-start;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .category-back {
        display: flex;
    }
}