/* SIM Feature Section */
.sim-feature {
    background: #fff;
}

.sim-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.sim-content {
    flex: 1;
}

.sim-title {
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
}

.hero-plan-column {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-plan-column .hero-plan-img {
    width: 100%;
    max-width: 100%;
    min-width: unset;
    flex: unset;
}

.btn-hero-full {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
    border-radius: 0;
    /* Remove border radius */
    border-width: 1px;
    /* Thin border */
    letter-spacing: 0.1em;
    /* Tracking 100 */
}

/* Ensure no override from other classes re-adds radius */
.btn-hero-full.btn {
    border-radius: 0;
}

/* Hover effect for "See Plans" (btn-primary) - Invert colors */
.btn-hero-full.btn-primary:hover {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--white);
    /* Keep border white or make it primary? Usually invert means white bg. */
}

.sim-desc {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.sim-img {
    flex: 1;
    text-align: right;
}

.sim-img img {
    max-width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
}

@media (max-width: 768px) {
    .sim-container {
        flex-direction: column;
        text-align: center;
    }

    .sim-title {
        text-align: center;
    }

    .sim-desc {
        text-align: left;
    }
}

/* Plans Comparison Layout */
.plans-comparison-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Plan Layout Wrappers */
.plan-column {
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    /* Ensure height stretches if needed, or maintain aspect */
}

.plan-recommend-text {
    color: #e83623;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
    font-size: 1.35rem;
    /* Increased size to approx 1.2x of original 1.1rem */
    line-height: 1.4;
}

.plan-bubble {
    background: #e83623;
    color: #fff;
    padding: 12px 10px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    position: relative;
    margin-bottom: 20px;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(232, 54, 35, 0.4);
    line-height: 1.4;
}

.plan-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #e83623 transparent transparent transparent;
}

.plan-table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Flex properties moved to column */
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.plan-table-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.plan-table-header {
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    letter-spacing: 0.1em;
    /* letter-spacing 100 */
}

.plan-type-data {
    border-top: 4px solid #20B2AA;
}

.plan-type-data .plan-table-header {
    background-color: #20B2AA;
}

.plan-type-voice {
    border-top: 4px solid #004A98;
}

.plan-type-voice .plan-table-header {
    background-color: #004A98;
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
}

.plan-table th,
.plan-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
    vertical-align: middle;
}

.plan-table td:first-child {
    background-color: #f0f8ff;
}

.plan-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.plan-table tr:last-child td {
    border-bottom: none;
}


.plan-row-recommended {
    position: relative;
    z-index: 2;
    /* Ensure it stays on top */
}

/* Create a thick blue border effect */
.plan-row-recommended td {
    border-top: 3px solid #004A98 !important;
    border-bottom: 3px solid #004A98 !important;
}

.plan-row-recommended td:first-child {
    border-left: 3px solid #004A98 !important;
}

.plan-row-recommended td:last-child {
    border-right: 3px solid #004A98 !important;
}

.recommend-badge {
    display: inline-block;
    background: #ff4500;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 5px;
    vertical-align: middle;
}

