:root {
    --primary-color: #2D80F4;
    /* Matching MyDoctor Blue */
    --text-color: #333333;
    --text-sub: #767676;
    --bg-color: #FFFFFF;
    --section-gap: 40px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header & Menu */
.main-header {
    background-color: #fff;
    height: 60px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 20px;
}

.header-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #333;
    /* Darker logo usually */
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.mobile-menu-container {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    /* Match default frame width */
    background-color: #fff;
    /* padding: 20px; Moved to inner */
    transition: top 0.3s ease;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu-inner {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    /* Ensure close button positions relative to this */
}

.mobile-menu-overlay.active .mobile-menu-container {
    top: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    margin-top: 40px;
}

.mobile-nav ul li a {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 0;
    display: block;
    border-bottom: 1px solid #f1f1f1;
}

/* Update Inner Wrapper for Desktop */
@media (min-width: 1200px) {
    .mobile-menu-inner {
        max-width: 1200px;
    }
}

/* Main Content */
.main-content {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    padding-bottom: 60px;
}

.content-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Hero Title */
.hero-title-section {
    padding: 60px 20px 300px 20px;
    /* Top padding, Bottom padding for image space */
    text-align: center;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 100%), url('assets/hero_bg_v2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Ensure text is readable if image is dark, though image looks light */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.sub-title-main {
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 16px;
}

.award-text {
    font-size: 0.85rem;
    color: #2D80F4;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.app-download-btn {
    background-color: #2D80F4;
    color: #fff;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(45, 128, 244, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(45, 128, 244, 0.4);
}

.app-download-btn i {
    font-size: 1.2rem;
}

/* Telemedicine Section */
.telemed-section {
    background-color: #fff;
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.telemed-section .section-label {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

.telemed-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
    line-height: 1.4;
    margin-bottom: 16px;
}

.telemed-section p {
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 32px;
}

.start-telemed-btn {
    background-color: #4B4B4B;
    /* Dark Grey/Black */
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    /* Pill shape */
    font-size: 1.05rem;
    font-weight: 700;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    /* Increased space between text block and icon */
    text-align: center;
    position: relative;
    /* For pseudo-elements */
}

.start-telemed-btn .btn-text-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center align text stack */
    line-height: 1.2;
}

.start-telemed-btn .btn-main {
    font-size: 1.1rem;
    font-weight: 700;
}

.start-telemed-btn .btn-sub {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 0.5px;
    margin-top: 4px;
    /* Increased gap */
    position: relative;
    display: flex;
    align-items: center;
}

/* Icon styling */
.start-telemed-btn .btn-mouse-icon {
    height: 48px;
    /* Sized to match text block height */
    width: auto;
    margin-left: 8px;
}

/* Connecting line effect removed - included in image */
/*
.start-telemed-btn .btn-sub::after {
    content: '';
    position: absolute;
    right: -28px;
    /* Reach towards the icon */
/*
    bottom: 5px;
    /* Start from middle-right of text */
/*
    width: 25px;
    height: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    /* Line looks like a cord */
/*
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    /* Curve up to icon */
/*
    border-radius: 0 0 20px 0;
    /* Bottom-right curve */
/*
    display: block;
    transform: rotate(0deg);
    opacity: 0.8;
}
*/

.start-telemed-btn:hover {
    background-color: #333;
}

/* Ansim Friends Section */
/* Ansim Friends Section (Cami Style) */
.ansimfriends-section {
    background-color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.main-header-center {
    margin-bottom: 60px;
}

.main-header-center h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
}

.main-header-center p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.category-block {
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.category-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
}

.detail-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    /* Mobile Default */
}

/* Tablet */
@media (min-width: 600px) {
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop for col-4 */
@media (min-width: 900px) {
    .detail-grid.col-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .detail-grid.col-3 {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
        /* Constrain 3 items to be centered */
        margin: 0 auto;
    }

    .detail-grid.col-2 {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        margin: 0 auto;
    }
}

.detail-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 160px;
    background-color: #f1f3f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 3rem;
    overflow: hidden;
    /* Ensure video doesn't overflow */
}

.card-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-text {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-text h4 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-text p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    word-break: keep-all;
}

/* Banners (Remaining) */
.banner-section {
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    /* Adjusted slightly */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.banner-blue {
    background-color: #EBF8FF;
}

.banner-grey {
    background-color: #F7F8FA;
    /* Light Grey */
    justify-content: center;
    /* Center horizontally */
    text-align: center;
    flex-direction: column;
    /* Stack content */
}

.banner-grey .banner-text {
    max-width: 100%;
    /* Allow full width */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center children (button) */
}

.banner-grey p {
    color: #666;
    margin-bottom: 24px;
}

.banner-orange {
    background-color: #FF7E31;
    /* Vivid Orange */
    color: #fff;
}

.banner-orange h2,
.banner-orange p {
    color: #fff;
}

.banner-orange .text-link {
    color: #fff;
}

.banner-green {
    background-color: #E0FDF6;
    /* Light Mint Green */
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
}

.banner-green .banner-text {
    align-items: center;
    /* Center children */
    max-width: 100%;
}

.banner-green .button-group {
    align-items: center;
    /* Center button */
}

/* Position icon absolutely or hide/adjust if needed. */
.banner-green .banner-image {
    position: absolute;
    right: 20px;
    bottom: 20px;
    opacity: 0.3;
    /* Fade it so text is readable if overlapping */
}

.banner-text {
    z-index: 2;
    position: relative;
}

.banner-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.35;
    color: #111;
}

.banner-text p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.5;
}

