/* --- Variables & Reset --- */
:root {
    --primary-color: #2E5EAA;
    /* Deep Blue */
    --accent-color: #F4D35E;
    /* Gold/Yellow */
    --dark-bg: #0F172A;
    --light-bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --gradient-main: linear-gradient(135deg, #2E5EAA 0%, #1e40af 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.highlight {
    color: var(--primary-color);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-main);
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.btn-cta-small {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.btn-cta-small:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Nav height */
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--gradient-main);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: -1;
    opacity: 0.1;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.eyebrow {
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin: 10px 0;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 94, 170, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 94, 170, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(46, 94, 170, 0.05);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-muted);
    font-size: 1.5rem;
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--white);
    padding: 3rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.stats-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Section Global --- */
.section {
    padding: 6rem 0;
}

.alt-bg {
    background-color: #F1F5F9;
}

/* --- Experience Carousel --- */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 1rem;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2rem 1rem;
    width: 100%;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;

    /* Snap Logic */
    scroll-snap-type: x mandatory;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    min-width: 450px;
    /* Fixed width for consistency */
    max-width: 450px;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;

    /* Snap Logic */
    scroll-snap-align: start;
}

.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.card-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

.date-badge {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.card-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: auto;
    object-fit: contain;
}

.carousel-card h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.3rem;
    line-height: 1.3;
    padding-right: 90px;
    /* Make space for logo */
}

.carousel-card h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.card-body ul {
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.card-body ul li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.exp-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px dotted var(--text-muted);
}

.exp-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Navigation Buttons */
.nav-btn {
    background: var(--white);
    border: 1px solid #e2e8f0;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    z-index: 10;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: scale(1.1);
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }

    .mobile-only {
        display: block;
        text-align: center;
        color: var(--text-muted);
        margin-top: 1rem;
        font-size: 0.9rem;
    }

    .carousel-card {
        min-width: 85vw;
    }
}

/* --- Timeline (Experience) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #CBD5E1;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content .date {
    display: inline-block;
    background: #EFF6FF;
    color: var(--primary-color);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: disc;
    margin-left: 1.2rem;
    color: #475569;
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* --- Education Cards --- */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #EFF6FF;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1rem;
}

.card-date {
    display: block;
    font-size: 0.85rem;
    color: #94A3B8;
    margin-bottom: 1rem;
}

.gpa {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- Publications & Achievements --- */
/* Reusing grid-cards for publications, adding specific overrides */
.pub-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    height: 100%;
    cursor: pointer;
    position: relative;
    padding-top: 2rem;
    /* Reverted padding now that tags are separate headers */
}

.pub-card .card-icon {
    margin: 0 0 1rem 0;
    /* Left align icon */
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: auto;
    /* Allow natural height */
    max-height: 400px;
    /* Optional cap to prevent massive images */
    object-fit: contain;
    /* Ensure full image is visible if we had a fixed container, but with height auto this is less critical, keeping it clean */
    display: block;
    background-color: #f8fafc;
    /* Subtle background for images with white padding if any */
}

/* Placeholder style for when images aren't there yet */
.img-placeholder {
    width: 100%;
    height: 250px;
    background: #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    gap: 1rem;
    font-size: 0.9rem;
}

.img-placeholder i {
    font-size: 2rem;
}

.gallery-caption {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.event-block {
    margin-bottom: 3rem;
}

.event-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Modern List Layout --- */

.list-category {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 3rem 0 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.pub-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
}

.pub-list-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.pub-content {
    flex: 1;
    padding-right: 2rem;
}

.pub-content h3 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pub-content h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pub-action {
    flex-shrink: 0;
}

.btn-text {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease;
}

.pub-list-item:hover .btn-text {
    gap: 0.8rem;
}

.status-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.pending {
    background: #fff7ed;
    color: #ea580c;
}

@media (max-width: 768px) {
    .pub-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }

    .pub-content {
        padding-right: 0;
    }
}

/* Category Sub-headers */
.category-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 3rem 0 1.5rem;
    border-left: 5px solid var(--accent-color);
    padding-left: 1rem;
    font-family: var(--font-heading);
}

.mt-0 {
    margin-top: 0 !important;
}

/* 2-Column Publications Layout */
.pubs-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Force cards to stack in the columns */
.grid-cards.single-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .pubs-layout {
        grid-template-columns: 1fr;
        gap: 0rem;
    }

    .category-title {
        margin-top: 3rem;
    }

    .mt-0 {
        margin-top: 3rem !important;
    }

    /* Restore margin on mobile for first item if stacked */
    .pubs-col:first-child .mt-0 {
        margin-top: 0 !important;
    }

    /* ... but keep top one tight */
}

.read-more i {
    transition: transform 0.3s ease;
}

.pub-card:hover .read-more i {
    transform: translate(3px, -3px);
}

.header-spacing {
    margin-top: 4rem;
}

.subsection-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.tag {
    background: #F0F9FF;
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid #BAE6FD;
}

/* --- Footer --- */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #94A3B8;
    margin-bottom: 2rem;
    max-width: 400px;
}