/* GB Styling */
.plan-capacity {
    font-size: 1.6rem;
    font-weight: 800;
    color: #333;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

/* Price Styling */
.plan-price-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.plan-price-tax {
    font-size: 0.75rem;
    color: #888;
    margin-left: 5px;
    font-weight: 400;
}

.call-option-text {
    display: block;
    font-size: 1.1rem;
    color: #004A98;
    font-weight: 800;
    margin-top: 5px;
    line-height: 1.3;
}

.plus-icon {
    font-size: 0.8em;
    margin: 0 2px;
}

@media (max-width: 768px) {
    .plans-comparison-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .plan-table-card {
        width: 100%;
        max-width: 100%;
    }

    .plan-bubble {
        font-weight: 500;
        /* Thinner */
        font-size: 1.1rem;
        /* Smaller */
        margin-bottom: 15px;
    }
}

.text-center {
    text-align: center;
}

.btn-apply-large {
    font-size: 1.6rem;
    /* Increased from 1.4rem */
    padding: 18px 70px;
    /* Increased padding */
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.hero-btns .btn i {
    margin-left: 10px;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .plan-column {
        width: 100%;
        max-width: 100%;
    }
}

.hero-logo-img {
    max-width: 380px;
    /* Revert to original size */
    width: auto;
    /* Reset width */
    filter: none;
    margin: -30px auto 50px;
    /* Adjusted to -30px as requested */
    display: block;
    height: auto;
    border-radius: 4px;
}

@media (max-width: 576px) {

    .plan-table th,
    .plan-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    .plan-capacity {
        font-size: 1.5rem;
        /* Increased from 1.2rem */
    }

    .plan-price-val {
        font-size: 1.6rem;
        /* Increased from 1.2rem */
    }

    .btn-apply-large {
        font-size: 1.1rem;
        padding: 15px 30px;
    }

    .plan-table-header {
        font-size: 1.5rem;
        padding: 15px;
        flex-direction: column;
        gap: 5px;
    }

    .plan-table-header .icon-group {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .plan-table-header i {
        font-size: 1.6rem;
        /* Enlarge icon */
        margin-bottom: 0;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #004A98;
    /* Primary Color */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: #003366;
    /* Secondary/Darker */
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top {
        display: none;
    }
}

/* Modal Popup */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    background: #fff;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* Price Prefix (Tax Excluded Label) */
.price-prefix {
    font-size: 0.75rem;
    font-weight: 400;
    margin-right: 5px;
    /* Add space */
}

/* Update Plan Price Tax Size */
.plan-price-tax {
    font-size: 0.8rem !important;
    font-weight: 400 !important;
}


/* Highlight 20GB text in blue */
.plan-row-recommended .plan-capacity {
    color: #004A98;
}

/* Option List Styling */
.plan-options-container {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
    padding: 0 20px;
    /* Ensure padding on mobile */
}

.plan-options-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.3rem;
    /* Slightly bigger */
    color: #333;
}

.plan-options-list {
    font-size: 1.12rem;
    /* Reduced to 70% of previous 1.6rem */
    font-weight: 700;
    color: #444;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

.plan-disclaimer {
    max-width: 800px;
    margin: 30px auto 0;
    text-align: left;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.plan-disclaimer p {
    margin-bottom: 5px;
    text-indent: -1em;
    padding-left: 1em;
}

/* Device Feature Section */
.device-feature {
    background: #fafafa;
    padding-top: 60px;
    padding-bottom: 60px;
}

.device-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Image Left, Text Right */
    gap: 50px;
}

.device-content {
    flex: 1;
    text-align: left;
    /* Ensure left alignment */
}

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

.device-image-wrapper img {
    max-width: 70%;
    /* Reduced to 70% */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.device-catch {
    margin-top: 20px;
    margin-bottom: 25px;
}

.device-catch-main {
    color: #004A98;
    /* Changed to Blue */
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 10px;
}



@media (max-width: 768px) {
    .device-container {
        flex-direction: column;
        /* Image Top (if DOM is Image first) */
        text-align: center;
    }

    .device-catch-main {
        font-size: 1.6rem;
        /* Reduced to ~90% of 1.8rem */
        line-height: 1.4;
    }

    .device-image-wrapper {
        text-align: center;
        margin-bottom: 20px;
    }

    .device-image-wrapper img {
        margin: 0 auto;
    }

    /* Force left align for description on mobile if container is centered */
    .device-content .sim-desc {
        text-align: left !important;
    }
}

/* Ensure global left alignment for device description on all screens */
.device-content .sim-desc {
    text-align: left !important;
}

@media (max-width: 768px) {

    /* Hero Section Mobile Override */
    .hero {
        height: auto !important;
        /* Allow content to dictate height */
        min-height: 100vh;
        padding-bottom: 80px;
        /* Space at bottom inside the background */
    }

    /* Mobile Layout for MV Buttons: Images then Buttons */
    .hero-plans-row {
        flex-direction: column;
        gap: 15px;
        /* Restored gap slightly */
        margin-top: 20px;
        margin-bottom: 20px;
        /* Space inside hero before bottom padding */
    }

    .hero-plan-column {
        display: contents;
    }

    /* Images */
    .hero-plan-column:nth-child(1) .hero-plan-img {
        order: 1;
    }

    .hero-plan-column:nth-child(2) .hero-plan-img {
        order: 2;
        margin-bottom: 15px;
        /* Separation between images and buttons */
    }

    /* Buttons */
    .hero-plan-column .btn-hero-full {
        display: flex !important;
        padding: 12px 0;
        /* Slightly more padding */
        font-size: 1rem;
        height: auto;
        min-height: 50px;
        /* Removed background override to inherit from PC styles */
    }

    .hero-plan-column:nth-child(1) .btn-hero-full {
        order: 3;
    }

    .hero-plan-column:nth-child(2) .btn-hero-full {
        order: 4;
    }

    /* Sizing - Compact for overlap effect */
    .hero-plan-img img {
        max-height: 140px;
        /* Slightly larger image allowed */
        width: auto;
        margin: 0 auto;
        display: block;
    }

    .hero-plan-img,
    .btn-hero-full {
        width: 85%;
        /* Slightly wider */
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}