@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
    --primary: #0E62ED;
    --primary-dark: #0a4dbd;
    --secondary: #1e293b;
    --accent: #fbbf24;
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-alt: #f1f5f9;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    font-weight: 700;
}

/* Header & Nav Redesign */
header .top {
    background: #f8fafc;
    padding: 12px 0;
    border-bottom: none;
    /* Cohesive look */
}

header .top img {
    max-height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}

.display-flex-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
}

header .top img:hover {
    transform: scale(1.02);
}

.navbar-default {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    padding: 0;
    transition: all 0.3s ease;
    min-height: 65px !important;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    padding: 12px 15px !important;
}

.navbar-brand img {
    height: 42px !important;
    width: auto !important;
}

header .navbar-nav>li>a {
    font-family: 'Outfit', sans-serif;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--secondary) !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 28px 15px !important;
    line-height: normal !important;
    position: relative;
    transition: color 0.3s ease;
}

/* Modern underline indicator */
header .navbar-nav>li>a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

header .navbar-nav>li:hover>a::after,
header .navbar-nav>li.active>a::after {
    transform: scaleX(1);
}

header .navbar-nav>li>a:hover,
header .navbar-nav>li.active>a {
    color: var(--primary) !important;
    background: transparent !important;
}

/* Dropdown styling with fix for gap */
.dropdown-menu {
    border: none !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: var(--radius) !important;
    padding: 8px !important;
    margin: 0 !important;
    /* Fix gap */
    top: 100% !important;
    border-top: 3px solid var(--primary) !important;
    animation: fadeInSlide 0.25s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu>li>a {
    border-radius: 8px;
    padding: 12px 20px !important;
    font-weight: 500 !important;
    color: var(--secondary) !important;
    transition: all 0.2s ease;
}

.dropdown-menu>li>a:hover {
    background: var(--bg-alt) !important;
    color: var(--primary) !important;
    padding-left: 25px !important;
}

.dropdown-menu>li {
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-menu>li:last-child {
    border-bottom: none;
}

/* Featured / Slider */
#featured {
    padding: 40px 0 !important;
    background: var(--bg-alt);
}

.main-slider.flexslider {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 0 !important;
}

.flex-caption {
    background: rgba(30, 41, 59, 0.8) !important;
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 30px !important;
    width: 350px !important;
    color: #ffffff;
}

.flex-caption h3 {
    color: #ffffff;
    font-size: 24px !important;
    margin-bottom: 10px !important;
}

.flex-caption p {
    color: #cbd5e1;
}

.btn-theme {
    border-radius: 8px !important;
    padding: 12px 25px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: all 0.2s ease !important;
}

/* General Modern Breadcrumb Design for All Pages */
#inner-headline {
    background: #ffffff !important;
    padding: 25px 0 !important;
    /* Balanced top and bottom padding */
    border-bottom: 1px solid #e2e8f0 !important;
    margin: 0 !important;
}

#inner-headline .container {
    text-align: left !important;
}

#inner-headline ul.breadcrumb {
    display: inline-flex !important;
    background: #ffffff !important;
    padding: 12px 25px !important;
    /* Unified padding for consistent spacing */
    border-radius: 50px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    margin: 0 0 10px 0 !important;
    /* Added small bottom margin for extra breathing room */
    list-style: none !important;
    align-items: center !important;
    float: none !important;
    /* Overriding legacy float: left */
}

#inner-headline ul.breadcrumb li {
    font-size: 14px !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    font-weight: 500 !important;
    text-transform: lowercase !important;
    letter-spacing: 0 !important;
    word-spacing: 0 !important;
}

#inner-headline ul.breadcrumb li a {
    color: #64748b !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

#inner-headline ul.breadcrumb li a:hover {
    color: var(--primary) !important;
}

#inner-headline ul.breadcrumb li+li::before {
    content: "/" !important;
    padding: 0 12px !important;
    /* Restored original balanced spacing */
    color: #cbd5e1 !important;
}

#inner-headline ul.breadcrumb li i {
    margin-left: 8px !important;
    font-size: 14px !important;
}

#inner-headline ul.breadcrumb .active {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* Graduate Cards & Filters */
.graduate-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    padding: 22px 28px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    min-height: 130px;
    /* Standardized height, now more compact */
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.graduate-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.1);
}

