:root {
    --primary-color: #24417c;
    --secondary-color: #00897b;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --footer-bg: #0d2c45;
    /* Azul escuro do footer */
    --link-blue: #24417c;
    --font-main: 'Open Sans', sans-serif;
    --font-heading: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

/* Utils */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.main-header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 60px; /* Base height for desktop */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.02);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 300;
    color: #666;
}

.logo-text span {
    color: var(--primary-color);
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    gap: 20px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    color: #555;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb-area {
    background-color: #f4f4f4;
    padding: 30px 0;
    text-align: center;
    margin-bottom: 30px;
}

.breadcrumb-area h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: #444;
}

.breadcrumb-area p {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* Hero Image Section */
.hero-image-section {
    max-width: 900px;
    /* Limita a largura no desktop */
    margin: 30px auto;
    /* Centraliza e adiciona margem vertical */
    padding: 0 15px;
    /* Espaçamento lateral para mobile */
    position: relative;
    /* Mantém o contexto para o overlay */
}

.image-container img {
    width: 100%;
    height: auto;
    /* Altura automática para manter a proporção */
    display: block;
    border-radius: 8px;
    /* Bordas arredondadas */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Sombra suave */
}

/* Placeholder style for no-image scenario */
.image-container {
    background: #f0f0f0; /* Light gray background */
    height: auto;
    min-height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.image-container.image-placeholder {
    background: #f2f8f8;
    border: 1px solid #d8e5e5;
}

.image-container.image-placeholder .image-caption-overlay {
    position: static;
    padding: 24px;
    color: #31545a;
    text-shadow: none;
    text-align: center;
}

.image-caption-overlay {
    position: absolute;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    top: 20px;
    right: 40px;
    /* Position similar to image */
    text-align: right;
}

.image-caption-overlay span {
    font-size: 16px;
    font-weight: 400;
}

/* Main Content Area */
.content-wrapper {
    margin-bottom: 30px;
}

.content-wrapper article p {
    font-size: 18px;
}

/* Content Typography */
.main-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: #333;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-text {
    margin-bottom: 30px;
}

h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin: 40px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 700;
}

/* Channel Navigation (The blue links) */
.channel-nav {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #eee;
    background: #fafafa;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.tabs a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 6px 6px 0 0;
    color: #666;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.tabs a:hover {
    background: #eef2f8;
    color: var(--primary-color);
}

.tabs a:focus-visible {
    outline: 3px solid #75b8d2;
    outline-offset: 2px;
}

.tabs span {
    font-weight: 700;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    text-transform: uppercase;
}

.tabs span.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -12px;
}

.tabs a.active {
    margin-bottom: -12px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.channel-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.channel-list a {
    font-size: 12px;
    color: var(--link-blue);
    text-decoration: none;
}

.channel-list a:hover {
    text-decoration: underline;
}

/* Warning Box */
.warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin-top: 30px;
    font-size: 14px;
}

/* Pre-Footer */
.pre-footer {
    background-color: #f9f9f9;
    padding: 50px 0;
    margin-top: 60px;
    border-top: 1px solid #eee;
}

.pre-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.pre-footer h4 {
    color: #444;
    margin-bottom: 15px;
}

.clinic-image {
    width: 100%;
    height: 150px;
    background-color: #ddd;
    margin-bottom: 15px;
    display: flex;
    /* Placeholder center */
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 12px;
}

.mini-table {
    width: 100%;
    font-size: 13px;
}

.mini-table td {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    color: var(--link-blue);
}

.btn-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 13px;
}

/* Main Footer */
.main-footer {
    background-color: #0c1e2b; /* Slightly darker and richer blue */
    color: #e0e0e0;
    padding: 80px 0 0 0;
    font-size: 14px;
    border-top: 4px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h5 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #b0bec5;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Branding Column */
.footer-col.branding .logo-text {
    font-size: 28px;
    margin-bottom: 15px;
    display: block;
    color: #fff;
}

.branding-desc {
    color: #90a4ae;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Contact Column */
.footer-col.contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #90a4ae;
}

/* Footer Bottom */
.footer-bottom {
    background: transparent;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright p {
    color: #90a4ae;
    font-size: 13px;
    margin: 0;
}

.footer-legal {
    font-size: 11px !important;
    color: #546e7a !important;
    margin-top: 5px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Back to Top Button */
.btn-scroll-top {
    background: var(--primary-color);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 139, 163, 0.3);
}

.btn-scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .channel-nav {
        padding: 14px;
    }

    .tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        border-bottom: 0;
        padding-bottom: 0;
    }

    .tabs a {
        min-width: 0;
        border: 1px solid #e1e8f0;
        border-radius: 8px;
        background: #fff;
        overflow-wrap: anywhere;
    }

    .tabs a.active {
        margin-bottom: 0;
        border-color: var(--primary-color);
        background: #eef2f8;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Channels Grid - Home Page */
.home-intro {
    text-align: center;
    margin: 40px 0;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.channel-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.channel-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 139, 163, 0.1);
}

.channel-card .abbr {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.channel-card .name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #444;
}

.channel-card .count {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-image {
        height: 50px;
    }

    .pre-footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .image-caption-overlay {
        font-size: 18px;
        top: 10px;
        right: 10px;
    }

    .channels-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

/* Zen Hero Section */
.zen-hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    overflow: hidden;
    padding: 60px 0;
}

.zen-hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.zen-glow {
    position: absolute;
    width: 60vh;
    height: 60vh;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: breathe 8s infinite alternate ease-in-out;
}

.zen-glow.top {
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
}

.zen-glow.bottom {
    bottom: -10%;
    left: -10%;
    background: radial-gradient(circle, #e0f2f1 0%, transparent 70%);
    animation-delay: -4s;
}

@keyframes breathe {
    0% {
        transform: scale(0.9) translate(0, 0);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.1) translate(-20px, 20px);
        opacity: 0.2;
    }
}

.zen-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

@media (min-width: 900px) {
    .zen-hero-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Text Column */
.zen-text-column {
    flex: 1;
    max-width: 600px;
    text-align: center;
}

@media (min-width: 900px) {
    .zen-text-column {
        text-align: left;
    }
}

.zen-subtitle {
    display: inline-block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.zen-subtitle::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 8px auto 0;
}

@media (min-width: 900px) {
    .zen-subtitle::after {
        margin: 8px 0 0;
    }
}

.zen-title {
    font-family: var(--font-heading);
    font-size: 40px;
    line-height: 1.2;
    color: #222;
    font-weight: 300;
    margin-bottom: 24px;
}

.zen-title span {
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

@media (min-width: 768px) {
    .zen-title {
        font-size: 56px;
    }
}

.zen-description {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 40px;
}

.zen-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 480px) {
    .zen-actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 900px) {
    .zen-actions {
        justify-content: flex-start;
    }
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 4px;
    /* Mais quadrado, menos "bolha" / mais clássico */
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--secondary-color);
    background-color: #f8f9fa;
}

/* Zen Abstract Graphic Component */
.zen-graphic-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 300px;
}

