/* Finance page top banner — image: public/assets/images/background/finance-banner.webp */
.page-hero--finance.hero {
    background-image: url('../images/background/finance-banner.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Banner Section - Updated with direct image */
.finance-banner {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Add this new CSS for the direct image */
.banner-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Add gradient overlay using pseudo-element */
.finance-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--snh-red-rgb), 0.75);
    z-index: 1;
}

.banner-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
}
.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
    color: #ffebee;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
    color: #ffe5e5;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--snh-red);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite 1s;
}

.cta-button:hover {
    background: #ffebee;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Floating elements animation */
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

/* Info Section */
.info { 
    padding: 40px 20px; 
    max-width: 1200px; 
    margin: auto; 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 24px;
    align-items: start;
}

@media (min-width: 768px) { 
    .info { 
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    } 
}

.info-box { 
    background: #fff; 
    border-radius: 16px; 
    padding: 28px 30px; 
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    text-align: left;
    height: 100%;
}

.info-box:hover {
    box-shadow: 0 12px 25px rgba(var(--snh-red-rgb), 0.15);
}

.info-box h3 { 
    font-size: 1.5rem; 
    color: #b91c1c; 
    font-weight: 700; 
    margin: 0 0 14px;
    line-height: 1.35;
    text-align: left;
}

.info-box h4 { 
    font-size: 1.2rem; 
    color: #dc2626; 
    font-weight: 600; 
    margin: 22px 0 10px;
    line-height: 1.4;
    text-align: left;
}

.info-box p { 
    margin: 0 0 16px; 
    line-height: 1.65; 
    color: #444;
    text-align: left;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box a {
    color: #b91c1c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.info-box a:hover {
    color: #dc2626;
}

/* Text Animation Effects */
.info-box .animated-text {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.text-delay-1 { animation-delay: 0.2s; }
.text-delay-2 { animation-delay: 0.4s; }
.text-delay-3 { animation-delay: 0.6s; }

.highlight {
    background: linear-gradient(120deg, #ffebee 0%, #ffebee 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.2em;
    background-position: 0 88%;
    transition: background-size 0.3s ease;
}

.highlight:hover {
    background-size: 100% 88%;
}

/* Video Section */
.videos { 
    background: #fff; 
    padding: 60px 20px; 
    text-align: center; 
}

.videos h2 { 
    font-size: 2rem; 
    color: #b91c1c; 
    font-weight: 700; 
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.video-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 30px; 
    max-width: 1200px; 
    margin: auto; 
}

@media(min-width:768px){ 
    .video-grid{ 
        grid-template-columns: repeat(3,1fr);
    } 
}

.video-card { 
    background: #fee2e2; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 6px 15px rgba(0,0,0,0.1); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideUp 0.6s ease-out;
}

.video-card:hover { 
    transform: scale(1.05); 
    box-shadow: 0 12px 25px rgba(var(--snh-red-rgb), 0.2);
}

.video-info { 
    background: #ff6347; 
    height: 35px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: background 0.3s ease;
}

.video-card:hover .video-info {
    background: var(--snh-red);
}

.video-info h3 { 
    font-size: 1.2rem; 
    color: #fff; 
    font-weight: 600; 
    margin: 0; 
    padding: 10px; 
    text-align: center; 
}

.video-thumb { 
    position: relative; 
}

.video-thumb video, .video-thumb img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
    border-radius: 0 0 12px 12px; 
}

/* Partners Section */
  .partners-section {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px; /* Added padding at the top */
  }

  .partners-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
  }

  .partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  .partner-logo {
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(80%) opacity(0.7);
    transition: all 0.3s ease;
  }

  .partner-item:hover .partner-logo {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
  }

  .partner-name {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    opacity: 0.8;
  }
  
  /* Responsive design */
  @media (max-width: 1100px) {
    .partners-container {
      gap: 40px;
    }
    
    .partner-logo {
      max-width: 140px;
    }
  }
  
  @media (max-width: 900px) {
    .partners-container {
      gap: 30px;
    }
    
    .partner-logo {
      max-width: 120px;
    }
  }
  
  @media (max-width: 768px) {
    .partners-container {
      gap: 25px;
    }
    
    .partner-logo {
      max-width: 100px;
    }
  }
  
  @media (max-width: 650px) {
    .partners-container {
      flex-wrap: wrap;
      gap: 30px;
    }
    
    .partner-item {
      width: calc(33.333% - 20px);
    }
  }
  
  @media (max-width: 480px) {
    .partners-container {
      gap: 20px;
    }
    
    .partner-item {
      width: calc(50% - 15px);
    }
  }
        
        /* Animation for cards on load */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .partner-card {
            animation: fadeInUp 0.6s ease forwards;
            opacity: 0;
        }
        
        .partner-card:nth-child(1) { animation-delay: 0.1s; }
        .partner-card:nth-child(2) { animation-delay: 0.2s; }
        .partner-card:nth-child(3) { animation-delay: 0.3s; }
        .partner-card:nth-child(4) { animation-delay: 0.4s; }
        .partner-card:nth-child(5) { animation-delay: 0.5s; }
        .partner-card:nth-child(6) { animation-delay: 0.6s; }
        
        /* Responsive design */
        @media (max-width: 768px) {
            .partners-container {
                gap: 20px;
            }
            
            .partner-card {
                width: 160px;
                height: 120px;
            }
            
            .section-title {
                font-size: 2rem;
            }
        }
        
        @media (max-width: 480px) {
            .partner-card {
                width: 130px;
                height: 100px;
            }
            
            .partners-container {
                gap: 15px;
            }
        }
/* Footer */
.finance-footer {
    background: var(--snh-red-dark);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.rating {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-text {
    max-width: 600px;
    margin: 0 auto;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* Text Animation Classes */
.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffebee;
    animation: textReveal 1.5s ease-out forwards;
}

@keyframes textReveal {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .info {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-logos {
        gap: 15px;
    }
    
    .partner-logo {
        padding: 10px 15px;
    }
    
    .partner-logo img {
        height: 30px;
    }
    
    .info-box h3 {
        font-size: 1.3rem;
    }
    
    .info-box h4 {
        font-size: 1.1rem;
    }
}