.graduate-icon-box {
    width: 50px;
    height: 50px;
    background: #f8fafc;
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.graduate-card:hover .graduate-icon-box {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.graduate-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.graduate-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
    font-size: 17px;
    margin: 0 0 10px 0 !important;
    line-height: 1.2;
}

.graduate-meta {
    display: flex;
    flex-direction: column;
    /* Stacked for better space management */
    gap: 12px;
}

.graduate-meta span:not(.status-badge) {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.graduate-meta i {
    color: var(--primary);
    font-size: 14px;
    opacity: 0.8;
}

/* Modern Filter Pills for various pages */
.modern-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f7ff;
}

.filter-pill.active,
.filter-pill.cbp-filter-item-active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(14, 98, 237, 0.25);
}

@media (max-width: 768px) {
    .graduate-card {
        padding: 20px;
    }

    .graduate-icon-box {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Status Badges & Highlighting */
.status-badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    width: fit-content;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.status-gold {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-blue {
    background: #f0f7ff;
    color: #1a56db;
    border: 1px solid #bfdbfe;
}

.card-highlight {
    border: 1px solid #fbbf24 !important;
    /* Subtle but clear distinction */
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.08);
}

.icon-gold {
    background: #fffbeb !important;
    color: #d97706 !important;
    border-color: rgba(217, 119, 6, 0.1) !important;
    transition: all 0.4s ease;
}

.graduate-card:hover .icon-gold i {
    color: #fbbf24 !important;
    text-shadow: 0 0 15px #fbbf24, 0 0 25px rgba(251, 191, 36, 0.6);
    transform: scale(1.2) rotate(8deg);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

/* Exam Timeline Styles */
.exam-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.exam-schedule-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.exam-schedule-card:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.exam-student-side {
    width: 200px;
    background: #f8fafc;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #e2e8f0;
    text-align: center;
}

.exam-img-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.exam-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exam-student-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
}

.exam-info-side {
    flex-grow: 1;
    padding: 30px;
}

.exam-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0f7ff;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.exam-meta-badge span {
    color: #64748b;
    font-weight: 400;
}

.exam-thesis-box {
    display: flex;
    gap: 15px;
}

.exam-thesis-box i {
    color: #cbd5e1;
    font-size: 24px;
    margin-top: 5px;
}

.exam-thesis-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    line-height: 1.5;
    font-style: italic;
}

/* Thesis Page Enhanced Cards */
.thesis-card {
    flex-direction: column !important;
    text-align: center;
    padding: 30px 20px !important;
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    background: #ffffff;
    border: 1px solid #eef2f6 !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03) !important;
    height: auto !important;
    min-height: 280px !important;
    width: 100% !important;
    /* Back to perfect width */
    margin: 0 auto !important;
    display: flex !important;
}

.thesis-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08) !important;
    border-color: var(--primary) !important;
}

.graduate-photo {
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
    border-radius: 50%;
    position: relative;
    padding: 6px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #f1f5f9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.thesis-card:hover .graduate-photo {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    box-shadow: 0 10px 25px rgba(14, 98, 237, 0.25);
    transform: scale(1.05) rotate(5deg);
}

.graduate-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    transition: all 0.4s ease;
}

.btn-more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    padding: 8px 18px !important;
    /* Smaller padding */
    border-radius: 50px !important;
    font-size: 13px !important;
    /* Smaller font */
    font-weight: 700 !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    text-decoration: none !important;
    border: none !important;
    margin: 18px auto 0 !important;
    width: fit-content !important;
    /* Proper fit */
    white-space: nowrap !important;
    /* Single line */
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(14, 98, 237, 0.15) !important;
}

.thesis-card:hover .btn-more {
    background: var(--primary-dark) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(14, 98, 237, 0.4) !important;
}

.thesis-card .graduate-meta {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 15px !important;
    flex-wrap: wrap;
    margin-bottom: 5px !important;
    margin-top: 5px !important;
}

@media (max-width: 600px) {
    .exam-schedule-card {
        flex-direction: column;
    }

    .exam-student-side {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}

.btn-theme:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 98, 237, 0.3);
}



/* Beautiful Title for Cuerpos Académicos */
.ca-main-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 32px !important;
    color: #1e293b !important;
    margin-top: 40px !important;
    margin-bottom: 50px !important;
    padding-left: 20px !important;
    border-left: 6px solid #0E62ED !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
}

/* Layout Fix for Grid Overlap */
.ca-special-content-fix {
    padding-bottom: 250px !important;
    min-height: 850px !important;
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    clear: both !important;
    position: relative !important;
}

@media (max-width: 768px) {
    .ca-special-content-fix {
        padding-bottom: 450px !important;
        min-height: 1500px !important;
    }

    .ca-main-title {
        font-size: 26px !important;
        margin-top: 20px !important;
        margin-bottom: 30px !important;
    }
}


/* Custom News & Marquee Classes */
.modern-heading {
    border-left: 5px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 30px;
    font-size: 28px;
}

