/* Research Detail Section - Color Theme Override & Styles */
/* Redefine color variables for this section only */
#research.research-detail-section,
.research-detail-section {
    /* Custom color theme: rgb(52, 184, 193) - Teal/Cyan */
    --color-primary: rgb(52, 184, 193);
    --color-primary-light: rgb(109, 214, 220);
    --color-primary-dark: rgb(39, 148, 156);
    
    /* Dotted pattern background - white background with light grey dots */
    /* From Uiverse.io by kennyotsu */
    padding: 3rem 0;
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    background-image: radial-gradient(rgba(180, 180, 180, 0.3) 2px, transparent 0);
    background-size: 30px 30px;
    background-position: -5px -5px;
}

/* Ensure container and content are above the pattern */
.research-detail-section .container {
    position: relative;
    z-index: 1;
    background: transparent;
}

.research-detail-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.research-detail-badge {
    display: inline-block;
    background: var(--color-primary-light);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.research-detail-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.research-detail-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Research Points Cards - Based on design.css card1 style */
.research-detail-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.research-card {
    display: block;
    position: relative;
    background-color: #f2f8f9;
    border-radius: 4px;
    padding: 32px 24px;
    text-decoration: none;
    z-index: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.research-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.research-card p {
    font-size: 17px;
    font-weight: 400;
    line-height: 20px;
    color: #666;
    margin: 0;
}

.research-card p.small {
    font-size: 14px;
    margin-top: 0.5rem;
}

.research-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0 0.5rem 0;
    color: var(--text-primary);
}

.research-point-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.research-point-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.go-corner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 32px;
    height: 32px;
    overflow: hidden;
    top: 0;
    right: 0;
    background-color: var(--color-primary);
    border-radius: 0 4px 0 32px;
}

.go-arrow {
    margin-top: -4px;
    margin-right: -4px;
    color: white;
    font-family: courier, sans;
    font-size: 18px;
}

.research-card1:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -16px;
    right: -16px;
    background: var(--color-primary);
    height: 32px;
    width: 32px;
    border-radius: 32px;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform 0.25s ease-out;
}

.research-card1:hover:before {
    transform: scale(21);
}

.research-card1:hover p {
    transition: all 0.3s ease-out;
    color: rgba(255, 255, 255, 0.8);
}

.research-card1:hover h4 {
    transition: all 0.3s ease-out;
    color: #fff;
}

.research-card1:hover .research-point-icon {
    transition: all 0.3s ease-out;
    transform: scale(1.1);
    color: #fff;
}

/* Container for the orbital component */
.research-detail-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    min-height: 400px;
}


/* Additional Styles */
.image-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--color-surface);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.step-num {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Research Topics */
.research-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.topic-tag {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1200px) {
    .research-detail-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 1024px) {
    .research-detail-section {
        padding: 4rem 0;
    }

    .research-detail-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .research-detail-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .research-detail-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .research-detail-points {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .research-card {
        padding: 24px 20px;
    }

    .research-point-icon {
        font-size: 2rem;
    }

    .research-card h4 {
        font-size: 1rem;
    }

    .research-card p {
        font-size: 14px;
    }

    .research-card p.small {
        font-size: 13px;
    }

    .research-detail-image {
        padding: 1.5rem;
        min-height: 350px;
    }
    
}

@media (max-width: 768px) {
    .research-detail-section {
        padding: 4rem 0;
    }

    .research-detail-content {
        gap: 2.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .research-detail-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .research-detail-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .research-detail-points {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .research-card {
        padding: 20px 18px;
    }

    .research-point-icon {
        font-size: 1.75rem;
    }

    .research-card h4 {
        font-size: 0.95rem;
    }

    .research-card p {
        font-size: 13px;
    }

    .research-card p.small {
        font-size: 12px;
    }

    .research-detail-image {
        display: none;
    }
}

@media (max-width: 480px) {
    .research-detail-section {
        padding: 3rem 0;
    }

    .research-detail-content {
        gap: 2rem;
    }

    .research-detail-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .research-detail-title {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .research-detail-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .research-detail-points {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .research-card {
        padding: 18px 16px;
    }

    .research-point-icon {
        font-size: 1.5rem;
    }

    .research-card h4 {
        font-size: 0.9rem;
    }

    .research-card p {
        font-size: 12px;
        line-height: 1.4;
    }

    .research-card p.small {
        font-size: 11px;
    }
    
    .research-detail-image {
        display: none;
    }
}

@media (max-width: 360px) {
    .research-detail-title {
        font-size: 1.4rem;
    }

    .research-detail-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .research-detail-section {
        padding: 2.5rem 0;
    }
}

@media print {
    .research-detail-section {
        padding: 1rem 0;
        break-inside: avoid;
    }
}
