/**
 * Featured opportunities — matches html/style.css (Section 2).
 */

.oc365-html-home .featured-section{
padding:80px 0 60px;
background:var(--oc365-color-bg, #fafafa);
}

.oc365-html-home .featured-section > .container{
max-width:1280px;
padding-left:24px;
padding-right:24px;
}

.oc365-html-home .featured-section .section-header{
display:flex;
justify-content:space-between;
align-items:flex-end;
margin-bottom:36px;
max-width:none;
}

/* Typography: home-html-listings.css (featured + grid) */

.oc365-html-home .featured-section .section-title{
color:var(--oc365-color-text, #111827);
margin:0;
}

.oc365-html-home .featured-section .section-link{
color:var(--oc365-color-text, #111827);
display:inline-flex;
align-items:center;
gap:8px;
text-decoration:none;
white-space:nowrap;
transition:gap 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.oc365-html-home .featured-section .section-link:hover{
gap:12px;
color:var(--oc365-color-text, #111827);
}

.oc365-html-home .featured-section .section-link svg{
flex-shrink:0;
}

.oc365-html-home .featured-grid{
display:grid;
grid-template-columns:repeat(5, minmax(0, 1fr));
gap:20px;
width:100%;
align-items:stretch;
}

.oc365-html-home a.featured-card{
background-color:var(--oc365-color-card, #fff);
border:1px solid var(--oc365-color-border, #e5e7eb);
border-radius:10px;
padding:24px;
display:flex;
flex-direction:column;
height:320px;
transition:0.25s cubic-bezier(0.4, 0, 0.2, 1);
position:relative;
overflow:hidden;
text-decoration:none;
color:inherit;
box-sizing:border-box;
}

.oc365-html-home a.featured-card::before{
content:'';
position:absolute;
top:0;
left:0;
width:4px;
height:100%;
background-color:transparent;
transition:0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.oc365-html-home a.featured-card:hover{
transform:translateY(-6px);
box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
border-color:transparent;
}

.oc365-html-home a.featured-card.card-competition:hover::before{background-color:#f43f5e}
.oc365-html-home a.featured-card.card-scholarship:hover::before{background-color:#2563eb}
.oc365-html-home a.featured-card.card-residency:hover::before{background-color:#059669}
.oc365-html-home a.featured-card.card-grant:hover::before{background-color:#7c3aed}
.oc365-html-home a.featured-card.card-job:hover::before{background-color:#d97706}
.oc365-html-home a.featured-card.card-default:hover::before{background-color:var(--oc365-color-primary, #111827)}

.oc365-html-home .featured-card .card-tag-wrapper{
margin-bottom:20px;
}

.oc365-html-home .featured-card .tag-badge{
display:inline-flex;
align-items:center;
padding:3px 10px;
text-transform:uppercase;
border-radius:9999px;
}

.oc365-html-home .tag-competition{color:#f43f5e;background-color:#fff1f2}
.oc365-html-home .tag-scholarship{color:#2563eb;background-color:#eff6ff}
.oc365-html-home .tag-residency{color:#059669;background-color:#ecfdf5}
.oc365-html-home .tag-grant{color:#7c3aed;background-color:#f5f3ff}
.oc365-html-home .tag-job{color:#d97706;background-color:#fffbeb}
.oc365-html-home .tag-default{color:var(--oc365-color-text, #111827);background-color:var(--oc365-color-bg-alt, #f3f4f6)}

.oc365-html-home .featured-card .featured-title{
margin:0 0 auto;
padding:0;
color:var(--oc365-color-text, #111827);
display:-webkit-box;
-webkit-line-clamp:3;
-webkit-box-orient:vertical;
overflow:hidden;
min-height:4.5em;
flex:1 1 auto;
}

.oc365-html-home .featured-card .featured-date{
margin-top:24px;
margin-bottom:20px;
}

/* .date-day / .date-month — home-html-listings.css */

.oc365-html-home .featured-card.card-competition .date-day,
.oc365-html-home .featured-card.card-competition .date-month{color:#f43f5e}
.oc365-html-home .featured-card.card-scholarship .date-day,
.oc365-html-home .featured-card.card-scholarship .date-month{color:#2563eb}
.oc365-html-home .featured-card.card-residency .date-day,
.oc365-html-home .featured-card.card-residency .date-month{color:#059669}
.oc365-html-home .featured-card.card-grant .date-day,
.oc365-html-home .featured-card.card-grant .date-month{color:#7c3aed}
.oc365-html-home .featured-card.card-job .date-day,
.oc365-html-home .featured-card.card-job .date-month{color:#d97706}
.oc365-html-home .featured-card.card-default .date-day,
.oc365-html-home .featured-card.card-default .date-month{color:var(--oc365-color-primary, #111827)}

.oc365-html-home .featured-card .card-meta-bottom{
display:flex;
justify-content:space-between;
align-items:center;
gap:0.5rem;
border-top:1px solid var(--oc365-color-border, #e5e7eb);
padding-top:14px;
margin-top:auto;
}

.oc365-html-home .featured-card .meta-loc{
color:var(--oc365-color-text-muted, #6b7280);
}

.oc365-html-home .featured-card .meta-value{
color:var(--oc365-color-text, #111827);
text-align:right;
}

/* Tablet */
@media (max-width:1024px){
.oc365-html-home .featured-grid{
grid-template-columns:repeat(3, minmax(0, 1fr));
}
}

/* Mobile — horizontal slider (html/style.css) */
@media (max-width:768px){
.oc365-html-home .featured-section{
padding:60px 0 48px;
}

.oc365-html-home .featured-section .section-header{
flex-direction:column;
align-items:flex-start;
gap:12px;
margin-bottom:28px;
}

.oc365-html-home .featured-grid{
display:flex;
overflow-x:auto;
padding-bottom:16px;
gap:16px;
scroll-snap-type:x mandatory;
-webkit-overflow-scrolling:touch;
scrollbar-width:none;
grid-template-columns:none;
}

.oc365-html-home .featured-grid::-webkit-scrollbar{
display:none;
}

.oc365-html-home a.featured-card{
min-width:280px;
max-width:280px;
flex:0 0 280px;
scroll-snap-align:start;
height:300px;
}
}