.modern-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius);
    padding: 30px 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.1);
    /* border-color removed per user request */
}

.no-border-card:hover {
    border-color: #f1f5f9 !important;
}

.modern-card:focus,
.modern-card:active {
    outline: none !important;
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.1);
}

/* ::before top border removed per user request */

.news-marker {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.modern-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.icon-blue {
    background: #eff6ff;
    color: var(--primary);
}

.icon-red {
    background: #fff1f2;
    color: #ef4444;
}

a:hover,
a:focus,
a:active {
    text-decoration: none !important;
    outline: none !important;
}

/* Global focus reset to avoid blue outlines */
*:focus {
    outline: none !important;
}

.modern-icon-link,
.modern-icon-link:hover,
.modern-icon-link:focus {
    text-decoration: none !important;
    display: inline-block;
    outline: none !important;
    border: none !important;
}

.news-link {
    text-decoration: none;
    color: var(--secondary);
    transition: color 0.2s ease;
}

.news-link:hover {
    color: var(--primary);
}

.card-content h5 {
    margin: 0 0 10px 0 !important;
    font-weight: 700;
}

.card-content p {
    font-size: 14px;
    margin-bottom: 20px;
}

.modern-card:hover .modern-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.modern-card:hover .icon-blue {
    background: var(--primary);
    color: #ffffff;
}

.modern-card:hover .icon-red {
    background: #ef4444;
    color: #ffffff;
}

.suggestion-card {
    border-top: 1px solid #f1f5f9 !important;
}

.suggestion-card:hover {
    border-color: #f1f5f9 !important;
}

.suggestion-card::before {
    display: none !important;
}

.card-footer-action {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f8fafc;
}

.facebook-widget {
    padding: 10px !important;
}

.modern-marquee {
    background: linear-gradient(-45deg, var(--secondary), #2d3748, var(--primary-dark), var(--secondary));
    background-size: 400% 400%;
    animation: gradientFlow 10s ease infinite, contentPulse 4s ease-in-out infinite;
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px -10px rgba(14, 98, 237, 0.5);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 1.6;
}

/* Forzar que cualquier elemento hijo tenga color blanco para que resalte */
.modern-marquee,
.modern-marquee * {
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.modern-marquee::before {
    content: '🎉';
    display: inline-block;
    margin-right: 10px;
    font-size: 20px;
    vertical-align: middle;
    animation: emojiBounce 2s ease-in-out infinite;
}

.modern-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: highlightSlide 4s infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes contentPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px -10px rgba(14, 98, 237, 0.5);
    }

    50% {
        transform: scale(1.01);
        box-shadow: 0 15px 40px -10px rgba(14, 98, 237, 0.7);
    }
}

@keyframes highlightSlide {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

@keyframes emojiBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-5px) rotate(15deg);
    }
}

.hero-img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 21 / 9 !important;
    /* Excelentes proporciones panorámicas */
    object-fit: cover !important;
    /* Llena el área eliminando barras grises */
    object-position: center 20% !important;
    /* Prioriza no cortar cabezas de personas */
    background-color: transparent !important;
    display: block;
}

@media (max-width: 991px) {
    .hero-img {
        aspect-ratio: 16 / 9 !important;
        /* Adaptación para pantallas medianas */
    }
}

@media (max-width: 768px) {
    .hero-img {
        aspect-ratio: 4 / 3 !important;
        /* Móvil */
    }
}

/* Imagen de sección carrera.html independiente sin recortes */
.carrera-hero-img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
    background-color: transparent !important;
}

/* Imagen de sección perfilegreso.html independiente sin recortes */
.egreso-hero-img {
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: contain;
    /* Evita que las cabezas o partes se recorten */
    background-color: transparent !important;
}

/* Footer & Sub-footer */
/* Modern Centered Footer Redesign */
footer {
    background: #0f172a !important;
    padding: 80px 0 60px 0 !important;
    color: #94a3b8 !important;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.footer-widget {
    margin-bottom: 40px;
}

.footer-title {
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-contact p {
    margin-bottom: 15px;
    line-height: 1.6;
    display: block;
}

.footer-contact i {
    color: var(--primary);
    margin-right: 8px;
}

.footer-contact .ext {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #94a3b8 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: #ffffff !important;
    letter-spacing: 0.5px;
}

#sub-footer {
    background: #020617 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 30px 0 !important;
    text-align: center;
}

