/* Shared styles for Connect pages */

:root {
    --primary-purple: #660876;
    --accent-blue: #051964;
    --gold-accent: #d4a017;
    --highlight-gold: #d4a017;
    --text-main: #222222;
    --text-sub: #555555;
    --bg-page: #f9f9fb;
    --white: #ffffff;
    --border-line: #e5e7eb;
    --radius-md: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 30px rgba(0,0,0,0.12);
}

.layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    padding: 60px 10px 100px;
    align-items: start;
    min-height: 800px;
}

.sidebar {
    position: sticky;
    top: 110px;
}

.nav-group-label {
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 24px 0 12px 10px;
}

.nav-group-label:first-child {
    margin-top: 0;
}

.sidebar-menu li {
    margin-bottom: 6px;
}

.sidebar-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    color: var(--text-sub);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-btn:hover {
    background: #f0f0f0;
    color: var(--primary-purple);
}

.sidebar-btn.active {
    background: var(--primary-purple);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 8, 118, 0.25);
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeEffect 0.6s;
}

.tab-content.active-tab {
    display: block;
}

@keyframes fadeEffect {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-large {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
    box-shadow: var(--shadow-card);
}

.banner-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5,25,100,0.85) 0%, rgba(5,25,100,0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 50px;
    color: #fff;
}

.banner-h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-p {
    font-size: 18px;
    max-width: 600px;
    opacity: 0.95;
    line-height: 1.5;
}

.section-title {
    font-size: 24px;
    color: var(--text-main);
    font-weight: 700;
    margin: 50px 0 24px 0;
    display: flex;
    align-items: center;
    padding-left: 16px;
    border-left: 5px solid var(--gold-accent);
}

.impact-text {
    color: #444;
    font-size: 16px;
    margin-bottom: 30px;
    text-align: justify;
    line-height: 1.8;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-line);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-purple);
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.project-card {
    background: #fff;
    border: 1px solid var(--border-line);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold-accent);
}

.project-img {
    height: 160px;
    background: #eee;
    position: relative;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-accent);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.project-desc {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.btn-link {
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.btn-link i {
    margin-left: 6px;
    transition: 0.2s;
}

.project-card:hover .btn-link i {
    margin-left: 10px;
}

.quote-box {
    background: #fdfcf5;
    border-left: 4px solid var(--gold-accent);
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.quote-text {
    font-size: 18px;
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.quote-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-blue);
}

.cta-box {
    background: var(--accent-blue);
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.cta-btn {
    display: inline-block;
    background-color: var(--gold-accent);
    color: #fff;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
    transition: 0.2s;
}

.cta-btn:hover {
    background-color: #e5b020;
    transform: scale(1.05);
}

.contact-card {
    background: #fff;
    border: 1px solid var(--border-line);
    border-radius: 8px;
    padding: 20px;
    margin-top: 40px;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.contact-card h5 {
    color: var(--accent-blue);
    margin-bottom: 10px;
    font-size: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-sub);
}

.tab-content .job-banner {
    height: 200px;
    background-color: var(--accent-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    background-image: linear-gradient(rgba(5,25,100,0.8), rgba(5,25,100,0.9)), url('https://picsum.photos/1000/300?grayscale');
    background-size: cover;
    background-position: center;
}

.tab-content .job-banner h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    text-align: center;
}

.faculty-position-block {
    margin-bottom: 50px;
}

.sec-title {
    font-size: 22px;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-line);
    padding-bottom: 10px;
    display: inline-block;
}

.text-content {
    color: var(--text-sub);
    margin-bottom: 20px;
    text-align: justify;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.benefit-item {
    background: #fff;
    border: 1px solid var(--border-line);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: 0.3s;
}

.benefit-item:hover {
    border-color: var(--primary-purple);
    transform: translateY(-3px);
}

.benefit-icon {
    font-size: 24px;
    color: var(--highlight-gold);
    margin-bottom: 10px;
}

.benefit-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 5px;
    color: var(--accent-blue);
}

.benefit-desc {
    font-size: 13px;
    color: #666;
}

.listing-ul {
    list-style: none;
    margin-bottom: 30px;
}

.listing-ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-sub);
}

.listing-ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-purple);
    font-size: 14px;
}

.apply-box {
    background: #f8faff;
    border: 1px dashed var(--accent-blue);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apply-info h4 {
    color: var(--accent-blue);
    margin-bottom: 5px;
}

.apply-info p {
    font-size: 14px;
    color: #666;
}

.btn-apply {
    background: var(--primary-purple);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-apply:hover {
    background: #550663;
}

.pd-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

.pd-card {
    background: #fff;
    border: 1px solid var(--border-line);
    border-radius: 10px;
    padding: 24px;
    display: flex;
    gap: 24px;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.pd-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-purple);
}

.pd-left {
    width: 60px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pd-logo {
    width: 50px;
    height: 50px;
    background: #eee;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
}

.pd-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-content {
    flex: 1;
}

.pd-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.pd-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.pd-lab {
    font-size: 14px;
    color: var(--accent-blue);
    font-weight: 600;
}

.pd-tag {
    background: #eef2ff;
    color: var(--accent-blue);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    whitespace: nowrap;
}

.pd-desc {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 16px;
    line-height: 1.5;
}

.pd-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: 12px;
    align-items: center;
}

.pd-btn {
    margin-left: auto;
    padding: 8px 16px;
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.pd-btn:hover {
    background: var(--primary-purple);
    color: #fff;
}

@media (max-width: 768px) {
    .layout-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stats-row,
    .project-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-bottom: 20px;
        position: static;
        gap: 10px;
    }

    .sidebar-btn {
        white-space: nowrap;
        width: auto;
        background: #fff;
        border: 1px solid #eee;
    }

    .banner-large {
        height: 240px;
    }

    .banner-h2 {
        font-size: 24px;
    }

    .pd-card {
        flex-direction: column;
    }

    .pd-left {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .apply-box {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