.zen-energy-flow {
    position: relative;
    width: 300px;
    height: 300px;
}

@media (min-width: 768px) {
    .zen-energy-flow {
        width: 400px;
        height: 400px;
    }
}

.zen-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 1px solid rgba(0, 139, 163, 0.2);
    border-radius: 50%;
    z-index: 1;
}

.zen-circle::before {
    content: '';
    position: absolute;
    top: -20px;
    bottom: -20px;
    left: -20px;
    right: -20px;
    border: 1px dashed rgba(0, 139, 163, 0.1);
    border-radius: 50%;
    animation: rotate 60s linear infinite;
}

.meridian-line {
    position: absolute;
    background-color: rgba(0, 139, 163, 0.3);
    z-index: 2;
}

.meridian-line.m-1 {
    width: 2px;
    height: 100%;
    left: 30%;
    top: 0;
}

.meridian-line.m-2 {
    width: 100%;
    height: 2px;
    top: 60%;
    left: 0;
}

.meridian-line.m-3 {
    width: 2px;
    height: 80%;
    right: 40%;
    bottom: 10%;
    transform: rotate(15deg);
}

.acupoint {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    z-index: 3;
    animation: pulsering 2s infinite;
}

.acupoint.p-1 {
    top: 20%;
    left: calc(30% - 5px);
}

.acupoint.p-2 {
    top: 60%;
    left: 20%;
    animation-delay: 0.5s;
}

.acupoint.p-3 {
    top: 60%;
    right: 40%;
    animation-delay: 1s;
}

.acupoint.p-4 {
    bottom: 20%;
    right: calc(40% + 15px);
    animation-delay: 1.5s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulsering {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 139, 163, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 139, 163, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 139, 163, 0);
    }
}

/* Qi Clock Section */
.qi-clock-section {
    padding: 60px 0;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qi-clock-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1000px;
}

@media (min-width: 900px) {
    .qi-clock-wrapper {
        flex-direction: row;
        justify-content: center;
    }
}

.qi-clock-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qi-clock-circle {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px solid #eee;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.qi-clock-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    cursor: default;
    /* Circular Positioning */
    transform: rotate(calc(30deg * var(--i))) translateY(-130px) rotate(calc(-30deg * var(--i)));
}

.qi-clock-item span {
    font-weight: 700;
    color: #555;
    font-size: 14px;
}

.qi-clock-item small {
    font-size: 9px;
    color: #999;
}

.qi-clock-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 139, 163, 0.4);
    transform: rotate(calc(30deg * var(--i))) translateY(-130px) rotate(calc(-30deg * var(--i))) scale(1.2);
}

.qi-clock-item.active span, 
.qi-clock-item.active small {
    color: #fff;
}

.qi-clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: #f8fcfd;
    border: 1px dashed var(--primary-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.active-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

#active-meridian-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: #333;
    text-align: center;
    padding: 0 10px;
}

.qi-clock-info {
    flex: 1;
    max-width: 400px;
    text-align: center;
}

@media (min-width: 900px) {
    .qi-clock-info {
        text-align: left;
    }
}

.qi-clock-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* Search Section */
.search-section {
    padding: 40px 0;
    background: #fff;
    display: flex;
    justify-content: center;
}

.search-box {
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
    position: relative;
}

.search-title {
    text-align: center;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: #444;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#acupoint-search {
    width: 100%;
    padding: 18px 25px 18px 50px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

#acupoint-search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 139, 163, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #aaa;
}

.search-results-overlay {
    margin-top: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    position: absolute;
    width: calc(100% - 40px);
    left: 20px;
    z-index: 100;
}

.search-result-item {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
    text-decoration: none;
}

.search-result-item:hover {
    background: #f8fcfd;
}

.search-result-item .point-name {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.search-result-item .point-indication {
    font-size: 13px;
    color: #777;
    display: block;
    margin-top: 4px;
}