/* ===== CSS VARIABLES ===== */
:root {
    --main-color: #094877;
    --text-color: #666666;
    --secondary-color: #f5f5dc; /* สีครีม (Beige) */
    --secondary-light: #fff; /* สีครีมอ่อน */
    --secondary-dark: #d8be66; /* สีครีมเข้ม */
}

/* ===== GLOBAL STYLES ===== */
* {
    transition: 0.5s;
}

body {
    font-family: 'Noto Sans Thai', sans-serif;
}

a {
    transition: 0.3s;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

button:focus {
    outline: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1024px;
}

.hh-text {
    color: var(--secondary-dark);
    font-weight: 500;
}

.card-gray {
    background-color: #6c757d!important;
}

/* ===== HEADER STYLES ===== */
header {
    position: fixed;
    width: 100%;
    padding-top: 8px;
    background-color: var(--main-color);
    z-index: 100;
    height: 80px;
    border-bottom: 2px solid var(--secondary-dark);
}

header.scrolled {
    height: 40px;
}

.header-container {
    max-width: 1280px;
    padding: 0;
    margin: auto;
    position: relative;
}

.logo {
    width: 160px;
    display: block;
}

.top-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border-radius: 100px;
    position: absolute;
    width: 100%;
    padding: 8px 16px;
    top: 100%;
    margin-top: 8px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.top-menu.scrolled {
    margin-top: -24px;
}

.main-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.main-menu ul li {
    display: inline-block;
}

.main-menu ul li a {
    color: #111;
    padding: 0 16px;
}

.main-menu li.app-button a {
    background-color: var(--main-color);
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    padding: 10px 16px;
    margin-left: 10px;
}

.main-menu li.current-menu-item a {
    color: var(--main-color);
    font-weight: 700;
}

.main-menu li.menu-item-has-children {
	position: relative;
}

.main-menu li.menu-item-has-children:after {
	content: "\f107";
	font-family: 'Font Awesome 5 Free';
	font-weight: 900;
	position: absolute;
	right: 0;
}

.main-menu li.menu-item-has-children ul.sub-menu {
	display: none;
	position: absolute;
	padding: 10px;
	background-color: #fff;
	border-radius: 8px;
    min-width: 200px;
    text-align: left;
}

.main-menu li.menu-item-has-children ul.sub-menu li {
    display: block;
}

.main-menu li.menu-item-has-children ul.sub-menu li a {
    padding: 6px;
}

.main-menu li.menu-item-has-children:hover ul.sub-menu {
	display: block;
}

.main-top-header {
    color: #fff;
}

.top-text-time {
    margin: 0;
    text-align: right;
    font-size: 14px;
    padding-right: 32px;
}

/* ===== ANIMATIONS ===== */
@keyframes lineGrow {
    from { width: 0; }
    to { width: 200px; }
}

@keyframes leftLineGrow {
    0% { height: 0; }
    100% { height: 100%; }
}

@keyframes bottomLineGrow {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes socialGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(9, 72, 119, 0.2); }
    50% { box-shadow: 0 6px 25px rgba(9, 72, 119, 0.4); }
}

/* ===== SWIPER STYLES ===== */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
}

.swiper-pagination-bullet-active {
    background: var(--main-color);
    opacity: 1;
}

.swiper-top .swiper-slide img {
    width: 100%;
	height: auto;
}

.swiper-inner-product img {
    border-radius: 32px;
}

.swiper-reviews {
    margin-bottom: 30px;
}