.banner-image {
    position: absolute;
    bottom: 20px;
    right: 20px;
    bottom: 20px;
    right: 20px;
    /* opacity: 0.8; Removed opacity for full visibility */
    max-height: 120px;
    /* Limit height */
    width: auto;
}

/* Links & Buttons in Banners */
.action-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.text-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.banner-grey .pill-button {
    background-color: #333;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Add shadow for lift */
}

.banner-grey .pill-button:hover {
    background-color: #111;
    transform: translateY(-2px);
}

.pill-button {
    background-color: #fff;
    color: #333;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: inline-block;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

/* Price Finder */
.price-finder-section {
    padding: 20px 0;
}

.section-header {
    margin-bottom: 24px;
    text-align: center;
    /* Center Header */
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
}

.section-header p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

.finder-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.finder-card {
    background-color: #F7F8FA;
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 110px;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background-color 0.2s;
}

.finder-card:hover {
    background-color: #F0F1F3;
}

.finder-card .finder-icon {
    font-size: 2rem;
    color: #2D80F4;
    margin-bottom: 4px;
    /* Adjust spacing */
}

.finder-card .finder-icon-img {
    height: 32px;
    width: auto;
    margin-bottom: 4px;
}

.finder-card .name {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.full-width-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: #F0F4FF;
    color: var(--primary-color);
    text-align: center;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
}

/* Footer (Existing + Tweaks) */
.main-footer {
    background-color: #F9FAFB;
    padding: 40px 20px;
    color: #888;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* App Tech / Ansim Cash Section Styling */
.app-tech-section {
    background-color: #fff !important;
    /* Force White bg as per reference */
    padding: 60px 20px;
    align-items: center;
    /* border: 1px solid #eee; Removed as per request */
}

/* Logo Slider */
.logo-slider {
    width: 100%;
    max-width: 600px;
    /* Limit width */
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    /* Fade masks on sides */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f8f9fa;
    /* border: 1px solid #eee; Removed as per request */
    flex-shrink: 0;
}

.logo-item i {
    font-size: 24px;
    margin-bottom: 6px;
}

.logo-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
}

/* Mobile Text Utilities */
@media (max-width: 768px) {
    .no-mobile-br {
        display: none;
    }

    .telemed-section h2 {
        font-size: 1.4rem;
        /* Reduced from 1.8rem */
        word-break: keep-all;
        /* Prevent awkward word splits */
    }

    .main-header-center h2 {
        font-size: 1.5rem;
        /* Reduced from 2rem */
        word-break: keep-all;
    }

    .award-text {
        font-size: 0.8rem;
        /* Slightly smaller to fit */
        letter-spacing: -0.5px;
        /* Tighten to fit */
        white-space: nowrap;
        /* Force single line */
        overflow: hidden;
        text-overflow: ellipsis;
        /* Graceful fail if too narrow */
        padding: 0 10px;
        /* Safety padding */
    }
}

/* QR Modal Styles */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.qr-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.qr-modal-container {
    background-color: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.qr-modal-overlay.active .qr-modal-container {
    transform: translateY(0);
}

.qr-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    padding: 5px;
    line-height: 1;
    z-index: 10;
}

.qr-modal-content h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.4;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    /* Blue */
    margin-bottom: 30px;
    font-weight: 600;
}

