/* ===================================
   Subpage Shared Styles
   =================================== */

/* Page Header */
.page-header {
    padding: 180px 0 100px;
    /* Increased top padding for better spacing with fixed header */
    background-color: var(--primary-dark);
    background-image: linear-gradient(135deg, #013328 0%, #001a14 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle Pattern Overlay */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 150%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% -50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    z-index: 0;
}

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

.page-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-md);
    color: var(--white);
    letter-spacing: -0.02em;
}

.page-description {
    font-size: var(--text-xl);
    opacity: 0.9;
    max-width: 600px;
    /* Narrower for better reading */
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: var(--font-light);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-xl);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
}

/* Content Section */
.content-section {
    padding: var(--space-4xl) 0;
}

.content-section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-subtitle {
    display: block;
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

/* Intro Grid (About Page) */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.intro-text {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.intro-image {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.intro-image:hover img {
    transform: scale(1.05);
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.info-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--gray-100);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
    color: var(--primary);
    font-weight: var(--font-bold);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gray-100);
}

.info-card h4 {
    font-size: var(--text-base);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-weight: var(--font-semibold);
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    padding: 0.625rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: start;
    gap: 0.75rem;
    line-height: 1.7;
    font-size: var(--text-base);
}

.info-card li::before {
    content: '•';
    color: var(--primary);
    font-weight: var(--font-bold);
    font-size: 1.2em;
    flex-shrink: 0;
    margin-top: -0.1em;
}

/* Timeline - Redesigned with Interactive Animations */
.timeline {
    position: relative;
    padding: var(--space-2xl) 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 140px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    opacity: 0.3;
    transform: scaleY(0);
    transform-origin: top;
}

.timeline.timeline-active::before {
    animation: drawLine 1.5s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes drawLine {
    to {
        transform: scaleY(1);
    }
}

.timeline-item {
    display: flex;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    position: relative;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-30px);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Staggered animation for timeline items - only when active */
.timeline.timeline-active .timeline-item:nth-child(1) {
    animation: slideInTimeline 0.6s ease-out 0.5s forwards;
}

.timeline.timeline-active .timeline-item:nth-child(2) {
    animation: slideInTimeline 0.6s ease-out 0.7s forwards;
}

.timeline.timeline-active .timeline-item:nth-child(3) {
    animation: slideInTimeline 0.6s ease-out 0.9s forwards;
}

.timeline.timeline-active .timeline-item:nth-child(4) {
    animation: slideInTimeline 0.6s ease-out 1.1s forwards;
}

.timeline.timeline-active .timeline-item:nth-child(5) {
    animation: slideInTimeline 0.6s ease-out 1.3s forwards;
}

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

.timeline-year {
    flex-shrink: 0;
    width: 120px;
    text-align: right;
    padding-right: var(--space-lg);
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    padding-top: 0.25rem;
    opacity: 0;
    transform: scale(0.8);
}

.timeline.timeline-active .timeline-item:nth-child(1) .timeline-year {
    animation: popIn 0.5s ease-out 0.6s forwards;
}

.timeline.timeline-active .timeline-item:nth-child(2) .timeline-year {
    animation: popIn 0.5s ease-out 0.8s forwards;
}

.timeline.timeline-active .timeline-item:nth-child(3) .timeline-year {
    animation: popIn 0.5s ease-out 1.0s forwards;
}

.timeline.timeline-active .timeline-item:nth-child(4) .timeline-year {
    animation: popIn 0.5s ease-out 1.2s forwards;
}

.timeline.timeline-active .timeline-item:nth-child(5) .timeline-year {
    animation: popIn 0.5s ease-out 1.4s forwards;
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.timeline-dot {
    position: absolute;
    left: 133px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--white);
    border-radius: 50%;
    border: 4px solid var(--primary);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(1, 51, 40, 0.1);
    opacity: 0;
    transform: scale(0);
}

.timeline.timeline-active .timeline-item:nth-child(1) .timeline-dot {
    animation: dotPulse 0.6s ease-out 0.7s forwards;
}

.timeline.timeline-active .timeline-item:nth-child(2) .timeline-dot {
    animation: dotPulse 0.6s ease-out 0.9s forwards;
}

.timeline.timeline-active .timeline-item:nth-child(3) .timeline-dot {
    animation: dotPulse 0.6s ease-out 1.1s forwards;
}

.timeline.timeline-active .timeline-item:nth-child(4) .timeline-dot {
    animation: dotPulse 0.6s ease-out 1.3s forwards;
}

.timeline.timeline-active .timeline-item:nth-child(5) .timeline-dot {
    animation: dotPulse 0.6s ease-out 1.5s forwards;
}

@keyframes dotPulse {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }

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

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: var(--space-xl) var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
    border-left: 4px solid var(--primary);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    opacity: 0.1;
    transition: width 0.4s ease-out;
}

.timeline-content:hover::before {
    width: 100%;
}

.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-left-color: var(--primary-dark);
    border-left-width: 6px;
}