.copyright {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-credits {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-credits i {
    font-size: 14px;
    color: var(--primary);
}

.btn-credits:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Egresados Controls & Filters */
.egresados-controls {
    margin: 30px 0 40px;
    display: flex;
    justify-content: flex-start;
}

.modern-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-pill {
    padding: 10px 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f0f7ff;
}

.filter-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(14, 98, 237, 0.3);
}

.filter-pill i {
    font-size: 14px;
}

/* Modern Alumn Cards Directory */
.modern-alumn-card {
    padding: 12px;
    height: 100%;
}

.alumn-card-inner {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: left;
}

.alumn-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    border-color: var(--primary);
}

.alumn-photo-box {
    height: 120px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 45px;
    overflow: hidden;
    position: relative;
}

.alumn-photo-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.alumn-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.alumn-card-inner:hover .alumn-photo-box img {
    transform: scale(1.1);
}

.alumn-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.alumn-badge {
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    width: fit-content;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.alumn-card-inner:hover .alumn-badge {
    background: #eff6ff;
    color: var(--primary);
    border-color: #bfdbfe;
}

.alumn-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #1e293b;
    font-size: 18px;
    margin: 0 0 15px 0 !important;
    line-height: 1.3;
}

.alumn-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alumn-stat {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Alumni Premium Minimal Card - No Cuts Design */
.modern-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
}

.modern-grid-item {
    transition: all 0.4s ease;
}

@media (max-width: 991px) {
    .modern-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .modern-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.alumni-minimal-card,
.graduate-card {
    box-sizing: border-box !important;
    overflow: visible !important;
}

.alumni-minimal-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f9fbfe 100%);
    border: 1px solid #e2e8f0;
    border-left: 4px solid transparent;
    border-radius: 12px;
    padding: 18px 24px;
    margin: 0 !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 130px !important;
    width: 100% !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.05);
    text-align: left;
    cursor: default;
}

.alumni-minimal-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--primary);
    border-left-color: var(--primary);
    /* Activate on hover */
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(14, 98, 237, 0.1);
}

.alumni-info-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    width: 100%;
}

.alumni-info-row:last-child {
    margin-bottom: 0;
}

.alumni-info-row i {
    font-size: 15px;
    color: var(--primary);
    width: 34px;
    height: 34px;
    background: #f0f7ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.alumni-minimal-card:hover .alumni-info-row i {
    background: var(--primary);
    color: #ffffff;
    transform: rotate(10deg);
}

.alumni-name-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #0f172a;
    line-height: 1.3;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alumni-gen-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
}

@media (min-width: 992px) {
    .cbp-item {
        width: 33.333% !important;
        /* 3 columns perfectly aligned */
    }
}

.cbp-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    /* Proper grid gap */
}

.modern-alumn-info-card {
    display: none;
    /* Deprecated */
}

@media (max-width: 768px) {
    .alumn-card-inner {
        border-radius: 20px;
    }

    .alumn-content {
        padding: 20px;
    }

    .alumn-name {
        font-size: 16px;
    }
}

/* Graduate Hero Section */
.graduate-hero-section {
    padding: 20px 0 60px;
    background: #ffffff;
}

.graduate-hero-card {
    background: #ffffff;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    position: relative;
}

.graduate-hero-content {
    flex: 1;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 25px;
    width: fit-content;
}

.hero-main-title {
    font-size: 42px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.1;
}

.text-highlight {
    color: var(--primary);
}

