/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ad_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px !important;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

/* Top Banner Ad (Mobile Only) */
.top-banner-ad {
    display: none;
    background: #fff;
    border-bottom: 1px solid #e8ecef;
    padding: 8px 0 8px 0;
    text-align: center;
    position: relative;
    z-index: 999;
    margin-top: 10px;
}

.top-banner-ad__disclosure {
    font-size: 0.65rem;
    line-height: 1.3;
    color: #4a5568;
    background: #f7f8fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 8px;
    margin: 0 auto 0 auto;
    text-align: center;
    max-width: calc(100% - 30px);
}

.top-banner-ad__content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-banner-ad__content iframe,
.top-banner-ad__content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100px;
    object-fit: contain;
}

/* Header */
.header {
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.9rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tagline {
    color: #7f8c8d;
    font-size: 0.95rem;
    display: inline-block;
    margin-left: 12px;
    margin-bottom: 5px;
}

/* Notice */
.notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 0;
    text-align: center;
    font-size: 0.9rem;
    color: #856404;
    margin: 15px 0 0 0;
}

/* Coupang Partners Ad */
.coupang-ad-wrapper {
    margin: 0 auto;
    padding: 0;
    width: 100%;
    max-width: 1160px;
    overflow-x: auto;
}

.coupang-ad-wrapper .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Wing banner ads (PC) */
.wing-banner {
    position: fixed;
    top: 190px;
    width: 170px;
    z-index: 900;
    display: none;
}

.wing-banner--left {
    left: 20px;
}

.wing-banner--right {
    right: 20px;
}

.wing-banner__content {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.12);
    padding: 14px;
    text-align: center;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wing-banner__label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ff6a00;
    margin-bottom: 8px;
}

.wing-banner__ali-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
}

.wing-banner__ali-link img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px;
}

.wing-banner__ali-link span {
    font-size: 0.95rem;
}

.wing-banner .coupang-ad-wrapper {
    flex: 1;
    min-height: 460px;
}

.wing-banner__disclosure {
    font-size: 0.7rem;
    line-height: 1.3;
    color: #4a5568;
    background: #f7f8fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 0;
    text-align: center;
}

@media (min-width: 1400px) {
    .wing-banner {
        display: block;
    }
}

/* Main content */
.main {
    padding: 0;
    background: transparent;
}

/* Hero section */
.hero {
    text-align: center;
    margin: 30px 0;
}

.main-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.description {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Section styles */
section {
    margin: 30px 0;
}

section h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

section h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 15px;
}

/* Card Section Styles */
.card-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8ecef;
    position: relative;
    overflow: hidden;
}

.card-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6a00, #ff7a1a, #ff8c33, #ffa64d, #ffc266);
}

.section-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.section-icon svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Individual Section Background Styles */
.hero.card-section {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.5) 0%, rgba(255, 63, 0, 0.5) 100%);
    color: white;
    position: relative;
}

.hero.card-section::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
}

.hero .main-title,
.hero .description {
    color: white;
    text-shadow: none;
}

.home-main {
    padding-top: 0;
}

.home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.08), rgba(255, 106, 0, 0.2));
    min-height: 160px;
    padding: 15px 40px;
}

.home-hero h1 {
    font-size: 2.1rem;
    margin-bottom: 8px;
    color: #1f2933;
}

.home-hero__eyebrow {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ff6a00;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-hero__desc {
    margin-top: 8px;
    font-size: 1rem;
    color: #4b5563;
}

.partner-grid {
    margin-top: 30px;
}

.partner-grid__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    gap: 12px;
}

.partner-grid__header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.partner-grid__header p {
    color: #6b7280;
    font-size: 0.95rem;
}

.partner-grid__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.partner-card {
    border: 1px solid #e8ecef;
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.partner-card__logo img {
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
}

.partner-card__content h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: #1f2933;
}

.partner-card__content p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.4;
}

.partner-card__actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background: #ff6a00;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: #ff7e1f;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-secondary:hover {
    border-color: #9ca3af;
    color: #111827;
}