.timeline-content h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.timeline-content p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: stretch;
    /* Stretch to matching height */
}

.location-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
    height: 100%;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    background: var(--bg-tertiary);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    height: 100%;
    justify-content: center;
}

.location-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.location-icon {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.location-item h4 {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    font-weight: var(--font-bold);
}

.location-item p {
    font-size: var(--text-base);
    color: var(--text-primary);
    font-weight: var(--font-medium);
    margin: 0;
}

.location-item .highlight {
    color: var(--error);
    font-weight: var(--font-bold);
    display: block;
    margin-top: 0.25rem;
}

/* Facilities Cards */
.facilities-grid {
    gap: var(--space-xl);
}

.facility-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}

.facility-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.facility-image {
    height: 240px;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.facility-card:hover .facility-image img {
    transform: scale(1.05);
}

.facility-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin: var(--space-lg) var(--space-lg) var(--space-xs);
    color: var(--text-primary);
}

.facility-description {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* Doctor Card - Clean Style */
.doctor-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: stretch;
    padding: 0;
    gap: 0;
    transition: all var(--transition-base);
    margin-bottom: var(--space-3xl);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.doctor-image {
    width: 35%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-info {
    padding: var(--space-3xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doctor-name {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-xs);
    color: var(--primary);
}

.doctor-title {
    font-size: var(--text-lg);
    color: var(--text-tertiary);
    margin-bottom: var(--space-2xl);
    font-weight: var(--font-medium);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--gray-100);
}

.doctor-credentials h4 {
    font-size: var(--text-base);
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    font-weight: var(--font-bold);
}

.doctor-credentials h4:first-child {
    margin-top: 0;
}

.doctor-credentials ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-sm) 0;
}

.doctor-credentials li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: var(--text-base);
    display: flex;
    align-items: start;
    gap: 0.75rem;
    line-height: 1.6;
}

.doctor-credentials li::before {
    content: '•';
    color: var(--primary);
    font-weight: var(--font-bold);
    font-size: 1.2em;
    flex-shrink: 0;
    margin-top: -0.1em;
}

.doctor-credentials p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.doctor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: var(--space-lg);
}

.specialty-tag {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(1, 51, 40, 0.2);
}

.specialty-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 51, 40, 0.3);
}

/* CTA Section Update */
.cta-section {
    background-color: var(--bg-tertiary);
    background-image: none;
    /* Remove gradient */
    color: var(--text-primary);
    text-align: center;
    padding: var(--space-4xl) 0;
    border-top: 1px solid var(--gray-200);
}

.cta-section h2 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.cta-section p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    opacity: 1;
}

/* Legal Content */
.legal-content {
    background: var(--white);
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    /* Softer shadow */
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--gray-100);
}

/* Responsive */
@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

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

    .timeline::before {
        left: 60px;
    }

    .timeline-item {
        flex-direction: row;
        gap: var(--space-md);
    }

    .timeline-year {
        width: 80px;
        font-size: var(--text-3xl);
        padding-right: var(--space-sm);
    }

    .timeline-dot {
        left: 53px;
        top: 6px;
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding: var(--space-lg) var(--space-xl);
    }

    .doctor-card {
        flex-direction: column;
    }

    .doctor-image {
        width: 100%;
        height: 300px;
        min-height: auto;
    }

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

    .location-details {
        height: auto;
    }

    .location-map {
        min-height: 300px;
    }
}

/* ===================================
   Medical Tabs (Internal Medicine)
   =================================== */
.medical-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.tab-btn {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-secondary);
}

.tab-btn svg {
    color: var(--gray-400);
    transition: all var(--transition-base);
}

.tab-btn span {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
}

.tab-btn:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover svg {
    color: var(--primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(1, 51, 40, 0.3);
}

.tab-btn.active svg {
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.tab-content-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.tab-content-header h2 {
    font-size: var(--text-4xl);
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.tab-content-header p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.symptom-treatment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

.symptom-card,
.treatment-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
}

.symptom-card h3,
.treatment-card h3 {
    font-size: var(--text-2xl);
    color: var(--primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gray-100);
}

.symptom-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.symptom-card li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: var(--text-base);
    display: flex;
    align-items: start;
    gap: 0.75rem;
    line-height: 1.6;
}

.symptom-card li::before {
    content: '•';
    color: var(--primary);
    font-weight: var(--font-bold);
    font-size: 1.2em;
    flex-shrink: 0;
}

.disease-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.disease-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.625rem 1.25rem;
    border-radius: 50px;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
    border: 1px solid var(--gray-200);
}

