/* --- Subpage Common --- */
body {
    background-color: #fff;
}

.image-placeholder {
    background-color: #e5e5e5;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 500;
    color: #222;
    margin-bottom: 50px;
    letter-spacing: -1px;
}
.section-title.center {
    text-align: center;
}

/* --- Hero Section --- */
.subpage-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fdfdfd 0%, #f0f4f8 100%);
}

.hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.hero-left {
    flex: 1;
    padding-right: 50px;
}

.hero-left h1 {
    font-size: 46px;
    font-weight: 400;
    line-height: 1.35;
    color: #111;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

.hero-subtext {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.hero-small-image {
    position: absolute;
    bottom: -40px;
    left: 10%;
    width: 300px;
    height: 200px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 3;
}

.hero-right {
    flex: 1.2;
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.main-hero-img {
    width: 100%;
    height: 400px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hero-desc-box {
    text-align: right;
    padding: 20px;
}

.hero-desc-box h3 {
    font-size: 20px;
    color: #337ab7;
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-desc-box p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* --- Target Section --- */
.target-section {
    padding: 100px 0;
    background-color: #fcfcfc;
}

.target-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
}

.target-title h2 {
    font-size: 32px;
    font-weight: 500;
    color: #333;
}

.target-list ul {
    list-style: none;
    padding: 0;
}

.target-list li {
    font-size: 18px;
    color: #444;
    padding: 10px 0;
    position: relative;
    padding-left: 20px;
}

.target-list li::before {
    content: "•";
    color: #337ab7;
    position: absolute;
    left: 0;
    font-size: 20px;
    line-height: 1;
}

/* --- Process Section --- */
.process-section {
    padding: 100px 0;
    background-color: #fff;
}

.process-list {
    display: flex;
    flex-direction: column;
}

.process-item {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.process-item:last-child {
    border-bottom: 1px solid #eee;
}

.process-img {
    width: 250px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 4px;
}

.process-text {
    flex: 1;
}

.process-text h3 {
    font-size: 22px;
    color: #222;
    margin-bottom: 15px;
    font-weight: 500;
}

.process-text h3 span {
    color: #888;
    font-size: 16px;
    font-weight: 400;
    margin-right: 15px;
}

.process-text p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* --- Precautions Section --- */
.precautions-section {
    padding: 120px 0;
    background-color: #f7f6f2; /* Light beige from image */
}

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

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

.precaution-item .num {
    display: block;
    font-size: 24px;
    color: #c9bca6; /* Gold/Beige tone */
    font-weight: 600;
    margin-bottom: 20px;
    font-family: serif;
}

.precaution-item p {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    word-break: keep-all;
}

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

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 2px solid #333;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    overflow: hidden;
}

.faq-question {
    padding: 25px 20px;
    font-size: 18px;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s;
}

.faq-question span {
    color: #337ab7;
    margin-right: 15px;
    font-weight: 600;
}

.faq-question i {
    color: #999;
    transition: transform 0.3s;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-answer {
    padding: 0 45px;
    max-height: 0;
    opacity: 0;
    background-color: #fdfdfd;
    transition: all 0.4s ease;
}

.faq-answer p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    padding: 20px 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding-bottom: 25px;
}

/* --- Sub Footer / Map Section --- */
.sub-footer {
    background-color: #fdfdfd;
    border-top: 1px solid #ebebeb;
    padding: 60px 0;
}

.map-footer-layout {
    display: flex;
    gap: 60px;
    align-items: stretch;
}

.map-area {
    flex: 1.2;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 4px;
}

.footer-info-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-row {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.info-row:last-of-type {
    border-bottom: none;
}

.info-row .label {
    width: 100px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

.info-row .value {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.info-row .tel {
    font-size: 22px;
    color: #337ab7;
    font-weight: 700;
}

.info-row .times span {
    display: inline-block;
    width: 80px;
    color: #333;
}

.info-row .times .holiday {
    color: #d9534f;
}

.footer-bottom-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: #666;
}

.copyright {
    margin-top: 15px;
    font-size: 12px;
    color: #999;
}

/* --- About Hero Section --- */
.about-hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    background-color: #f7f7f7;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.intro-box {
    background: rgba(255, 255, 255, 0.85);
    padding: 60px;
    max-width: 500px;
    border-radius: 4px;
}

.intro-box h2 {
    font-size: 34px;
    line-height: 1.4;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
}

.intro-box h2 strong {
    font-weight: 700;
}

.intro-box p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.intro-box .signature {
    font-size: 16px;
    color: #333;
    text-align: right;
    font-weight: 500;
}

.intro-box .signature span {
    font-size: 14px;
    color: #888;
    margin-right: 10px;
}

/* --- Doctor Profile Section --- */
.doctor-profile-section {
    padding: 120px 0;
    background-color: #fff;
}

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

.small-title {
    display: block;
    font-size: 13px;
    color: #a0a0a0;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.profile-header h2 {
    font-size: 36px;
    font-weight: 500;
    color: #222;
}

.profile-layout {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.profile-image {
    flex: 1;
    height: 600px;
}

.profile-text {
    flex: 1;
    padding-top: 40px;
}

.profile-text h3 {
    font-size: 32px;
    font-weight: 300;
    line-height: 1.4;
    color: #c9bca6;
    margin-bottom: 40px;
}

.doctor-name {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.doctor-name .position {
    font-size: 16px;
    color: #666;
    margin-right: 10px;
}

.doctor-name strong {
    font-size: 24px;
    color: #222;
    margin-right: 20px;
}

.doctor-name .specialty {
    font-size: 15px;
    color: #337ab7;
}

.credentials-list {
    list-style: none;
    padding: 0;
}

.credentials-list li {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
    padding-left: 15px;
    position: relative;
}

.credentials-list li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: #222;
    font-weight: bold;
}

/* --- Facilities Section --- */
.facilities-section {
    padding: 120px 0;
    background-color: #fbfbfb;
    position: relative;
    overflow: hidden;
}

.vertical-text-bg {
    position: absolute;
    right: 5%;
    top: 20%;
    transform: rotate(-90deg);
    transform-origin: right top;
    font-size: 150px;
    color: rgba(0,0,0,0.02);
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
}

.vertical-text-bg.left {
    right: auto;
    left: 5%;
    top: 60%;
    transform: rotate(-90deg);
    transform-origin: left top;
}

.fac-header h2 {
    font-size: 36px;
    font-weight: 500;
    color: #222;
    margin-bottom: 60px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px 60px;
    margin-top: 50px;
}

.masonry-item {
    width: 100%;
}

.fac-img {
    width: 100%;
    height: 500px; /* Increased for vertical photos */
    overflow: hidden;
    background-color: #f5f5f5;
}

.fac-text {
    margin-top: 20px;
}

.fac-text h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.fac-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* --- Clinic Info Section --- */
.clinic-info-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #fdfdfd 0%, #f0f4f8 100%);
}

.info-layout {
    display: flex;
    gap: 80px;
    align-items: center;
}

.info-logo-box {
    flex: 1;
    background-color: #eae6e1;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.info-logo-box .box-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
}

.info-logo-box .box-title span {
    display: block;
    font-weight: 300;
}

.info-data-box {
    flex: 1;
}

.info-data-box .info-header h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

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

.info-table th {
    text-align: left;
    padding: 15px 0;
    width: 120px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
}

.info-table td {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    border-bottom: 1px solid #ddd;
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 120px 0;
    background-color: #f7f6f2;
}

.gallery-grid {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    padding: 0 5%;
}

.gallery-img {
    flex: 1;
    height: 400px;
}

/* --- Implant Special Features Section --- */
.special-features-section {
    padding: 120px 0;
    background-color: #fff;
}

.special-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.special-title {
    text-align: center;
    margin-bottom: 60px;
}

.special-title h2 {
    font-size: 36px;
    font-weight: 500;
    color: #222;
}

.special-items {
    display: flex;
    gap: 40px;
    width: 100%;
}

.s-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.s-item h4 {
    font-size: 20px;
    color: #337ab7;
    margin-bottom: 15px;
    font-weight: 500;
}

.s-item p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.s-img {
    height: 250px;
    width: 100%;
    border-radius: 4px;
}

/* --- Implant Process Section --- */
.implant-process-section {
    padding: 120px 0;
    background-color: #fcfcfc;
}

.ip-layout {
    display: flex;
    gap: 60px;
    align-items: stretch;
}

.ip-image {
    flex: 1;
    height: 500px;
    border-radius: 4px;
}

.ip-steps {
    flex: 1.5;
    display: flex;
    flex-direction: column;
}

.ip-step {
    display: flex;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.ip-step:first-child {
    border-top: 1px solid #eee;
}

.step-label {
    width: 100px;
    font-size: 16px;
    color: #337ab7;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 20px;
    color: #333;
    font-weight: 500;
    margin-bottom: 15px;
}

.step-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* --- Sedation Section --- */
.sedation-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #fdfdfd 0%, #f0f4f8 100%);
}

.sedation-layout {
    display: flex;
    gap: 80px;
    align-items: center;
}

.sedation-info {
    flex: 1.2;
}

.sedation-header {
    margin-bottom: 50px;
}

.sedation-header h2 {
    font-size: 36px;
    color: #222;
    margin-top: 10px;
}

.sedation-list {
    list-style: none;
    padding: 0;
}

.sedation-list li {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sedation-list li strong {
    font-size: 18px;
    color: #337ab7;
}

.sedation-list li span {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.sedation-image {
    flex: 1;
    height: 450px;
    border-radius: 4px;
}

/* --- Insurance Section --- */
.insurance-section {
    padding: 100px 0;
    background-color: #f5f3ef; /* Beige-ish from image */
}

.insurance-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}

.ins-text {
    flex: 1;
}

.ins-text h2 {
    font-size: 40px;
    color: #333;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.4;
}

.ins-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.ins-badge {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    border-radius: 50px;
    font-weight: 500;
}

.ins-img {
    flex: 1;
    height: 350px;
    border-radius: 4px;
}

/* --- Page Submenu --- */
.page-submenu {
    background-color: #fcfcfc;
    border-bottom: 1px solid #eee;
    padding: 0;
}
.page-submenu .container {
    display: flex;
    justify-content: center;
}
.page-submenu a {
    display: inline-block;
    padding: 15px 30px;
    font-size: 15px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.page-submenu a:hover,
.page-submenu a.active {
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #333;
}

/* --- Responsive Layout Adjustments --- */
@media (max-width: 1024px) {
    .hero-layout, .target-layout, .map-footer-layout,
    .profile-layout, .info-layout {
        flex-direction: column;
    }
    
    .hero-left {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .about-hero {
        height: auto;
        padding: 100px 0;
    }
    .about-hero-bg {
        width: 100%;
        opacity: 0.3;
    }
    .about-hero-content {
        justify-content: center;
    }
    
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .masonry-item.right-align {
        margin-top: 0;
        margin-left: 0;
        max-width: 100%;
    }
    .masonry-item {
        max-width: 100%;
    }
    
    .gallery-grid {
        flex-direction: column;
    }
    .gallery-img {
        height: 300px;
    }

    .hero-small-image {
        display: none;
    }
    
    .precaution-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .process-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .special-items {
        flex-direction: column;
    }
    
    .ip-layout, .sedation-layout, .insurance-layout {
        flex-direction: column;
    }
    
    .ip-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .precaution-grid {
        grid-template-columns: 1fr;
    }
    
    .target-layout {
        gap: 30px;
        text-align: center;
    }
    
    .target-list li {
        text-align: left;
        display: inline-block;
    }
}
