/*=========================================
        MEDIA PARTNER HERO SECTION
=========================================*/
.partner-hero {
    position: relative;
    width: 100%;
    min-height: 418px;
    display: flex;
    align-items: center;
    background: url("../image/mediapartner.webp") center center / cover no-repeat;
    overflow: hidden;
    justify-content: center;
}

.partner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 18, 42, 0.75);
}

.partner-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 60px 20px;
}

.partner-content h1 {
    margin-bottom: 15px;
    color: #FFD700;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.2;
}

.partner-content h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 22px;
    line-height: 1.4;
}

.partner-content p {
    margin: 0 auto 18px;
    color: #d9e2ec;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-apply-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(90deg, #85007d, #0b57c5);
    transition: 0.3s;
}

.hero-apply-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
    color: #fff;
}

/*==========================================
        POWER OF INFLUENCE (PARTNERSHIP)
==========================================*/
.partnership-section {
    width: 100%;
    background: #07263E;
    padding: 70px 0 80px;
}

.partnership-container {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 0 20px;
    text-align: center;
}

.partnership-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 45px;
}

.partnership-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.partners-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    background: #06192B;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    overflow: hidden;
    padding: 22px;
    display: flex;
    flex-direction: column;
    transition: 0.35s;
}

.partners-card:hover {
    transform: translateY(-8px);
    border-color: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.partners-img {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.partners-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.45s;
}

.partners-card:hover img { transform: scale(1.06); }

.partners-body h4 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 12px;
    text-align: center;
}

.partners-body p {
    color: #d9d9d9;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

.partnership-btn {
    display: inline-block;
    margin-top: 50px;
    padding: 16px 52px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    background: #FFD700;
    transition: 0.35s;
}

.partnership-btn:hover {
    transform: translateY(-4px);
    background: #fff;
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
    color: #111;
}

/*====================================
        WHO CAN JOIN
=====================================*/
.who-section {
    position: relative;
    padding: 70px 0;
    background: url("../image/visit.webp") center center/cover no-repeat;
}

.who-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 5, 15, 0.85);
}

.who-container {
    position: relative;
    max-width: 1400px;
    margin: auto;
    padding: 0 20px;
    z-index: 2;
}

.who-title {
    text-align: center;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.who-card {
    padding: 30px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    transition: 0.35s;
}

.who-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFD700;
}

.who-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #1976d2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
}

