/* Why AeglePro Page Styles */

/* CRITICAL: Override style.css rules that might hide images */
/* These rules must come first and use maximum specificity to override style.css */
html body .wa-comparison-section .wa-comparison-image,
html body .wa-comparison-section .wa-comparison-img,
html body .wa-comparison-section img,
html body .wa-comparison-section-alt .wa-comparison-image,
html body .wa-comparison-section-alt .wa-comparison-img,
html body .wa-comparison-section-alt img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
}

html body .wa-comparison-section .wa-comparison-image,
html body .wa-comparison-section-alt .wa-comparison-image {
    display: flex !important;
}

html body .wa-comparison-section .col-lg-6,
html body .wa-comparison-section .col-12,
html body .wa-comparison-section-alt .col-lg-6,
html body .wa-comparison-section-alt .col-12 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

html body .wa-comparison-section .row,
html body .wa-comparison-section-alt .row {
    display: flex !important;
    visibility: visible !important;
}

/* Hide login/register and demo buttons on why-aeglepro page */
.why-aeglepro-page .action_btn,
body .wa-comparison-section ~ * .action_btn,
body:has(.wa-comparison-section) .navbar .row {
    display: none !important;
}

/* Hero section styling - match mid-header from pricing page */
.wa-hero.mid-header {
    text-align: center;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px);
    color: white;
    padding: 0 1rem;
}