.hero-description {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-stats-bar {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
}

.stat-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

.graduate-hero-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.graduate-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.graduate-hero-card:hover .graduate-hero-image img {
    transform: scale(1.05);
}

/* Section Header Modern */
.section-header-modern {
    margin-bottom: 50px;
    text-align: center;
}

.section-title-premium {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title-premium::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
}

.section-subtitle {
    font-size: 15px;
    color: #64748b;
    margin-top: 20px;
}

@media (max-width: 992px) {
    .graduate-hero-card {
        flex-direction: column;
    }

    .graduate-hero-image {
        width: 100%;
        height: auto;
        clip-path: none;
    }

    .graduate-hero-image img {
        height: auto;
        object-fit: contain;
    }

    .hero-main-title {
        font-size: 32px;
    }

    .hero-stats-bar {
        gap: 20px;
    }
}

/* Popover Styling */
.popover {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0 !important;
    z-index: 9999 !important;
    /* Force priority */
}

.popover-title {
    background: rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important;
    padding: 12px 15px !important;
}

.popover-content {
    color: #cbd5e1 !important;
    padding: 15px !important;
}

.popover-credits {
    text-align: center;
    width: 220px;
}

.credit-section {
    margin: 10px 0;
}

.credit-label {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.credit-names {
    font-size: 13px;
    line-height: 1.5;
    color: #ffffff;
}

.credit-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 10px 0;
}

.popover.top>.arrow:after {
    border-top-color: #1e293b !important;
}

/* Floating Action Buttons */
.scrollup {
    position: fixed !important;
    bottom: 85px !important;
    right: 25px !important;
    background: var(--primary) !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    line-height: 45px !important;
    text-align: center;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(14, 98, 237, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-facebook {
    position: fixed !important;
    bottom: 30px !important;
    right: 25px !important;
    background: #1877F2 !important;
    color: #ffffff !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    line-height: 45px !important;
    text-align: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scrollup:hover,
.floating-facebook:hover {
    transform: translateY(-5px) scale(1.1);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.scrollup:hover {
    background: var(--primary-dark) !important;
}

/* Mission & Vision Cards */
.mv-card {
    padding: 40px !important;
    border-radius: 20px !important;
    border: 1.5px solid #f1f5f9 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mv-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary) !important;
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.1) !important;
}

.mv-icon {
    background: #f8fafc !important;
    color: var(--primary) !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
}

.mv-card:hover .mv-icon {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    transform: scale(1.1);
}

.mv-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 20px !important;
    font-size: 22px !important;
}

.mv-text {
    color: #64748b !important;
    line-height: 1.8 !important;
    margin: 0 !important;
}

/* Modern List Styles */
.requirement-item {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.requirement-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
    transform: translateX(5px);
}

.req-dot {
    min-width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 6px;
    margin-right: 15px;
    box-shadow: 0 0 10px rgba(14, 98, 237, 0.3);
}

.requirement-item p {
    margin: 0 !important;
    color: #64748b;
    line-height: 1.6;
    font-size: 15px;
}

/* Skill Cards for Perfil de Egreso */
.equal-height-row {
    display: flex;
    flex-wrap: wrap;
}

.equal-height-row [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.skill-card {
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    border-radius: 20px;
    padding: 30px;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Animations */
.animate-fadeInUp {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: var(--primary);
}

.skill-icon-container {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.skill-card:hover .skill-icon-container {
    background: var(--primary);
    transform: rotate(10deg) scale(1.1);
}

.skill-icon-container i {
    font-size: 24px;
    color: var(--primary);
    transition: all 0.4s ease;
}

.skill-card:hover .skill-icon-container i {
    color: #ffffff;
}

.skill-card h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.skill-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .navbar-default {
        padding: 5px 0;
    }

    .navbar-header {
        margin-bottom: 5px;
    }

    .navbar-collapse {
        background: #ffffff !important;
        border: none !important;
        box-shadow: var(--shadow-lg) !important;
        max-height: 80vh !important;
        overflow-y: auto;
        padding-bottom: 20px;
        border-top: 1px solid #f1f5f9 !important;
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .navbar-nav {
        margin: 10px 0 !important;
    }

    .navbar-nav>li>a {
        padding: 12px 20px !important;
        border-bottom: 1px solid #f1f5f9;
        text-align: left;
    }

    /* Mobile Dropdown styling */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: auto !important;
        background-color: var(--bg-alt) !important;
        box-shadow: none !important;
        border: none !important;
        margin: 5px 15px !important;
        border-left: 3px solid var(--primary) !important;
        border-top: none !important;
        animation: none;
        display: none !important;
    }

    .navbar-nav .dropdown.modern-open>.dropdown-menu,
    .navbar-nav .dropdown.open>.dropdown-menu,
    .navbar-nav .dropdown-submenu.modern-open>.dropdown-menu,
    .navbar-nav .dropdown-submenu.open>.dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .dropdown-menu>li {
        border-bottom: none !important;
    }

    .dropdown-menu>li>a {
        padding: 10px 20px !important;
    }

    .hero-img {
        height: 300px !important;
    }

    .flex-caption {
        width: 100% !important;
        bottom: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
        padding: 20px !important;
    }

    .navbar-brand img {
        height: 35px !important;
    }
}

/* Professor Profile Modern Styles */
.modern-profile-section {
    padding: 60px 0 100px;
    background: #fdfdfe;
}

.profile-sidebar {
    background: #ffffff;
    border-radius: 30px;
    padding: 40px 30px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-photo-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.profile-photo-inner {
    width: 200px;
    height: 200px;
    padding: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    box-shadow: 0 15px 30px rgba(14, 98, 237, 0.2);
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 5px solid #ffffff;
}

.profile-status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #10b981;
    /* Default Active */
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    z-index: 5;
}

.status-activo {
    background: #10b981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.status-sabatico {
    background: #f59e0b;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.status-licencia {
    background: #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.status-interino {
    background: #8b5cf6;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.status-baja {
    background: #ef4444;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.profile-full-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #1e293b;
    font-size: 24px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.profile-contact-list {
    width: 100%;
    text-align: left;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
}

.profile-contact-list p {
    margin-bottom: 15px;
    font-size: 15px;
    color: #64748b;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 15px;
    align-items: start;
    line-height: 1.5;
}

.profile-contact-list p i {
    color: var(--primary);
    font-size: 18px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-contact-list strong {
    color: #334155;
    font-weight: 700;
}

.profile-degree strong {
    color: #1e293b;
    font-size: 15px;
}

.profile-social-links {
    margin-top: 25px;
    width: 100%;
}

.vinculos-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0;
    list-style: none;
}

.vinculos-list li a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
    color: #94a3b8;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e2e8f0;
}

.vinculos-list li a:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(14, 98, 237, 0.2);
    border-color: var(--primary);
}

.profile-stats-card {
    width: 100%;
    margin-top: 40px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 20px;
    text-align: left;
}

.stats-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.counter-badge {
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(14, 98, 237, 0.2);
}

.modern-progress {
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
}

.modern-progress .progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%) !important;
    box-shadow: none;
    border-radius: 10px;
}

.chart-container-large {
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
    min-height: 250px;
    width: 100%;
}

/* Main Content Area */
.profile-content-main article {
    background: #ffffff;
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.profile-content-main h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #1e293b;
    font-size: 22px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
}

.profile-content-main h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
}

.profile-content-main ul {
    list-style: none;
    padding: 0;
}

.profile-content-main ul li {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid #e2e8f0;
    transition: all 0.3s ease;
}

.profile-content-main ul li:hover {
    border-left-color: var(--primary);
}

.profile-content-main ul li strong {
    font-size: 16px;
    color: #334155;
    margin-bottom: 5px;
    display: block;
}


.profile-content-main ul li em {
    font-style: normal;
    font-size: 14px;
    color: #64748b;
    display: block;
    margin-top: 3px;
}

/* Encargado Premium Card */
.encargado-card {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.encargado-photo-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    padding: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
    border: 1px solid #f1f5f9;
}

.enc-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
}

