/* ==================================================================================
    CSS STYLING FOR EMAIL SOLUTIONS PAGE
    ==================================================================================
*/

/* --- External Links Imported Here --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css');


/* --- Variable Definitions --- */
:root {
    --wave-primary: #004d99;      /* Darker Main Brand Blue */
    --wave-secondary: #008cba;    /* Teal/Cyan Accent */
    --wave-light-bg: #f5faff;     /* Very Light Blueish Background */
    --wave-text-dark: #1f2937;    /* Dark Headings */
    --wave-text-body: #4b5563;    /* Body Text */
    --wave-shadow-box: 0 4px 15px rgba(0, 0, 0, 0.08);
    --wave-shadow-hover: 0 8px 25px rgba(0, 119, 182, 0.2); 
    --wave-icon-color: var(--wave-primary); 
}

/* Base Styling for Page Consistency */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--wave-text-body);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

/* Content Wrapper for CMS environments */
div[itemprop="articleBody"] {
     margin: 0 auto;
}

/* General Section Wrapper */
.wave-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 90px 25px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3em;
    color: var(--wave-text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.2em;
    color: var(--wave-text-body);
    max-width: 800px;
    margin: 0 auto;
}

/* --- HERO SECTION --- */
.wave-hero {
    /* !!! IMPORTANT: REPLACE URL WITH YOUR IMAGE PATH !!! */
    background-image: 
        linear-gradient(rgba(0, 77, 153, 0.7), rgba(0, 77, 153, 0.8)), 
        url('../../../images/email_solutions.png'); 
    background-color: var(--wave-primary);
    
    background-size: 100% auto;
    margin-top: -5.5vh; 
    z-index: 0;
    
    background-position: center center;
    background-repeat: no-repeat;
    
    color: white;
    padding: 150px 25px 120px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.hero-content h3 {
    font-size: 1.6em;
    margin-bottom: 40px;
    color: #b3e5fc; 
    max-width: 900px;
    margin: 0 auto 50px auto;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Hero Features Box */
.hero-feature-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600;
    color: white;
}

.hero-feature-item i {
    font-size: 1.5em;
    color: var(--wave-secondary);
    margin-right: 10px;
}


/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 18px 40px;
    margin: 10px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.primary-cta {
    background-color: var(--wave-secondary);
    color: white;
    border: 2px solid var(--wave-secondary);
    box-shadow: 0 4px 10px rgba(0, 140, 186, 0.5); 
}

.primary-cta:hover {
    background-color: #007799; 
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 140, 186, 0.7);
}

.secondary-cta {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-cta:hover {
    background-color: white;
    color: var(--wave-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
}

.large-cta {
    font-size: 1.4em; 
    padding: 20px 50px;
}

/* --- THREE-COLUMN CARD LAYOUT (Row) --- */
.product-row-container {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.product-card-3col {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    min-width: 300px; 
}

.product-card-3col:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.card-header-brand {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-align: center;
    min-height: 180px; /* Ensure visual balance across cards */
}

/* Image specific styling */
.card-header-brand img {
    width: 80px; /* Adjust as needed */
    height: 80px; /* Adjust as needed */
    object-fit: contain; /* Ensures logo fits without cropping */
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); /* Optional shadow for images */
}

.card-header-brand h3 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 800;
}

.card-header-brand p {
    margin: 5px 0 0 0;
    font-size: 1em;
    font-weight: 300;
}

/* Brand Colors */
.google-brand { background-color: #4285F4; }
.microsoft-brand { background-color: #0078D4; }
.mailstore-brand { background-color: #ff5722; }

.card-content {
    padding: 30px 20px;
    background-color: white;
    flex-grow: 1; /* Ensures content fills the height */
    display: flex;
    flex-direction: column;
}

.content-details {
    margin-bottom: 20px;
}

.content-details h4 {
    font-size: 1.3em;
    color: var(--wave-primary);
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--wave-light-bg);
    padding-bottom: 5px;
}

.content-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.content-features li {
    padding: 6px 0;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    text-align: left;
    color: var(--wave-text-dark);
}
.content-features li i {
    color: #28a745; /* Checkmark Green */
    font-size: 1.1em;
    margin-right: 10px;
}

.card-cta-footer {
    margin-top: auto; /* Pushes the button to the bottom */
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* --- ACCORDION FAQ STYLES --- */
.accordion-container {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--wave-light-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: var(--wave-shadow-box);
    overflow: hidden;
}

.accordion-header {
    padding: 20px 30px;
    cursor: pointer;
    background-color: #fff;
    color: var(--wave-text-dark);
    font-weight: 600;
    font-size: 1.15em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.accordion-header:hover {
    background-color: #f2f2f2;
}

.accordion-header i {
    color: var(--wave-secondary);
    transition: transform 0.3s;
}

.accordion-header.active i {
    transform: rotate(180deg);
    color: var(--wave-primary);
}

.accordion-content {
    padding: 0 30px;
    color: var(--wave-text-body);
    background-color: var(--wave-light-bg);
    display: none; 
}

.accordion-content-inner {
    padding: 20px 0 30px 0;
}


/* --- CONTACT SECTION (Used generic section name for reuse) --- */
.migration-cta-section {
    background-color: var(--wave-light-bg);
    padding: 50px 25px;
    text-align: center;
    border-top: 3px solid var(--wave-primary);
}

.contact-box {
    max-width: 900px; 
    margin: 0 auto;
}

.migration-cta-section h2 {
    color: var(--wave-text-dark);
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.migration-cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
}


/* Responsive Adjustments */
@media (max-width: 1050px) {
    .product-row-container {
        flex-wrap: wrap; 
        justify-content: center;
    }
    .product-card-3col {
        flex-basis: 45%; /* Two cards per row on medium screens */
        min-width: unset;
    }
}

@media (max-width: 768px) {
    .wave-hero { 
        padding: 100px 20px 60px 20px;
        background-size: 100% auto;
    }
    .hero-content h1 { font-size: 3em; }
    .hero-content h3 { font-size: 1.3em; }
    .wave-section { padding: 60px 20px; }
    
    .product-row-container {
        flex-direction: column; /* Single column on small screens */
        gap: 25px;
    }
    .product-card-3col {
        flex-basis: 100%;
    }
    .card-header-brand {
        min-height: 150px;
    }
}