.disease-tag:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(1, 51, 40, 0.2);
}

@media (max-width: 1024px) {
    .medical-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .symptom-treatment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .medical-tabs {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Reservation Page
   =================================== */
.reservation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3xl);
    margin-bottom: var(--space-4xl);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.reservation-card {
    background: var(--white);
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--gray-100);
    text-align: center;
    transition: all var(--transition-base);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reservation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.phone-card {
    border-color: #3b5998;
}

.phone-card:hover {
    border-color: #3b5998;
    box-shadow: 0 12px 40px rgba(59, 89, 152, 0.2);
}

.online-card {
    border-color: #03c75a;
}

.online-card:hover {
    border-color: #03c75a;
    box-shadow: 0 12px 40px rgba(3, 199, 90, 0.2);
}

.reservation-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
}

.phone-card .reservation-icon {
    background: rgba(59, 89, 152, 0.1);
    color: #3b5998;
}

.online-card .reservation-icon {
    background: rgba(3, 199, 90, 0.1);
    color: #03c75a;
}

.reservation-card h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.reservation-desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    min-height: 60px;
}

.phone-number {
    margin: var(--space-lg) 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-number a {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: #3b5998;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.naver-badge {
    margin: var(--space-lg) 0;
    display: inline-block;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-text {
    background: #03c75a;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
}

.reservation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all var(--transition-base);
    margin-top: auto;
}

.reservation-btn svg {
    flex-shrink: 0;
}

.phone-btn {
    background: #3b5998;
    color: var(--white);
}

.phone-btn:hover {
    background: #2d4373;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(59, 89, 152, 0.3);
}

.online-btn {
    background: #03c75a;
    color: var(--white);
}

.online-btn:hover {
    background: #02a047;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(3, 199, 90, 0.3);
}

.reservation-hours {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    margin-top: var(--space-lg);
}

.reservation-info {
    background: var(--bg-secondary);
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-3xl);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.reservation-info h3 {
    font-size: var(--text-2xl);
    color: var(--primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.reservation-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reservation-info li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: var(--text-base);
    display: flex;
    align-items: start;
    gap: 0.75rem;
    line-height: 1.7;
}

.reservation-info li::before {
    content: '✓';
    color: var(--primary);
    font-weight: var(--font-bold);
    font-size: 1.2em;
    flex-shrink: 0;
}

.operating-hours-section {
    background: var(--white);
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    max-width: 1000px;
    margin: 0 auto;
}

.operating-hours-section h3 {
    font-size: var(--text-2xl);
    color: var(--primary);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.hours-item {
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--gray-100);
}

.hours-item.closed {
    background: var(--gray-100);
    opacity: 0.7;
}

.hours-item .day {
    display: block;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.hours-item .time {
    display: block;
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--primary);
}

.hours-item.closed .time {
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .reservation-grid {
        grid-template-columns: 1fr;
    }

    .hours-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ===================================
   Location Page Redesign
   =================================== */
.location-map-container {
    margin-bottom: var(--space-4xl);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    text-align: center;
    padding: var(--space-3xl);
}

.map-placeholder svg {
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.map-placeholder p {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-xs);
}

.map-placeholder small {
    font-size: var(--text-sm);
    opacity: 0.7;
}

.location-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-4xl);
}

.location-info-card {
    background: var(--white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
    text-align: center;
    transition: all var(--transition-base);
}

.location-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.info-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.location-info-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--primary);
    margin-bottom: var(--space-md);
}

.info-main {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.info-main a {
    color: var(--primary);
    text-decoration: none;
}

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

.info-sub {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

.transportation-section {
    margin-bottom: var(--space-4xl);
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--primary);
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.transport-card {
    background: var(--white);
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--gray-100);
    transition: all var(--transition-base);
}

.transport-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.subway-card {
    border-color: #00a84d;
}

.subway-card:hover {
    border-color: #00a84d;
    box-shadow: 0 8px 24px rgba(0, 168, 77, 0.2);
}

.bus-card {
    border-color: #3d5afe;
}

.bus-card:hover {
    border-color: #3d5afe;
    box-shadow: 0 8px 24px rgba(61, 90, 254, 0.2);
}

.transport-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.subway-card .transport-icon {
    background: rgba(0, 168, 77, 0.1);
    color: #00a84d;
}

.bus-card .transport-icon {
    background: rgba(61, 90, 254, 0.1);
    color: #3d5afe;
}

.transport-card h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.transport-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.transport-card li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.6;
}

