/* DMARC Aide Hero Slider Styles */
/* Fixes height consistency issues and optimizes responsive image display */

/* Hero Slider Container - Fixed max-height to prevent content jumping */
.hero-slider-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    max-height: 900px; /* Constrain container height */
    overflow: hidden; /* Changed from auto to hidden to prevent scrollbars */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure page-header respects max-height constraint */
.page-header {
    max-height: 1200px !important;
    overflow: hidden;
}

.hero-slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-image.active {
    opacity: 1;
}

/* Default visibility for no-JS fallback */
.hero-slider-image.new-hero {
    opacity: 1;
}

/* Hide when JS is available */
.js-enabled .hero-slider-image {
    opacity: 0;
}

.js-enabled .hero-slider-image.active {
    opacity: 1;
}

/* New hero image styles - constrained to max 1920x930 while maintaining responsiveness */
.hero-slider-image.new-hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1920px;
    cursor: pointer;
    aspect-ratio: 1920 / 930;
    height: auto;
}

.hero-slider-image.new-hero picture,
.hero-slider-image.new-hero img {
    width: 100%;
    max-width: 1920px;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Old hero image styles - constrained width with rounded corners */
.hero-slider-image.old-hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 1200 / 628;
    height: auto;
}

.hero-slider-image.old-hero img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    border-radius: 34px;
    object-fit: contain;
}

/* Responsive adjustments for different viewport sizes */
@media (max-width: 4000px) {
    .hero-slider-container + wo-js {
        max-height: 500px;
        margin: 1rem 0;
    }
}

@media (max-width: 2560px) {
    .hero-slider-container + wo-js {
        max-height: 480px;
        margin: 1rem 0;
    }
}

@media (max-width: 1930px) {
    .hero-slider-container + wo-js {
        max-height: 450px;
        margin: 1rem 0;
    }
}

@media (max-width: 1600px) {
    .hero-slider-container + wo-js {
        max-height: 400px;
        margin: 1rem 0;
    }
}

@media (max-width: 1440px) {
    .hero-slider-container + wo-js {
        max-height: 350px;
        margin: 1rem 0;
    }
}

@media (max-width: 1200px) {
    .hero-slider-container + wo-js {
        max-height: 300px;
        margin: 1rem 0;
    }
}

@media (max-width: 768px) {
    .hero-slider-container {
        max-height: 250px;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .hero-slider-container {
        max-height: 200px;
        margin: 1rem 0;
    }
}

@media (max-width: 350px) {
    .hero-slider-container {
        max-height: 150px;
        margin: 1rem 0;
    }
}

/* Slider control styles */
.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Hero Section */
.hero {
    padding: 1rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--secondary-color);
}

.hero-image {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
    padding: 1rem 0;
    border-radius: 0.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 900px;
    margin: 0 auto;
}

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

.feature-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* How It Works Section */
.how-it-works {
    padding: 2.25rem 0;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

/* Center step 4 content */
.step:nth-child(4) {
    flex-direction: column;
    text-align: center;
}

.step-content {
    flex: 1;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step-image {
    flex: 1;
    text-align: center;
}

.step-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.step-image img:hover {
    transform: scale(1.02);
}

/* Related Resources Section */
.related-resources {
    padding: 0.15rem 0;
}

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

.resource-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.resource-card:hover {
    transform: scale(1.04);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Ensure no text decoration on any elements inside resource cards */
.resource-card:hover,
.resource-card:hover h4,
.resource-card:hover p,
.resource-card:hover .learn-more {
    text-decoration: none;
}

.resource-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.resource-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.learn-more {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-top: 1rem;
    display: block;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    margin: 0 auto;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 30px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .step {
        flex-direction: column !important;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Responsive YouTube Video Embed */
.video-container {
    width: 100%;
    margin: 2rem 0 2.5rem 0;
}

.video-embed-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.video-embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

/* No-JS fallback for video */
.no-js-video-link {
    display: block;
    text-align: center;
    margin: 2rem 0 2.5rem 0;
}

.no-js-video-link a {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-js-video-link a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
    text-decoration: none;
}

/* Hide no-JS link when JS is available */
.js-enabled .no-js-video-link {
    display: none;
}

@media (max-width: 768px) {
    .video-container {
        margin: 1.25rem 0 1.5rem 0;
    }
    .video-embed-responsive {
        border-radius: 8px;
    }
    .video-embed-responsive iframe {
        border-radius: 8px;
    }
    .no-js-video-link {
        margin: 1.25rem 0 1.5rem 0;
    }
} 