/*
Theme Name:   Hello Elementor Child
Description:  Global Doctor 自訂佈局（基於 Hello Elementor），更新不影響
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

@import url("../hello-elementor/style.css");

:root {
  --dd-blue: #007bff;
  --dd-gray: #6b7280;
  --dd-dark: #1e293b;
  --dd-bg: #f9fafb;
  --dd-white: #ffffff;
}

body { font-family: "Noto Sans TC", sans-serif; background: var(--dd-bg); color: var(--dd-dark); }

.dd-container { max-width: 1180px; margin: auto; padding: 0 24px; }

/* Hero */
.dd-hero { text-align: center; padding: 140px 0; background: linear-gradient(135deg, var(--dd-blue), #60a5fa); color: #fff; }
.dd-hero-h1 { font-size: 4rem; margin-bottom: 16px; font-weight: 900; }
.dd-hero-lead { font-size: 1.2rem; opacity: 0.9; margin-bottom: 40px; }
.dd-search-form { display: flex; justify-content: center; max-width: 500px; margin: auto; }
.dd-search-input { flex: 1; padding: 16px 24px; border: none; border-radius: 50px 0 0 50px; }
.dd-search-btn { padding: 16px 28px; background: var(--dd-dark); color: #fff; border: none; border-radius: 0 50px 50px 0; cursor: pointer; }

/* Intro */
.dd-intro { background: var(--dd-white); padding: 60px 0 0 0; text-align: center; }
.dd-sec-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 32px; position: relative; }
.dd-intro-text { max-width: 800px; margin: auto; font-size: 1.1rem; line-height: 1.8; color: var(--dd-gray); }

/* Categories */
.dd-topics { padding: 100px 0; }
.dd-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.dd-cat-box { background: var(--dd-white); border-radius: 20px; padding: 32px; text-decoration: none; color: inherit; box-shadow: 0 10px 25px rgba(0,0,0,.06); transition: .3s; }
.dd-cat-box:hover { transform: translateY(-6px); box-shadow: 0 15px 40px rgba(0,0,0,.1); }
.dd-cat-name { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; color: var(--dd-blue); }
.dd-cat-desc { font-size: 1rem; color: var(--dd-gray); margin-bottom: 12px; min-height: 48px; }
.dd-cat-count { font-size: .9rem; color: var(--dd-gray); }

/* Latest posts */
.dd-latest { padding: 100px 0; background: var(--dd-bg); }
.dd-post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; }
.dd-post { background: var(--dd-white); border-radius: 20px; padding: 32px; box-shadow: 0 8px 25px rgba(0,0,0,.05); transition: .3s; }
.dd-post:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0,0,0,.08); }
.dd-post-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.dd-post-title a { text-decoration: none; color: var(--dd-dark); }
.dd-post-title a:hover { color: var(--dd-blue); }
.dd-post-meta { font-size: .9rem; color: var(--dd-gray); margin-bottom: 14px; }
.dd-post-excerpt { color: var(--dd-gray); font-size: 1rem; margin-bottom: 16px; }
.dd-post-readmore { text-decoration: none; color: var(--dd-blue); font-weight: 700; }

/* Subscribe */
.dd-subscribe { background: var(--dd-blue); color: #fff; text-align: center; padding: 100px 0; }
.dd-sub-text { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; }
.dd-sub-form { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.dd-sub-input { padding: 16px 24px; border: none; border-radius: 50px; min-width: 280px; }
.dd-sub-btn { padding: 16px 32px; border: none; border-radius: 50px; background: var(--dd-dark); color: #fff; font-weight: 700; cursor: pointer; }
.dd-sub-btn:hover { background: #0f172a; }

@media (max-width:768px){
  .dd-hero-h1{font-size:2.6rem}
  .dd-search-form{flex-direction:column}
  .dd-search-input,.dd-search-btn{border-radius:50px;margin-bottom:10px}
}


.dd-article-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  padding: 80px 0;
}
.dd-article-h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}
.dd-article-meta {
  color: var(--dd-gray);
  font-size: .95rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.dd-article-hero img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
  margin: 40px 0;
}
.dd-article-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--dd-dark);
}
.dd-article-body p { margin-bottom: 1.8rem; }