.enc-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #1e293b;
    font-size: 30px;
    margin-bottom: 15px;
}

.enc-badge {
    display: inline-block;
    padding: 6px 18px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 20px;
}

/* Academic Sub-styles */
.academic-timeline,
.academic-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.academic-timeline li {
    position: relative;
    padding-left: 25px;
    padding-bottom: 25px;
    border-left: 2px solid #e2e8f0;
}

.academic-timeline li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 3px solid var(--primary);
    border-radius: 50%;
}

.academic-timeline li:last-child {
    border-left: none;
}

.academic-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.4;
}

.color-primary {
    color: var(--primary) !important;
}

.pub-title {
    font-size: 16px;
    color: #334155;
    display: block;
    margin: 5px 0;
    font-weight: 700;
}

.status-label {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

/* Cuerpos Académicos Premium Styles - Compact Version (matching Image 1 feedback) */
.ca-grid-container {
    perspective: 2000px;
    padding: 40px 0;
}

#ul_cuerpos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
}

.ca-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 25px 20px;
    text-align: center;
    border: 1.5px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.ca-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
    border-color: var(--primary);
}

.ca-logo-wrapper {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 12px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid #f8fafc;
}

.ca-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.ca-card:hover .ca-logo-wrapper img {
    transform: scale(1.05);
}

.ca-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #1e293b;
    font-size: 17px;
    line-height: 1.35;
    margin-bottom: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ca-discipline {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
}

.ca-badge {
    display: inline-block;
    padding: 5px 14px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.ca-btn-profile {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    transition: all 0.3s ease;
    margin-top: 20px;
    white-space: nowrap;
    margin-left: auto;
    margin-right: auto;
}

.ca-btn-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* CA Detail Page Styles (Horizontal Layout Restored) */
.ca-detail-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 50px;
    margin-bottom: 40px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04);
}

.ca-header-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.ca-header-text {
    flex-grow: 1;
}

.ca-detail-logo {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 25px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ca-detail-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ca-detail-title-main {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #1e293b;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 25px;
    text-align: left;
}

.ca-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
}

.ca-info-block span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.ca-info-block p {
    font-size: 15px;
    color: #334155;
    font-weight: 600;
    margin: 0;
}

.ca-content-section article {
    background: #ffffff;
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.ca-content-section h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #1e293b;
    font-size: 22px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    position: relative;
    text-align: left;
}

.ca-content-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary);
    border-radius: 10px;
}

.ca-list-premium {
    list-style: none;
    padding: 0;
}

.ca-list-premium li {
    padding: 20px;
    border-radius: 15px;
    background: #f8fafc;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
    text-align: left;
}