.swiper-reviews .swiper-button-next,
.swiper-reviews .swiper-button-prev {
    background: var(--main-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white !important;
}

.swiper-reviews .swiper-button-next:after,
.swiper-reviews .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.swiper-reviews .swiper-button-next:hover,
.swiper-reviews .swiper-button-prev:hover {
    background: #0a5a8a;
}

.swiper-reviews .swiper-pagination-bullet {
    background: var(--main-color);
    opacity: 0.3;
    width: 12px;
    height: 12px;
}

.swiper-reviews .swiper-pagination-bullet-active {
    opacity: 1;
}

.swiper-reviews .swiper-pagination {
    position: relative;
}

.swiper-reviews {
    max-width: 600px;
    margin-bottom: auto;
}

.swiper-reviews .swiper-slide {
    padding: 32px;
}

.swiper-reviews .swiper-slide img {
    border-radius: 24px;
}

/* ===== SECTIONS ===== */
.section-content {
    padding: 60px 0;
}

.section-second {
    background-color: #f8f8fa;
}

.section-cover {
    height: 300px;
    background-repeat: no-repeat;
    background-size: cover;
}

.section-cover h2 {
    font-weight: 600;
    color: #fff;
    margin: 0;
    position: relative;
    display: inline-block;
    padding: 20px 30px 20px 20px;
    overflow: hidden;
    font-size: 48px;
}

.section-cover h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to top, var(--secondary-dark), #ffd700);
    animation: leftLineGrow 1.5s ease-out forwards;
    animation-delay: 0.3s;
}

.section-cover h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-dark), #ffd700, var(--secondary-light));
    animation: bottomLineGrow 2s ease-out forwards;
    animation-delay: 0.8s;
}

.section-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    background-color: rgba(0,0,0,0.3);
    padding-bottom: 30px;
}

.cover-content {
    background-color: rgba(0,0,0,0.4);
    height: 100%;
    display: flex;
    align-items: center;
}

/* ===== MAIN TITLE ===== */
.main-title {
    text-align: center;
}

.main-title h2 {
    color: var(--main-color);
    margin-block: 16px;
    font-size: 40px;
    font-weight: 500;
}

.main-title h2:after {
    content: "";
    display: block;
    margin: auto;
    margin-top: 16px;
    width: 80px;
    height: 3px;
    background-color: wheat;
}

.main-title p {
    margin: 16px 0;
    color: var(--text-color);
}

.gold-line {
    height: 3px;
    width: 0;
    background-color: wheat;
    margin: 16px 0;
    animation: lineGrow 1s ease-out forwards;
}

/* ===== CONTENT SECTIONS ===== */
.main-content {
    margin: 32px 0;
}

.main-content img {
    border-radius: 32px;
}

.main-content p {
    margin: 16px 0;
    color: var(--text-color);
}

.main-content h3 {
    font-size: 24px;
    font-weight: 600;
}

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

/* ===== PRODUCT STYLES ===== */
.product-swiper {
    max-width: 960px;
    margin: auto;
}

.product-swiper .swiper-slide {
    height: 420px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    margin-block: 60px;
}

.product-swiper .swiper-slide .product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 20px;
    text-align: center;
}

.product-container {
    margin-top: 60px;
}

.product-card {
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: rgba(100, 100, 111, 0.1) 0px 7px 29px 0px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: rgba(100, 100, 111, 0.3) 0px 8px 32px 0px;
}

.product-image img {
    height: 320px;
    width: 100%;
    object-fit: cover;
}

.product-info {
    padding: 32px;
}

