/* News & Events redesign (approved reference "Foondi Tech Academy News & Events.png").
   Scoped to .fta-news, which is only set on /news. Header, footer, buttons, labels and the hero base come from
   fta_home.css and fta_about.css (also linked on this page). All cards are rendered from Odoo records. */
.fta-news { --fn-gold: #f5b120; }
.fta-news .fn-page p { margin: 0; }
.fta-news .fn-intro p:not(.fh-label) { font-size: 16px; line-height: 1.65; color: #1e2f45; margin-bottom: 30px !important; }

/* Hero */
.fta-news .fn-hero h1 span { color: var(--fn-gold); }
.fta-news .fn-hero .fu-hero-content { max-width: 780px; }
.fta-news .fn-hero h1 { max-width: 640px; }
.fta-news .fn-hero .fu-hero-text { max-width: 520px; }
.fta-news .fn-kicker i { font-size: 14px; color: var(--fn-gold); }
.fta-news .fn-hero .fu-btn-ghost i { font-size: 15px; }

/* ---------- Category navigation ---------- */
.fta-news .fn-cats {
    display: grid; grid-template-columns: repeat(6, 1fr); background: #fff; border-radius: 14px;
    box-shadow: 0 14px 40px rgba(10, 31, 61, .12); padding: 18px 8px;
}
.fta-news .fn-cat {
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 6px; text-decoration: none;
    border-left: 1px solid #dfe9f0; transition: transform .2s;
}
.fta-news .fn-cat:first-child { border-left: 0; }
.fta-news .fn-cat i { font-size: 30px; color: var(--fh-teal); }
.fta-news .fn-cat span { font-size: 15px; font-weight: 700; color: var(--fh-navy); }
.fta-news .fn-cat:hover { transform: translateY(-2px); }
.fta-news .fn-cat:hover span, .fta-news .fn-cat.active span { color: var(--fh-teal); }

/* ---------- Featured News (CSS-only slider) ---------- */
.fta-news .fn-featured { background: #fff; padding: calc(var(--fh-section-y) - 4px) 0 var(--fh-section-y); }
.fta-news .fn-slide-radio { position: absolute; opacity: 0; pointer-events: none; }
.fta-news .fn-slide { display: none; }
.fta-news #fn-slide-0:checked ~ .fn-slide-0, .fta-news #fn-slide-1:checked ~ .fn-slide-1, .fta-news #fn-slide-2:checked ~ .fn-slide-2 { display: grid; }
.fta-news .fn-slide, .fta-news .fn-empty-featured { grid-template-columns: 0.62fr 1fr; gap: 48px; align-items: center; }
.fta-news .fn-empty-featured { display: grid; }
.fta-news .fn-featured .fh-h2 { font-size: 40px; line-height: 1.12; }
.fta-news .fn-featured-teaser { font-size: 16.5px; line-height: 1.65; color: #1e2f45; margin-bottom: 30px !important; }
.fta-news .fn-dots { display: flex; gap: 10px; margin-top: 30px; }
.fta-news .fn-dot { width: 13px; height: 13px; border-radius: 50%; background: #cfdbe3; cursor: pointer; }
.fta-news .fn-dot.active { background: var(--fh-teal); }
.fta-news .fn-featured-media { position: relative; height: 380px; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 36px rgba(10, 31, 61, .14); }
.fta-news .fn-featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fta-news .fn-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%;
    background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 6px 18px rgba(10, 31, 61, .2); color: var(--fh-navy); font-size: 16px;
}
.fta-news .fn-arrow-prev { left: 16px; }
.fta-news .fn-arrow-next { right: 16px; }

/* Shared: image fallback, date badge, cards, empty states */
.fta-news .fn-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #e3f2f8 0%, #cfe7f0 100%); }
.fta-news .fn-noimg i { font-size: 54px; color: rgba(3, 106, 125, .45); }
.fta-news .fn-date-badge {
    position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
    border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(10, 31, 61, .15);
    font-size: 13.5px; font-weight: 700; color: var(--fh-navy);
}
.fta-news .fn-featured-media .fn-date-badge { left: auto; right: 16px; top: 16px; }
.fta-news .fn-date-badge i { font-size: 16px; color: var(--fn-gold); }
.fta-news .fn-row { display: flex; align-items: center; gap: 48px; }
.fta-news .fn-intro { flex: 0 0 340px; }
.fta-news .fn-cards { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fta-news .fn-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; border: 1px solid #e1ebf2; transition: transform .2s, box-shadow .2s; }
.fta-news .fn-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 51, 76, .14); }
.fta-news .fn-card-img { position: relative; height: 160px; }
.fta-news .fn-card-img-tall { height: 180px; }
.fta-news .fn-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fta-news .fn-card-body { position: relative; flex: 1; padding: 18px 20px 20px; }
.fta-news .fn-card-body h3 { margin: 0 0 8px; padding-right: 30px; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--fh-navy); }
.fta-news .fn-card-body p { font-size: 14px; line-height: 1.5; color: #33465a; }
.fta-news .fn-card-date { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; }
.fta-news .fn-card-date i { color: var(--fh-navy); }
.fta-news .fn-card-teaser { margin-top: 10px !important; }
.fta-news .fn-card-go {
    position: absolute; right: 18px; bottom: 18px; width: 34px; height: 26px; border-radius: 6px;
    border: 1px solid #c9dbe5; display: flex; align-items: center; justify-content: center; color: var(--fh-navy); font-size: 13px;
}
.fta-news .fn-empty {
    grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 30px 32px; border-radius: 14px;
    background: #fff; border: 1px dashed #c9dbe5; color: #33465a;
}
.fta-news .fn-empty i { font-size: 34px; color: rgba(3, 106, 125, .55); }
.fta-news .fn-empty p { font-size: 16px; line-height: 1.55; }
.fta-news .fn-empty-wide { margin-top: 10px; }

/* ---------- Upcoming Events / Latest News ---------- */
.fta-news .fn-events { background: linear-gradient(90deg, #eaf5fb 0%, #f2f9fc 100%); padding: var(--fh-section-y) 0; }
.fta-news .fn-latest { background: #fff; padding: var(--fh-section-y) 0; }

/* ---------- All News list ---------- */
.fta-news .fn-all { background: #f7fbfd; padding: var(--fh-section-y) 0; scroll-margin-top: 10px; }
.fta-news .fn-search { display: flex; max-width: 460px; height: 50px; margin: 6px 0 30px; border: 1px solid #dfe9f0; border-radius: 8px; background: #fff; overflow: hidden; }
.fta-news .fn-search input { flex: 1; border: 0; padding: 0 18px; font-family: var(--fh-font); font-size: 15px; outline: none; }
.fta-news .fn-search button { width: 52px; border: 0; background: var(--fh-teal); color: #fff; font-size: 16px; }
.fta-news .fn-all-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Photo Gallery + Newsletter ---------- */
.fta-news .fn-bottom { background: #fff; padding: var(--fh-section-y) 0 calc(var(--fh-section-y) + 12px); }
.fta-news .fn-bottom-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fta-news .fn-gallery { position: relative; min-height: 260px; border-radius: 16px; overflow: hidden; display: flex; align-items: center; }
.fta-news .fn-gallery-bg { position: absolute; inset: 0; justify-content: flex-end; align-items: flex-end; padding: 16px; font-size: 12px; color: #9fc0cc; background: linear-gradient(100deg, #0b4b5c 0%, #1d6272 55%, #2c7182 100%); border: 0; }
.fta-news .fn-gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fta-news .fn-gallery::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(4, 64, 82, .92) 0%, rgba(8, 82, 102, .72) 55%, rgba(8, 82, 102, .25) 100%); }
.fta-news .fn-gallery-content { position: relative; z-index: 2; z-index: 1; padding: 36px 40px; max-width: 420px; color: #fff; }
.fta-news .fn-gallery-content h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; font-size: 32px; font-weight: 800; color: #fff; }
.fta-news .fn-gallery-content h2 i { font-size: 34px; color: #2bd1d6; }
.fta-news .fn-gallery-content p { font-size: 16px; line-height: 1.6; color: #e3f0f4; margin-bottom: 24px !important; }
.fta-news .fn-newsletter { position: relative; padding: 34px 40px; border-radius: 16px; background: linear-gradient(160deg, #f1f7fc 0%, #e7f1f9 100%); border: 1px solid #e1ecf4; }
.fta-news .fn-newsletter .fh-h2 { font-size: 32px; margin-bottom: 10px; padding-right: 60px; }
.fta-news .fn-newsletter > p:not(.fh-label) { font-size: 15.5px; line-height: 1.6; color: #1e2f45; max-width: 460px; margin-bottom: 22px !important; }
.fta-news .fn-plane { position: absolute; top: 28px; right: 34px; font-size: 44px; color: var(--fh-teal); transform: rotate(-12deg); }
.fta-news .fn-news-row { display: flex; gap: 12px; }
.fta-news .fn-news-field { position: relative; flex: 1; display: block; }
.fta-news .fn-news-field > i { position: absolute; left: 16px; top: 17px; font-size: 16px; color: #6b8293; }
.fta-news .fn-news-field input { width: 100%; height: 50px; padding: 0 16px 0 44px; border: 1px solid #dfe9f0; border-radius: 8px; background: #fff; font-family: var(--fh-font); font-size: 15px; color: var(--fh-navy); outline: none; }
.fta-news .fn-news-field input:focus { border-color: var(--fh-teal); box-shadow: 0 0 0 3px rgba(3, 106, 125, .15); }
.fta-news .fn-news-row .fh-btn { height: 50px; border: 0; cursor: pointer; }
.fta-news .fn-news-form .wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 13px; color: #dc3232; }
.fta-news .fn-news-form .wpcf7-response-output:not(:empty) { margin-top: 12px; font-size: 14px; color: var(--fh-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1399.98px) {
    .fta-news .fn-intro { flex-basis: 290px; }
    .fta-news .fn-cards { gap: 18px; }
    .fta-news .fn-cat span { font-size: 14px; }
}
@media (max-width: 1199.98px) {
    .fta-news .fn-hero h1 { white-space: normal; }
    .fta-news .fn-cats { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
    .fta-news .fn-cat:nth-child(4) { border-left: 0; }
    .fta-news .fn-row { flex-direction: column; align-items: stretch; gap: 40px; }
    .fta-news .fn-intro { flex: none; max-width: 680px; }
    .fta-news .fn-slide, .fta-news .fn-empty-featured { grid-template-columns: 1fr; gap: 32px; }
    .fta-news .fn-featured-media { height: 360px; order: -1; }
    .fta-news .fn-bottom-row { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
    .fta-news .fn-cards, .fta-news .fn-all-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .fta-news .fn-cats { grid-template-columns: repeat(2, 1fr); padding: 14px 4px; }
    .fta-news .fn-cat { border-left: 0; }
    .fta-news .fn-cat i { font-size: 26px; }
    .fta-news .fn-featured .fh-h2 { font-size: 30px; }
    .fta-news .fn-featured-media { height: 240px; }
    .fta-news .fn-cards, .fta-news .fn-all-grid { grid-template-columns: 1fr; }
    .fta-news .fn-empty { flex-direction: column; text-align: center; padding: 24px 18px; }
    .fta-news .fn-gallery-content { padding: 30px 22px; }
    .fta-news .fn-gallery-content h2 { font-size: 27px; }
    .fta-news .fn-newsletter { padding: 28px 20px; }
    .fta-news .fn-newsletter .fh-h2 { font-size: 27px; }
    .fta-news .fn-plane { display: none; }
    .fta-news .fn-news-row { flex-direction: column; }
}
