/* =========================================
   About Page Specific Styles - Premium Redesign
   ========================================= */

/* Main Container */
.research-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Header Section */
.research-header-section {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.research-header-section h1 {
    font-size: 3rem;
    color: #2c3e50;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    z-index: 1;
}

/* Decorative Underline */
.research-header-section h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    background: linear-gradient(90deg, #2eb8b8, #5dd4d4);
    margin: 15px auto 0;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.research-header-section:hover h1::after {
    width: 100px;
}

/* Intro Wrapper (Image + Text) */
.research-intro-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
    /* Increased gap for better breathing room */
    margin-bottom: 120px;
    /* More vertical separation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards ease-out;
}

/* Alternate Layout Support */
.research-intro-wrapper.reversed {
    flex-direction: row-reverse;
}

.research-intro-image-box {
    flex: 1;
    position: relative;
    max-width: 550px;
    /* Limit width */
}

/* Premium Image Styling */
.research-intro-image-box img {
    width: 100%;
    height: auto;
    max-height: 600px;
    /* Fixed visually pleasing height */
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    /* Soft, deep shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    z-index: 2;
    position: relative;
    display: block;
}

/* Hover Effect for Image */
.research-intro-image-box:hover img {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.2);
}

/* Decorative background shape behind image */
.research-intro-image-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(46, 184, 184, 0.3);
    border-radius: 24px;
    z-index: 0;
    transition: transform 0.4s ease;
}

.research-intro-wrapper.reversed .research-intro-image-box::before {
    left: auto;
    right: -20px;
}

.research-intro-image-box:hover::before {
    transform: translate(10px, 10px);
}

.research-intro-wrapper.reversed .research-intro-image-box:hover::before {
    transform: translate(-10px, 10px);
}

/* Text Content */
.research-intro-text-content {
    flex: 1.1;
}

.research-intro-text-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #555;
    text-align: justify;
    margin-bottom: 20px;
    font-weight: 300;
}

/* Achievements Section */
.research-achievements-wrapper {
    padding: 60px 0;
    background-color: #f9fbfb;
    /* Very subtle background for separation */
    border-radius: 30px;
    margin-top: 40px;
}

.research-achievements-title {
    text-align: center;
    margin-bottom: 60px;
}

.research-achievements-title h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.research-achievements-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 0 20px;
    justify-content: center;
}

/* Achievement Card */
.research-achievement-item {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    /* Uniform height */
    display: flex;
    flex-direction: column;
}

.research-achievement-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(46, 184, 184, 0.15);
}

/* Card Image */
.research-achievement-image-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.research-achievement-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.research-achievement-item:hover .research-achievement-image-container img {
    transform: scale(1.1);
}

/* Card Text */
.research-achievement-text-box {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Stats Number */
.research-achievement-stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2eb8b8, #1a8a8a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    line-height: 1;
}

.research-achievement-text-box h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.research-achievement-text-box p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Read More Button Styles */
.research-read-more-btn {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.research-read-more-btn:hover {
    background: #f8f9fa;
    border-color: #2eb8b8;
    color: #2eb8b8;
}

/* Hidden Details Section */
.research-achievement-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease;
    padding: 0 30px;
    background: #fcfcfc;
    border-top: 1px solid #f0f0f0;
}

.research-achievement-details.show {
    max-height: 300px;
    /* Limit height to show scrollbar */
    overflow-y: auto;
    padding: 20px 30px 30px 30px;
    transition: max-height 0.5s ease-in, padding 0.3s ease;
}

/* Custom Scrollbar for Achievements */
.research-achievement-details.show::-webkit-scrollbar {
    width: 6px;
}

.research-achievement-details.show::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.research-achievement-details.show::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.research-achievement-details.show::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.research-achievement-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.research-achievement-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.research-achievement-details li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2eb8b8;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.5rem;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 991px) {

    .research-intro-wrapper,
    .research-intro-wrapper.reversed {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        /* Center text on mobile usually looks better */
    }

    .research-intro-text-content p {
        text-align: left;
        /* Improved readability for mobile */
    }

    .research-intro-image-box {
        max-width: 100%;
        width: 100%;
    }

    .research-intro-image-box img {
        height: auto;
        max-height: 500px;
    }

    .research-header-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .research-main-container {
        padding: 50px 20px;
    }

    .research-intro-image-box img {
        height: auto;
        max-height: 500px;
    }

    .research-header-section h1 {
        font-size: 2.2rem;
    }

    .research-intro-image-box::before {
        display: none;
        /* Hide border decoration on small screens if it causes overflow */
    }

    /* Card Responsive Alignment */
    .research-achievement-text-box {
        text-align: center;
        padding: 25px 20px;
    }

    .research-achievement-text-box p {
        text-align: justify;
    }

    .research-read-more-btn {
        align-self: center;
    }
}