/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .nav-menu {
        gap: 30px;
    }
    
    .methodology-items {
        gap: 15px;
    }
    
    .methodology-item {
        padding: 25px 15px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .methodology-row {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .methodology-items {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .connection-line {
        width: 2px;
        height: 30px;
        transform: rotate(90deg);
    }
    
    .connection-line::after {
        right: -3px;
        top: 25px;
        border-left: 4px solid var(--primary-color);
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        transform: rotate(90deg);
    }
    
    .app-screenshots {
        flex-direction: column;
        gap: 30px;
    }
    
    .center-screenshot {
        transform: scale(1);
        order: -1;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero {
        min-height: 500px;
        padding: 0 20px;
    }
    
    .hero-logo {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .salesnail-icon {
        width: 35px;
        height: 35px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .subsection-title {
        font-size: 1.5rem;
    }
    
    .description-text {
        font-size: 1rem;
    }
    
    .methodology-category {
        min-width: auto;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .methodology-item {
        padding: 20px 15px;
    }
    
    .item-title {
        font-size: 1.1rem;
    }
    
    .item-description {
        font-size: 0.9rem;
    }
    
    .app-screen {
        width: 150px;
    }
    
    .video-overlay {
        padding: 8px 15px;
        font-size: 1rem;
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    .nav-container {
        height: 60px;
    }
    
    .nav-logo .logo-img {
        height: 30px;
    }
    
    .nav-menu {
        top: 60px;
    }
    
    .hero {
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .get-started-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .subsection-title {
        font-size: 1.3rem;
    }
    
    .methodology-row {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .methodology-item {
        padding: 15px 10px;
    }
    
    .item-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .method-icon {
        width: 25px;
        height: 25px;
    }
    
    .item-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .item-description {
        font-size: 0.85rem;
    }
    
    .app-screenshots {
        gap: 20px;
    }
    
    .app-screen {
        width: 120px;
    }
    
    .screenshot-label {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .screenshot-description {
        font-size: 0.9rem;
        margin-top: 10px;
    }
    
    .video-overlay {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .app-text {
        font-size: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .hero {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .methodology-items {
        gap: 15px;
    }
    
    .app-screen {
        width: 100px;
    }
    
    .app-screenshots {
        gap: 15px;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-toggle,
    .get-started-btn {
        display: none;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        page-break-after: always;
    }
    
    .hero-background,
    .hero-overlay,
    .app-background,
    .app-gradient-overlay {
        display: none;
    }
    
    .hero-content,
    .app-content {
        color: var(--text-primary);
    }
    
    .section-title,
    .hero-title {
        color: var(--text-primary);
    }
    
    .methodology-section,
    .what-is-section,
    .app-preview-section {
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
        --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.5);
    }
    
    .methodology-item,
    .nav-link,
    .get-started-btn {
        border: 1px solid var(--border-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Table Responsive Styles */
@media (max-width: 991px) {
    .simulation-table-wrapper,
    .comparison-table-wrapper {
        margin: 0 -20px;
        border-radius: 0;
    }
    
    .simulation-table thead th,
    .comparison-table thead th {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
    
    .simulation-table tbody td,
    .comparison-table tbody td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    
    .emoji {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .rating-desc {
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {
    .subtitle-main {
        font-size: 1.5rem;
    }
    
    .subtitle-desc {
        font-size: 0.9rem;
    }
    
    .simulation-table-wrapper,
    .comparison-table-wrapper {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .simulation-table,
    .comparison-table {
        min-width: 600px;
    }
    
    .simulation-table thead th,
    .comparison-table thead th {
        padding: 10px 8px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .simulation-table tbody td,
    .comparison-table tbody td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    
    .emoji {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    
    .rating-desc {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

@media (max-width: 575px) {
    .simulation-table,
    .comparison-table {
        min-width: 500px;
    }
    
    .simulation-table thead th,
    .comparison-table thead th {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .simulation-table tbody td,
    .comparison-table tbody td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    .table-footer {
        padding: 15px;
    }
    
    .more-available {
        font-size: 0.9rem;
    }
    
    .emoji {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .rating-desc {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

/* Difference Section Responsive */
@media (max-width: 991px) {
    .comparison-header {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .comparison-header::after {
        display: none;
    }
    
    .comparison-item {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .salesnail-point,
    .traditional-point {
        padding: 0;
        width: 100%;
    }
    
    .comparison-items::before {
        display: none;
    }
    
    .separator-line {
        display: none;
    }
    
    .point-title {
        font-size: 1rem;
    }
    
    .point-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 767px) {
    .salesnail-header,
    .traditional-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .brand-title {
        font-size: 1.3rem;
    }
    
    .salesnail-point {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .traditional-point {
        text-align: center;
    }
    
    .point-circle {
        width: 40px;
        height: 40px;
    }
    
    .point-circle .icon {
        font-size: 16px;
    }
}

/* Product Specs Responsive */
@media (max-width: 991px) {
    .specs-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 600px;
    }
    
    .spec-card {
        min-height: 250px;
        padding: 25px;
    }
    
    .big-number {
        font-size: 3rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .card-numbers {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .big-number {
        font-size: 2.5rem;
    }
    
    .number-label {
        font-size: 0.9rem;
    }
    
    .card-title {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .npcs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .avatar-img {
        width: 35px;
        height: 35px;
    }
    
    .avatar-name {
        font-size: 0.65rem;
    }
    
    .cards-stack {
        height: 100px;
    }
    
    .card-stack-item {
        width: 60px;
        height: 80px;
    }
    
    .laptop-screen {
        width: 100px;
        height: 60px;
    }
}

@media (max-width: 575px) {
    .spec-card {
        padding: 20px;
        min-height: 200px;
    }
    
    .big-number {
        font-size: 2rem;
    }
    
    .number-label {
        font-size: 0.8rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .npcs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .avatar-img {
        width: 30px;
        height: 30px;
    }
    
    .avatar-name {
        font-size: 0.6rem;
    }
    
    .cards-stack {
        height: 80px;
    }
    
    .card-stack-item {
        width: 50px;
        height: 65px;
    }
    
    .laptop-screen {
        width: 80px;
        height: 50px;
    }
    
    .card-icon {
        font-size: 20px;
        top: 15px;
        right: 15px;
    }
}

/* Core Logic Section Responsive */
@media (max-width: 991px) {
    .logic-diagram {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .methodology-title {
        font-size: 1.8rem;
    }
    
    .methodology-desc {
        font-size: 1rem;
    }
    
    .column-title {
        font-size: 1.1rem;
    }
    
    .progress-bar {
        width: 60px;
        font-size: 1rem;
    }
    
    .progress-label {
        font-size: 1.1rem;
    }
    
    .progress-content {
        padding: 15px;
    }
    
    .progress-list li,
    .resource-list li {
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {
    .core-methodology {
        margin-bottom: 40px;
    }
    
    .methodology-title {
        font-size: 1.5rem;
    }
    
    .methodology-desc {
        font-size: 0.95rem;
    }
    
    .column-title {
        font-size: 1rem;
    }
    
    .process-step,
    .resource-step {
        padding: 15px;
    }
    
    .step-text {
        font-size: 0.85rem;
    }
    
    .progress-bar {
        width: 50px;
        font-size: 0.9rem;
    }
    
    .progress-label {
        font-size: 1rem;
    }
    
    .progress-content {
        padding: 12px;
    }
    
    .progress-list li,
    .resource-list li {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    
    .contracts-title {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .logic-diagram {
        gap: 15px;
    }
    
    .column-header {
        padding: 15px;
    }
    
    .column-title {
        font-size: 0.9rem;
    }
    
    .process-step,
    .resource-step {
        padding: 12px;
    }
    
    .step-text {
        font-size: 0.8rem;
    }
    
    .progress-item {
        flex-direction: column;
    }
    
    .progress-bar {
        width: 100%;
        height: 40px;
        font-size: 0.85rem;
    }
    
    .progress-content {
        padding: 10px;
    }
    
    .progress-list li,
    .resource-list li {
        font-size: 0.7rem;
        margin-bottom: 5px;
    }
    
    .business-contracts {
        padding: 15px;
    }
    
    .contracts-title {
        font-size: 0.9rem;
    }
}

/* How to Use Section Responsive */
@media (max-width: 991px) {
    .approach-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .approach-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .approach-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .approach-cards {
        margin-bottom: 30px;
    }
    
    .card-image {
        height: 150px;
    }
    
    .card-content {
        padding: 18px;
    }
    
    .card-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .card-desc {
        font-size: 0.85rem;
    }
    
    .card-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 12px;
        right: 12px;
    }
    
    .key-point {
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .point-marker {
        width: 10px;
        height: 10px;
        margin-top: 5px;
    }
    
    .point-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .approach-title {
        font-size: 1.3rem;
    }
    
    .card-image {
        height: 120px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-desc {
        font-size: 0.8rem;
    }
    
    .card-icon {
        width: 30px;
        height: 30px;
        font-size: 18px;
        top: 10px;
        right: 10px;
    }
    
    .key-point {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .point-marker {
        width: 8px;
        height: 8px;
        margin-top: 4px;
    }
    
    .point-text {
        font-size: 0.85rem;
    }
}

/* User Feedback Section Responsive */
@media (max-width: 991px) {
    .feedback-slider {
        height: 450px;
    }
    
    .feedback-card {
        flex: 0 0 350px;
        height: 400px;
        padding: 25px;
    }
    
    .card-quote {
        font-size: 3.5rem;
        top: 12px;
        left: 22px;
    }
    
    .user-name {
        font-size: 1.3rem;
    }
    
    .feedback-text {
        font-size: 0.88rem;
    }
    
    .feedback-track {
        animation-duration: 25s;
    }
}

@media (max-width: 767px) {
    .feedback-slider {
        height: 420px;
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 1) 5%,
            rgba(0, 0, 0, 1) 95%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 1) 5%,
            rgba(0, 0, 0, 1) 95%,
            transparent 100%
        );
    }
    
    .feedback-card {
        flex: 0 0 320px;
        height: 380px;
        padding: 22px;
    }
    
    .card-quote {
        font-size: 3rem;
        top: 10px;
        left: 20px;
    }
    
    .user-title {
        font-size: 1rem;
    }
    
    .user-name {
        font-size: 1.2rem;
    }
    
    .feedback-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .card-header {
        margin-bottom: 18px;
        padding-top: 18px;
    }
    
    .card-content {
        height: calc(100% - 75px);
    }
    
    .feedback-track {
        gap: 25px;
        animation-duration: 22s;
    }
}

@media (max-width: 575px) {
    .feedback-slider {
        height: 400px;
    }
    
    .feedback-card {
        flex: 0 0 280px;
        height: 360px;
        padding: 20px;
    }
    
    .card-quote {
        font-size: 2.5rem;
        top: 8px;
        left: 18px;
    }
    
    .user-title {
        font-size: 0.95rem;
    }
    
    .user-name {
        font-size: 1.1rem;
    }
    
    .feedback-text {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .card-header {
        margin-bottom: 15px;
        padding-top: 15px;
    }
    
    .card-content {
        height: calc(100% - 70px);
        padding-right: 8px;
    }
    
    .card-content::-webkit-scrollbar {
        width: 3px;
    }
    
    .feedback-track {
        gap: 20px;
        animation-duration: 20s;
    }
}

@media (max-width: 480px) {
    .feedback-slider {
        height: 380px;
    }
    
    .feedback-card {
        flex: 0 0 260px;
        height: 340px;
        padding: 18px;
    }
    
    .card-quote {
        font-size: 2.2rem;
        top: 6px;
        left: 16px;
    }
    
    .user-title {
        font-size: 0.9rem;
    }
    
    .user-name {
        font-size: 1rem;
    }
    
    .feedback-text {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .card-header {
        margin-bottom: 12px;
        padding-top: 12px;
    }
    
    .card-content {
        height: calc(100% - 65px);
        padding-right: 6px;
    }
    
    .feedback-track {
        gap: 18px;
        animation-duration: 18s;
    }
}

@media (max-width: 375px) {
    .feedback-slider {
        height: 360px;
    }
    
    .feedback-card {
        flex: 0 0 240px;
        height: 320px;
        padding: 16px;
    }
    
    .card-quote {
        font-size: 2rem;
        top: 5px;
        left: 14px;
    }
    
    .user-title {
        font-size: 0.85rem;
    }
    
    .user-name {
        font-size: 0.95rem;
    }
    
    .feedback-text {
        font-size: 0.7rem;
        line-height: 1.25;
        margin-bottom: 8px;
    }
    
    .card-header {
        margin-bottom: 10px;
        padding-top: 10px;
    }
    
    .card-content {
        height: calc(100% - 60px);
        padding-right: 5px;
    }
    
    .feedback-track {
        gap: 15px;
        animation-duration: 16s;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .feedback-slider {
        height: 300px;
    }
    
    .feedback-card {
        height: 280px;
        padding: 15px;
    }
    
    .card-quote {
        font-size: 2rem;
        top: 5px;
        left: 15px;
    }
    
    .card-header {
        margin-bottom: 10px;
        padding-top: 10px;
    }
    
    .card-content {
        height: calc(100% - 55px);
    }
    
    .feedback-text {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .feedback-card {
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.18);
    }
    
    .feedback-card:hover {
        box-shadow: 0 8px 35px rgba(0, 0, 0, 0.25);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .feedback-card:hover {
        transform: none;
        box-shadow: var(--shadow-medium);
    }
    
    .feedback-track:hover {
        animation-play-state: running;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --text-light: #999999;
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --border-color: #404040;
    }
    
    .header {
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
    }
    
    .methodology-item {
        background: var(--white);
        border: 1px solid var(--border-color);
    }
    
    .dropdown-menu {
        background: var(--white);
        border: 1px solid var(--border-color);
    }
    
    .simulation-table,
    .comparison-table {
        background: var(--white);
    }
    
    .simulation-table tbody tr:nth-child(even),
    .comparison-table tbody tr:nth-child(even) {
        background: var(--light-gray);
    }
    
    .table-footer {
        background: var(--light-gray);
        border-top: 1px solid var(--border-color);
    }
    
    .spec-card {
        border: 1px solid var(--border-color);
    }
    
    .laptop-screen,
    .card-stack-item {
        background: var(--white);
        border: 1px solid var(--border-color);
    }
    
    .logic-column {
        background: var(--white);
        border: 1px solid var(--border-color);
    }
    
    .approach-card {
        background: var(--white);
        border: 1px solid var(--border-color);
    }
    
    .business-contracts {
        background: var(--light-gray);
        border-top: 1px solid var(--border-color);
    }
    
    .feedback-card {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #2d3748 100%);
        border: 1px solid var(--border-color);
    }
    
    .card-quote {
        color: rgba(74, 144, 226, 0.4);
    }
    
    .news-section {
        background: var(--white);
    }
    
    .case-item {
        border-bottom: 1px solid var(--border-color);
    }
    
    .case-item:hover {
        background: rgba(74, 144, 226, 0.05);
    }
    
    .details-content {
        background: var(--light-gray);
        border: 1px solid var(--border-color);
    }
    
    .training-image {
        background: var(--light-gray);
        border: 2px dashed var(--border-color);
    }
}

/* News Section Responsive */
@media (max-width: 991px) {
    .news-header {
        margin-bottom: 40px;
    }
    
    .news-cases {
        margin-bottom: 40px;
    }
    
    .case-item {
        padding: 20px 0;
    }
    
    .case-number {
        font-size: 1.8rem;
        min-width: 70px;
    }
    
    .case-content {
        margin-left: 25px;
    }
    
    .case-title {
        font-size: 1.3rem;
    }
    
    .case-description {
        font-size: 0.95rem;
    }
    
    .case-expand-btn {
        margin-left: 15px;
    }
    
    .details-content {
        margin-left: 95px;
        margin-right: 50px;
        padding: 20px;
    }
    
    .training-image {
        min-height: 250px;
    }
}

@media (max-width: 767px) {
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .case-item {
        padding: 18px 0;
        flex-wrap: wrap;
    }
    
    .case-number {
        font-size: 1.6rem;
        min-width: 60px;
    }
    
    .case-content {
        margin-left: 20px;
        flex: 1;
        min-width: 200px;
    }
    
    .case-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .case-description {
        font-size: 0.9rem;
    }
    
    .case-expand-btn {
        margin-left: 10px;
    }
    
    .expand-arrow {
        width: 20px;
        height: 20px;
    }
    
    .details-content {
        margin-left: 80px;
        margin-right: 40px;
        padding: 18px;
    }
    
    .details-content p {
        font-size: 0.9rem;
    }
    
    .training-image {
        min-height: 200px;
    }
    
    .image-caption {
        font-size: 0.85rem;
        margin-top: 12px;
    }
}

@media (max-width: 575px) {
    .news-header {
        margin-bottom: 30px;
    }
    
    .news-cases {
        margin-bottom: 30px;
    }
    
    .case-item {
        padding: 15px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .case-number {
        font-size: 1.4rem;
        min-width: auto;
        align-self: flex-start;
    }
    
    .case-content {
        margin-left: 0;
        width: 100%;
        order: 2;
    }
    
    .case-title {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .case-description {
        font-size: 0.85rem;
    }
    
    .case-expand-btn {
        margin-left: 0;
        align-self: flex-end;
        order: 1;
        position: absolute;
        right: 0;
        top: 15px;
    }
    
    .expand-arrow {
        width: 18px;
        height: 18px;
    }
    
    .case-item.expanded .case-details {
        max-height: 400px;
        padding: 15px 0;
    }
    
    .details-content {
        margin-left: 0;
        margin-right: 0;
        padding: 15px;
    }
    
    .details-content p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .training-image {
        min-height: 180px;
    }
    
    .training-image::before {
        font-size: 12px;
    }
    
    .image-caption {
        font-size: 0.8rem;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .case-item {
        padding: 12px 0;
        position: relative;
        padding-right: 50px;
    }
    
    .case-number {
        font-size: 1.2rem;
    }
    
    .case-title {
        font-size: 1rem;
    }
    
    .case-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .case-expand-btn {
        top: 12px;
        right: 10px;
        padding: 8px;
    }
    
    .expand-arrow {
        width: 16px;
        height: 16px;
    }
    
    .case-item.expanded .case-details {
        max-height: 350px;
        padding: 12px 0;
    }
    
    .details-content {
        padding: 12px;
    }
    
    .details-content p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .training-image {
        min-height: 150px;
    }
    
    .training-image::before {
        font-size: 11px;
    }
    
    .image-caption {
        font-size: 0.75rem;
        margin-top: 8px;
    }
}

@media (max-width: 375px) {
    .case-item {
        padding: 10px 0;
        padding-right: 45px;
    }
    
    .case-number {
        font-size: 1.1rem;
    }
    
    .case-title {
        font-size: 0.95rem;
    }
    
    .case-description {
        font-size: 0.75rem;
    }
    
    .case-expand-btn {
        top: 10px;
        right: 5px;
        padding: 6px;
    }
    
    .expand-arrow {
        width: 14px;
        height: 14px;
    }
    
    .case-item.expanded .case-details {
        max-height: 300px;
        padding: 10px 0;
    }
    
    .details-content {
        padding: 10px;
    }
    
    .details-content p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .training-image {
        min-height: 120px;
    }
    
    .training-image::before {
        font-size: 10px;
    }
    
    .image-caption {
        font-size: 0.7rem;
        margin-top: 6px;
    }
}

/* News section landscape adjustments */
@media (max-width: 767px) and (orientation: landscape) {
    .case-item {
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding-right: 60px;
    }
    
    .case-number {
        min-width: 50px;
    }
    
    .case-content {
        margin-left: 15px;
    }
    
    .case-expand-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        order: 0;
    }
    
    .training-image {
        min-height: 160px;
    }
}

/* Touch device optimizations for News */
@media (hover: none) and (pointer: coarse) {
    .case-item:hover {
        transform: none;
        background: transparent;
        padding-left: 0;
        padding-right: 0;
    }
    
    .case-expand-btn:hover {
        background: rgba(74, 144, 226, 0.15);
    }
    
    .training-image:hover {
        transform: none;
        box-shadow: var(--shadow-medium);
    }
    
    /* Increase touch targets */
    .case-expand-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .case-item {
        min-height: 60px;
    }
}

/* High contrast mode for News */
@media (prefers-contrast: high) {
    .case-item {
        border-bottom: 2px solid var(--text-primary);
    }
    
    .case-expand-btn {
        border: 1px solid var(--border-color);
    }
    
    .details-content {
        border: 2px solid var(--border-color);
    }
    
    .training-image {
        border: 3px solid var(--border-color);
    }
}

/* Reduced motion for News */
@media (prefers-reduced-motion: reduce) {
    .case-item {
        animation: none;
    }
    
    .case-details {
        transition: none;
    }
    
    .expand-arrow {
        transition: none;
    }
    
    .case-item.expanded .expand-arrow {
        transform: none;
    }
    
    .training-image:hover {
        transform: none;
    }
}
