/* Advertising and Marketing Page Styles */

/* Reset body padding to allow hero to cover navbar area */
body {
    padding-top: 0;
}

/* Hero Section */
.ad-marketing-hero {
    position: relative;
    width: 100%;
    min-height: 800px;
    background: linear-gradient(180deg, rgba(204, 227, 255, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    overflow: hidden;
    padding-top: 150px; /* Space for navbar */
}

/* Background Shapes */
.ad-marketing-hero .bg-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Ellipse 471 */
.ad-marketing-hero .shape-1 {
    width: 937px;
    height: 937px;
    left: 50%;
    margin-left: -37px; /* 923px - 960px */
    top: -5px;
    background: radial-gradient(130.91% 96.8% at 52.26% 0%, rgba(0, 116, 255, 0.07) 0%, rgba(0, 116, 255, 0) 100%);
}

/* Ellipse 470 */
.ad-marketing-hero .shape-2 {
    width: 643px;
    height: 643px;
    left: 50%;
    margin-left: 110px; /* 1070px - 960px */
    top: 142px;
    background: radial-gradient(110.52% 81.72% at 52.26% 0%, rgba(0, 116, 255, 0.1) 0%, rgba(0, 116, 255, 0) 100%);
}

/* Ellipse 469 */
.ad-marketing-hero .shape-3 {
    width: 409px;
    height: 409px;
    left: 50%;
    margin-left: 227px; /* 1187px - 960px */
    top: 259px;
    background: radial-gradient(122% 90.22% at 52.26% 0%, rgba(0, 116, 255, 0.15) 0%, rgba(0, 116, 255, 0) 100%);
}

.ad-marketing-hero .hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    height: 100%;
    padding: 60px 20px;
}

.ad-marketing-hero .hero-content {
    max-width: 600px;
}

.ad-marketing-hero h1 {
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 1.2;
    color: #111111;
    margin-bottom: 24px;
}

.ad-marketing-hero p {
    font-family: 'Geist', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 40px;
}

/* Hero Button styles now in solution-popup.css for consistency */

.ad-marketing-hero .hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.ad-marketing-hero .hero-image-container img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
}

/* Still Troubled Section */
.troubled-section {
    padding: 100px 0;
    background: #fff;
    text-align: center;
}

.troubled-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Geist', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #111;
    margin-bottom: 60px;
}

.troubled-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 40px;
}

.card-01, .card-04 {
    grid-column: span 6;
}

.card-02, .card-03 {
    grid-column: span 4;
}

.troubled-card {
    background: #FFFFFF;
    border: 1px solid #EBEBEB;
    border-radius: 20px;
    padding: 40px 40px 240px 40px; /* Increased bottom padding for background */
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Background properties */
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% auto;
}

.card-01 { background-image: url('../imgs/advertising-marketing/questions-background-01.svg'); }
.card-02 { background-image: url('../imgs/advertising-marketing/questions-background-02.svg'); }
.card-03 { background-image: url('../imgs/advertising-marketing/questions-background-03.svg'); }
.card-04 { background-image: url('../imgs/advertising-marketing/questions-background-04.svg'); }