.dd-article-tags { margin-top: 40px; }
.dd-tag-label { font-weight: 700; color: var(--dd-gray); margin-right: 8px; }
.dd-tags a {
  display: inline-block;
  background: var(--dd-bg);
  color: var(--dd-dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .9rem;
  text-decoration: none;
  margin: 4px;
}
.dd-tags a:hover { background: var(--dd-blue); color: #fff; }

.dd-article-share { margin-top: 40px; }
.dd-share-label { font-weight: 700; margin-right: 8px; }
.dd-share-link {
  color: var(--dd-blue);
  margin-right: 16px;
  text-decoration: none;
  font-weight: 600;
}
.dd-share-link:hover { text-decoration: underline; }

/* Related Posts *//* Container Grid */
.dd-article-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  padding: 80px 0;
}

/* Breadcrumb */
.dd-breadcrumb {
  background: #f9f9f9;
  padding: 12px 0;
  font-size: 0.95rem;
  color: #555;
}
.dd-breadcrumb .dd-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.dd-breadcrumb a {
  color: #0073e6;
  text-decoration: none;
}
.dd-breadcrumb a:hover { text-decoration: underline; }
.dd-bcr-sep { margin: 0 6px; color: #999; }

/* Article */
.dd-article-h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}
.dd-article-meta {
  color: #777;
  font-size: .95rem;
  margin-bottom: 32px;
}
.dd-article-hero img {
  width: 100%;
  border-radius: 12px;
  margin: 30px 0;
}
.dd-article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}
.dd-article-body p { margin-bottom: 1.6rem; }

/* Tags */
.dd-article-tags { margin-top: 40px; }
.dd-tag-label { font-weight: 700; margin-right: 8px; }
.dd-tags a {
  display: inline-block;
  background: #eee;
  color: #333;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: .9rem;
  text-decoration: none;
  margin: 3px;
}

/* Related Posts */
.dd-related { margin-top: 80px; }
.dd-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 20px;
}
.dd-related-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: 0.3s;
}
.dd-related-item:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,.1); }
.dd-related-thumb img { width: 100%; height: 160px; object-fit: cover; }
.dd-related-info { padding: 14px; }
.dd-related-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.dd-related-info time { font-size: .85rem; color: #888; }

/* Sidebar */
.dd-side-widget {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  padding: 20px 22px;
  margin-bottom: 32px;
}
.dd-side-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  border-bottom: 2px solid #0073e6;
  display: inline-block;
}
.dd-side-list a {
  display: block;
  text-decoration: none;
  color: #333;
  font-size: .95rem;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}
.dd-side-list a:hover { color: #0073e6; }
.dd-side-num { color: #0073e6; font-weight: 700; margin-right: 6px; }

/* Responsive */
@media (max-width: 960px){
  .dd-article-wrap{grid-template-columns:1fr}
  .dd-article-side{order:-1;margin-bottom:40px;}
}

/* Breadcrumb */
.dd-breadcrumb {
    background: #f9f9f9;
    padding: 15px 0;
    font-size: 14px;
}
.dd-breadcrumb a {
    color: #333;
    text-decoration: none;
}
.dd-bcr-arrow {
    margin: 0 5px;
    color: #999;
}

/* Archive Header */
.dd-archive-header .dd-cat-head {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}
.dd-cat-desc p {
    font-size: 16px;
    color: #666;
}

/* Article List */
.dd-cat-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.dd-cat-item {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.dd-cat-thumb img {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}
.dd-cat-body {
    flex: 1;
}
.dd-cat-h3 {
    font-size: 20px;
    margin: 0 0 10px;
}
.dd-cat-h3 a {
    color: #222;
    text-decoration: none;
}
.dd-cat-text {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}
.dd-cat-time {
    font-size: 14px;
    color: #999;
}

/* Pagination */
.dd-pagination {
    margin: 30px 0;
    text-align: center;
}
.dd-pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
}
.dd-pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Placeholder if no thumbnail */
.dd-placeholder {
    width: 250px;
    height: 150px;
    background: #eee;
    border-radius: 5px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .dd-cat-item {
        flex-direction: column;
        align-items: center;
    }
    .dd-cat-thumb img,
    .dd-placeholder {
        width: 100%;
        height: auto;
    }
    .dd-cat-body {
        width: 100%;
    }
}

.ddimgimg{    height: 400px;
    width: 100%;
    max-width: 800px;
    marin-top: 20px;
    object-fit: cover;
    border-radius: 24px;
    margin-top: 20px;
}



.dd-footer-cta {
    position: relative;
    background: url('https://digitaldoctor.com.hk/wp-content/uploads/2025/11/pexels-shvetsa-4226264.jpg') center/cover no-repeat;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.dd-footer-cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 32, 64, 0.6); /* 深藍色半透明 */
    z-index: 1;
}

.dd-footer-cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.dd-footer-cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.dd-footer-cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.dd-footer-cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #0073e6; /* 按鈕藍色，可自行調整 */
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background 0.3s;
}

.dd-footer-cta-btn:hover {
    background-color: #005bb5;
}


.site-logo img {
    height: 70px;
    width: auto;
    transition: .3s;
}
.site-logo img:hover {
    transform: scale(1.05);
}

.dd-search-btn{
	background: #15486f !important;
    color: #fff !important;
	
}

.menu a{
	 color: #15486f;
	
}
.header-inner .site-navigation .sub-menu{
    width: 240px;
    background: #fbfbfb;
    border-radius: 12px;
padding: 12px;}

.dd-container{padding:20px;}

@media screen and (max-width: 768px) {

	.dd-article-h1{font-size:28px;}}