/* Premium Academic Styling for Pulakesh Pradhan */

:root {
    --brand-primary: #1a5f7a;
    /* Deeper professional blue */
    --brand-secondary: #219150;
    /* Rich forest green */
    --brand-accent: #d35400;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: #fbfcfd;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Home Page Profile Section */
.profile-column {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background: white;
    border-bottom: 1px solid #e1e4e8;
}

.profile-card {
    text-align: center;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.profile-img-container {
    width: 260px;
    height: 260px;
    margin: 0 auto 30px;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 8px solid white !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
    position: relative;
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
}

.profile-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.profile-card h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-align: center;
}

.profile-card h3 {
    font-size: 1.35rem;
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-align: center;
}

.profile-card em {
    display: block;
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 1.15rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 auto 25px;
}

.social-btn {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-top: 5px;
}

.social-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827 !important;
}

.social-btn i {
    font-size: 1rem;
}

/* Unified Button Styling */
.btn {
    border-radius: 6px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.2px;
}

.btn-outline-primary:hover,
.btn-primary {
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.2);
}

.cv-link {
    color: var(--brand-secondary);
    font-size: 1rem;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.cv-link:hover {
    border-color: var(--brand-secondary);
}

/* Section Headers Modern Styling */
h2 {
    border-bottom: 2px solid #e1e4e8;
    padding-bottom: 12px;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.75rem;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Premium Table Styling */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Mobile Table Scrolling to prevent page zoom-out */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    /* Allow text wrapping in links to prevent super wide columns if desired, 
       but block display usually needs nowrap to trigger scroll. 
       Let's keep nowrap for scroll behavior. */
}

th {
    background-color: #f8fafc;
    color: var(--brand-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 12px 15px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: var(--text-main);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: #fbfcfe;
}

tr:hover {
    background-color: #f1f5f9;
    transition: background-color 0.2s ease;
}

/* Link in table */
table a {
    color: var(--brand-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

table a:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}


/* Innovations & Courses Grid - Modern & Professional */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .software-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Grid Cards - Compact & Professional */
/* Extended Course Entries */
.course-grid {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: 60px;
}

.course-card {
    position: relative;
    display: flex;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

.course-card:hover {
    transform: translateX(15px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-primary);
}

.course-card img {
    width: 350px;
    height: 230px;
    object-fit: cover;
    flex-shrink: 0;
    border-right: 1px solid #f1f5f9;
}

.course-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.course-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 12px;
}

.course-card p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Clean White Innovation Section */
.innovation-section {
    background: #ffffff;
    padding: 40px 0;
    margin: 20px 0;
}

.innovation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .innovation-grid {
        grid-template-columns: 1fr;
    }
}

.innovation-card {
    position: relative;
    /* For stretched link */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.innovation-card:nth-child(5n+1) {
    background: #f0f7ff;
}

/* Soft Blue */
.innovation-card:nth-child(5n+2) {
    background: #f0fff4;
}

/* Soft Green */
.innovation-card:nth-child(5n+3) {
    background: #fff9f0;
}

/* Soft Cream */
.innovation-card:nth-child(5n+4) {
    background: #fdf2f8;
}

/* Soft Rose */
.innovation-card:nth-child(5n+5) {
    background: #f5f3ff;
}

/* Soft Violet */

.innovation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-primary);
}

.innovation-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-bottom: 1px solid #f1f5f9;
}

.innovation-card-label {
    padding: 20px 20px 8px;
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 700;
}

.innovation-card-desc {
    padding: 0 20px 20px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    flex-grow: 1;
}

.innovation-card-links {
    padding: 15px 20px;
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.innovation-card-links .social-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: white;
    position: relative;
    z-index: 2;
    /* Stay above stretched link */
}

/* Stretched link to make whole card clickable */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

@media (max-width: 900px) {
    .course-card {
        flex-direction: column;
    }

    .course-card img {
        width: 100%;
        height: 200px;
    }
}

