/* Careers Page Styles */

/* Import shared styles */
/* hero-partial.css is registered by the hero partial view to avoid duplicate loading. */
@import 'home.css';

/* Page-specific overrides */
.careers-page {
  color: #333;
}

/* News Section Styles - riutilizza gli stili da home.css */
.news-section { 
  background: #F3F4F6; 
  padding: 80px 0; 
}

.news-eyebrow {
  font: 700 11px/1.1 'Montserrat', system-ui; 
  letter-spacing: .14em;
  color: #003EFF; 
  text-transform: uppercase; 
  text-align: center; 
  margin: 0 0 12px;
}

.news-title {
  font: 800 clamp(24px,4.6vw,36px)/1.2 "Space Grotesk", system-ui;
  text-align: center; 
  color: #0B0B0E; 
  margin: 0 0 clamp(24px,4vw,36px);
}

/* News Swiper */
.news-swiper {
  overflow: hidden;
  margin-right: -8px;
  cursor: grab; 
  touch-action: pan-y;
}

.news-swiper:active { 
  cursor: grabbing; 
}

.news-swiper .swiper-wrapper { 
  align-items: stretch; 
}

.news-swiper .swiper-slide { 
  height: auto; 
}

/* Featured slide takes more space */
.news-swiper .feature-slide {
  width: 380px;
  flex-shrink: 0;
}

/* Regular slides */
.news-swiper .swiper-slide:not(.feature-slide) {
  width: 320px;
  flex-shrink: 0;
}

/* News Cards */
.news-card {
  background: #fff;
  border-radius: 16px;
  padding: clamp(20px, 2.8vw, 32px);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}

.news-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
}

.news-card.feature {
  background: linear-gradient(135deg, #0B46F0 0%, #4785FF 100%);
  color: #fff;
  min-height: 280px;
}

.news-card .tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font: 600 11px/1 'Montserrat', system-ui;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}

.news-card .headline {
  font: 700 clamp(18px, 2.4vw, 24px)/1.3 "Space Grotesk", system-ui;
  margin: 0 0 auto;
  color: inherit;
}

.news-card .excerpt {
  font: 400 14px/1.5 'Montserrat', system-ui;
  color: #666;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  overflow: hidden;
}

.news-card .open-ico {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  color: #999;
  opacity: 0;
  transform: translateX(-8px);
  transition: all .25s ease;
}

.news-card:hover .open-ico {
  opacity: 1;
  transform: translateX(0);
}

.news-card .media {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.news-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.news-card:hover .media img {
  transform: scale(1.05);
}

.news-card .btn-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font: 600 13px/1 'Montserrat', system-ui;
  text-decoration: none;
  margin-top: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.3);
  transition: border-color .2s ease;
}

.news-card .btn-read:hover {
  border-color: rgba(255,255,255,.6);
  text-decoration: none;
  color: #fff;
}

.news-card .card-actions {
  margin-top: auto;
}

/* CTA Bottom Styles */
.contact-cta {
  background: #f8f9fa;
  padding: 80px 0;
  text-align: center;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.2rem;
  color: #4a5568;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: #667eea;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: #5a67d8;
  text-decoration: none;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.featured-tx-card:hover{  
      transform: translateY(0) !important;
}
/* Responsive */
@media (max-width: 768px) {
  .news-swiper .feature-slide,
  .news-swiper .swiper-slide:not(.feature-slide) {
    width: 300px;
  }
  
  .news-section {
    padding: 60px 0;
  }
  
  .news-card {
    padding: 24px;
  }
  
  .cta-title {
    font-size: 2rem;
  }
  
  .contact-cta {
    padding: 60px 0;
  }
}

/* --- responsive overrides added by agent: careers view --- */
@media (max-width: 768px) {
  .career-list { display: block; }
  .career-item { margin-bottom: 18px; }
}
@media (min-width: 350px) and (max-width: 550px) {
  .career-title { font-size: 16px; }
  .apply-now { width: 100%; }
}

.hero-text{
  padding: 15px !important;
}
.featured-tx-title {
  color: var(--CG-colors-Grey-Black, #000);
  font-family: var(--Typography-font-family-title, "Space Grotesk");
  font-size: 40px;
  font-style: normal;
  font-weight: 500;
  line-height: 44px; /* 110% */
}

.featured-tx-description {
  color: var(--CG-colors-Shadows-Black-80, rgba(0, 0, 0, 0.80));
  font-family: var(--Typography-font-family-body, Montserrat);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px; /* 130% */
}
  .featured-transactions .section-header {
    margin-bottom: 24px !important;
}
.featured-transactions .section-header {
    display: flex;
    justify-content: flex-end !important;
    align-items: center;
}

.featured-transactions .section-header h2 {
    margin: 0;
}

.featured-tx-card {
    background: #F2F2F2 !important;
    box-shadow: none !important;
}

.featured-tx-tag {
    display: flex;
    height: 26px;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: #000;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
}
    .ctc-wrap {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 24px;
    max-width: 838px;
    width: 100%;
    padding: 80px 0;
}
    .featured-tx-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 440px;
    align-items: center;
}
    .featured-transactions-section .container-frame{
    padding: 120px 20px 160px 20px;
}
/* Stack featured transaction slides on small screens: image above, text below */
@media (max-width: 782px) {
  .featured-tx-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    min-height: auto !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .featured-tx-card .featured-tx-image {
    grid-column: 1 / -1 !important;
    order: -1 !important; /* ensure image is on top */
    width: 100% !important;
  }

  .featured-tx-card .featured-tx-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
  }

  .featured-tx-card .featured-tx-content {
    grid-column: 1 / -1 !important;
    padding: 20px !important;
    text-align: left !important;
  }

  /* Reduce featured/regular slide widths inside swiper on narrow screens */
  .news-swiper .feature-slide,
  .news-swiper .swiper-slide:not(.feature-slide) {
    width: 320px !important;
  }
  .featured-tx-card{
    height: auto !important;
  }
}