.product-title {
    color: var(--main-color);
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.product-subtitle {
    color: var(--main-color);
    font-size: 18px;
    font-weight: 500;
    margin: 5px 0 15px;
}

.product-description {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 20px;
}

.product-size {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
}

.size-label {
    color: #888;
    font-size: 16px;
}

.size-value {
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.product-price {
    font-size: 32px;
    color: var(--main-color);
    font-weight: 600;
}

.inner-product-info .product-title {
    font-size: 30px;
}

.inner-product-title h2 {
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn-details {
    background: #02b902;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-details:hover {
    background: #029502;
    color: white;
    text-decoration: none;
}

.buy-button {
    padding: 8px 32px;
    background-color: #ca090a;
    color: #fff;
    border-radius: 12px;
    font-size: 18px;
    display: inline-block;
    margin-top: 16px;
}

.buy-button:hover {
    background-color: #a81818;
}

/* ===== SERVICE STYLES ===== */
.service-container {
    margin-top: 40px;
}

.service-card {
    background-color: var(--main-color);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.service-image {
    position: relative;
    overflow: hidden;
    width: 50%;
}

.service-image img {
    width: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 0 5%;
    width: 50%;
    color: #fff;
}

.service-content h3 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 16px;
}

.service-content p {
    color: #fff;
    font-size: 16px;
    margin-bottom: 24px;
}

.service-btn {
    display: inline-block;
    background: var(--secondary-dark);
    color: #fff;
    padding: 8px 24px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background: #fff;
    color: var(--main-color);
    box-shadow: 0 0 0 2px var(--main-color);
}

/* ===== NEWS STYLES ===== */
.news-card {
    display: block;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    margin-bottom: 32px;
}

.news-card img {
    height: 240px;
    object-fit: cover;
    object-position: center;
}

.news-card .news-card-content {
    padding: 16px;
}

.news-card h3 {
    color: var(--main-color);
    font-size: 20px;
    font-weight: 600;
}

.news-card p {
    color: var(--text-color);
    font-size: 14px;
}

.news-card .readmore-icon {
    text-align: right;
    font-size: 12px;
    color: #ccc;
}

.news-card:hover {
    box-shadow: rgba(100, 100, 111, 0.4) 0px 8px 32px 0px;
}

.news-card:hover .readmore-icon {
    color: var(--main-color);
}

.news-card:hover .readmore-icon i {
    margin-left: 5px;
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 15px;
    height: auto;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.review-stars i {
    color: #ffc107;
    font-size: 18px;
}

.review-content {
    flex-grow: 1;
    margin-bottom: 20px;
}

.review-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    font-style: italic;
    margin: 0;
}

.review-author {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--main-color);
    margin: 0 0 5px 0;
}

.author-info span {
    font-size: 14px;
    color: #666;
}

/* ===== VIDEO SECTION ===== */
.vdo-mockup {
    margin-top: 40px;
}

.vdo-mockup iframe {
    border-radius: 16px;
    width: 100%;
    aspect-ratio: 4/3;
}

/* ===== WAVE BACKGROUND ===== */
.wave-background {
    position: relative;
    height: 480px;
    background: linear-gradient(to bottom, #fff, #e0f7ef);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
    padding-bottom: 100px;
}

.wave-background h1,
.wave-background p,
.wave-background button {
    position: relative;
    z-index: 1;
}

.wave-background button {
    background: var(--main-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 32px;
    cursor: pointer;
    margin-top: 16px;
}

.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
}

/* ===== SOCIAL ICONS ===== */
.social-icon-list {
    position: relative;
    z-index: 5;
}

.social-icon-list a {
    display: inline-block;
    color: #fff;
    background: var(--main-color);
    padding: 10px 16px 10px 10px;
    border-radius: 50px;
    margin: 5px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(9, 72, 119, 0.2);
}

.social-icon-list a:nth-child(1) { animation-delay: 0s; }
.social-icon-list a:nth-child(2) { animation-delay: 0.5s; }
.social-icon-list a:nth-child(3) { animation-delay: 1s; }

.social-icon-list a:hover {
    animation: socialFloat 1.5s ease-in-out infinite, socialGlow 2s ease-in-out infinite;
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, #0a5a8a, var(--main-color));
}

.social-icon-list a.line {
    background: linear-gradient(135deg, #03c755, #02a048);
}

.social-icon-list a.line:hover {
    background: linear-gradient(135deg, #02a048, #03c755);
}

.social-icon-list a.line::before {
    background: linear-gradient(90deg, var(--secondary-color), #e8f5e8);
}

.social-icon-list a i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff, var(--secondary-light));
    color: var(--main-color);
    border-radius: 50px;
    margin-right: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-icon-list a:hover i {
    background: linear-gradient(135deg, var(--secondary-color), #fff);
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-icon-list a.line i {
    color: #03c755;
}

.social-icon-list a.line:hover i {
    color: #02a048;
}

/* ===== PARTNERS ===== */
.partner-box {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 64px;
}

.partner-box img {
    width: calc(20% - 32px);
    border-radius: 16px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

/* ===== FOOTER ===== */
.footer {
    background: #333;
    color: #ddd;
    padding: 40px 20px 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column {
    flex: 1 1 200px;
    margin: 10px;
}

.footer-logo {
    font-size: 20px;
}

.footer-column h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.footer-column ul li:hover {
    color: #02b902;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #555;
    text-align: center;
    color: #ddd;
    padding: 15px 0;
    font-size: 14px;
    margin-top: 20px;
}

/* ===== FLOAT ICONS ===== */
.float-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

.float-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 100%;
    color: #fff;
    background-color: var(--main-color);
    width: 52px;
    height: 52px;
    border: 2px solid #fff;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    margin-bottom: 10px;
    overflow: hidden;
}

.float-icon a img {
    width: 100%;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-container {
    background-color: #f8f9fa;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    margin-bottom: 0;
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #02b902;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #018c01;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* ===== MAP ===== */
.map-container {
    margin: 32px 0;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 32px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

/* ===== DOCTOR CREDENTIALS ===== */
.doctor-credentials {
    padding: 60px 0;
}

.credential-card {
    background: #fff;
    border-radius: 32px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(9, 72, 119, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.credential-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.credential-header i {
    font-size: 28px;
    color: var(--main-color);
    margin-right: 15px;
    background: linear-gradient(135deg, var(--secondary-light), #fff);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(9, 72, 119, 0.1);
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
}

.credential-header h3 {
    color: var(--main-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.specialty-item {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-left: 4px solid var(--main-color);
}

.specialty-item h4 {
    color: var(--main-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.specialty-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.specialty-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specialty-item ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.specialty-item ul li::before {
    content: '•';
    color: var(--secondary-dark);
    position: absolute;
    left: 0;
    font-size: 16px;
}

.education-item {
    display: block;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    position: relative;
}

.education-year {
    min-width: 80px;
    background: var(--main-color);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-right: 15px;
    margin-bottom: 16px;
}

.education-details {
    flex: 1;
}

.education-details h4 {
    color: var(--main-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.education-details p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.gpa {
    color: var(--secondary-dark);
    font-size: 12px;
    font-weight: 600;
}

.university-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.university-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certification-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.cert-icon {
    margin-right: 15px;
}

.cert-icon i {
    font-size: 20px;
    color: var(--secondary-dark);
    background: linear-gradient(135deg, #ffd700, var(--secondary-color));
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.cert-details h4 {
    color: var(--main-color);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cert-details p {
    color: #666;
    font-size: 13px;
    margin: 0;
}

/* ===== DOCTORS GRID ===== */
.doctors-grid {
    margin-top: 50px;
}

.doctor-card {
    background: linear-gradient(135deg, #fff, var(--secondary-light));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(9, 72, 119, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border: 1px solid rgba(245, 245, 220, 0.5);
    position: relative;
}

.doctor-card:hover {
    box-shadow: 0 20px 40px rgba(9, 72, 119, 0.2);
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), var(--secondary-dark));
}

.doctor-image {
    position: relative;
    overflow: hidden;
}

.doctor-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.doctor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(9, 72, 119, 0.8));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-social {
    display: flex;
    gap: 15px;
}

.social-link {
    background: white;
    color: var(--main-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.doctor-info {
    padding: 25px;
}

.doctor-specialty {
    margin-bottom: 15px;
}

.specialty-badge {
    display: inline-block;
    padding: 6px 15px;
    background: var(--main-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specialty-badge.dermatology {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.specialty-badge.physiotherapy {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.specialty-badge.internal {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.specialty-badge.wellness {
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    color: #2d3436;
}

.specialty-badge.surgery {
    background: linear-gradient(135deg, #fd79a8, #e84393);
}

.doctor-info h3 {
    color: var(--main-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.doctor-info h4 {
    color: var(--secondary-dark);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.doctor-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.doctor-experience {
    margin-bottom: 20px;
}

.experience-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.experience-item i {
    color: var(--secondary-dark);
    font-size: 14px;
    margin-right: 8px;
    width: 16px;
}

.experience-item span {
    color: #666;
    font-size: 12px;
}

.doctor-actions {
    display: flex;
    gap: 10px;
}

.btn-view-profile,
.btn-appointment {
    flex: 1;
    padding: 10px 15px;
    border-radius: 25px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-view-profile {
    color: var(--main-color);
    background-color: white;
    border: 2px solid var(--main-color);
}

.btn-view-profile:hover {
    background-color: var(--main-color);
    color: white;
}

.btn-appointment {
    background-color: var(--main-color);
    color: white;
    border: 2px solid var(--main-color);
}

.doctor-filters {
    margin-bottom: 40px;
    text-align: center;
}

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

.filter-btn {
    padding: 10px 20px;
    background: white;
    color: var(--main-color);
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--main-color);
    color: white;
    transform: translateY(-2px);
}

.news-info-row .the-cate {
    display: inline-block;
    margin-right: 10px;
    padding: 6px 16px;
    background-color: var(--main-color);
    color: #fff;
    font-size: 14px;
    border-radius: 36px;
}

.news-info-row {
    margin-bottom: 16px;
}

.page-news-title {
    font-size: 36px;
    display: inline-block;
    margin-bottom: 16px;
    position: relative;
}

.page-news-title:after {
    content: "";
    display: inline-block;
    width: 100%;
    height: 10px;
    z-index: -1;
    position: absolute;
    bottom: 10px;
    left: 0;
    background-color: var(--secondary-dark);
}

.side-menu {
    padding: 24px;
    border-radius: 24px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.wrapp-button {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid #eee;
    padding: 16px 0;
}

.wrapp-button a {
    display: inline-block;
    padding: 6px 16px;
    background-color: #ccc;
    color: #fff;
    border-radius: 36px;
    margin-bottom: 0;
}

.wrapp-button a:hover {
    background-color: var(--main-color);
}

.top-service-item {
    position: relative;
    margin-top: 60px;
}

.service-page-box {
    width: 55%;
    padding: 32px;
    background-color: var(--main-color);
    color: #fff;
    border-radius: 24px;
    text-align: center;
    font-size: 18px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.top-service-item img {
    width: 60%;
    position: relative;
    border-radius: 32px;
}

.service-list {
    padding: 24px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    border-radius: 24px;
    margin-top: 30px;
    background-color: #fff;
}

.service-list ul {
    list-style: none;
    padding-left: 1.5em; /* ขยับให้ไม่ชิด */
    margin: 0;
}

.service-list ul li {
    position: relative;
    padding: 10px 0;
    padding-left: 1em;
    font-size: 24px;
    border-bottom: 1px solid #ccc;
}

.service-list ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 14px;
    color: #ff3366;
    font-size: 1.4em;
    line-height: 1;
}

.service-top-image {
    margin: 32px 0;
    border: 1px solid #ddd;
}

.service-top-image img {
    width: 100%;
}

.section-secondary {
    padding: 60px 0;
    background-color: var(--secondary-dark);
}

.check-title {
    color: #fff;
    font-size: 36px;
}

.sub-service {
    margin-bottom: 0;
    padding: 0px 32px 16px;
}

.sub-service li {
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding: 12px 0;
}

.sub-service li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 4px;
    color: #ff3366;
    font-size: 1.4em;
    line-height: 1;
}

.sub-service li:last-child {
    border: none;
}

.price-box {
    border-radius: 32px;
    background-color: #fff;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    overflow: hidden;
}

.price-box h3 {
    padding: 12px 24px;
    background-color: var(--main-color);
    color: #fff;
    border-radius: 32px;
}

.red-text {
    font-weight: 600;
    color: red;
}

.footer-menu a {
	color: #fff;
}

.footer-menu i {
	display: none;
}

.price-sub {
	background-color: #8bb1ce;
	color: #fff;
	font-weight: 500;
	display: block;
	width: 100%;
	padding: 6px 24px;
	border-radius: 16px;
}

.sub-service .price {
	font-weight: 600;
}

.pinterest-grid {
  column-count: 2; /* จำนวนคอลัมน์ที่ต้องการ */
  column-gap: 0;   /* ไม่มีช่องว่างระหว่างคอลัมน์ */
  width: 100%;
}

.pin-card {
  display: inline-block;
  margin: 0;
  width: 100%;
  margin-bottom: 0; /* ไม่มีช่องว่างแนวดิ่ง */
  break-inside: avoid; /* ป้องกันการแตกบรรทัดกลางการ์ด */
  box-sizing: border-box;
  overflow: hidden;
  padding: 16px;
  padding-bottom: 30px;
}

.post-thumbnail {
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.post-card:hover .overlay {
    opacity: 1;
}

.empty-img {
    height: 300px;
    background-color: #eee;
}

.card-text {
    font-size: 14px;
    color: #666;
}

/* zzz */
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
	.pinterest-grid {
	  column-count: 1;
	}
	
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .doctor-credentials {
        padding: 40px 0;
    }
    
    .credential-card {
        margin-bottom: 30px;
        padding: 20px;
    }
    
    .credential-header {
        flex-direction: column;
        text-align: center;
    }
    
    .credential-header i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .education-item {
        flex-direction: column;
    }
    
    .education-year {
        margin-bottom: 10px;
        margin-right: 0;
        align-self: flex-start;
    }
    
    .university-logo {
        margin-top: 10px;
        align-self: center;
    }
    
    .review-card {
        margin: 10px 5px;
        padding: 20px;
        min-height: 250px;
    }
    
    .review-content p {
        font-size: 15px;
    }
    
    .author-info h4 {
        font-size: 16px;
    }
    
    .swiper-reviews .swiper-button-next,
    .swiper-reviews .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .swiper-reviews .swiper-button-next:after,
    .swiper-reviews .swiper-button-prev:after {
        font-size: 14px;
    }
    
    .doctor-card {
        margin-bottom: 20px;
    }
    
    .doctor-info {
        padding: 20px;
    }
    
    .doctor-actions {
        flex-direction: column;
    }
    
    .btn-view-profile,
    .btn-appointment {
        margin-bottom: 10px;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }

    .top-text-time {
        text-align: center;
        padding: 0;
    }

    .top-menu {
        width: 96%;
        left: 2%;
    }

    .swiper-top .swiper-slide img {
        height: 320px;
		width: auto;
		object-fit: cover;
		object-position: center;
    }

    .service-card {
        flex-wrap: wrap;
    }

    .service-image,
    .service-content {
        width: 100%;
    }

    .service-image {
        order: 1;
    }

    .service-content {
        order: 2;
        padding: 32px;
    }

    .service-btn {
        display: block;
        margin: auto;
        text-align: center;
        max-width: 200px;
        font-size: 22px;
        margin-top: 32px;
        margin-bottom: 16px;
    }

    .footer-column {
        flex: none;
    }
	
	.service-page-box {
		width: 100%;
		position: relative;
		transform: none;
		margin-top: -30px;
	}
	
	.top-service-item img {
		width: 100%;
	}
	
	.service-list ul {
		padding: 0;
	}
	
	.sub-service li {
		font-size: 14px;
	}
}