/* Hero Section */
#goldChartContainer iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.hero {
    background-image: url('../images/header_bg.png');
    background-size: cover;
    background-position: center 25%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

/* .hero::before removed to eliminate blue gradient overlay */

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #e6f1ff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Intro Text Section (SEO) */
.intro-text a {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.intro-text a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card.no-hover:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 0;
    height: auto;
    display: flex;
    align-items: center;
}

.service-card .icon img {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.service-card:hover .icon img {
    transform: scale(1.1);
}

.link-arrow {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Companies Slider */
.slider {
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 18);
    /* 250px * 18 slides */
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.slide img {
    max-width: 100%;
    max-height: 80px;
}

.service-card .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
    margin-top: 30px;
}

.bento-item {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Size Variants */
.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid rgba(10, 25, 47, 0.05);
}

.bento-item.medium {
    grid-column: span 2;
}

.bento-item.tall {
    grid-row: span 2;
}

/* News Specifics */
.bento-item.news-item {
    border-left: 4px solid var(--accent-color);
}

.news-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content-preview {
    font-size: 0.9rem;
    color: var(--text-color);
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Tool Item Specifics (inheriting some from service-card but adapted) */
.bento-item .icon {
    font-size: 2rem;
    margin-bottom: 15px;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 25, 47, 0.03);
    border-radius: 10px;
    /* softer */
}

.bento-item h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.bento-item p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

/* Large item specific styling */
.bento-item.large .icon {
    height: 70px;
    width: 70px;
    font-size: 2.5rem;
    background: rgba(212, 175, 55, 0.1);
    /* Gold tint */
    margin-bottom: 25px;
}

.bento-item.large h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.bento-item.large p {
    font-size: 1.1rem;
    max-width: 80%;
}

/* Responsive */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-item.large {
        grid-column: span 2;
        /* keeps it wide */
    }
}

@media (max-width: 600px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .bento-item,
    .bento-item.large,
    .bento-item.medium {
        width: 100%;
        grid-column: auto;
        grid-row: auto;
    }
}
/* Content Grid with Sidebar/Chart */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}