/* Professional Course List (Non-Grid) */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.course-entry {
    background: #ffffff;
    border-left: 4px solid var(--brand-primary);
    border-radius: 8px;
    padding: 15px 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    border-top: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.course-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #f1f5f9;
}

.course-entry:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    background: #fdfdfd;
}

.course-info {
    flex-grow: 1;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 800px;
}

.course-meta {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.course-tag {
    font-size: 0.75rem;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.course-action {
    margin-left: 30px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .course-entry {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .course-action {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }

    .course-action .social-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Professional Academic Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.gallery-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 350px;
    /* Increased height for 2-column layout */
    object-fit: cover;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-primary);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 12px 15px;
    background: white;
    border-top: 1px solid #f1f5f9;
}

.gallery-caption strong {
    display: block;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 3px;
}

.gallery-caption span {
    font-size: 0.8rem;
    color: #64748b;
}

/* Lightbox specific overrides for professional look */
.gslide-description {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1e293b !important;
}

.gslide-title {
    color: var(--brand-primary) !important;
    font-weight: 700 !important;
}

/* Horizontal Rules */
hr {
    margin: 2rem 0;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
}

/* Footer Styling */
footer.nav-footer {
    padding: 40px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid #f1f5f9;
}

footer.nav-footer .nav-footer-center {
    font-weight: 600;
    color: var(--brand-primary);
}

/* Visitor Traffic Widgets */
.status-card,
.map-card,
.flag-card {
    border: 1px solid #f1f5f9;
    padding: 24px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.status-card:hover,
.map-card:hover,
.flag-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

.visitor-map-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    overflow: hidden;
}

/* Ensure ClustrMaps globe fits well */
#clstr_globe {
    max-width: 100%;
}

.flag-counter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.flag-counter-container img {
    border-radius: 8px;
}

/* Password Protection Overlay */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.password-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.password-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.password-card h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.password-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.password-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-input {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
    letter-spacing: 2px;
}

.password-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(26, 95, 122, 0.1);
}

.password-btn {
    background: var(--brand-primary);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.password-btn:hover {
    background: #144a5f;
    transform: translateY(-2px);
}

.password-btn:active {
    transform: translateY(0);
}

.error-msg {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 10px;
    font-weight: 500;
    display: none;
}

/* Hide content by default when protected */
.protected-content {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

/* CV Page Specific Styling - Single Column Layout */
.cv-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.cv-header h1 {
    font-size: 3.2rem;
    margin-bottom: 10px;
    color: var(--brand-primary);
}

.cv-header h3 {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 400;
}

.cv-contact-row {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.cv-contact-row i {
    color: var(--brand-primary);
    margin-right: 5px;
}

h2 {
    font-size: 1.6rem;
    color: var(--brand-primary);
    border-bottom: 2px solid #e2e8f0;
    margin-top: 2.5rem;
    padding-bottom: 8px;
}

/* Resource Cards for Tools Grid */
.resource-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-primary);
}

.resource-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--brand-primary);
    transition: color 0.2s;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.resource-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.resource-link-text {
    font-weight: 600;
    color: var(--brand-secondary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.resource-card:hover .resource-link-text {
    color: var(--brand-primary);
}

.resource-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Update to Publications Page Styling */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
}

.publication-item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    cursor: pointer;
}

.publication-item:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-primary);
    transform: translateY(-4px);
}