.ca-list-premium li:hover {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.ca-modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.ca-modern-table th {
    text-align: center;
    padding: 15px;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.ca-modern-table td {
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    text-align: center;
}

.ca-modern-table td:first-child {
    border-radius: 15px 0 0 15px;
}

.ca-modern-table td:last-child {
    border-radius: 0 15px 15px 0;
}

@media (max-width: 768px) {
    .ca-detail-card {
        padding: 30px 20px;
    }

    .ca-header-flex {
        flex-direction: column-reverse;
        gap: 30px;
        align-items: center;
    }

    .ca-detail-logo {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .ca-detail-title-main {
        font-size: 28px;
        text-align: center;
    }

    .ca-info-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
}

/* Premium Dark Footer (Restored) */
footer,
.modern-footer {
    background-color: #0c1427;
    color: #f8fafc;
    padding: 60px 0 0;
    margin-top: 0;
    text-align: center;
}

.footer-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding-bottom: 50px;
}

footer .footer-widget h4,
.footer-widget h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 15px;
}

footer .footer-contact i,
.footer-contact i {
    color: var(--primary);
    font-size: 18px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

footer .footer-links a,
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

#sub-footer,
.sub-footer-modern {
    background-color: #050814;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-credits {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-credits:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ------------------------------------------------------------- */
/* NEW SPECIFIC DESIGN FOR CENEVAL EXCELLENCE CARDS */
/* ------------------------------------------------------------- */
.ceneval-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    padding: 22px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    min-height: 130px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
    width: 100%;
    box-sizing: border-box;
}

.ceneval-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.1);
}

.ceneval-icon-box {
    width: 50px;
    height: 50px;
    background: #f8fafc;
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.ceneval-card:hover .ceneval-icon-box {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.ceneval-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.ceneval-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
    margin: 0 0 10px 0 !important;
    line-height: 1.3;
    word-wrap: break-word;
}

.ceneval-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ceneval-meta span:not(.ceneval-status-badge) {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.ceneval-meta i {
    color: var(--primary);
    font-size: 14px;
    opacity: 0.8;
}

.ceneval-status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    white-space: normal;
    text-align: center;
}

.ceneval-status-gold {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.ceneval-status-blue {
    background: #f0f7ff;
    color: #1a56db;
    border: 1px solid #bfdbfe;
}

.ceneval-card-highlight {
    border: 1px solid #fbbf24 !important;
    background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.08);
}

.ceneval-icon-gold {
    background: #fffbeb !important;
    color: #d97706 !important;
    border-color: rgba(217, 119, 6, 0.1) !important;
    transition: all 0.4s ease;
}

.ceneval-card:hover .ceneval-icon-gold {
    background: #fef3c7 !important;
    color: #b45309 !important;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
    transform: scale(1.1);
}

.ceneval-card:hover .ceneval-icon-gold i {
    animation: goldShine 1.5s ease infinite;
}

@keyframes goldShine {
    0% {
        filter: drop-shadow(0 0 2px #fde68a);
        transform: translateY(0px) scale(1);
    }

    50% {
        filter: drop-shadow(0 0 8px #f59e0b);
        transform: translateY(-2px) scale(1.1);
        color: #f59e0b;
    }

    100% {
        filter: drop-shadow(0 0 2px #fde68a);
        transform: translateY(0px) scale(1);
    }
}

@media (max-width: 768px) {
    .ceneval-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .ceneval-meta {
        align-items: center;
    }

    .ceneval-meta span:not(.ceneval-status-badge) {
        justify-content: center;
    }
}

/* ------------------------------------------------------------- */
/* NEW SPECIFIC DESIGN FOR TESIS CARDS */
/* ------------------------------------------------------------- */
.tesis-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: auto;
    min-height: 250px;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.tesis-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.1);
}

.tesis-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #f1f5f9;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: border-color 0.4s ease;
    flex-shrink: 0;
}

.tesis-card:hover .tesis-photo {
    border-color: #dbeafe;
}

.tesis-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tesis-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.tesis-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
    font-size: 16px;
    margin: 0 0 12px 0 !important;
    line-height: 1.3;
    word-wrap: break-word;
    /* Handle long names */
}

.tesis-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tesis-meta span {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.tesis-meta i {
    color: var(--primary);
    font-size: 14px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .tesis-card {
        padding: 20px;
    }

    .tesis-photo {
        width: 100px;
        height: 100px;
    }
}

/* Override Cube Portfolio hidden state for button */
.tesis-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #4264d0;
    /* A nice primary blue */
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(66, 100, 208, 0.2);
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
    margin-top: auto;
    /* Push to bottom if needed */
    cursor: pointer;
    white-space: nowrap;
    width: max-content;
}

