@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@700;800&display=swap');

/* Paperozi 모든 두께 등록 */
@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'RecipeKorea';
    src: local('Recipekorea'), local('Recipe Korea'),
        url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/Recipekorea.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-gradient: linear-gradient(107.05deg, #097fe9 0.57%, #5360f3 99.43%);
    --text-primary: #161616;
    --text-secondary: #666666;
    --text-light: #ffffff;

    --bg-light: #ffffff;
    --bg-gray: #f4f4f4;
    --bg-dark: #252525;

    --container-max: 1280px;
    --section-padding-v: 165px;

    --font-heading: 'Paperozi', 'Outfit', 'Pretendard', sans-serif;
    --font-body: 'Pretendard', 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    position: relative;
    width: 100%;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-left {
    animation: slideInLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Common Components */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 17px 45px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 20px;
    border-radius: 47px;
    box-shadow: 0px 5px 8.95px #659ef5;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 15px #659ef5;
    opacity: 1;
}

.pc-hide,
.mobile-only {
    display: none;
}

/* Section Title Styling */
.section-header {
    text-align: center;
    margin-bottom: 55px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}


/* 메인 서브 타이틀 */
.main-sub-title,
.main-sub-title2 {
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.main-sub-title {
    font-size: 22px;
}

.main-sub-title2 {
    font-size: 18px;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 93px;
    z-index: 100;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 31.749px;
    width: 193px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav-links {
    display: flex;
    gap: 50px;
    list-style: none;
}

.nav-links li a {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-btns {
    display: flex;
    gap: 15px;
}

.nav-btns a {
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.btn-goodtv {
    background-color: #161616;
    color: #fff !important;
    border: 2px solid #161616;
}

.btn-biblepc {
    background-color: #fff;
    color: #3d55f2 !important;
    border: 2px solid #097fe9;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #000;
    transition: 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease-in-out;
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 12px;
    right: 19px;
    font-size: 50px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 300;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    margin-bottom: 40px;
}

.mobile-nav-links li {
    margin: 20px 0;
}

.mobile-nav-links li a {
    font-size: 24px;
    font-weight: 700;
}


/* Hero Section */
.section-hero {
    height: 830px;
    background-image: url('assets/section_hero.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.hero-text {
    flex: 0 0 600px;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    line-height: 1.28;
    color: #252525;
    margin-bottom: 15px;
}

.brand-name {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 10px;
}

.brand-logo {
    width: 85px;
    margin-bottom: 28px;
}

.brand-text {
    font-family: 'RecipeKorea', sans-serif;
    font-size: 80px;
    font-weight: 500;
    background: linear-gradient(90deg, #0b7ee9 0%, #702dfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-description {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 40px;
}

.hero-visual {
    position: relative;
    width: 500px;
}

.phone-mockup-wrapper {
    position: relative;
    z-index: 2;
    transform: rotate(1.27deg);
}

.phone-slideshow {
    position: relative;
    width: 337.472px;
    margin: 0 auto;
}

.phone-slideshow .phone-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    animation: phoneFade 10s infinite;
}

.phone-slideshow .phone-img:not(:first-child) {
    position: absolute;
    top: 0;
    left: 0;
}

.phone-slideshow .phone-img:nth-child(1) {
    animation-delay: 0s;
}

.phone-slideshow .phone-img:nth-child(2) {
    animation-delay: 2s;
}

.phone-slideshow .phone-img:nth-child(3) {
    animation-delay: 4s;
}

.phone-slideshow .phone-img:nth-child(4) {
    animation-delay: 6s;
}

.phone-slideshow .phone-img:nth-child(5) {
    animation-delay: 8s;
}

@keyframes phoneFade {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    20% {
        opacity: 1;
    }

    25% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.phone-shadow {
    position: absolute;
    bottom: -53px;
    left: 39%;
    transform: translateX(-50%);
    width: 353px;
    height: 70px;
    z-index: -1;
}

.visual-icons img {
    position: absolute;
    z-index: 1;
}

.icon-wave {
    width: 203px;
    height: 203px;
    top: 362px;
    left: 329px;
    transform: rotate(8.23deg);
    animation: floatWave 4s ease-in-out infinite;
}

.icon-bible {
    width: 196px;
    top: 183px;
    left: 383px;
    transform: rotate(4.85deg);
    animation: floatBible 5s ease-in-out infinite;
}

.icon-music {
    width: 104px;
    top: 108px;
    left: 9px;
    transform: rotate(-4.16deg);
    animation: floatMusic 4.5s ease-in-out infinite;
}

@keyframes floatWave {

    0%,
    100% {
        transform: rotate(8.23deg) translateY(0);
    }

    50% {
        transform: rotate(8.23deg) translateY(-15px);
    }
}

@keyframes floatBible {

    0%,
    100% {
        transform: rotate(4.85deg) translateY(0);
    }

    50% {
        transform: rotate(4.85deg) translateY(-20px);
    }
}

@keyframes floatMusic {

    0%,
    100% {
        transform: rotate(-4.16deg) translateY(0);
    }

    50% {
        transform: rotate(-4.16deg) translateY(-12px);
    }
}

/* Common Section Paddings */
.section-youtube,
.section-news,
.section-review,
.section-video-news {
    padding: 165px 0;
}

/* Youtube Section */
.youtube-container-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.youtube-responsive-box {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.youtube-responsive-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* News Section */
.section-news {
    background-color: var(--bg-gray);
}

.news-container {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.news-main {
    flex: 1.3;
    height: 434px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 38px;
    color: #fff;
}

/* Zoom Effect */
.img-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.news-main:hover .img-wrapper img {
    transform: scale(1.1);
}

.news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.news-info {
    position: relative;
    z-index: 2;
}

.news-info .date {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.news-info .title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.news-info .desc {
    font-size: 18px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
}

.news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    background: #fff;
    padding: 20px 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96.5px;
    width: 488.7px;
    gap: 10px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.news-item-text {
    flex: 1;
    min-width: 0;
}

.news-item-text .date {
    font-size: 18px;
    color: #969696;
    margin-bottom: 5px;
    font-weight: 500;
}

.news-item-text .title {
    font-size: 22px;
    font-weight: 700;
    color: #161616;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-arrow {
    width: 14px;
    height: 14px;
    transform: rotate(90deg);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-item:hover .icon-arrow {
    transform: translate(4px) rotate(90deg);
}

@media (max-width: 1024px) {
    .pc-hide {
        display: block;
    }

    .news-container {
        flex-direction: column;
        gap: 20px;
    }

    .news-main {
        width: 100%;
        height: 350px;
    }

    .news-item {
        height: auto;
        width: 100%;
    }

    .news-item-text .title {
        white-space: normal;
    }
}

/* Review Section */
.section-review {
    background-color: #fff;
    overflow: hidden;
}

.review-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.review-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-header-container {
    position: relative;
    z-index: 1;
}

.rating-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 21px;
    margin-bottom: 58px;
}

.rating-baytree {
    width: 49px !important;
    height: 110px !important;
    object-fit: contain;
}

.rating-stars {
    width: 114px !important;
    height: 22px !important;
    object-fit: contain;
    margin: 10px auto 0;
}

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

.rating-label {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.rating-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 64px;
    background: linear-gradient(180deg, #007bff 20%, #5360f3 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.reviewer-wrapper {
    width: 100%;
    position: relative;
    z-index: 10;
    margin-top: 58px;
    height: auto;
    /* Removed fixed height to allow flexible card heights */
}

.review-carousel {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Back to hidden for final implementation */
    display: flex;
    align-items: flex-start;
    padding: 30px 0;
    /* Added padding to prevent clipping when cards scale up */
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.42, 0, 0.58, 1);
    gap: 30px;
    /* Increased gap for better spacing between scaled cards */
    will-change: transform;
    align-items: flex-start;
}

.review-card {
    background: #fff;
    padding: 50px 30px;
    border-radius: 20px;
    width: 307px;
    height: auto;
    min-height: 308px;
    /* Flexible height that follows text length, with a minimum of 308px */
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0.5;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    user-select: none;
    -webkit-user-drag: none;
}

.review-card .reviewer {
    margin-top: auto;
}

.review-card.active {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 1023px) {
    .review-card {
        width: calc(100vw - 40px);
        max-width: 307px;
    }
}

.review-stars {
    width: 114px;
    height: 22px;
    margin-bottom: 19px;
}

.review-content {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 19px;
    line-height: 1.4;
}

.reviewer .name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.reviewer .platform {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.indicator-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 55px;
}

.indicator {
    width: 28px;
    height: 9px;
    background-color: #adc4e5;
    border-radius: 7.5px;
}

.indicator.active {
    background-color: #007bff;
}

/* Video News Section */
.section-video-news {
    background-color: #fff;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.video-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-thumb {
    width: 100%;
    aspect-ratio: 1280 / 720;
    border-radius: 20px;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.video-card:hover .video-thumb img {
    transform: scale(1.1);
}

.video-title {
    font-size: 22px;
    font-weight: 600;
    color: #161616;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-news-footer {
    margin: 25px 0 55px;
    display: flex;
    justify-content: center;
}

.section-video-news .section-header {
    margin-bottom: 20px;
}

.btn-video-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 600;
    color: #161616;
    transition: all 0.3s ease;
}

.btn-video-more:hover {
    background-color: #f5f5f5;
    border-color: #161616;
}

/* FAQ Section */
.section-faq {
    padding: 180px 0;
    background-color: #fff;
}

.faq-header {
    margin-bottom: 58px;
    text-align: center;
}

.faq-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    width: 100%;
}

.question-list {
    background-color: #ddedff;
    padding: 20px 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.question-list:hover {
    background-color: #d0e5ff;
}

.question-wrapper {
    display: flex;
    align-items: center;
    gap: 19px;
    flex: 1;
}

.icon-q,
.icon-a {
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.icon-q {
    color: #265cb2;
}

.icon-a {
    color: #3e3e3e;
}

.question-content p {
    font-size: 20px;
    font-weight: 600;
    color: #0a0a0a;
}

.icon-faqarrow {
    width: 25px;
    height: 25px;
    transition: transform 0.3s ease;
}

.faq-item.active .icon-faqarrow {
    transform: rotate(180deg);
}

.answer-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.4s ease;
    background-color: #f4f5f5;
    border-radius: 20px;
    margin-top: 0;
}

.faq-item.active .answer-list {
    max-height: 1000px;
    margin-top: 20px;
}

.answer-wrapper {
    padding: 30px 40px;
    display: flex;
    align-items: flex-start;
    gap: 19px;
}

.answer-content p {
    font-size: 20px;
    color: #3e3e3e;
    line-height: 1.6;
}

.answer-content strong {
    font-weight: 700;
}

.faq-footer {
    margin-top: 80px;
    display: flex;
    justify-content: center;
}

.btn-inquiry {
    background-color: #2b2b2b;
    color: #fff;
    padding: 20px 50px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

/* Function Page */

.about-hero-text .sub-title {
    margin: 0 auto 80px;
}

.floating-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f6f6f6;
    padding: 10px;
    border-radius: 60px;
    gap: 10px;
    margin: 50px auto 0;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 999;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.floating-menu.is-overflowing {
    justify-content: flex-start;
}

.floating-menu::-webkit-scrollbar {
    display: none;
}

.floating-menu.is-sticky {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0;
    background-color: rgba(246, 246, 246, 0.95);
    backdrop-filter: blur(10px);
}

.menu-item {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    transition: all 0.3s;
}

.menu-item.active {
    background-color: #161616;
    color: #fff;
}

.function-content-wrapper {
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    gap: 180px;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

.section-function-item .function-item-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
}


.function-text-box {
    flex: 1;
    max-width: 550px;
}

.function-icon-label {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.function-icon-label img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.function-text-box h2 {
    font-family: 'Paperozi', sans-serif;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #161616;
}

.feature-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.feature-list li {
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 5px;
}

.translation-list-box {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.function-image-wrapper {
    position: relative;
    flex: 1;
    max-width: 580px;
    width: 100%;
}

.function-image {
    width: 100%;
    height: auto;
    display: block;
}



/* Bubble Component */
.bubble {
    background: #161616;
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    position: absolute;
    z-index: 10;
    white-space: nowrap;
    animation: bubbleFloat 3s ease-in-out infinite;
}

.bubble::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
}

/* Arrow Shapes */
.bubble.pos-top::after {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #161616;
}

.bubble.pos-bottom::after {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid #161616;
}

/* Specific Positions - Shared/Section specific */
.bubble.playlist {
    bottom: 9%;
    left: 43%;
}

.bubble.appendix {
    top: 12%;
    left: 68%;
    right: auto;
}

.bubble.bible-1 {
    top: 12%;
    left: 34%;
}

.bubble.bible-2 {
    bottom: 9%;
    left: 25%;
}

.bubble.bible-3 {
    bottom: 77%;
    left: 45%;
}

.bubble.bible-4 {
    bottom: 53%;
    left: 63%;
}

.bubble.bible-5 {
    bottom: 32%;
    left: 75%;
}

.bubble.plan-1 {
    top: 10%;
    left: 35%;
}

.bubble.rec-1 {
    top: 17%;
    left: 36%;
}

.bubble.rec-2 {
    bottom: 11%;
    left: 62%;
}

/* Fix lyrics/playlist/appendix animation to include centering where needed */
.bubble.playlist,
.bubble.appendix,
.bubble.bible-1,
.bubble.bible-2,
.bubble.plan-1,
.bubble.rec-1 {
    animation: bubbleFloatCenter 3s ease-in-out infinite;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes bubbleFloatCenter {
    0% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -8px);
    }

    100% {
        transform: translate(-50%, 0);
    }
}

/* Missionary Section */
.section-missionary {
    padding: 160px 0;
    background-color: #f8fbff;
    position: relative;
    overflow: hidden;
}

.missionary-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('assets/bible-missionary-bg.png');
    background-size: cover;
    background-position: center;
}

.missionary-container {
    position: relative;
    z-index: 2;
}

.mission-label,
.label-blue {
    font-size: 26px;
    font-weight: 700;
    color: #007bff;
}

.mission-label {
    margin-bottom: 20px;
}

.missionary-content-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 100px;
}

.mission-item {
    flex: 0 1 auto;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    text-align: left;
}

.mission-item.right {
    flex-direction: column-reverse;
}

.mission-visual {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.mission-visual img {
    max-width: 100%;
    height: auto;
}

.mission-text {
    text-align: left;
}

.mission-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.mission-text p {
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    padding: 70px 0;
    color: rgba(204, 204, 204, 0.8);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    width: 172px;
    height: 28px;
    margin-bottom: 35px;
}

.footer-text {
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: -0.8px;
}

.footer-text p {
    margin-bottom: 5px;
}

.footer-text .highlight {
    color: #fff;
    font-weight: 700;
}

.footer-stores {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-stores a {
    position: relative;
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-icon {
    width: 39px;
    height: 39px;
    object-fit: contain;
}

.btn-galaxystore {
    width: 39px;
    height: 39px;
}

.scroll-hint-arrow {
    position: sticky;
    right: 10px;
    margin-left: -24px;
    align-self: center;
    width: 24px;
    height: 24px;
    background: rgba(22, 22, 22, 0.85);
    color: #fff;
    border-radius: 50%;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    font-size: 10px;
    pointer-events: auto;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    animation: bounceRight 1.5s infinite;
}

.floating-menu.is-overflowing .scroll-hint-arrow {
    display: flex;
    /* Show when overflowing */
}

.scroll-hint-arrow.hide {
    opacity: 0;
    pointer-events: none;
}

@keyframes bounceRight {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

/* Responsive */
@media (max-width: 1279px) {
    .function-visual-box {
        width: 100%;
        max-width: 640px;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-right .nav-btns {
        display: none;
    }

    .mobile-btns {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 280px;
        margin-top: 20px;
    }

    .mobile-btns a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px;
        border-radius: 999px;
        font-size: 16px;
        font-weight: 700;
    }

    .floating-menu {
        gap: 8px;
        padding: 8px;
        border-radius: 50px;
    }

    .menu-item {
        font-size: 18px;
        padding: 10px 22px;
    }
}

@media (max-width: 767px) {
    .section-function-hero {
        padding: 60px 0 30px;
    }


    .floating-menu {
        width: calc(100% - 40px);
        margin-left: auto;
        margin-right: auto;
        overflow-x: auto;
        justify-content: center;
        padding: 8px 12px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        border-radius: 40px;
    }

    .menu-item {
        font-size: 14px;
        padding: 8px 14px;
        flex-shrink: 0;
    }

    .function-content-wrapper {
        gap: 90px;
        padding: 60px 0;
    }

    .section-function-item .function-item-container {
        flex-direction: column !important;
        gap: 40px;
    }

    .function-text-box h2 {
        font-size: 28px;
    }

    .function-image {
        width: 100%;
        max-width: 640px;
        height: auto;
    }



    .missionary-content-grid {
        grid-template-columns: 1fr;
    }

    .mission-card {
        padding: 30px;
    }

    .card-visual-wrapper {
        height: 350px;
    }

    .screen-img {
        width: 180px;
    }

    .screen-info-img {
        width: 180px;
        left: 50%;
        top: 50%;
    }

    /* Responsive Bubbles - Inherit percentages from base */
    .bubble {
        font-size: 15px;
        padding: 7px 13px;
    }
}

@media (max-width: 1024px) {
    .section-hero {
        height: auto;
        padding: 150px 0 100px;
    }

    .hero-container {
        flex-direction: column;
        gap: 25px;
    }

    .hero-text {
        flex: 0 0 auto;
        text-align: center;
        width: 100%;
    }

    .brand-name {
        justify-content: center;
    }

    .news-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .news-main {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .news-list {
        width: 100%;
        max-width: 100%;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .section-youtube {
        padding: 77px 0;
    }

    .section-review,
    .section-news,
    .section-video-news {
        padding: 103px 0;
    }

    .floating-menu {
        gap: 6px;
        padding: 6px;
        border-radius: 40px;
    }

    .menu-item {
        font-size: 15px;
        padding: 8px 16px;
    }
}

@media (max-width: 768px) {
    .pc-only {
        display: none !important;
    }

    .mobile-only {
        display: block;
    }

    .header-right {
        gap: 15px;
    }

    .nav-btns {
        gap: 8px;
    }

    .nav-btns a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        display: none;
    }

    .missionary-content-grid {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .mission-item {
        max-width: 100%;
        text-align: center;
        align-items: center;
    }

    .mission-item.right {
        flex-direction: column;
    }

    .mission-visual {
        justify-content: center;
    }

    .brand-name {
        gap: 12px;
    }

    .brand-logo {
        width: 60px;
        margin-bottom: 14px;
    }

    .brand-text {
        font-size: 45px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .text-description,
    .section-header p,
    .section-title-wrapper .sub-title,
    .about-hero-text .sub-title,
    .sub-title,
    .intro-desc p,
    .question-content p,
    .answer-content p,
    .btn-inquiry span {
        font-size: 18px;
    }

    .hero-visual {
        width: 100%;
        max-width: 400px;
        height: 500px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .phone-slideshow {
        width: 240px;
    }

    .phone-shadow {
        width: 260px;
    }

    .icon-wave {
        top: 278px;
        left: 259px;
    }

    .icon-bible {
        top: 169px;
        left: 311px;
    }

    .icon-music {
        top: 92px;
        left: -18px;
    }

    .rating-value {
        font-size: 60px;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }

    .footer-logo {
        display: block;
        margin: 0 auto 30px;
    }

    .footer-stores {
        justify-content: center;
    }
}

/* About Page Styles */
.section-function-hero,
.section-about-hero {
    padding: 180px 0 0;
    background-color: #fff;
    text-align: center;
    overflow: hidden;
}


/* 메인타이틀 */
.about-hero-text h1,
.main-title,
.section-header h2,
.faq-header h2,
.faq-header h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.4;
    color: #161616;
    margin-bottom: 30px;
    letter-spacing: -0.55px;
}

.hero-building-bg {
    width: 100%;
    height: 438px;
    background-image: url(./assets/about-building.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 90px;
}

.label-blue {
    color: #007bff !important;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.section-company-intro {
    padding: 160px 0;
    background-color: #fff;
}

.company-intro-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
}

.intro-text-side {
    flex: 1;
}

.intro-text-side h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.26;
    margin-bottom: 30px;
}

.link-website {
    display: inline-block !important;
    text-align: center !important;
    padding: 15px 45px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 999px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #161616 !important;
    transition: all 0.3s ease !important;
    margin-top: 20px !important;
    text-decoration: none !important;
}

.link-website:hover {
    background-color: #f5f5f5 !important;
    border-color: #161616 !important;
    opacity: 1 !important;
}

.intro-visual-side {
    flex: 1;
    position: relative;
    height: 520px;
    width: 100%;
    max-width: 600px;
}

.img-studio {
    width: 323px;
    height: 343px;
    border-radius: 30px;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.img-pray {
    width: 277px;
    height: 306px;
    border-radius: 30px;
    position: absolute;
    bottom: 0;
    right: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-mission {
    padding: 100px 0 160px;
}

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

.mission-text-side {
    flex: 1;
}


.mission-text-side h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 30px;
}

.sub-text-side .desc {
    font-size: 20px;
    color: #666;
    line-height: 1.4;
}

.mission-visual-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.mission-visual-side img {
    border-radius: 30px;
}

.section-history {
    height: 600vh;
    /* Further increased scroll space to prevent clipping */
    position: relative;
    background-color: #fff;
    padding-top: 100px;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
}

.section-history .section-header {
    text-align: left;
}

.history-timeline {
    position: relative;
    margin-top: 0;
    /* Removed margin-top since header is moved outside */
}

.timeline-line {
    position: absolute;
    top: 527px;
    /* Restored to match original card height */
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, rgba(221, 221, 221, 0) 0%, rgba(221, 221, 221, 1) 50%, rgba(221, 221, 221, 0) 100%);
    z-index: 1;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.history-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.history-card,
.history-text {
    opacity: 0.5;
    transition: opacity 0.5s ease;
}

.history-item.active .history-card,
.history-item.active .history-text {
    opacity: 1;
}

.history-card {
    width: 236px;
    height: 487px;
    border: 5px solid #fff;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.10);
    position: relative;
    margin-bottom: 25px;
}

.history-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.year-badge {
    width: 80px;
    height: 34px;
    background-color: #b2b2b2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 39px;
    font-weight: 700;
    font-size: 16px;
    z-index: 5;
    position: relative;
    transition: background-color 0.4s ease;
}

.history-item.active .history-card img {
    filter: grayscale(0%);
}

.history-item.active .year-badge {
    background-color: #369cff;
}

/* Mobile/Tablet Horizontal Slider (Under 1279px) */
@media (max-width: 1279px) {
    .section-history {
        height: 300vh;
        /* Keep scroll space for sticky */
    }

    .history-timeline {
        overflow: hidden;
        width: 100%;
        padding: 50px 0;
    }

    .history-grid {
        display: flex;
        gap: 40px;
        width: max-content;
        transition: transform 0.1s ease-out;
        /* Smooth sliding */
        padding: 0 50px;
        grid-template-columns: none;
        /* Override desktop grid */
    }

    .history-item {
        flex-shrink: 0;
        width: 300px;
        /* Fixed width for sliding items */
    }

    .history-card {
        width: 100%;
        height: 578px;
        max-width: 280px;
    }

    .timeline-line {
        top: 668px;
        /* Adjust line position for new card size */
        width: 200%;
        /* Make it long enough for the slide */
    }
}



.history-text {
    text-align: center;
    margin-top: 30px;
}

.history-text h3,
.history-text h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.history-text p {
    font-size: 16px;
    color: #666;
    line-height: 1.4;
}

.section-about-stats {
    margin-top: 200px;
    /* Added margin to prevent overlap */
    padding: 160px 0;
    background: linear-gradient(180deg, #00183c 0%, #000 100%);
    color: #fff;
    position: relative;
}

.stats-header {
    text-align: left;
    margin-bottom: 100px;
}

.stats-header h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.stats-header .desc {
    font-size: 18px;
    color: #ccc;
    max-width: 600px;
}

.stats-visual-box {
    position: relative;
    padding: 100px 0;
}

.stats-graph-wrapper {
    position: absolute;
    top: 68%;
    left: 47%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1038.5px;
    z-index: 1;
}

.stats-graph,
.stats-graph img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.5;
}

.stats-graph {
    opacity: 0;
    /* Mask: Bottom is black, Top is transparent */
    -webkit-mask-image: linear-gradient(to top, black 50%, transparent 100%);
    mask-image: linear-gradient(to top, black 50%, transparent 100%);
    -webkit-mask-size: 100% 200%;
    mask-size: 100% 200%;
    -webkit-mask-position: 0 0;
    /* Start with top half (transparent) */
    mask-position: 0 0;
    transition: opacity 1s ease-out, mask-position 2.5s ease-out;
}

.stats-graph.active {
    opacity: 1;
    -webkit-mask-position: 0 100%;
    /* Move to bottom half (black) for reveal */
    mask-position: 0 100%;
    transition-delay: 0.5s;
    /* Start slightly later */
}

.stats-graph-circle {
    position: absolute;
    top: 1.1%;
    left: 99.4%;
    width: 58px;
    height: 58px;
    z-index: 5;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease-out;
    transition-delay: 1s;
    animation: pulse 2s infinite ease-in-out;
}

.stats-graph-circle.active {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(0.8);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px 40px;
    position: relative;
    z-index: 2;
}

.stats-grid .stat-item:nth-child(3) {
    grid-column: span 2;
    text-align: left;
}

.stat-item .stat-label {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}

.stat-item .stat-label strong {
    font-weight: 700;
}

.stat-item .stat-value {
    font-size: 55px;
    font-weight: 700;
}

.stats-verse {
    margin-top: 400px;
    text-align: center;
    font-size: 26px;
    color: #ccc;
    line-height: 1.8;
    position: relative;
    padding: 40px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stats-verse::before,
.stats-verse::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.stats-verse::before {
    top: 0;
}

.stats-verse::after {
    bottom: 0;
}

.stats-verse.active::before,
.stats-verse.active::after {
    transform: translateX(-50%) scaleX(1);
}

.stats-verse strong {
    color: #fff;
    font-weight: 700;
}

.section-global {
    padding: 160px 0;
    background-color: #000;
    color: #fff;
}

.global-text-header {
    text-align: center;
    margin-bottom: 80px;
}

.global-text-header h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
}

.global-text-header .desc {
    font-size: 18px;
    color: #ccc;
    line-height: 1.4;
}

.global-mockup {
    position: relative;
    max-width: 343px;
    margin: 0 auto 100px;
}

.feature-pills {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pill {
    position: absolute;
    background: rgba(255, 255, 255, 0.90);
    padding: 12px 28px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #161616;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    font-size: 16px;

    /* Animation initial state */
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pill.active {
    opacity: 1;
    transform: scale(1);
}

.pill:nth-child(1) {
    transition-delay: 0.1s;
}

.pill:nth-child(2) {
    transition-delay: 0.3s;
}

.pill:nth-child(3) {
    transition-delay: 0.5s;
}

.pill img {
    width: 44px;
}

.pill:nth-child(1) {
    left: -210px;
    top: 190px;
}

.pill:nth-child(2) {
    left: -170px;
    top: 480px;
}

.pill:nth-child(3) {
    right: -190px;
    top: 280px;
}

.free-badge {
    background-color: #c3bc01;
    color: #fff;
    padding: 5px 12px;
    border-radius: 22px;
    font-size: 12px;
}

.about-reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.about-review-card {
    background-color: #1a1a1a;
    padding: 50px 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

.about-review-card .stars {
    width: 120px;
    height: 22px;
}

.about-review-card .content {
    font-size: 20px;
    line-height: 1.4;
    color: #ccc;
    font-weight: 600;
    margin-bottom: 19px;

}

.about-review-card .author {
    margin-top: auto;
}

.about-review-card .author strong {
    display: block;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 5px;
}

.about-review-card .author small {
    font-size: 12px;
    color: #ccc;
}

.section-copyright {
    padding: 160px 0;
    background-color: #fff;
}

.copyright-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-top: 80px;
}

.copyright-col .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.copyright-col h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.copyright-col ul {
    list-style: none;
}

.copyright-col ul li {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.copyright-col ul li strong {
    color: #161616;
    font-weight: 700;
}

.footer-sns {
    display: flex;
    gap: 20px;
}

.footer-sns img {
    width: 39px;
}

/* About Responsive */
@media (max-width: 1023px) {
    .hero-building-bg {
        background-image: url(./assets/about-building_m.png);
        height: auto;
        aspect-ratio: 800 / 380;
    }

    .company-intro-container,
    .mission-container {
        flex-direction: column;
        text-align: left;
        /* Applied left-align as requested */
        gap: 60px;
    }

    .intro-visual-side {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
        /* Applied left-align as requested */
        max-width: 100%;
        margin: 0;
    }

    .mission-visual-side {
        justify-content: flex-start;
        /* Applied left-align as requested */
    }

    .img-studio,
    .img-pray {
        position: static;
        width: 100%;
        height: 100%;
    }

    .history-grid,
    .about-reviews-grid,
    .copyright-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-item {
        margin-bottom: 150px;
    }

    .history-text {
        position: static;
        margin-top: 20px;
    }

    .feature-pills {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        transform: none;
    }

    .pill {
        position: absolute;
        /* Keep original absolute positioning */
    }

    /* Adjust positions for smaller screens to 'gather' towards center */
    .pill:nth-child(1) {
        left: -46px;
        top: 80px;
    }

    .pill:nth-child(2) {
        left: -36px;
        top: 419px;
    }

    .pill:nth-child(3) {
        right: -44px;
        top: 204px;
    }

    .pill img {
        width: 44px;
    }
}


@media (max-width: 767px) {
    .section-about-hero {
        padding: 180px 0 0;
    }

    .section-company-intro,
    .section-mission,
    .section-history {
        padding: 90px 0 0 0;
    }

    .section-copyright {
        padding: 90px 0 100px 0;
    }

    .about-hero-text h1,
    .main-title,
    .section-header h2,
    .main-title,
    .faq-header h2,
    .faq-header h1 {
        font-size: 32px;
    }

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

    .intro-text-side h2,
    .mission-text-side h2,
    .section-header h2,
    .stats-header h2,
    .global-text-header h2 {
        font-size: 32px;
    }

    .intro-desc p,
    .mission-text-side .desc,
    .section-header p,
    .stats-header .desc,
    .global-text-header .desc,
    .news-item-text .title,
    .video-title,
    .main-sub-title,
    .main-sub-title2 {
        font-size: 18px;
    }

    .about-reviews-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .copyright-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stats-graph-wrapper {
        top: 85%;
        left: 42%;
    }

    .stats-graph-circle {
        width: 33px;
        height: 33px;
    }

    .stats-grid .stat-item:nth-child(3) {
        grid-column: span 1;
    }

    .stats-verse {
        font-size: 18px;
        padding: 30px 0;
    }

    .history-card {
        width: 100%;
        max-width: 236px;
        height: 483px;
    }

    .timeline-line {
        top: 574px;
    }

    .global-mockup {
        max-width: 300px;
        margin: 0 auto 60px;
    }

    .feature-pills {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }

    .pill {
        position: absolute !important;
        transform: none !important;
        opacity: 1 !important;
        font-size: 12px !important;
        padding: 8px 14px !important;
        border-radius: 40px !important;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12) !important;
        white-space: nowrap !important;
    }

    .pill img {
        width: 28px !important;
    }

    .pill:nth-child(1) {
        left: 10px !important;
        top: 80px !important;
    }

    .pill:nth-child(2) {
        left: 10px !important;
        top: 419px !important;
    }

    .pill:nth-child(3) {
        right: 10px !important;
        top: 204px !important;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 350px;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

.qr-container {
    padding: 40px 40px 25px;
}

.qr-code {
    width: 140px;
    height: 140px;
    margin: 0 auto;
    display: block;
}

.modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #161616;
    margin-bottom: 3px;
    font-family: var(--font-body);
}

.modal-desc {
    font-size: 18px;
    color: #5d5d5d;
    margin-bottom: 40px;
    font-weight: 500;
}

.modal-confirm-btn {
    width: 100%;
    padding: 22px;
    background-color: #fff;
    border: none;
    border-top: 1px solid #eee;
    font-size: 20px;
    font-weight: 700;
    color: #161616;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-confirm-btn:hover {
    background-color: #f9f9f9;
}

/* Translation List Style for Semantic GEO/a11y Optimization */
.translation-inline-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline !important;
}

.translation-inline-list li {
    display: inline !important;
}

.translation-inline-list li:not(:last-child)::after {
    content: " / " !important;
    color: #ccc !important;
}