/* Issue Section Styles */
.issue {
    padding: 120px 0;
    background: #f9fafb;
    position: relative;
    overflow: hidden;
}

/* Background Architectural Elements */
.issue-arch-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(15, 118, 110, 0.05);
    z-index: 1;
}

.issue-arch-line.left {
    left: 5%;
}

.issue-arch-line.right {
    right: 5%;
}

.issue-dots {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: radial-gradient(var(--color-primary) 1px, transparent 1px);
    background-size: 60px 60px;
}

.issue-container {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

/* Header Section */
.issue-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    gap: 40px;
}

.section-tag-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tag-line {
    width: 48px;
    height: 4px;
    background: var(--color-primary);
}

.section-tag {
    color: var(--color-primary);
    font-weight: 900;
    font-size: 14px;
    
    letter-spacing: 0.4em;
}

.issue-main-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: var(--color-text-dark);
    
    letter-spacing: -0.02em;
    
    line-height: 1.2;
    margin: 0;
}

.issue-main-title .highlight {
    color: var(--color-primary);
}

.header-right {
    text-align: right;
}

.ruler-dots {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    justify-content: flex-end;
}

.ruler-dots span {
    width: 4px;
    height: 12px;
    background: #e5e7eb;
}

/* Matrix Layout */
.issues-matrix {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    border: 2px solid var(--color-text-dark);
    background: var(--color-text-dark);
    gap: 2px;
    margin-top: 40px;
}

/* Left Side Analysis */
.matrix-left {
    grid-column: span 4;
    background: #f9fafb;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bg-watermark {
    position: absolute;
    top: -40px;
    left: -40px;
    font-size: 240px;
    font-weight: 900;
    color: rgba(17, 24, 39, 0.03);
    
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.matrix-content {
    position: relative;
    z-index: 2;
}

.matrix-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    color: var(--color-text-dark);
    
    letter-spacing: -0.02em;
    
    line-height: 1.3;
    margin-bottom: 24px;
}

.matrix-title .highlight {
    color: var(--color-primary);
}

.matrix-desc {
    color: #4b5563;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    padding: 10px;
}

.matrix-visual {
    position: relative;
    z-index: 2;
    margin-top: 32px;
}

.mascot-wrapper {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scaleX(-1);
}

.mascot-inspector {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(0.9);
    transition: filter 0.7s ease;
}

.matrix-left:hover .mascot-inspector {
    filter: grayscale(0) brightness(1);
}

/* Right Side Matrix */
.matrix-right {
    grid-column: span 8;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: var(--color-text-dark);
    gap: 2px;
}

/* Card Base Styling - Applied to items inside matrix-right */
.issue-card {
    position: relative;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

/* Background Image Overlay */
.issue-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.issue-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) opacity(0.2);
    transition: all 0.7s ease;
}

.issue-card:hover .issue-card-img {
    filter: grayscale(0) opacity(0.6);
    transform: scale(1.05);
}

.issue-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #111827 5%, rgba(17, 24, 39, 0.4) 50%, transparent 100%);
    z-index: 1;
}

/* Card Content Containers */
.issue-card-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
}

.issue-card:hover .issue-card-content {
    border-color: rgba(15, 118, 110, 0.4);
    background: rgba(15, 118, 110, 0.1);
}

/* View States: Collapsed vs Expanded */
.issue-view--collapsed {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
}