.who-card h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.who-card p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.who-btn { text-align: center; margin-top: 40px; }
.who-btn a {
    display: inline-block;
    padding: 16px 55px;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(90deg, #83007e, #155dc9);
    transition: 0.35s;
}
.who-btn a:hover {
    transform: translateY(-4px);
    color: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

/*==========================================
        WHAT CAN YOU CREATE (GLOW SECTION)
==========================================*/
.glow-section {
    width: 100%;
    background: #000e22;
    padding: 70px 0;
}

.glow-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.glow-section-title {
    color: #FFD700;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 10px;
}

.create-tags-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.create-tag {
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.5);
    color: #FFD700;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.create-tag i { font-size: 18px; }

.create-tag:hover {
    background: #FFD700;
    color: #000e22;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

/*==========================================
        WHAT YOU GET
==========================================*/
.benefits-section {
    width: 100%;
    background: #062e49;
    padding: 70px 0;
}

.benefits-container {
    width: 100%;
    max-width: 1450px;
    margin: auto;
    padding: 0 20px;
}

.benefits-title {
    text-align: center;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 45px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.benefit-card {
    display: flex;
    align-items: flex-start;
    background: #02263e; 
    border: none; 
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25); 
}

.benefit-icon {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 50%; 
    background: #ffffff; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.benefit-icon i {
    font-size: 24px;
    color: #111111; 
}

.benefit-content h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
}

.benefit-content p {
    color: #ffffff; 
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/*==========================================
        WHY AUTOMATION EXPO (CTA)
==========================================*/
.cta-section {
    background: #082947;
    padding: 70px 0;
}

.cta-container {
    max-width: 1450px;
    margin: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.cta-card {
    background: #fff;
    border-radius: 14px;
    border-left: 6px solid #1f77d2;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.35s;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.cta-card h2 {
    color: #08245a;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-card p {
    color: #444;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cta-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    padding: 0 35px;
    height: 52px;
    margin-top: 15px;
    border-radius: 50px;
    background: linear-gradient(90deg, #85007d, #0b57c5);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    color: #fff;
}

/*==========================================
        MEDIA PARTNER FORM (UPGRADED)
==========================================*/
.media-form-section {
    background: #020b16; /* Deep dark blue */
    padding: 90px 0;
}

.media-form-container {
    max-width: 950px;
    margin: auto;
    padding: 50px 60px;
    background: #06192B; /* Solid card background */
    border-radius: 16px;
    border-top: 5px solid #FFD700; /* Yellow accent line on top */
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    color: #a1b0c0;
    font-size: 16px;
    margin: 0;
}

.media-form { width: 100%; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group.full-width {
    margin-bottom: 25px;
}

.input-group label {
    color: #d9e2ec;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-group label span {
    color: #ff3366; /* Red asterisk */
}

.media-form input,
.media-form select,
.media-form textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 8px;
    background: #0a2540; /* Darker solid input background */
    border: 1px solid #1f3b5c;
    color: #fff;
    font-size: 16px;
    outline: none;
    font-family: 'Roboto', sans-serif;
    transition: 0.3s ease;
}

/* Custom Dropdown Styling */
.select-wrapper {
    position: relative;
}

.media-form select { 
    cursor: pointer; 
    appearance: none; 
    padding-right: 45px; 
}

.select-wrapper i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7a90;
    pointer-events: none;
}

.media-form select option { 
    background: #0a2540; 
    color: #fff; 
}

.media-form input::placeholder,
.media-form textarea::placeholder { 
    color: #6b7a90; 
}

.media-form input:focus,
.media-form select:focus,
.media-form textarea:focus {
    border-color: #00f3ff; /* Neon cyan glow */
    background: #0c2b4b;
    box-shadow: 0 0 0 4px rgba(0, 243, 255, 0.1);
}

.media-form textarea { 
    resize: vertical; 
    min-height: 120px;
}

/* Info Note Box */
.form-note {
    color: #a1b0c0;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}

.form-note i {
    color: #FFD700;
    margin-right: 5px;
}

.submit-btn {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(90deg, #85007d, #0b57c5);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(11, 87, 197, 0.4);
    background: linear-gradient(90deg, #0b57c5, #85007d);
}

/*==========================================
        INTERNATIONAL PHONE FIELD (intl-tel-input)
==========================================*/

/* Wrapper must behave like a normal full-width field */
.media-form .iti {
    display: block;
    width: 100%;

    /* Library variables - theme knobs */
    --iti-arrow-color: #ffffff;
    --iti-arrow-height: 5px;
    --iti-arrow-padding: 8px;
}

.media-form .iti input[type="tel"] {
    width: 100%;
}

/* Dial code shown inside the field */
.media-form .iti__selected-dial-code,
.media-form .iti__selected-country .iti__dial-code {
    color: #ffffff;
    font-size: 16px;
}

/* Flag + caret area */
.media-form .iti__selected-country {
    background: transparent;
    border-radius: 8px 0 0 8px;
}

.media-form .iti__selected-country:hover,
.media-form .iti__selected-country[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.06);
}

/* Dropdown panel */
.media-form .iti__dropdown-content {
    background: #0a2540;
    border: 1px solid #1f3b5c;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.media-form .iti__search-input {
    background: #0c2b4b;
    border: none;
    border-bottom: 1px solid #1f3b5c;
    border-radius: 8px 8px 0 0;
    color: #fff;
    padding: 12px 14px;
    font-size: 15px;
}

.media-form .iti__search-input::placeholder {
    color: #6b7a90;
}

.media-form .iti__country-list {
    background: #0a2540;
}

.media-form .iti__country {
    color: #d9e2ec;
    padding: 10px 12px;
}

.media-form .iti__country.iti__highlight,
.media-form .iti__country:hover {
    background: #113a63;
}

.media-form .iti__dial-code {
    color: #8ba1bb;
}

/* Invalid number state */
.media-form .iti input[type="tel"].is-invalid-phone {
    border-color: #ff3366;
}

.phone-error {
    display: none;
    color: #ff3366;
    font-size: 13px;
    margin-top: 6px;
}

.phone-error.show {
    display: block;
}

/* Animation for the 'Other' input box */
#mediaTypeOther, #primaryPlatformOther {
    animation: fadeInSlideDown 0.3s ease forwards;
}

@keyframes fadeInSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/*==========================================
        RESPONSIVE DESIGN
==========================================*/
@media(max-width: 1200px) {
    .partnership-grid .partners-card { flex: 0 0 calc(50% - 15px); max-width: calc(50% - 15px); }
    .who-grid { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 991px) {
    .cta-container { grid-template-columns: 1fr; }
}

@media(max-width: 768px) {
    .partner-hero { padding: 80px 0; }
    .partner-content h1 { font-size: 32px; }
    .partner-content h2 { font-size: 20px; }
    
    .partnership-grid .partners-card { flex: 0 0 100%; max-width: 100%; }
    .who-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    
    .form-row { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
    .media-form-container { padding: 40px 25px; }
    .form-header h2 { font-size: 28px; }
}
/*==========================================
        UTILITY FALLBACKS
        Bootstrap is not loaded on this page, so the
        text-center / text-white / mb-* / fs-5 classes
        in the markup had no styling at all.
==========================================*/
.media-partner-page .text-center,
.who-section .text-center,
.glow-section .text-center,
.partner-content.text-center { text-align: center; }

.who-section .text-white,
.glow-section .text-white,
.partner-content .text-white { color: #ffffff; }

.who-section .fs-5,
.glow-section .fs-5 { font-size: 18px; line-height: 1.6; }

.who-section .mb-4,
.glow-section .mb-4 { margin-bottom: 24px; }

.who-section .mb-5,
.glow-section .mb-5 { margin-bottom: 40px; }


/*==========================================
        PHONE - 600px AND BELOW
==========================================*/
@media (max-width: 600px) {

    /*---- HERO ----*/
    .partner-hero { min-height: auto; padding: 0; }
    .partner-container { padding: 45px 18px; }
    .partner-content h1 { font-size: 27px; margin-bottom: 12px; }
    .partner-content h2 { font-size: 17px; margin-bottom: 16px; line-height: 1.35; }
    .partner-content p { font-size: 15px; line-height: 1.55; margin-bottom: 14px; }

    .hero-apply-btn {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 22px;
        padding: 14px 20px;
        font-size: 16px;
    }

    /*---- SHARED SECTION RHYTHM ----*/
    .partnership-section { padding: 45px 0 50px; }
    .who-section,
    .glow-section,
    .benefits-section,
    .cta-section { padding: 45px 0; }

    .partnership-container,
    .who-container,
    .glow-container,
    .benefits-container,
    .cta-container { padding: 0 18px; }

    .partnership-title,
    .who-title,
    .glow-section-title,
    .benefits-title { font-size: 26px; line-height: 1.25; }

    .partnership-title,
    .benefits-title { margin-bottom: 28px; }

    .who-section .fs-5,
    .glow-section .fs-5 { font-size: 15px; }

    .who-section .mb-5 { margin-bottom: 28px; }
    .glow-section .mb-4 { margin-bottom: 18px; }

    /*---- POWER YOUR INFLUENCE ----*/
    .partnership-grid { gap: 18px; }
    .partners-card { padding: 16px; border-radius: 16px; }
    .partners-img { height: 175px; margin-bottom: 15px; }
    .partners-body h4 { font-size: 18px; margin-bottom: 9px; }
    .partners-body p { font-size: 14px; }

    .partnership-btn {
        display: block;
        width: 100%;
        margin-top: 30px;
        padding: 15px 20px;
        font-size: 16px;
    }

    /*---- WHO CAN JOIN ----*/
    .who-grid { gap: 16px; }
    .who-card { padding: 22px 18px; border-radius: 14px; }
    .who-icon { width: 54px; height: 54px; font-size: 22px; margin-bottom: 15px; }
    .who-card h4 { font-size: 17px; margin-bottom: 9px; }
    .who-card p { font-size: 14px; }

    .who-btn { margin-top: 28px; }
    .who-btn a {
        display: block;
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
    }

    /*---- WHAT CAN YOU CREATE ----*/
    .create-tags-grid { gap: 10px; margin-top: 26px; }
    .create-tag {
        padding: 9px 15px;
        font-size: 13px;
        gap: 7px;
        border-radius: 30px;
    }
    .create-tag i { font-size: 14px; }

    /*---- WHAT YOU GET ----*/
    .benefits-grid { gap: 16px; }
    .benefit-card { padding: 18px; }
    .benefit-icon {
        width: 46px;
        min-width: 46px;
        height: 46px;
        margin-right: 14px;
    }
    .benefit-icon i { font-size: 19px; }
    .benefit-content h3 { font-size: 17px; margin-bottom: 7px; }
    .benefit-content p { font-size: 14px; }

    /*---- WHY AUTOMATION EXPO ----*/
    .cta-container { gap: 20px; }
    .cta-card { padding: 24px 20px; border-left-width: 4px; }
    .cta-card h2 { font-size: 22px; margin-bottom: 12px; }
    .cta-card h4 { font-size: 16px; }
    .cta-card p { font-size: 15px; }

    .cta-btn {
        display: flex;
        width: 100%;
        height: 50px;
        padding: 0 16px;
        font-size: 15px;
        text-align: center;
    }

    /*---- APPLICATION FORM ----*/
    .media-form-section { padding: 45px 0; }
    .media-form-container {
        margin: 0 14px;
        padding: 28px 18px;
        border-radius: 12px;
    }

    .form-header { margin-bottom: 26px; }
    .form-header h2 { font-size: 23px; }
    .form-header p { font-size: 14px; }

    .form-row { gap: 16px; margin-bottom: 16px; }
    .input-group.full-width { margin-bottom: 16px; }
    .input-group label { font-size: 14px; margin-bottom: 6px; }

    /* Keep inputs at 16px - anything smaller makes iOS Safari
       zoom in on focus and the layout jumps. */
    .media-form input,
    .media-form select,
    .media-form textarea {
        padding: 13px 15px;
        font-size: 16px;
    }

    .media-form textarea { min-height: 96px; }
    .media-form select { padding-right: 40px; }
    .select-wrapper i { right: 15px; }

    .form-note {
        font-size: 13px;
        padding: 12px;
        margin-bottom: 22px;
        text-align: left;
    }

    .submit-btn { height: 52px; font-size: 16px; }

    /*---- PHONE FIELD DROPDOWN ----*/
    /* The country list is absolutely positioned and will run off
       the right edge on a narrow screen without a cap. */
    .media-form .iti__dropdown-content {
        max-width: calc(100vw - 46px);
    }
    .media-form .iti__country { padding: 11px 10px; font-size: 14px; }
    .media-form .iti__search-input { font-size: 16px; padding: 11px 12px; }
    .phone-error { font-size: 12px; }
}


/*==========================================
        SMALL PHONE - 380px AND BELOW
==========================================*/
@media (max-width: 380px) {
    .partner-content h1 { font-size: 24px; }
    .partner-content h2 { font-size: 16px; }

    .partnership-title,
    .who-title,
    .glow-section-title,
    .benefits-title { font-size: 23px; }

    .partners-img { height: 150px; }
    .create-tag { padding: 8px 13px; font-size: 12px; }

    /* Icon above the text - side by side gets too cramped */
    .benefit-card { flex-direction: column; }
    .benefit-icon { margin: 0 0 12px; }

    .media-form-container { margin: 0 10px; padding: 24px 15px; }
    .form-header h2 { font-size: 21px; }
}