/* TailwindCSS is loaded via CDN in templates */
/* Custom styles can be added here */

[x-cloak] { display: none !important; }

/* Ensure mobile-first base styles and smooth interactions */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Prevent accidental horizontal scrolling on mobile */
    line-height: 1.6;
    color: #1a202c;
}

/* Responsive typography for content-heavy pages */
.prose {
    line-height: 1.75;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .prose {
        font-size: 1rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    
    h1 { font-size: 1.875rem; } /* Approx 30px */
    h2 { font-size: 1.5rem; }   /* Approx 24px */
}

/* 
   Fix for "Book Consultation" button in header.
   Ensures text doesn't wrap and button doesn't stretch the header.
*/
nav a, nav button, .nav-link {
    white-space: nowrap !important;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    /* Slightly smaller button text for narrow mobile screens */
    nav .btn-primary, nav .book-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem;
    }
}

/* Essential responsive image behavior */
img {
    max-width: 100%;
    height: auto;
    display: block;
}


.blog-content {
    color: #4b5563;
    font-size: 1.125rem;
    line-height: 1.9;
}

.blog-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.blog-content ol {
    list-style-type: decimal;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.blog-content li {
    margin-bottom: 0.75rem;
}

.blog-content hr {
    margin: 4rem 0;
    border-color: #e5e7eb;
}


/* Article contents*/

.article-content {
    color: #4B5563;
    max-width: 780px;
}

.article-content h2 {
    position: relative;
    margin-top: 3.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.875rem, 2vw + 1rem, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #10222A;
}

.article-content h2::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 44px;

    height: 4px;

    border-radius: 999px;

    background: #D97706;
}

.article-content h2:first-child {
    margin-top: 0;
}

@media (max-width: 768px) {

     .article-content {
        font-size: 1rem;
        line-height: 1.8;
    }

    .article-content h2 {

        margin-top: 3rem;

        margin-bottom: 1.25rem;

        padding-bottom: 0.5rem;
    }

    .article-content h2::after {

        width: 36px;

        height: 3px;
    }
}

.article-content h3 {
  font-size: 1.35rem;
    font-weight: 700;
    color: #10222A;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content p {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    line-height: 1.9;
    color: #4B5563;
}

.article-content strong {
    color: #111827;
    font-weight: 600;
}

.article-content img {
    border-radius: 24px;
    margin: 2rem 0;
}

.article-content section:first-child h2 {
    margin-top: 0;
}

/* Aticle contents checklists*/
.article-content ul {
    width: 100%;
    max-width: 680px;

    list-style: none;

    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;

    border: 1px solid #EEDCB3;
    background: #FFFDF8;
    border-radius: 24px;

    display: grid;
    gap: 0.85rem;

    transition: all 0.3s ease;
}

.article-content ul li {
    position: relative;

    padding-left: 2.25rem;
    margin: 0;

    line-height: 1.6;
}

.article-content ul li::before {
    content: "✓";

    position: absolute;

    left: 0;
    top: 0.15rem;

    width: 1.4rem;
    height: 1.4rem;

    border-radius: 9999px;

    background: #ECFDF3;
    color: #16A34A;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 0.8rem;
    font-weight: 700;
}

.article-content ul:hover {
    border-color: #E8C98C;
    box-shadow: 0 8px 20px rgba(0,0,0,.03);
}

@media (max-width: 768px) {

    .article-content ul {
        padding: 1rem 1.25rem;
        border-radius: 20px;

        gap: 0.75rem;
    }

    .article-content ul li {
        padding-left: 2rem;
        line-height: 1.55;
    }

    .article-content ul li::before {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.75rem;
    }
}

/* Doctor's Note */

.doctor-note-card {
    position: relative;
    margin: 4rem 0;
    padding: 3rem;
    background: linear-gradient(
    135deg,
    #FFFDF9 0%,
    #FFF8EE 100%
    );
    border: 1px solid #F3E6C8;
    border-radius: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all .3s ease;
}

.doctor-note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0,0,0,.06);
}

.doctor-note-accent {
    width: 64px;
    height: 4px;
    background: #D97706;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.doctor-note-label {
    margin: 0;
    color: #D97706;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.doctor-note-title {
    margin-top: 0.5rem;
    font-family: Georgia, serif;
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 700;
    color: #10222A;
}

.doctor-note-content {
    margin-top: 2rem;
    max-width: 90%;
}

.doctor-note-content p {
    font-size: 1.125rem;
    line-height: 2;
    color: #4B5563;
    margin-bottom: 1.5rem;
}

.doctor-note-content p:last-child {
    margin-bottom: 0;
}

.doctor-note-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #F3E6C8;
    font-weight: 600;
    font-size: 1rem;
    color: #92400E;
}

/* article-content blockquote */

.article-content blockquote {

    position: relative;

    margin: 2.5rem 0;

    padding: 2rem 1.75rem 1.5rem;

    background: linear-gradient(
        135deg,
        #FFFDF8 0%,
        #FFF8EF 100%
    );

    border: 1px solid #EEDCB3;

    border-radius: 24px;

    font-style: normal;

    overflow: hidden;

    transition: all .3s ease;
}

.article-content blockquote:hover {

    border-color: #E8C98C;

    box-shadow: 0 10px 25px rgba(0,0,0,.04);

    transform: translateY(-2px);
}

.article-content blockquote::before {

    content: "";

    position: absolute;

    top: 1.25rem;

    left: 1.75rem;

    width: 48px;

    height: 4px;

    border-radius: 999px;

    background: #D97706;
}

.article-content blockquote p {

    margin: 0;
}

.article-content blockquote p + p {

    margin-top: 0.75rem;
}

.article-content blockquote strong:first-child {

    display: block;

    margin-top: 0.75rem;

    margin-bottom: 0.75rem;

    color: #A16207;

    font-size: 0.8rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.12em;
}

@media (max-width: 768px) {

    .article-content blockquote {

        margin: 2rem 0;

        padding: 1.75rem 1.25rem 1.25rem;

        border-radius: 20px;
    }

    .article-content blockquote::before {

        left: 1.25rem;

        width: 40px;

        height: 3px;
    }

    .article-content blockquote strong:first-child {

        font-size: 0.75rem;
    }
}