.issue-card:hover .issue-view--collapsed {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.issue-view--expanded {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.issue-card:hover .issue-view--expanded {
    opacity: 1;
    transform: translateY(0);
}

/* Collapsed Elements */
.issue-index {
    display: block;
    font-family: ui-monospace, monospace;
    font-size: 10px;
    color: var(--color-primary);
    margin-bottom: 8px;
    letter-spacing: 0.3em;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.issue-short-title {
    font-size: 18px;
    font-weight: 900;
    
    letter-spacing: -0.01em;
    
    line-height: 1.2;
    color: #fff; /* Thay đổi từ var(--color-text-dark) sang #fff để dễ nhìn trên nền ảnh */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Thêm đổ bóng để tách biệt với nền */
    transition: color 0.4s ease;
}

.issue-card:hover .issue-short-title {
    color: #fff;
}

/* Expanded Elements */
.issue-view--expanded {
    display: flex;
    flex-direction: column;
}

.issue-full-title {
    font-size: 22px;
    font-weight: 900;
    
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 12px;
    color: #fff;
    min-height: 48px;
}

@media (max-width: 1024px) {
    .issue-full-title {
        min-height: 48px;
    }
}

.issue-description {
    color: #e5e7eb;
    font-weight: 600;
    line-height: 1.5;
    
    margin: 0;
    font-size: 14px;
}

/* Decoration corner */
.issue-corner {
    position: absolute;
    top: 0;
    right: 0;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.issue-card:hover .issue-corner {
    opacity: 0.5;
}

.issue-corner-marker {
    width: 20px;
    height: 20px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}



.card-content {
    flex-grow: 1;
}

.card-subtitle {
    display: block;
    font-size: 10px;
    font-weight: 900;
    color: var(--color-primary);
    
    letter-spacing: 0.3em;
    margin-bottom: 16px;
    transition: color 0.5s ease;
}

.pain-point-card:hover .card-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.card-title-issue {
    font-size: 24px;
    font-weight: 900;
    
    letter-spacing: -0.01em;
    
    color: #000000;
    line-height: 1.4;
    margin-bottom: 16px;
    transition: color 0.5s ease;
}

.pain-point-card:hover .card-title-issue {
    color: #ffffff;
}

.card-desc {
    font-size: 15px;
    color: #4b5563;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    transition: color 0.5s ease;
}

.pain-point-card:hover .card-desc {
    color: rgba(255, 255, 255, 0.85);
}

.card-status {
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.pain-point-card:hover .card-status {
    opacity: 1;
    color: #fff;
}

.status-bars {
    display: flex;
    gap: 4px;
}

.status-bars span {
    width: 4px;
    height: 12px;
    background: currentColor;
}

.status-label {
    font-size: 9px;
    font-weight: 900;
    
    letter-spacing: 0.2em;
}

/* Quote Box */
.issue-quote-box {
    margin-top: 80px;
    background: var(--color-text-dark);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.quote-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: 
        linear-gradient(45deg, var(--color-primary) 25%, transparent 25%),
        linear-gradient(-45deg, var(--color-primary) 25%, transparent 25%);
    background-size: 10px 10px;
    transition: opacity 1s ease;
}

.issue-quote-box:hover .quote-pattern {
    opacity: 0.1;
}

.quote-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.quote-line {
    width: 4px;
    height: 96px;
    background: var(--color-primary);
    animation: bounce 2s infinite;
}

.quote-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    color: #ffffff;
    
    letter-spacing: -0.02em;
    
    line-height: 1.2;
    max-width: 900px;
    margin: 0;
}

.quote-highlight {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    text-underline-offset: 8px;
}

.quote-footer {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-line {
    height: 1px;
    width: 48px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-text {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    
    letter-spacing: 0.2em;
}

.quote-dots {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    opacity: 0.2;
}

.quote-dots span {
    width: 6px;
    height: 6px;
    background: #fff;
}

.quote-dots.top-left { top: 16px; left: 16px; }
  .quote-dots.bottom-right { bottom: 16px; right: 16px; }

/* Always show mobile view (expanded content) */
.issue-view--collapsed {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  display: none;
}

.issue-view--expanded {
  opacity: 1;
  transform: translateY(0);
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
}

.issue-card-img {
  filter: grayscale(0) opacity(0.3) !important;
  transform: scale(1) !important;
}

.issue-corner {
  opacity: 0.5 !important;
}

/* Next Indicator */
.next-indicator {
    display: flex;
    justify-content: center;
    margin-top: 80px;
    opacity: 0.2;
    color: var(--color-primary);
}

.next-indicator svg {
    width: 32px;
    height: 32px;
    animation: bounce 2s infinite;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
    .issue-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-right {
        display: none;
    }

    .issues-matrix {
        grid-template-columns: 1fr;
    }

    .matrix-left {
        grid-column: span 1;
    }

    .matrix-right {
        grid-column: span 1;
    }

    /* Mobile: Always show expanded content (no hover needed) */
    .issue-view--collapsed {
        opacity: 0;
        transform: translateY(10px);
        pointer-events: none;
        display: none;
    }

    .issue-view--expanded {
        opacity: 1;
        transform: translateY(0);
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
    }

    /* Show image in color on mobile */
    .issue-card-img {
        filter: grayscale(0) opacity(0.3);
        transform: scale(1);
    }

    /* Show corner decoration on mobile */
    .issue-corner {
        opacity: 0.5;
    }

    /* Adjust card content padding for mobile */
    .issue-card-content {
        padding: 24px;
    }

    /* Hide mascot visual on mobile */
    .matrix-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .issue {
        padding: 64px 0;
    }

    .matrix-right {
        grid-template-columns: 1fr;
    }

    .pain-point-card {
        padding: 40px 24px;
    }

    .matrix-left {
        padding: 32px;
    }

    .issue-quote-box {
        padding: 64px 24px;
    }

    .issue-container{
        padding: 0;
    }

    .header-left{
        padding: 0 20px;
    }

    .matrix-right {
    gap: 10px;
        }

 
}