.schedule-section.card-section {
    background: linear-gradient(135deg, #fff4e8 0%, #ffe9d6 100%);
    position: relative;
    border: 1px solid #ffd5b8;
}

.schedule-section.card-section::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.promo-codes-section.card-section {
    background: linear-gradient(135deg, #fff6ef 0%, #ffede0 100%);
    position: relative;
    border: 1px solid #ffe0cc;
}

.promo-codes-section.card-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0 10 Q 25 0 50 10 T 100 10 V 20 H 0 Z" fill="rgba(255,106,0,0.06)"/></svg>');
    background-size: 200px 100px;
    background-repeat: repeat-x;
    pointer-events: none;
}

.discount-codes-section.card-section {
    background: linear-gradient(135deg, #fff9f2 0%, #fff1e6 100%);
    position: relative;
    border: 1px solid #ffe5d1;
}

.discount-codes-section.card-section::after {
    content: none;
}

.app-section.card-section {
    background: linear-gradient(135deg, #fffdf8 0%, #fff7ee 100%);
    position: relative;
    border: 1px solid #ffebd9;
}

.app-section.card-section::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

/* Schedule section */
.schedule-section p {
    margin-bottom: 10px;
    color: #555;
}

/* Increase bottom margin for schedule info paragraph only */
.schedule-info p {
    margin-bottom: 30px;
}

.schedule-card {
    background: #fff;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    padding: 20px;
    max-width: 100%;
    margin: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.schedule-card h3 {
    color: #4a6cf7;
    margin-bottom: 15px;
    text-align: center;
}

.schedule-card ul {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
    text-align: center;
}

.schedule-card li {
    padding: 5px 0;
    color: #2c3e50;
    font-weight: 700;
}

/* Make schedule card behave like code-card on hover */
.schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 108, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.schedule-card:hover::before {
    left: 100%;
}

.schedule-card:hover {
    border-color: #ff7a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #fff4e8 100%);
}

.check-btn {
    background: #4a6cf7;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.check-btn:hover {
    background: #3b5cde;
}

/* Section-specific overrides: Schedule/App/Modal '확인하기' buttons to orange */
.schedule-section .check-btn,
.app-section .check-btn,
.copy-modal .check-btn {
    background: #ff6a00;
}

/* Remove underline for schedule card button */
.schedule-section .check-btn {
    text-decoration: none;
}

.schedule-section .check-btn:hover,
.app-section .check-btn:hover,
.copy-modal .check-btn:hover {
    background: #ff7a1a;
}

/* Hover shrink effect (left/right) for Schedule/App/Modal buttons */
.schedule-section .check-btn,
.app-section .check-btn,
.copy-modal .check-btn {
    transition: background 0.3s ease, transform 0.2s ease;
}

.schedule-section .check-btn:hover,
.app-section .check-btn:hover,
.copy-modal .check-btn:hover {
    transform: scaleX(0.94);
    font-weight: 700;
}

/* Modal confirm button full-width and no underline */
.copy-modal .check-btn {
    display: block;
    width: 100%;
    text-decoration: none;
}

/* Remove default focus outline/border on modal confirm button */
.copy-modal .check-btn:focus,
.copy-modal .check-btn:focus-visible,
.copy-modal .check-btn:active {
    outline: none;
    box-shadow: none;
}

/* Remove left-right sweep overlay on code cards */
.promo-codes-section .code-card::before,
.discount-codes-section .code-card::before {
    content: none;
}

/* Disable previous sweep text effect for code cards */
.promo-codes-section .code-card:hover .code-value,
.promo-codes-section .code-card:hover .discount-text,
.promo-codes-section .code-card:hover .code-label,
.discount-codes-section .code-card:hover .code-value,
.discount-codes-section .code-card:hover .discount-text,
.discount-codes-section .code-card:hover .code-label {
    background-image: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: inherit;
    animation: none;
}

/* Ensure code-label text stays white on hover */
.promo-codes-section .code-card:hover .code-label,
.discount-codes-section .code-card:hover .code-label {
    color: #fff;
}

/* Twinkle effect only for the code inside code-value on hover */
@keyframes codeTwinkle {
    0% {
        color: #2c3e50;
    }

    50% {
        color: #ff6a00;
    }

    100% {
        color: #2c3e50;
    }
}

/* Pulse animation for LIVE badge */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.promo-codes-section .code-card:hover .code-value,
.discount-codes-section .code-card:hover .code-value {
    animation: codeTwinkle 0.45s ease-in-out infinite;
}

/* Section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-header h2 {
    margin-bottom: 0;
}

.click-copy {
    color: #4a6cf7;
    font-weight: bold;
    font-size: 1rem;
}

/* Make promo section '클릭시 자동복사' look like a pill button (same as limited-notice) */
.promo-codes-section .click-copy {
    background: #4a6cf7;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
}

/* Make limited-notice visually identical to click-copy */
.limited-notice {
    background: #4a6cf7;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
}

.section-description {
    margin-bottom: 30px;
    color: #555;
    line-height: 1.7;
}

/* App section paragraph spacing to match other sections */
.app-section-description {
    margin-bottom: 30px;
}

/* Code cards grid */
.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Code card styles */
.code-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.code-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 108, 247, 0.1), transparent);
    transition: left 0.5s ease;
}

.code-card:hover::before {
    left: 100%;
}

.code-card:hover {
    border-color: #ff7a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #fff4e8 100%);
}

.code-card.discount {
    border-color: #ecf0f1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.code-card.discount::before {
    background: linear-gradient(90deg, transparent, rgba(74, 108, 247, 0.08), transparent);
}

.code-card.discount:hover {
    border-color: #ff7a1a;
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #fff4e8 100%);
}

/* Make discount section cards use the same colors as promo cards */
.discount-codes-section .code-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #ecf0f1;
}

