/* ============================================================
   Hero
   ============================================================ */
.hero-logo {
    max-width: 300px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 24px rgba(125,1,159,.5));
    animation: heroLogoFloat 5s ease-in-out infinite;
}
@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* Inline logo with text */
.hero-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.short-description {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #ffffff !important;
    max-width: 1000px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.short-description p { 
    margin-bottom: 0;
    color: #ffffff !important;
    display: inline;
}

.hero-logo-inline {
    max-width: 300px;
    height: 300px;
    filter: drop-shadow(0 4px 20px rgba(254,212,3,.6));
    flex-shrink: 0;
}

/* Golden Button */
.btn-golden {
    background: linear-gradient(135deg, #FED403 0%, #f4c700 100%) !important;
    color: #7D019F !important;
    border: none !important;
    font-weight: 700 !important;
    padding: .65rem 2rem !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 4px 16px rgba(254,212,3,.4) !important;
    transition: all var(--t-base) !important;
}
.btn-golden:hover {
    background: linear-gradient(135deg, #f4c700 0%, #e8b800 100%) !important;
    color: #7D019F !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(254,212,3,.55) !important;
}

/* ============================================================
   Research Area Cards
   ============================================================ */
.research-area-card {
    background: #fff;
    border: 1px solid rgba(125,1,159,.12);
    border-radius: 16px;
    transition: transform .3s var(--ease,cubic-bezier(.4,0,.2,1)),
                box-shadow .3s var(--ease,cubic-bezier(.4,0,.2,1)),
                border-color .3s;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.research-area-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(125,1,159,.06) 0%, rgba(254,212,3,.04) 100%);
    opacity: 0;
    transition: opacity .3s;
}
.research-area-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(125,1,159,.14);
    border-color: rgba(125,1,159,.3);
}
.research-area-card:hover::before { opacity: 1; }

.area-icon-wrapper {
    width: 76px; height: 76px;
    background: linear-gradient(135deg, rgba(125,1,159,.1) 0%, rgba(254,212,3,.08) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s, box-shadow .3s;
}
.research-area-card:hover .area-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(125,1,159,.25);
}

.area-icon {
    width: 44px; height: 44px;
    object-fit: contain;
    /* filter: invert(32%) sepia(80%) saturate(600%) hue-rotate(200deg) brightness(95%); */
    transition: filter .3s;
}
/* .research-area-card:hover .area-icon { */
    /* filter: invert(32%) sepia(80%) saturate(800%) hue-rotate(200deg) brightness(110%); */
/* } */

.area-icon-placeholder {
    width: 76px; height: 76px;
    background: linear-gradient(135deg, #f3e8ff 0%, #fef9c3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-name {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .3rem;
    font-size: .95rem;
}
.area-description {
    font-size: .875rem;
    line-height: 1.5;
    color: #64748b;
}

/* ============================================================
   Project & Service Cards
   ============================================================ */
.project-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    height: 100%;
    transition: transform .3s var(--ease,cubic-bezier(.4,0,.2,1)),
                box-shadow .3s,
                border-color .3s;
    position: relative;
    overflow: hidden;
}
.project-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7D019F, #FED403);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease,cubic-bezier(.4,0,.2,1));
    border-radius: 0 0 16px 16px;
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(125,1,159,.12);
    border-color: rgba(125,1,159,.2);
}
.project-card:hover::after { transform: scaleX(1); }

.project-icon-wrapper {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(125,1,159,.1) 0%, rgba(254,212,3,.07) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
    transition: transform .3s;
}
.project-card:hover .project-icon-wrapper {
    transform: scale(1.12) rotate(-3deg);
}

.project-icon {
    width: 32px; height: 32px;
    object-fit: contain;
    /* filter: invert(32%) sepia(80%) saturate(600%) hue-rotate(200deg) brightness(95%); */
}

.project-name {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .4rem;
}
.project-description {
    font-size: .88rem;
    line-height: 1.6;
    color: #64748b;
}

/* Service Cards (alias) */
.service-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    height: 100%;
    transition: transform .3s, box-shadow .3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
}
.service-name { font-weight: 700; color: #1e293b; margin-bottom: .4rem; }
.service-description { font-size: .9rem; line-height: 1.6; }

/* ============================================================
   Consumer Cards
   ============================================================ */
.consumer-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}
.consumer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.1);
    border-color: rgba(125,1,159,.25);
}

.consumer-logo {
    max-width: 100px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    transition: transform .3s;
}
.consumer-card:hover .consumer-logo {
    transform: scale(1.08);
}
.consumer-logo.standard { max-height: 60px; object-fit: contain; }
.consumer-logo.special  { max-width: 120px; }

.consumer-name {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0;
    font-size: .9rem;
}

/* ============================================================
   Paper Cards (Bootstrap .card used for papers)
   ============================================================ */
.card .card-title { font-weight: 700; color: #1e293b; }

/* ============================================================
   Legacy card-icon
   ============================================================ */
.card-icon { width: 64px; height: 64px; margin-bottom: 1rem; }

/* ============================================================
   News image wrapper
   ============================================================ */
.project-icon-wrapper.news-item-image {
    height: 120px; width: 90px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* ============================================================
   Responsive
   ============================================================ */
/* When the navbar toggler is shown (below the xl breakpoint),
   stack the hero content vertically so the homepage_logo
   appears at the bottom, below the text and "About Us" button. */
@media (max-width: 1199.98px) {
    .short-description {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .hero-logo-inline {
        max-width: 260px;
        height: auto;
    }
}

@media (max-width: 576px) {
    .short-description { font-size: 1rem; }
    .area-icon { width: 40px; height: 40px; }
    .hero-logo { max-width: 150px; }
}