.troubled-card:hover {
    box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.troubled-card h3 {
    font-family: 'Geist', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #111;
    margin-bottom: 16px;
}

.troubled-card p {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Crude to Shrewd Section */
.crude-shrewd-section {
    padding: 80px 0 120px;
    background: #fff;
    overflow: hidden;
}

.crude-shrewd-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    text-align: center;
}

.crude-shrewd-content {
    position: relative;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto 40px;
}

.process-bg {
    width: 100%;
    height: auto;
    display: block;
}

/* Reset process-step to static so children can position relative to container */
.process-step {
    position: static;
}

/* Common styles for absolute positioned elements */
.process-step h3,
.process-step p,
.process-step .step-number {
    position: absolute;
    margin: 0;
    padding: 0;
    font-family: 'Geist', sans-serif;
}

/* Step 01 */
.step-01 .step-number {
    left: 3.18%;
    right: 66.97%;
    top: 45.9%;
    bottom: 23.74%;
    font-weight: 700;
    font-size: 64px;
    line-height: 83px;
    color: #0060FE;
    transform: matrix(0.31, -0.95, 0.95, 0.31, 0, 0);
}

.step-01 h3 {
    left: 18.48%;
    right: 50.17%;
    top: 57.01%;
    bottom: 54.57%;
    font-weight: 600;
    font-size: 20px;
    line-height: 26px;
    color: #3B82F6;
    text-align: left;
}

.step-01 p {
    left: 18.48%;
    right: 66.55%;
    top: 62.76%;
    bottom: 54.49%;
    font-weight: 400;
    font-size: 14px;
    line-height: 15px;
    color: #3B82F6;
    text-align: left;
}

/* Step 02 */
.step-02 .step-number {
    left: 33.92%;
    right: 65.6%;
    top: 10.7%;
    bottom: 62.95%;
    font-weight: 700;
    font-size: 64px;
    line-height: 83px;
    color: #0060FE;
    transform: matrix(0.86, -0.51, 0.51, 0.86, 0, 0);
}

.step-02 h3 {
    left: 25.77%;
    right: 51.67%;
    top: 30.67%;
    bottom: 61.82%;
    font-weight: 600;
    font-size: 20px;
    line-height: 31px;
    color: #3B82F6;
    text-align: right;
}

.step-02 p {
    left: 26.82%;
    right: 51.67%;
    top: 37.5%;
    bottom: 59.91%;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #3B82F6;
    text-align: right;
}

/* Step 03 */
.step-03 .step-number {
   left: 58.9%;
    right: 33.57%;
    top: 7.71%;
    bottom: 62.94%;
    font-weight: 700;
    font-size: 64px;
    line-height: 83px;
    color: #0060FE;
    transform: matrix(0.86, 0.51, -0.51, 0.86, 0, 0);
}

.step-03 h3 {
    left: 50.99%;
    right: 28.66%;
    top: 27.04%;
    bottom: 60.95%;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #3B82F6;
    text-align: left;
}

.step-03 p {
    left: 50.99%;
    right: 29.61%;
    top: 37.37%;
    bottom: 59.46%;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #3B82F6;
    text-align: left;
}

/* Step 04 */
.step-04 .step-number {
    left: 83.63%;
    right: 18.84%;
    top: 44.9%;
    bottom: 38.75%;
    font-weight: 700;
    font-size: 64px;
    line-height: 83px;
    color: #0060FE;
    transform: matrix(0.31, 0.95, -0.95, 0.31, 0, 0);
}

.step-04 h3 {
    left: 63.39%;
    right: 18.7%;
    top: 63.4%;
    bottom: 57.1%;
    font-weight: 600;
    font-size: 20px;
    line-height: 31px;
    color: #3B82F6;
}

.step-04 p {
    left: 64.39%;
    right: 16.39%;
    top: 68.13%;
    bottom: 55.7%;
    font-weight: 400;
    font-size: 14px;
    line-height: 15px;
    color: #3B82F6;
}

.bottom-title {
    position: absolute;
    width: 512px;
    height: 62px;
    left: 50%;
    margin-left: -256px; /* Center horizontally: half of 512px */
    bottom: 18px; /* Align to bottom of container */
    background: transparent;
    color: #0060FE;
    font-family: 'Geist', sans-serif;
    font-size: 48px;
    line-height: 62px;
    font-weight: 600;
    text-align: center;
    padding: 0;
    border-radius: 0;
    z-index: 2;
}

@media (max-width: 1024px) {
    .ad-marketing-hero .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .ad-marketing-hero .hero-content {
        max-width: 100%;
        margin-bottom: 60px;
    }

    .ad-marketing-hero .hero-image-container {
        justify-content: center;
    }

    .ad-marketing-hero h1 {
        font-size: 42px;
    }

    .troubled-grid {
        grid-template-columns: 1fr;
    }

    .card-01, .card-02, .card-03, .card-04 {
        grid-column: auto;
    }

    .crude-shrewd-content {
        max-width: 100%;
        overflow-x: auto;
    }

    /* Reset absolute positioning for mobile */
    .process-step h3,
    .process-step p,
    .process-step .step-number {
        position: relative;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        text-align: left !important;
        width: auto !important;
    }
    
    .process-step {
        margin-bottom: 20px;
        padding: 20px;
        background: #f9f9f9;
        border-radius: 10px;
    }

    .process-bg {
        display: none; /* Hide complex diagram on mobile */
    }
    
    .bottom-title {
        position: relative;
        left: auto;
        margin-left: 0;
        bottom: auto;
        margin-top: 20px;
        font-size: 24px;
        padding: 0;
        width: 100%;
        line-height: 1.3;
    }
}

/* Featured Apps Section Styles */
.apps-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    background-image: url('../imgs/market-insights/featured-apps-background.svg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    text-align: center;
}

.apps-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.apps-section h2 {
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 62px;
    color: #111111;
    margin-bottom: 60px;
}

.apps-grid {
    background: #FFFFFF;
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    box-sizing: border-box;
}

.apps-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.app-card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-title {
    font-family: 'Geist', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #111111;
}

.app-desc {
    font-family: 'Geist', sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #666666;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.app-tag {
    background: #F5F7FA;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 14px;
    color: #666666;
}

.view-more-container {
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.view-more-btn {
    display: inline-block;
    padding: 5px 32px;
    border: 1px solid #E0E0E0;
    border-radius: 30px;
    color: #111111;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: #F5F7FA;
    border-color: #D0D0D0;
}

@media (max-width: 992px) {
    .apps-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .apps-list {
        grid-template-columns: 1fr;
    }
}

/* Why Choose MarsRPA Section Styles */
.why-choose-section {
    padding: 100px 0;
    background: #EBF2FF; /* Light blue background */
    text-align: center;
}

.why-choose-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.why-choose-section h2 {
    font-family: 'Geist', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 47px;
    color: #111111;
    margin-bottom: 60px;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-choose-card {
    background: #FFFFFF;
    box-shadow: 0px 4px 12px rgba(10, 79, 255, 0.05);
    border-radius: 16px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.why-choose-card:hover {
    transform: translateY(-5px);
}

.why-choose-icon-wrapper {
    margin-bottom: 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-choose-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
}

.why-choose-card h3 {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 31px;
    color: #333333;
    margin-bottom: 16px;
}

.why-choose-card p {
    font-family: 'Geist', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #666666;
}

@media (max-width: 992px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Section Styles */
.cta-section {
    padding: 120px 0;
    background-color: #4C8CF7;
    background-image: url('../imgs/market-insights/get-free-background.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
    color: #FFFFFF;
    margin-bottom: 50px;
}

.cta-section h2 .highlight-automation {
    color: #0B377E;
}

.cta-btn {
    display: inline-block;
    background: #2B6DE5;
    color: #FFFFFF;
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 18px;
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.2);
    background: #205ac5;
}

@media (max-width: 768px) {
    .cta-section h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}