.qr-code-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background-color: #fff;
}

.qr-code-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Handle bar for potential bottom-sheet feel later, hidden by default desktop */
.modal-handle-bar {
    display: none;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .qr-modal-container {
        padding: 40px 20px;
        /* Keep padding reasonable */
        max-width: 320px;
        /* Smaller max width for mobile */
    }

    .qr-modal-content h2 {
        font-size: 1.25rem;
        /* Reduced font size as requested */
    }

    .modal-subtitle {
        font-size: 0.9rem;
    }

    .qr-code-wrapper {
        width: 160px;
        height: 160px;
    }
}



@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.footer-links a {
    color: #555;
}

.footer-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.footer-info p {
    margin-bottom: 6px;
}

.footer-copy {
    margin-top: 24px;
    color: #ccc;
}


/* Mouse Icon Animation */
.start-telemed-btn:hover .mouse-left-btn {
    fill: #2D80F4;
    transition: all 0.2s ease;
    animation: clickPulse 0.4s infinite alternate;
    /* Fast pulse */
}

/* Animate the whole mouse to bob/scale like a click action */
.start-telemed-btn:hover .btn-mouse-svg {
    animation: mouseClickAction 0.6s infinite alternate;
}

@keyframes clickPulse {
    0% {
        fill-opacity: 0.5;
    }

    100% {
        fill-opacity: 1;
        fill: #2D80F4;
    }
}

@keyframes mouseClickAction {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.92);
    }

    /* Concise press effect */
}

/* Ensure SVG is sized correctly */
.btn-mouse-svg {
    height: 48px;
    width: 48px;
    margin-left: 12px;
    display: block;
    flex-shrink: 0;
}

/* Responsive Grid adjustment */
@media (min-width: 480px) {
    .finder-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive Design Implementation */

/* Global Wrapper for Desktop */
@media (min-width: 1200px) {

    .main-header,
    .main-content,
    .main-footer,
    .mobile-menu-container {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .main-header {
        left: 50%;
        transform: translateX(-50%);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        /* Optional alignment visual aid */
    }
}

/* Tablet (768px+) Adjustments */
@media (min-width: 768px) {
    .hero-title-section {
        padding-top: 100px;
        padding-bottom: 350px;
        /* More space for background image visibility */
    }

    .main-title {
        font-size: 3rem;
    }

    .sub-title-main {
        font-size: 1.8rem;
    }

    /* Ansim Friends: 2 Columns on Tablet */
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Price Finder: 4 Columns on Tablet/Desktop */
    .finder-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (1024px+) Adjustments */
@media (min-width: 1024px) {
    .hero-title-section {
        padding-top: 120px;
        padding-bottom: 400px;
        /* Even more space */
        background-position: center bottom;
        /* Better alignment */
    }

    .main-title {
        font-size: 3.5rem;
        /* Larger Desktop Font */
    }

    /* Ansim Friends: 4 Columns on Desktop */
    .detail-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Ensure cards don't get too wide */
    .category-block {
        max-width: 1200px;
    }
}