.wa-hero.mid-header h1 {
    padding: 0 18rem;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.wa-hero.mid-header p {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.wa-hero.mid-header .header_store {
    padding: 0;
    margin-top: 20px;
}

.wa-hero.mid-header .header_store .row {
    justify-content: center;
    align-items: center;
}

.wa-hero.mid-header .store_image {
    padding: 10px;
}

.wa-hero.mid-header .store_image img {
    width: 100%;
    max-width: 200px;
    transition: transform 0.3s ease;
}

.wa-hero.mid-header .store_image img:hover {
    transform: scale(1.05);
}

.wa-hero.mid-header .store_image.image-3 img {
    border-radius: 5px;
}

/* Header adjustments for why-aeglepro page */
.why-aeglepro-page .top-header {
    height: auto !important;
    min-height: auto !important;
    background-image: none !important;
    background-color: transparent !important;
}

.why-aeglepro-page .top-header .navbar {
    position: relative !important;
    top: 0 !important;
    margin-top: 20px !important;
}

.hero-images {
    padding: 20px;
    position: relative;
    animation: fadeInRight 1s ease-out 0.6s both;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.hero-image {
    width: 45%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.hero-image-1 {
    animation: float 3s ease-in-out infinite;
}

.hero-image-2 {
    animation: float 3s ease-in-out infinite 1.5s;
}

.hero-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(22, 122, 112, 0.2);
}

/* Features Section */
.why-features {
    padding: 100px 0;
    background-color: #ffffff;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #167A70;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #167A70, transparent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out both;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #167A70, #22a396);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(6) {
    animation-delay: 0.6s;
}

.feature-card:nth-child(7) {
    animation-delay: 0.7s;
}

.feature-card:nth-child(8) {
    animation-delay: 0.8s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(22, 122, 112, 0.2);
    background: #ffffff;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #167A70, #22a396);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(22, 122, 112, 0.3);
}

.feature-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.feature-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #167A70;
    margin-bottom: 20px;
    line-height: 1.3;
}

.feature-description {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.feature-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-benefits li {
    font-size: 1rem;
    color: #666;
    line-height: 2;
    padding-left: 30px;
    position: relative;
    transition: color 0.3s ease;
}

.feature-benefits li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #167A70;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-benefits li {
    color: #333;
}

.feature-card:hover .feature-benefits li::before {
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure images are ALWAYS visible - no animation delays */
.wa-comparison-section .wa-comparison-img,
.wa-comparison-section .wa-comparison-image {
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Fallback to ensure visibility - override any animation */
.wa-comparison-section img {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    animation: none !important;
    transform: none !important;
}

/* Ensure comparison-image container is visible */
.wa-comparison-section .wa-comparison-image {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    /* Force display - override any Bootstrap or other CSS */
    width: 100% !important;
    height: auto !important;
    min-height: 300px !important;
}

/* Ensure Bootstrap columns don't hide content */
.wa-comparison-section .col-lg-6,
.wa-comparison-section .col-12 {
    display: block !important;
    visibility: visible !important;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Comparison Sections */
.wa-comparison-section {
    padding: 80px 0;
    background-color: #ffffff;
    overflow: visible;
}

.wa-comparison-section .wa-container,
.wa-comparison-section .wa-container-wrapper,
.wa-comparison-section .wa-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.wa-comparison-section .row {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.wa-comparison-section-alt {
    background: linear-gradient(135deg, rgba(22, 122, 112, 0.03) 0%, rgba(22, 122, 112, 0.08) 100%);
}

.wa-comparison-image {
    padding: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    visibility: visible !important;
    opacity: 1 !important;
    /* Remove animation that causes visibility issues */
    animation: none !important;
    transform: none !important;
}

.wa-comparison-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain !important;
    /* Force visibility - override any other rules */
    position: relative !important;
    z-index: 1 !important;
}

.wa-comparison-img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(22, 122, 112, 0.2);
}

.wa-comparison-content {
    padding: 40px 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Remove animation that might cause issues */
    animation: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.wa-comparison-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #167A70;
    margin-bottom: 30px;
    line-height: 1.3;
    display: block;
    visibility: visible;
}

.wa-comparison-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
    display: block;
    visibility: visible;
}

.wa-comparison-text-large {
    font-size: 1.3rem;
    color: #222;
    line-height: 1.9;
    margin-bottom: 25px;
    font-weight: 500;
    display: block;
    visibility: visible;
}

.wa-comparison-text strong {
    color: #167A70;
    font-weight: 600;
}

/* Responsive Design for Comparison Sections */
@media (min-width: 1200px) {
    .wa-comparison-img {
        max-width: 700px;
    }
    
    .wa-comparison-image {
        padding: 30px;
    }
    
    .wa-comparison-content {
        padding: 50px 30px;
    }
}

@media (max-width: 992px) {
    .wa-comparison-section {
        padding: 60px 0;
    }

    .wa-comparison-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .wa-comparison-text {
        font-size: 1.05rem;
    }

    .wa-comparison-text-large {
        font-size: 1.2rem;
    }

    .wa-comparison-content {
        padding: 30px 20px;
        text-align: center;
    }

    .wa-comparison-image {
        margin-bottom: 30px;
        padding: 20px;
    }
    
    .wa-comparison-img {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .wa-comparison-section {
        padding: 50px 0;
    }

    .wa-comparison-title {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }

    .wa-comparison-text {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .wa-comparison-text-large {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .wa-comparison-content {
        padding: 20px 15px;
        text-align: center;
    }

    .wa-comparison-image {
        padding: 15px;
        margin-bottom: 20px;
    }

    .wa-comparison-img {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .wa-comparison-section {
        padding: 40px 0;
    }

    .wa-comparison-title {
        font-size: 1.5rem;
        margin-bottom: 18px;
    }

    .wa-comparison-text {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .wa-comparison-text-large {
        font-size: 1rem;
        margin-bottom: 18px;
    }
    
    .wa-comparison-image {
        padding: 10px;
        min-height: 200px;
    }
    
    .wa-comparison-content {
        padding: 15px 10px;
    }
}

/* Additional responsive fixes for medium screens */
@media (min-width: 993px) and (max-width: 1199px) {
    .wa-comparison-img {
        max-width: 550px;
    }
    
    .wa-comparison-content {
        padding: 40px 25px;
    }
}

/* Ensure proper layout on all screen sizes */
.wa-comparison-section .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* First section: Content left, Image right */
.wa-comparison-section .row > .wa-comparison-content {
    order: 1;
}

.wa-comparison-section .row > .wa-comparison-image {
    order: 2;
}

@media (min-width: 992px) {
    /* First section: Content left, Image right */
    .wa-comparison-section .row > .wa-comparison-content {
        order: 1;
    }
    
    .wa-comparison-section .row > .wa-comparison-image {
        order: 2;
    }
    
    /* Second section: Content left, Image right */
    .wa-comparison-section-alt .row > .wa-comparison-content {
        order: 1;
    }
    
    .wa-comparison-section-alt .row > .wa-comparison-image {
        order: 2;
    }
}

/* Mobile responsive: Stack content first, then image */
@media (max-width: 991px) {
    .wa-comparison-section .row > .wa-comparison-content,
    .wa-comparison-section-alt .row > .wa-comparison-content {
        order: 1;
        margin-bottom: 20px;
    }
    
    .wa-comparison-section .row > .wa-comparison-image,
    .wa-comparison-section-alt .row > .wa-comparison-image {
        order: 2;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .wa-hero-title {
        font-size: 2.8rem;
    }

    .wa-hero-subtitle {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .feature-card {
        padding: 35px;
    }

    .hero-image-wrapper {
        height: 350px;
        flex-direction: column;
        gap: 20px;
    }

    .hero-image {
        width: 70%;
    }
}

@media (max-width: 1030px) {
    .wa-hero.mid-header h1 {
        padding: 0rem 8rem;
    }
}

@media (max-width: 992px) {
    .wa-hero.mid-header {
        padding: 2rem 1rem;
    }

    .wa-hero.mid-header h1 {
        padding: 0rem 1rem;
        font-size: 2.5rem;
    }
    
    .wa-hero.mid-header .header_store {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .wa-hero.mid-header {
        padding: 2rem 0rem;
    }

    .wa-hero.mid-header h1 {
        font-size: 2.5rem;
        padding: 0rem 1rem;
    }

    .wa-hero.mid-header p {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .wa-hero.mid-header .header_store {
        padding: 0 0rem;
        padding-left: 0px;
    }
    
    .wa-hero.mid-header .store_image img {
        width: 85%;
    }
    
    .wa-hero.mid-header .header_store img {
        margin: 1px 5px;
    }

    .hero-image-wrapper {
        height: 300px;
        gap: 15px;
    }

    .hero-image {
        width: 80%;
    }

    .why-features {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-card {
        padding: 30px 25px;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .feature-icon i {
        font-size: 2rem;
    }

    .feature-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .feature-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .feature-benefits li {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .wa-hero.mid-header {
        padding: 2rem 2rem;
    }

    .wa-hero.mid-header h1 {
        font-size: 2.2rem;
        padding: 0rem 1rem;
    }
    
    .wa-hero.mid-header .header_store {
        padding: 0 0rem;
        padding-left: 0px;
    }
    
    .wa-hero.mid-header .header_store img {
        width: 67%;
        margin: 10px 5px;
    }
}

@media (max-width: 300px) {
    .wa-hero.mid-header h1 {
        font-size: 2rem;
    }
}

    .hero-image-wrapper {
        height: 250px;
        flex-direction: column;
    }

    .hero-image {
        width: 90%;
        max-width: 300px;
    }

    .why-features {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .features-grid {
        gap: 25px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .feature-icon i {
        font-size: 1.75rem;
    }

    .feature-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .feature-description {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 18px;
    }

    .feature-benefits li {
        font-size: 0.9rem;
        line-height: 1.8;
        padding-left: 25px;
    }
}

@media (max-width: 400px) {
    .wa-hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-title {
        font-size: 1.2rem;
    }
}

