/* Mayo Clinic Inspired Design Styles */

/* Hero Section with Image */
.hero-section-mayo {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: #000000;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #000000;
    transform: translateZ(0);
    will-change: transform;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
}

/* Video Text Overlay */
.video-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 95%;
    max-width: 1400px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-title {
    font-size: 5.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.3rem 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    letter-spacing: 8px;
    line-height: 1.1;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    will-change: opacity;
}

.video-text-overlay.fade-in .video-title {
    opacity: 1;
}

.video-title-description {
    font-size: 1.15rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin: 0;
    letter-spacing: 2px;
    line-height: 1.4;
    white-space: nowrap;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transition-delay: 0.3s;
    will-change: opacity;
}

.video-text-overlay.fade-in .video-title-description {
    opacity: 1;
}

.video-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin: 3rem 0 0 0;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transition-delay: 1s;
    will-change: opacity;
}

.video-text-overlay.fade-in .video-subtitle {
    opacity: 1;
}

.hero-static-content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-static-content.show {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none !important;
    }

    .video-text-overlay {
        display: none !important;
    }

    .hero-static-content {
        display: block !important;
        opacity: 1 !important;
    }
}

.hero-content-mayo {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.hero-text-mayo {
    max-width: 700px;
    color: white;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-badge span {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title-mayo {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-lead-mayo {
    font-size: 1.35rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.hero-btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-mayo {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.btn-mayo-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-mayo-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-mayo-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-mayo-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Trust Section */
.trust-section {
    background: #1a1f35;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.trust-item {
    text-align: center;
    padding: 1.5rem;
}

.trust-icon {
    margin-bottom: 1rem;
    color: var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-icon svg {
    stroke: var(--primary-light);
}

.trust-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.trust-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Content Section */
.content-section-mayo {
    padding: 5rem 0;
    background: var(--bg-color);
}

.section-header-mayo {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.15);
    color: #2563eb;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header-mayo h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-intro-mayo {
    font-size: 1.15rem;
    color: #374151;
    line-height: 1.7;
}

/* Mayo Card Grid */
.mayo-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.mayo-card {
    background: var(--bg-alt);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.mayo-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.mayo-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg-soft);
}

.mayo-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mayo-card:hover .mayo-card-image img {
    transform: scale(1.05);
}

.mayo-card-content {
    padding: 2rem;
}

.mayo-card-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.mayo-card-content p {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.mayo-card-link {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mayo-card-link:hover {
    color: #1e40af;
    gap: 0.5rem;
}

/* Featured Section with Image Split */
.featured-section-mayo {
    padding: 5rem 0;
    background: #0a0f1e;
}

/* White text for featured section on dark background */
.featured-section-mayo .featured-content h2,
.featured-section-mayo .featured-content p,
.featured-section-mayo .featured-content li {
    color: white !important;
}

.featured-section-mayo .featured-content .section-tag {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-light);
}

.featured-section-mayo .featured-list li::before {
    background: var(--primary-light);
}

.featured-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Wordmark only — no panel/box; logo PNG supplies its own background */
.featured-image.featured-image--logo {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.65rem, 2.2vw, 1.35rem);
    min-height: 0;
    box-sizing: border-box;
}

/* Fills the split column minus padding; aspect ratio from the asset */
.featured-image--logo .featured-mind-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
}

.featured-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.featured-content p {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Override for microcopy in featured section */
.featured-section-mayo .microcopy {
    color: rgba(255, 255, 255, 0.8) !important;
}

.featured-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.featured-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.05rem;
    color: #1f2937;
}

.featured-list li::before {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-list li::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 1.15rem;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Statistics Section */
.stats-section-mayo {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 4rem 0;
}

.stats-grid-mayo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item-mayo {
    padding: 1rem;
}

.stat-number-mayo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label-mayo {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section-mayo {
    background: var(--bg-alt);
    padding: 5rem 0;
    text-align: center;
}

.cta-content-mayo {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content-mayo h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.cta-content-mayo p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .video-title {
        font-size: 4.5rem;
        text-align: center;
    }

    .video-title-description {
        font-size: 1rem;
        white-space: normal;
        text-align: center;
    }
    
    .video-subtitle {
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 968px) {
    .hero-title-mayo {
        font-size: 2.5rem;
    }

    .hero-lead-mayo {
        font-size: 1.15rem;
    }

    .video-title {
        font-size: 3.5rem;
        white-space: normal;
        word-wrap: break-word;
        text-align: center;
        letter-spacing: 5px;
    }

    .video-title-description {
        font-size: 0.85rem;
        white-space: normal;
        text-align: center;
        letter-spacing: 1.5px;
    }

    .video-subtitle {
        font-size: 1.2rem;
        white-space: normal;
        text-align: center;
        margin-top: 2.5rem;
    }

    .featured-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-header-mayo h2 {
        font-size: 2.25rem;
    }

    .trust-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section-mayo {
        min-height: 500px;
    }

    .hero-title-mayo {
        font-size: 2rem;
    }

    .hero-lead-mayo {
        font-size: 1.05rem;
    }

    .video-title {
        font-size: 2.75rem;
        white-space: normal;
        text-align: center;
        letter-spacing: 4px;
    }

    .video-title-description {
        font-size: 0.75rem;
        white-space: normal;
        text-align: center;
        letter-spacing: 1px;
    }

    .video-subtitle {
        font-size: 1rem;
        white-space: normal;
        text-align: center;
        margin-top: 2rem;
    }

    .hero-btn-group {
        flex-direction: column;
    }

    .btn-mayo {
        width: 100%;
    }

    .mayo-card-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid-mayo {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Image Gallery Section */
.image-gallery-mayo {
    padding: 5rem 0;
    background: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(calc(100% - 3rem));
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}