.contact-link {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.contact-link i {
    margin-right: 10px;
    color: var(--accent-color);
}

.location {
    color: #94A3B8;
    margin-top: 1rem;
}

.location i {
    margin-right: 10px;
}

.languages h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.languages ul li {
    margin-bottom: 0.5rem;
    color: #CBD5E1;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #64748B;
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Event Card specific styles */
.carousel-card.event-card {
    min-width: 350px;
    /* Match experience card width */
    max-width: 350px;
    padding: 1.5rem;
    /* Slightly less padding to maximize content area */
    flex-direction: column;
    align-items: flex-start;
    /* Align like experience cards */
    justify-content: flex-start;
}

.carousel-card.event-card h3.event-title {
    width: 100%;
    text-align: left;
    margin-bottom: 1rem;
    padding-right: 0;
    font-size: 1.1rem;
    /* Slightly smaller for better fit */
    border-left: 4px solid var(--accent-color);
    padding-left: 0.8rem;
    line-height: 1.4;
}

.carousel-card.event-card .gallery-grid {
    width: 100%;
    display: block;
    /* Stack if multiple, but we plan to have 1 per card */
}

.carousel-card.event-card .gallery-item {
    width: 100%;
    margin-bottom: 0;
}

.carousel-card.event-card .gallery-item img {
    height: 200px;
    /* Fixed height for uniformity in carousel */
    object-fit: cover;
    /* Cover for uniformity */
    border-radius: 8px;
    width: 100%;
}

.carousel-card.event-card .video-container {
    padding-bottom: 0;
    height: 200px;
    /* Fixed height for video card */
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-card.event-card .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .carousel-card.event-card {
        padding: 1.5rem 1rem;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        top: 60px;
        /* adjusted */
        background: var(--white);
        flex-direction: column;
        width: 100%;
        text-align: center;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: block;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-top: 2rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-bg-shape {
        width: 100%;
        height: 40%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
    }

    .hero-btns,
    .social-links {
        justify-content: center;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -9px;
    }
}

.timeline-dot {
    left: -9px;
}

/* --- Achievements Clean List Style --- */
.achievements ul.ac-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    /* Optional constraint for readability */
}

.achievements ul.ac-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.achievements ul.ac-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.2;
}

.achievements ul.ac-list li strong {
    color: var(--text-main);
    font-weight: 600;
}

/* --- Developed Tools Section --- */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tool-card {
    flex: 1 1 300px;
    max-width: 450px;
    /* Match experience cards */
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.tool-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.status-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #dcfce7;
    /* Greenish bg */
    color: #166534;
    /* Green text */
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.2s ease;
}

.btn-link:hover {
    gap: 0.8rem;
}

/* --- MemeEdx Specific Styles --- */

/* Timeline Redesign */
.timeline-container {
    max-width: 600px;
    margin: 3rem auto 1rem;
    position: relative;
    padding-top: 20px;
}

.timeline-track {
    position: absolute;
    top: 35px;
    /* Aligned with center of the 30px dot */
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}

.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    padding: 0 10%;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.timeline-marker {
    width: 30px;
    height: 30px;
    background: var(--white);
    border: 4px solid #cbd5e1;
    border-radius: 50%;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-marker {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.timeline-item.active .timeline-marker {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(46, 94, 170, 0.2);
}

.timeline-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-year {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.timeline-phase-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.timeline-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Bottom Section Styles */
.pedagogy-text-clean {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--text-main);
    font-weight: 600;
    font-family: var(--font-heading);
}

.collaboration-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #bfdbfe;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.collab-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.collab-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .collaboration-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .timeline-track {
        left: 0;
        right: 0;
    }

    .timeline-wrapper {
        padding: 0;
    }
}

/* Framework Image Refinement */
.framework-crop-container {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 4px solid #f8fafc;
    display: flex;
    /* Ensure internal centering if needed */
    justify-content: center;
}

.framework-img {
    width: 100%;
    /* Pull image up to crop top text (adjusted to 10% as requested) */
    margin-top: -10%;
    margin-bottom: -5%;
    /* Reduce bottom spacing if needed */
    display: block;
}/ *   - - -   S p l i t   L a y o u t   f o r   A c h i e v e m e n t s   - - -   * /  
 . a c h i e v e m e n t s - w r a p p e r   {  
         m a r g i n :   4 r e m   0 ;  
 }  
  
 . s p l i t - l a y o u t   {  
         d i s p l a y :   f l e x ;  
         g a p :   3 r e m ;  
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ;  
 }  
  
 . s p l i t - c o l   {  
         f l e x :   1 ;  
 }  
  
 . s p l i t - c o l   . s u b s e c t i o n - t i t l e   {  
         f o n t - s i z e :   1 . 5 r e m ;  
         c o l o r :   v a r ( - - t e x t - m a i n ) ;  
         m a r g i n - b o t t o m :   1 . 5 r e m ;  
         b o r d e r - l e f t :   4 p x   s o l i d   v a r ( - - a c c e n t - c o l o r ) ;  
         p a d d i n g - l e f t :   1 r e m ;  
 }  
  
 @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )   {  
         . s p l i t - l a y o u t   {  
                 f l e x - d i r e c t i o n :   c o l u m n ;  
                 g a p :   2 r e m ;  
         }  
 }  
 