.publication-title {
    font-size: 1.6rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.publication-main {
    display: flex;
    flex-direction: row-reverse;
    gap: 35px;
    align-items: flex-start;
}

.publication-image {
    width: 320px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publication-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.publication-authors {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 500;
}

.publication-journal {
    font-size: 1rem;
    color: var(--brand-primary);
    font-style: italic;
    margin-bottom: 15px;
}

.publication-overview {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.publication-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* Capsule Button Styling */
.capsule-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-download {
    background: var(--brand-primary);
    color: white !important;
}

.btn-download:hover {
    background: #144a5f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.25);
}

.btn-doi {
    background: #f1f5f9;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
}

.btn-doi:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .publication-main {
        flex-direction: column-reverse;
        gap: 20px;
    }

    .publication-image {
        width: 100%;
        height: 200px;
    }

    .publication-title {
        font-size: 1.4rem;
    }
}

/* Roadmap Container Styling */
.roadmap-container {
    margin: 40px 0;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    counter-reset: roadmap-counter;
}

.roadmap-container h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--brand-primary);
    font-size: 1.4rem;
}

.roadmap-container h3::before {
    counter-increment: roadmap-counter;
    content: counter(roadmap-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.roadmap-container ul {
    list-style: none;
    padding-left: 47px;
    margin-bottom: 25px;
    border-left: 2px dashed #e2e8f0;
    margin-left: 15px;
}

.roadmap-container li {
    position: relative;
    padding-bottom: 8px;
}

.roadmap-container li::before {
    content: '→';
    position: absolute;
    left: -25px;
    color: var(--brand-secondary);
    font-weight: 700;
}

.roadmap-container h3:first-of-type {
    margin-top: 0;
}

@media (max-width: 768px) {
    .roadmap-container {
        padding: 20px;
    }

    .roadmap-container h3 {
        font-size: 1.2rem;
    }
}

/* Groups I Manage Section - Grid Style */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .groups-grid {
        grid-template-columns: 1fr;
    }
}

.group-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.group-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-primary);
}

.group-icon-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.group-card-facebook .group-icon-container {
    background: #f0f7ff;
    color: #1877F2;
}

.group-card-linkedin .group-icon-container {
    background: #f0f4f8;
    color: #0A66C2;
}

.group-card-whatsapp .group-icon-container {
    background: #f0fff4;
    color: #25D366;
}

.group-icon-container svg {
    width: 50px;
    height: 50px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.group-card:hover .group-icon-container svg {
    transform: scale(1.2) rotate(5deg);
}

.group-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.group-platform-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.group-card-facebook .group-platform-tag {
    color: #1877F2;
}

.group-card-linkedin .group-platform-tag {
    color: #0A66C2;
}

.group-card-whatsapp .group-platform-tag {
    color: #25D366;
}

.group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
    margin-bottom: 8px;
}

.group-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.group-stats i {
    color: var(--brand-secondary);
}

.group-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-secondary);
    transition: color 0.2s;
}

.group-card:hover .group-footer {
    color: var(--brand-primary);
}

.group-footer i {
    transition: transform 0.3s ease;
}

.group-card:hover .group-footer i {
    transform: translateX(4px);
}

/* Assistant Professor Criteria Table Styles */
.criteria-table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.criteria-table th,
.criteria-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.criteria-table caption {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.3em;
    text-align: center;
    color: #1e293b;
    font-family: 'Outfit', sans-serif;
}

/* Specific Row Background Colors */
.criteria-table tr.bg-light-green {
    background-color: #eaf7ea !important;
}

.criteria-table tr.bg-aqua {
    background-color: #7fcdbb !important;
}

.criteria-table tr.bg-yellow {
    background-color: #fee391 !important;
}

.criteria-table tr.bg-gray {
    background-color: #bdbdbd !important;
}

/* Highlight specific rows: light green background with red font */
.panel-tabset table tbody tr:nth-child(4),
.panel-tabset table tbody tr:nth-child(8),
.panel-tabset table tbody tr:nth-child(9) {
    background-color: #eaf7ea !important;
    color: #dc2626 !important;
    font-weight: 600;
}

/* College Specific Header */
.table-college th {
    background-color: #4CAF50 !important;
    color: white !important;
    font-weight: 700;
}

/* University Specific Header */
.table-univ th {
    background-color: #8c2d04 !important;
    color: white !important;
    font-weight: 700;
}

.criteria-table p {
    margin: 5px 0;
}