.tesis-btn:hover {
    background: #3451ab;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(66, 100, 208, 0.3);
}

.cbp-item,
.cbp-wrapper {
    overflow: visible !important;
}

@media (max-width: 768px) {

    footer .display-flex-row,
    .modern-footer .display-flex-row {
        flex-direction: column;
        gap: 40px;
    }

    footer .display-flex-row>div,
    .modern-footer .display-flex-row>div {
        width: 100%;
        flex-basis: 100%;
    }
}

/* Modern Flexslider Controls Layout */
.main-slider,
.postslider {
    position: relative;
    padding-bottom: 70px !important;
    /* Espacio real interno para los botones */
    margin-bottom: 20px !important;
    border: none !important;
    background-color: transparent !important;
}

/* Modern Dots */
.main-slider .flex-control-nav,
.postslider .flex-control-nav {
    bottom: 10px !important;
    /* Dentro del padding inferior */
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    pointer-events: none;
    /* Prevents container from blocking arrow clicks */
}

.flex-control-paging li {
    display: flex;
    align-items: center;
    pointer-events: auto;
    /* Restores clickability to dots */
}

.flex-control-paging li a {
    width: 10px;
    height: 10px;
    background: #cbd5e1 !important;
    box-shadow: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 10px !important;
    margin: 0 4px;
}

.flex-control-paging li a.flex-active {
    background: var(--primary) !important;
    width: 28px !important;
    /* Elegant modern pill shape */
}

/* Custom Arrows Below Carousel */
.main-slider .flex-direction-nav,
.postslider .flex-direction-nav {
    margin: 0;
    padding: 0 10px;
    list-style: none;
    position: absolute;
    bottom: 10px !important;
    /* Dentro del padding inferior */
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* Arrows at edges */
    align-items: center;
    height: 50px;
    box-sizing: border-box;
    z-index: 10;
    pointer-events: none;
    /* Prevents container from blocking other elements */
}

.main-slider .flex-direction-nav a,
.postslider .flex-direction-nav a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: white !important;
    color: var(--primary) !important;
    border: 1px solid #e2e8f0;
    border-radius: 50% !important;
    text-decoration: none;
    position: static !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-indent: 0 !important;
    background-image: none !important;
    /* overrides standard flexslider bg */
    font-size: 16px;
    line-height: initial !important;
    pointer-events: auto;
    /* Restores clickability to arrows */
}

.main-slider .flex-direction-nav a:hover,
.postslider .flex-direction-nav a:hover {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 98, 237, 0.25);
}

/* Hide legacy icons that came from flexslider CSS if any */
.main-slider .flex-direction-nav a:before,
.postslider .flex-direction-nav a:before {
    display: none !important;
}

/* Fix mobile menu clipping */
@media (max-width: 768px) {
    .navbar-collapse {
        max-height: 85vh !important;
        overflow-y: auto !important;
    }
}

/* ------------------------------------------------------------- */
/* NEW SPECIFIC DESIGN FOR QUICK ACCESS CARDS */
/* ------------------------------------------------------------- */
.quick-access-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    border: 1px solid #f8fafc;
    width: 100%;
    cursor: pointer;
    margin-bottom: 15px;
}

.quick-access-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--card-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-access-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: #f1f5f9;
}

.quick-access-card:hover::after {
    opacity: 1;
}

.quick-access-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quick-access-card:hover .quick-access-icon {
    transform: scale(1.1) rotate(-5deg);
    background-color: var(--card-color) !important;
    color: #ffffff !important;
}

.quick-access-text {
    flex-grow: 1;
    text-align: left;
}

.quick-access-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 3px 0 !important;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.quick-access-card:hover .quick-access-title {
    color: var(--card-color);
}

.quick-access-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.quick-access-arrow {
    color: #cbd5e1;
    font-size: 16px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.quick-access-card:hover .quick-access-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--card-color);
}

/* ------------------------------------------------------------- */
/* RESPONSIVE LAYOUT HELPERS */
/* ------------------------------------------------------------- */
.sticky-desktop {
    position: sticky;
    top: 120px;
}

@media (max-width: 991px) {
    /* Fix for Bootstrap row pseudo-elements breaking flex-direction */
    .content-row-responsive::before,
    .content-row-responsive::after {
        display: none !important;
    }

    .content-row-responsive {
        flex-direction: column-reverse !important;
        display: flex !important;
    }
    
    .sticky-desktop {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 30px;
        width: 100% !important;
    }
    
    /* Centering on mobile */
    .mobile-center-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }
    
    .modern-heading {
        width: fit-content !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        text-align: left !important;
    }
    
    .quick-access-card,
    .modern-card {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }
}