.line-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-right: 0.5rem;
}

.line-2 {
    background: #00a84d;
}

.line-9 {
    background: #bdb092;
}

.bus-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-right: 0.5rem;
}

.bus-badge.blue {
    background: #3d5afe;
}

.bus-badge.green {
    background: #53b332;
}

@media (max-width: 1024px) {
    .location-info-grid {
        grid-template-columns: 1fr;
    }
    
    .transport-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Enhanced Responsive Design for Subpages
   =================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    /* Medical Tabs */
    .medical-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Symptom Treatment Grid */
    .symptom-treatment-grid {
        grid-template-columns: 1fr;
    }
    
    /* Reservation Grid */
    .reservation-grid {
        grid-template-columns: 1fr;
    }
    
    .reservation-card {
        min-height: auto;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* Page Header */
    .page-title {
        font-size: var(--text-3xl);
    }
    
    .page-description {
        font-size: var(--text-base);
    }
    
    /* Medical Tabs */
    .medical-tabs {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .tab-btn {
        padding: var(--space-md);
        flex-direction: row;
        gap: var(--space-sm);
    }
    
    .tab-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .tab-btn span {
        font-size: var(--text-sm);
    }
    
    /* Tab Content */
    .tab-content-header h2 {
        font-size: var(--text-2xl);
    }
    
    .tab-content-header p {
        font-size: var(--text-base);
    }
    
    /* Symptom Cards */
    .symptom-card, .treatment-card {
        padding: var(--space-lg);
    }
    
    .symptom-card h3, .treatment-card h3 {
        font-size: var(--text-lg);
    }
    
    .disease-tags {
        gap: 0.5rem;
    }
    
    .disease-tag {
        padding: 0.5rem 1rem;
        font-size: var(--text-xs);
    }
    
    /* Info Cards */
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: var(--space-lg);
    }
    
    .info-card h3 {
        font-size: var(--text-lg);
    }
    
    /* Reservation Cards */
    .reservation-card {
        padding: var(--space-xl);
    }
    
    .reservation-card h2 {
        font-size: var(--text-xl);
    }
    
    .reservation-icon {
        width: 80px;
        height: 80px;
    }
    
    .phone-number {
        min-height: 60px;
    }
    
    .phone-number a {
        font-size: var(--text-2xl);
    }
    
    .naver-badge {
        min-height: 60px;
    }
    
    /* Reservation Info */
    .reservation-info {
        padding: var(--space-xl);
    }
    
    .reservation-info h3 {
        font-size: var(--text-xl);
    }
    
    /* Operating Hours */
    .operating-hours-section {
        padding: var(--space-xl);
    }
    
    .hours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .hours-item {
        padding: var(--space-md);
    }
    
    .hours-item .day {
        font-size: var(--text-sm);
    }
    
    .hours-item .time {
        font-size: var(--text-base);
    }
    
    /* CTA Section */
    .cta-section h2 {
        font-size: var(--text-2xl);
    }
    
    .cta-section p {
        font-size: var(--text-base);
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    /* Page Header */
    .page-title {
        font-size: var(--text-2xl);
    }
    
    .breadcrumb {
        font-size: var(--text-xs);
    }
    
    /* Timeline */
    .timeline-year {
        font-size: var(--text-2xl);
        width: 80px;
    }
    
    .timeline::before {
        left: 90px;
    }
    
    .timeline-dot {
        left: 83px;
    }
    
    .timeline-content {
        padding: var(--space-md) var(--space-lg);
    }
    
    .timeline-content h3 {
        font-size: var(--text-base);
    }
    
    .timeline-content p {
        font-size: var(--text-sm);
    }
    
    /* Doctor Cards */
    .doctor-info h3 {
        font-size: var(--text-lg);
    }
    
    .doctor-info .title {
        font-size: var(--text-sm);
    }
    
    .specialty-tag {
        padding: 0.5rem 1rem;
        font-size: var(--text-xs);
    }
    
    /* Medical Tabs */
    .tab-btn {
        padding: var(--space-sm) var(--space-md);
    }
    
    /* Reservation */
    .reservation-card {
        padding: var(--space-lg);
    }
    
    .reservation-icon {
        width: 64px;
        height: 64px;
    }
    
    .reservation-card h2 {
        font-size: var(--text-lg);
    }
    
    .phone-number a {
        font-size: var(--text-xl);
    }
    
    .reservation-btn {
        padding: 0.875rem 1.5rem;
        font-size: var(--text-sm);
    }
    
    /* Hours Grid */
    .hours-grid {
        grid-template-columns: 1fr;
    }
    
    /* Location */
    .location-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .location-item h4 {
        font-size: var(--text-base);
    }
    
    .location-item p {
        font-size: var(--text-sm);
    }
}

/* ===================================
   Facilities Page Mobile Responsive
   =================================== */

@media (max-width: 1024px) {
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .facility-card {
        padding: 0;
    }
    
    .facility-image {
        height: 200px;
    }
    
    .facility-title {
        font-size: var(--text-lg);
        padding: var(--space-md) var(--space-lg);
    }
    
    .facility-description {
        font-size: var(--text-sm);
        padding: 0 var(--space-lg) var(--space-lg);
    }
}

@media (max-width: 480px) {
    .facility-image {
        height: 180px;
    }
    
    .facility-title {
        font-size: var(--text-base);
        padding: var(--space-sm) var(--space-md);
    }
    
    .facility-description {
        font-size: var(--text-sm);
        padding: 0 var(--space-md) var(--space-md);
    }
}

/* ===================================
   Doctors Page Mobile Responsive
   =================================== */

@media (max-width: 768px) {
    .doctor-card {
        flex-direction: column;
        text-align: center;
    }
    
    .doctor-image {
        width: 100%;
        height: 300px;
        min-height: auto;
    }
    
    .doctor-info {
        padding: var(--space-xl);
    }
    
    .doctor-info h3 {
        font-size: var(--text-xl);
    }
    
    .doctor-info .title {
        font-size: var(--text-base);
    }
    
    .specialty-tags {
        justify-content: center;
    }
    
    .doctor-credentials {
        text-align: left;
    }
    
    .doctor-credentials h4 {
        font-size: var(--text-base);
    }
    
    .doctor-credentials ul li {
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {
    .doctor-image {
        height: 250px;
    }
    
    .doctor-info {
        padding: var(--space-lg);
    }
    
    .doctor-info h3 {
        font-size: var(--text-lg);
    }
    
    .specialty-tag {
        padding: 0.5rem 1rem;
        font-size: var(--text-xs);
    }
}

/* ===================================
   CTA Section - Add Button Gap
   =================================== */
.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Medical Service Pages Mobile Responsive
   (Internal Medicine, Health Checkup, Chronic Disease, Vaccination)
   =================================== */

@media (max-width: 1024px) {
    /* Medical Tabs - Already handled above */
    
    /* Info Cards Grid */
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Info Cards Grid */
    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .info-card {
        padding: var(--space-xl);
    }
    
    .info-card h3 {
        font-size: var(--text-xl);
    }
    
    .info-card h4 {
        font-size: var(--text-sm);
    }
    
    .info-card li {
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {
    .info-card {
        padding: var(--space-lg);
    }
    
    .info-card h3 {
        font-size: var(--text-lg);
    }
}

/* ===================================
   Terms & Privacy Pages Mobile Responsive
   =================================== */

@media (max-width: 768px) {
    .terms-content,
    .privacy-content {
        padding: var(--space-lg);
    }
    
    .terms-content h2,
    .privacy-content h2 {
        font-size: var(--text-xl);
        margin-top: var(--space-xl);
    }
    
    .terms-content h3,
    .privacy-content h3 {
        font-size: var(--text-lg);
        margin-top: var(--space-lg);
    }
    
    .terms-content p,
    .privacy-content p,
    .terms-content li,
    .privacy-content li {
        font-size: var(--text-sm);
        line-height: 1.7;
    }
    
    .terms-content ul,
    .privacy-content ul {
        padding-left: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .terms-content,
    .privacy-content {
        padding: var(--space-md);
    }
    
    .terms-content h2,
    .privacy-content h2 {
        font-size: var(--text-lg);
    }
    
    .terms-content h3,
    .privacy-content h3 {
        font-size: var(--text-base);
    }
}

/* ===================================
   About Page - Core Values Mobile Responsive
   =================================== */

@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        max-width: 400px;
        margin: 0 auto;
    }
    
    .value-card {
        padding: var(--space-2xl);
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--space-md);
    }
    
    .value-card h3 {
        font-size: var(--text-xl);
        margin-bottom: var(--space-sm);
    }
    
    .value-card p {
        font-size: var(--text-sm);
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .values-grid {
        max-width: 100%;
    }
    
    .value-card {
        padding: var(--space-xl);
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
    }
    
    .value-card h3 {
        font-size: var(--text-lg);
    }
}