.discount-codes-section .code-card::before {
    background: linear-gradient(90deg, transparent, rgba(74, 108, 247, 0.1), transparent);
}

/* Removed white text override for discount cards to use default text colors */

.code-header {
    margin-bottom: 15px;
}

.code-label {
    display: inline-block;
    background: #ff6a00;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.code-card.discount .code-label {
    background: #ff7a1a;
}

.discount-text {
    display: block;
    color: #2c3e50;
    font-weight: bold;
    font-size: 1rem;
    white-space: pre-line;
    line-height: 0.9;
}

.discount-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

/* Align amount to the right within the row */
.discount-info .amount {
    margin-left: 0;
    text-align: left;
}

.condition {
    color: #2c3e50;
    font-size: 1.1rem;
}

.amount {
    color: #ff6a00;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Match discount section condition/amount text color to promo discount-text */
.discount-codes-section .condition,
.discount-codes-section .amount {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1rem;
}

/* Keep condition color always equal to amount color within discount cards */
.discount-codes-section .discount-info {
    --discount-text-color: #2c3e50;
}

.discount-codes-section .discount-info .condition,
.discount-codes-section .discount-info .amount {
    color: var(--discount-text-color);
}

.code-value {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.code-value::before {
    content: '📋';
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 1rem;
    opacity: 0.5;
}

.copy-notice {
    text-align: center;
    color: #95a5a6;
    font-size: 0.85rem;
    font-style: italic;
}

/* Set '클릭하면 자동복사' color inside promo/discount cards */
.promo-codes-section .code-card .copy-notice,
.discount-codes-section .code-card .copy-notice {
    color: #2c3e50;
}

/* App section - no overrides needed; keep rule minimal but non-empty to satisfy linters */
.app-section {
    padding-left: 40px;
    padding-right: 40px;
}

/* App cards layout (image + title + bullets + action), Coopick tone & manner */
.app-card {
    padding: 18px;
    text-align: center;
}

.app-card .app-thumb {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e6ff;
    background: #f5f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-card .app-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-card .app-title {
    font-size: 1.6rem;
    color: #2c3e50;
    margin: 16px 0 10px 0;
}

.app-bullets {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.app-bullets li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2c3e50;
    justify-content: center;
}

.app-bullet-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ff6a00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-bullet-icon::after {
    content: '✓';
    color: #ff6a00;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.app-actions {
    margin-top: 6px;
}

/* App card button full-width, no underline */
.app-card .check-btn {
    display: block;
    width: 100%;
    text-decoration: none;
}

.app-description {
    margin-bottom: 30px;
    color: #555;
    line-height: 1.7;
}

.app-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.app-btn {
    background: linear-gradient(135deg, #4a6cf7 0%, #5b7cfa 100%);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

.app-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.app-btn:hover::before {
    left: 100%;
}

.app-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.4);
    background: linear-gradient(135deg, #5b7cfa 0%, #4a6cf7 100%);
}

.app-btn:first-child {
    background: linear-gradient(135deg, #6d8cfc 0%, #5b7cfa 100%);
    box-shadow: 0 4px 15px rgba(109, 140, 252, 0.3);
}

.app-btn:first-child:hover {
    box-shadow: 0 8px 25px rgba(109, 140, 252, 0.4);
    background: linear-gradient(135deg, #5b7cfa 0%, #6d8cfc 100%);
}

.app-btn:nth-child(2) {
    background: linear-gradient(135deg, #7e9dff 0%, #6d8cfc 100%);
    box-shadow: 0 4px 15px rgba(126, 157, 255, 0.3);
}

.app-btn:nth-child(2):hover {
    box-shadow: 0 8px 25px rgba(126, 157, 255, 0.4);
    background: linear-gradient(135deg, #6d8cfc 0%, #7e9dff 100%);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
}

.footer .container {
    padding: 0 20px;
}

.footer-info {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-info p {
    margin: 5px 0;
}

.footer-info a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        padding: 20px 0;
        margin-top: 30px;
    }

    .footer .container {
        padding: 0 15px;
    }

    .footer-info {
        font-size: 12px;
        margin-top: 12px;
    }
}

/* Copy notification */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4a6cf7;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: calc(100vw - 40px);
}

@media (max-width: 480px) {
    .copy-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100vw - 20px);
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

.copy-notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Top slide toast for service-coming-soon */
.service-toast {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    background: linear-gradient(135deg, #ff6a00 0%, #ff7a1a 100%);
    color: #fff;
    padding: 12px 16px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(255, 106, 0, 0.25);
    transition: transform 0.3s ease;
    z-index: 3000;
}

.service-toast.show {
    transform: translateY(0);
}

/* Copy Modal */
.copy-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.copy-modal.show {
    display: block;
}

.copy-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.copy-modal__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100% - 40px));
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid #ffe0cc;
}

@media (max-width: 480px) {
    .copy-modal__dialog {
        width: calc(100% - 20px);
        max-width: calc(100vw - 20px);
        margin: 0 10px;
    }
}

.copy-modal__title {
    margin: 0;
    padding: 18px 22px;
    background: linear-gradient(135deg, #ff6a00 0%, #ff7a1a 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.copy-modal__code {
    margin: 20px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff6ef 0%, #fff1e6 100%);
    border: 2px dashed #ffd5b8;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    letter-spacing: 1px;
}

.copy-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 20px 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .top-banner-ad {
        display: block;
    }

    .top-banner-ad .container {
        padding: 0 !important;
    }

    .container {
        padding: 0 15px;
    }

    .header .container {
        padding: 0 15px;
    }

    .header .logo {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .header .logo img {
        max-width: 100%;
        height: auto;
    }

    .main-title {
        font-size: clamp(1.6rem, 8vw, 3rem);
        white-space: nowrap;
        line-height: 1.15;
    }

    /* Remove hero-specific visual effects from main title on mobile */
    .hero .main-title {
        text-shadow: none;
    }

    /* Remove forced line-break effect on mobile */
    .main-title .title-break::before {
        content: none;
        white-space: normal;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .codes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .coupang-ad-wrapper {
        padding: 0 15px;
    }

    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tagline {
        margin-left: 0;
        margin-top: 4px;
    }

    .app-buttons {
        flex-direction: column;
        align-items: center;
    }

    .app-btn {
        width: 100%;
        max-width: 300px;
    }

    .card-section {
        padding: 25px 20px;
        border-radius: 12px;
    }

    /* Reduce hero vertical padding by ~30% for mobile (28px -> 20px) */
    .hero.card-section {
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .home-hero {
        height: auto;
        padding: 24px 20px;
    }

    /* Keep app section aligned with other sections on mobile as well */
    .app-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .app-card {
        padding: 16px;
    }

    .app-card .app-thumb {
        height: 150px;
    }

    .app-card .app-title {
        font-size: 1.3rem;
        margin: 12px 0 8px 0;
    }

    /* Auto-scale body copy on mobile */
    .section-description,
    .app-section-description {
        font-size: clamp(0.95rem, 3.8vw, 1.1rem);
        line-height: 1.6;
    }

    /* 1. Tagline fits on one line by scaling font size */
    .tagline {
        white-space: nowrap;
        font-size: clamp(0.78rem, 3.5vw, 0.95rem);
    }

    /* Notice text single-line and no radius */
    .notice .container {
        white-space: normal;
        font-size: clamp(0.75rem, 3.3vw, 0.95rem);
        border-radius: 0;
        padding: 10px 12px;
    }

    .notice .container img {
        max-width: 100%;
    }

    /* 2. Hero: shrink logo, hide description */
    /* Hero logo: exactly 50% of desktop (180px -> 90px) */
    .hero-logo {
        width: 90px;
        height: 90px;
    }

    .hero-content .description {
        display: none;
    }

    /* When description is hidden on mobile, remove bottom margin from main title for perfect vertical centering */
    .hero .main-title {
        margin-bottom: 0 !important;
    }

    /* 3. Section titles auto-scale to avoid wrapping */
    section h2,
    .main-title {
        white-space: nowrap;
        font-size: clamp(1.25rem, 6.5vw, 2.2rem);
        line-height: 1.25;
    }

    /* If wrapping is needed, enforce a single intentional break (650px and below) */
    @media (max-width: 650px) {
        .hero .main-title {
            white-space: normal;
        }

        .hero .main-title .title-sep::before {
            content: "\A";
            /* single planned line break */
            white-space: pre;
        }
    }

    /* Default: keep hero title on a single line on mobile; below 650px we override */
    .hero .main-title {
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: keep-all;
    }

    /* 4. Hide schedule banner on mobile */
    .schedule-banner {
        display: none;
    }

    /* Keep click-copy/limited-notice on the right, same line as title on mobile */
    .promo-codes-section .section-header,
    .discount-codes-section .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .promo-codes-section .click-copy,
    .discount-codes-section .limited-notice {
        align-self: auto;
        margin-left: auto;
        text-align: right;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {

    /* Hide labels on mobile */
    .promo-codes-section .click-copy,
    .discount-codes-section .limited-notice {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: clamp(1.25rem, 7vw, 2.2rem);
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: keep-all;
    }

    .logo {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .tagline {
        font-size: clamp(0.7rem, 3vw, 0.85rem);
        margin-left: 0;
    }

    .code-card {
        padding: 15px;
    }

    .card-section {
        padding: 20px 15px;
    }

    .copy-modal__title {
        font-size: 1rem;
    }

    .copy-modal__code {
        font-size: 1.1rem;
    }

    .coupang-ad-wrapper {
        padding: 0 10px;
    }

    .notice .container {
        padding: 8px 10px;
    }

    .app-card .app-thumb {
        height: 120px;
    }

    .app-card .app-title {
        font-size: 1.1rem;
    }

    .top-nav__arrow {
        width: 24px;
        height: 24px;
    }

    .top-nav__scroller {
        padding: 0 28px;
    }
}

/* Extra small devices (e.g., Z Fold narrow width) */
@media (max-width: 360px) {

    /* Header tagline smaller to avoid clipping */
    .tagline {
        font-size: clamp(0.6rem, 3vw, 0.8rem);
    }

    /* Hero main title smaller to keep right margin */
    .hero .main-title {
        font-size: clamp(1rem, 5vw, 1.3rem);
    }
}

/* Remove special sizing in 500–799px: fall back to default/mobile rules */
@media (min-width: 500px) and (max-width: 799px) {
    .hero .main-title {
        text-shadow: none;
    }
}

/* Hero compact height */
.hero.card-section {
    min-height: 180px;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* 서브 히어로 섹션 (이벤트용) - 메인 히어로와 차별화 */
.hero-sub.card-section {
    padding: 14px 28px;
    background: linear-gradient(135deg, #fff8f0 0%, #fff4e8 100%);
    border: 1px solid #ffe0cc;
    margin-top: 20px;
}

.hero-sub.card-section::before {
    background: linear-gradient(90deg, rgba(255, 106, 0, 0.1), rgba(255, 106, 0, 0.15), rgba(255, 106, 0, 0.1));
}

.hero-sub .main-title {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.hero-sub .description {
    color: #555;
    font-size: 0.95rem;
    margin-top: 8px;
}

.hero-sub .hero-grid {
    grid-template-columns: 100px 1fr;
    gap: 16px;
    align-items: center;
}

.hero-sub .hero-logo {
    width: 100px;
    height: 100px;
}

/* Ensure mobile override takes precedence by placing after default rule */
@media (max-width: 768px) {
    .hero.card-section {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .hero-sub.card-section {
        padding: 12px 18px;
        margin-top: 16px;
    }

    .hero-sub .hero-grid {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }

    .hero-sub .hero-logo {
        width: 80px;
        height: 80px;
    }

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

.hero .main-title {
    margin-bottom: 4px;
    font-size: 1.8rem;
}

.hero .description {
    max-width: 875px;
}

/* Schedule three-part layout */
.schedule-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    grid-template-rows: auto auto;
    column-gap: 24px;
    row-gap: 8px;
    align-items: start;
    justify-content: space-between;
    width: 100%;
    margin-top: 16px;
}

.schedule-info {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
}

.schedule-table {
    grid-column: 1;
    grid-row: 2;
}

.schedule-banner {
    grid-column: 2;
    grid-row: 2;
}

/* Banner placeholder to match card size */
.schedule-banner {
    border-radius: 10px;
    background: linear-gradient(135deg, #e8eeff 0%, #f5f7ff 100%);
    border: 1px solid #dde5ff;
    width: 100%;
    height: 236px;
    background-image: url('img/winter.jpg');
    background-size: cover;
    background-position: center;
    align-self: start;
    margin: 0 auto 16px auto;
}

/* Make app-card fully clickable while preserving layout */
.app-card {
    position: relative;
}

.app-card .full-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.app-card .app-thumb,
.app-card .app-title,
.app-card .app-bullets,
.app-card .app-actions {
    position: relative;
    z-index: 2;
}

/* Schedule card ensure equal height */
.schedule-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 236px;
    grid-column: 1;
    align-self: start;
    justify-self: start;
}

@media (max-width: 900px) {
    .schedule-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 16px;
    }

    .schedule-info {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
    }

    .schedule-table {
        grid-column: 1;
        grid-row: 2;
    }

    .schedule-card {
        width: 100%;
        height: auto;
        align-self: stretch;
        grid-column: 1;
        min-height: auto;
    }

    .schedule-banner {
        width: 100%;
        height: 200px;
        align-self: stretch;
        grid-column: 1;
        grid-row: 3;
        margin: 0 auto 16px auto;
    }
}

@media (max-width: 768px) {
    .schedule-layout {
        gap: 12px;
    }

    .schedule-card {
        padding: 16px;
    }

    .schedule-banner {
        height: 180px;
    }
}

/* Top navigation */
.top-nav {
    margin-top: 8px;
    position: relative;
    padding-top: 5px;
    padding-bottom: 5px;
}

.top-nav__list {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 8px 12px;
    list-style: none;
    padding: 0;
    padding-top: 2px;
    white-space: nowrap;
}

.top-nav__list>li {
    flex: 0 0 auto;
}

/* Scrollable rail */
.top-nav__scroller {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.top-nav__scroller::-webkit-scrollbar {
    height: 0;
}

.top-nav__scroller.dragging {
    cursor: grabbing;
}

.top-nav__scroller.dragging .top-nav__link {
    pointer-events: none;
}

/* Arrow controls */
.top-nav__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #dfe6ff;
    background: #ffffffb8;
    color: #3156d8;
    box-shadow: 0 2px 6px rgba(74, 108, 247, .15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all .2s ease;
}

.top-nav__arrow:hover {
    background: #ffffff;
}

.top-nav__arrow--left {
    left: -6px;
}

.top-nav__arrow--right {
    right: -6px;
}

/* Hero CTA 버튼 */
.hero-cta-button-wrapper {
    margin-top: 8px;
    text-align: left;
}

.hero-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #ff6a00;
    font-size: 1rem;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid rgba(255, 106, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.hero-cta-button:hover::before {
    left: 100%;
}

.hero-cta-button:hover {
    background: #ff6a00;
    color: #fff;
    border-color: #ff6a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.hero-cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 106, 0, 0.2);
}

@media (max-width: 768px) {
    .hero-cta-button-wrapper {
        margin-top: 20px;
        text-align: center;
    }

    .hero-cta-button {
        font-size: 1rem;
        padding: 12px 24px;
        width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-cta-button {
        font-size: 0.95rem;
        padding: 11px 22px;
    }
}

/* 파트너 소개 내용 섹션 */
.partner-intro-section {
    margin: 30px 0;
}

.partner-intro-content {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

/* 살구색 배너 + 이동 버튼 섹션 */
.partner-cta-banner {
    background: linear-gradient(135deg, #ffe5cc 0%, #ffd9b3 100%);
    padding: 50px 20px;
    margin: 30px 0;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(255, 179, 102, 0.2);
}

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

.partner-cta-button {
    display: inline-block;
    background: #ff6a00;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 20px 60px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-cta-button:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.4);
}

.partner-cta-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .partner-cta-banner {
        padding: 40px 15px;
        margin: 25px 0;
    }

    .partner-cta-button {
        font-size: 1.3rem;
        padding: 18px 50px;
        width: 90%;
        max-width: 400px;
    }

    .partner-intro-content {
        font-size: 1rem;
        line-height: 1.7;
    }
}

@media (max-width: 768px) {
    .top-nav__arrow {
        width: 26px;
        height: 26px;
    }

    .top-nav__arrow--left {
        left: -4px;
    }

    .top-nav__arrow--right {
        right: -4px;
    }

    .top-nav__scroller {
        padding: 0 30px;
    }
}

.top-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e0e8ff;
    border-radius: 999px;
    color: #2b2f36;
    background: linear-gradient(135deg, #fbfcff 0%, #f6f8ff 100%);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.top-nav__link:hover {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6efff 100%);
    border-color: #cdd8ff;
    box-shadow: 0 4px 10px rgba(74, 108, 247, 0.12);
    transform: translateY(-1px);
}

/* Top nav icons */
.top-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.top-nav__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e6efff;
    background-size: 14px 14px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px #d4e3ff;
}

@media (max-width: 768px) {
    .top-nav__icon {
        width: 18px;
        height: 18px;
        background-size: 12px 12px;
    }
}

@media (max-width: 768px) {
    .top-nav__link {
        font-size: 0.9rem;
        padding: 7px 10px;
    }
}

/* Notice container width override and boxing */
.notice {
    background: transparent;
    border: 0;
}

.notice .container {
    max-width: 1160px;
    background: #e6eeff;
    /* 10% darker than #f0f4ff */
    border: 0;
    color: #555;
    padding: 10px 16px;
    border-radius: 0;
    text-align: center;
}

.notice .container img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Remove extra gap that depended on section icon */
.card-section .section-header {
    margin-top: 0;
}

.section-icon {
    display: none;
}

/* Hero two-column layout */
.hero-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: center;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
}

.hero-logo img,
.hero-logo .hero-logo__img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    text-align: left;
    max-width: 875px;
    width: 100%;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* vertical center */
}

/* Ensure hero title/description are left-aligned and not centered by auto margins */
.hero-content .main-title {
    text-align: left;
    margin-left: 0;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hero-content[hidden] .main-title,
.hero-content[aria-hidden="true"] .main-title,
.hero-content.hidden .main-title,
.hero-content.is-hidden .main-title {
    margin-bottom: 0 !important;
}

.hero-content .description {
    text-align: left;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Period Links */
.period-links {
    margin-top: 6px;
    margin-bottom: 2px;
}

.period-links__label {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-right: 12px;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}

.period-links__list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    vertical-align: middle;
}

.period-link {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

.period-link:hover {
    background: #fff;
    border-color: #ff6a00;
    color: #ff6a00;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 106, 0, 0.1);
}

.period-link--active {
    background: #ff6a00;
    border-color: #ff6a00;
    color: #fff;
    font-weight: 600;
}

.period-link--active:hover {
    background: #ff7e1f;
    border-color: #ff7e1f;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 106, 0, 0.2);
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 90px 1fr;
        gap: 16px;
        align-items: center;
    }

    .hero-logo {
        width: 90px;
        height: 90px;
        flex-shrink: 0;
    }

    .hero-logo img {
        max-width: 100%;
        height: auto;
    }

    .hero-content {
        padding-left: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        /* vertical center */
    }

    /* Allow global/mobile clamps to apply without override */
    /* .hero-content .main-title { } */

    .hero-content .description {
        font-size: 1rem;
    }

    .hero-content .main-title {
        white-space: normal !important;
        word-break: keep-all;
        overflow-wrap: break-word;
        line-height: 1.3;
    }

    .period-links {
        margin-top: 12px;
        margin-bottom: 10px;
    }

    .period-links__label {
        font-size: 0.85rem;
        margin-right: 0;
        margin-bottom: 10px;
        display: block;
        width: 100%;
        white-space: normal;
    }

    .period-links__list {
        gap: 8px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .period-link {
        padding: 8px 14px;
        font-size: 0.85rem;
        flex: 0 0 auto;
        min-width: fit-content;
        white-space: normal;
        word-break: keep-all;
    }
}

@media (max-width: 480px) {
    .hero-grid {
        grid-template-columns: 70px 1fr;
        gap: 12px;
    }

    .hero-logo {
        width: 70px;
        height: 70px;
    }

    .hero-content .main-title {
        font-size: clamp(1.1rem, 5.5vw, 1.5rem);
        white-space: normal !important;
        word-break: keep-all;
        overflow-wrap: break-word;
        line-height: 1.3;
        max-width: 100%;
        overflow: visible;
    }

    .period-links {
        margin-top: 10px;
        margin-bottom: 8px;
    }

    .period-links__label {
        font-size: 0.8rem;
        margin-bottom: 8px;
        display: block;
        width: 100%;
        white-space: normal;
    }

    .period-links__list {
        gap: 6px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .period-link {
        padding: 7px 12px;
        font-size: 0.8rem;
        flex: 0 0 auto;
        white-space: normal;
        word-break: keep-all;
    }
}

@media (max-width: 480px) {
    .hero-grid {
        grid-template-columns: 70px 1fr;
        gap: 12px;
    }

    .hero-logo {
        width: 70px;
        height: 70px;
    }
}