/* =================================================================
   HOME PAGE SPECIFIC STYLES
   ================================================================= */

/* Hide Home H1 */
.md-typeset h1:first-child {
    display: none !important;
}

/* Home page hero section */
.home-hero {
      display: flex;
      justify-content: center;
      padding: 2rem;
}

.home-hero img {
    padding: 1rem;
    width: auto;
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.home-hero-content {
      text-align: center;
      max-width: 800px;
}

.hero-claim {
      font-size: 2rem;
      font-weight: bold;
      margin-bottom: 0.5rem;
}

.hero-subtitle {
      font-size: 1.25rem;
      color: #555;
}

/* Partners section */
.home-partners {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.home-partner-tile {
    background: var(--6g-bg-primary);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.home-partner-tile:hover {
    border-color: var(--6g-blue-light);
    box-shadow: 0 4px 20px rgba(0, 116, 168, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.home-partner-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.home-partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: filter 0.3s ease;
}

.home-partner-tile:hover .home-partner-logo img {
    filter: grayscale(0);
}

/* Dark mode styles */
[data-md-color-scheme="slate"] .home-hero img {
    background-color: rgba(255, 255, 255, 1) !important;
}

/* Dark mode - use higher grayscale for all logos */
[data-md-color-scheme="slate"] .home-partner-logo img {
    filter:contrast(0.5) grayscale(1) invert(1);
}

[data-md-color-scheme="slate"] .home-partner-tile:hover .home-partner-logo img {
    filter: grayscale(0);
}

/* Dark mode hover effect - show light tile style */
[data-md-color-scheme="slate"] .home-partner-tile:hover {
    background: var(--6g-white);
    border-color: var(--6g-blue-light);
    box-shadow: 0 4px 20px rgba(0, 116, 168, 0.2);
    transform: translateY(-2px);
}

/* Dark mode - logos with data-no-invert keep original colors */
[data-md-color-scheme="slate"] .home-partner-logo img[data-no-invert] {
    filter: grayscale(0.3);
}

[data-md-color-scheme="slate"] .home-partner-info h3 {
    color: var(--6g-blue-light);
}

[data-md-color-scheme="slate"] .home-partner-info p {
    color: #a0aec0;
}

/* Contact section */
.home-contact {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--6g-gray-light);
    border-radius: 8px;
    text-align: center;
}

[data-md-color-scheme="slate"] .home-contact {
    background: #2d3748;
}

.home-contact a {
    color: var(--6g-blue);
    font-weight: 600;
    text-decoration: none;
}

.home-contact a:hover {
    color: var(--6g-blue-dark);
    text-decoration: underline;
}

[data-md-color-scheme="slate"] .home-contact a {
    color: var(--6g-blue-light);
}

/* Responsive design */
@media (max-width: 768px) {
    .home-hero {
        flex-direction: column;
        text-align: center;
    }
    
    .home-partners {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .home-partner-tile {
        padding: 2rem 1.5rem;
    }
    
    .home-partner-logo {
        height: 60px;
    }
}