/* ==========================================================================
   Pill2Trip.com — Clinical Atlas Design System
   A medical reference aesthetic: authoritative, trustworthy, information-first
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    --p2t-navy: #1B365D;
    --p2t-navy-dark: #0F2440;
    --p2t-teal: #0F7B6C;
    --p2t-teal-light: #12967F;
    --p2t-mint: #E8F4F0;
    --p2t-mint-dark: #D0EBE4;
    --p2t-bg: #F8FAFB;
    --p2t-white: #FFFFFF;
    --p2t-text: #2D3748;
    --p2t-text-light: #4A5568;
    --p2t-muted: #718096;
    --p2t-border: #E2E8F0;
    --p2t-border-dark: #CBD5E0;
    --p2t-red: #C53030;
    --p2t-red-bg: #FFF5F5;
    --p2t-amber: #D69E2E;
    --p2t-amber-bg: #FFFFF0;

    --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-sm: 0 1px 3px rgba(27, 54, 93, 0.06);
    --shadow-md: 0 4px 12px rgba(27, 54, 93, 0.08);
    --shadow-lg: 0 8px 30px rgba(27, 54, 93, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* ---------- Base Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--p2t-text);
    background: var(--p2t-bg);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--p2t-navy);
    line-height: 1.25;
    margin: 0;
}

a {
    color: var(--p2t-teal);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--p2t-teal-light); }

/* ---------- Topbar ---------- */
.p2t-topbar {
    background: var(--p2t-navy-dark);
    color: rgba(255,255,255,0.7);
    font-size: 12.5px;
    padding: 6px 0;
    letter-spacing: 0.02em;
}
.p2t-topbar a { color: rgba(255,255,255,0.85); }
.p2t-topbar a:hover { color: #fff; }
.p2t-topbar i { font-size: 14px; vertical-align: -1px; margin-right: 4px; }

/* ---------- Navbar ---------- */
.p2t-navbar {
    background: var(--p2t-white);
    border-bottom: 1px solid var(--p2t-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: var(--shadow-sm);
}
.p2t-navbar .navbar { padding: 0; min-height: 64px; }
.p2t-navbar .navbar-brand {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--p2t-navy);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
}
.p2t-navbar .navbar-brand .brand-pill {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--p2t-teal), var(--p2t-navy));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
.p2t-navbar .navbar-brand span { color: var(--p2t-teal); }
.p2t-navbar .navbar-brand:hover { text-decoration: none; color: var(--p2t-navy); }

.p2t-navbar .nav-link {
    color: var(--p2t-text-light);
    font-size: 14px;
    font-weight: 500;
    padding: 20px 16px !important;
    position: relative;
    transition: color 0.2s ease;
}
.p2t-navbar .nav-link:hover,
.p2t-navbar .nav-item.active .nav-link {
    color: var(--p2t-navy);
}
.p2t-navbar .nav-item.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2.5px;
    background: var(--p2t-teal);
    border-radius: 2px 2px 0 0;
}

.p2t-navbar .navbar-toggler {
    border: 1px solid var(--p2t-border);
    padding: 6px 10px;
    font-size: 20px;
    color: var(--p2t-navy);
}
.p2t-navbar .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(15,123,108,0.15); }

.p2t-nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}
.p2t-nav-search .btn-search {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--p2t-border);
    background: transparent;
    color: var(--p2t-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}
.p2t-nav-search .btn-search:hover {
    background: var(--p2t-mint);
    color: var(--p2t-teal);
    border-color: var(--p2t-teal);
}

/* ---------- Hero Section ---------- */
.p2t-hero {
    background: linear-gradient(160deg, var(--p2t-navy) 0%, var(--p2t-navy-dark) 60%, #0D1F35 100%);
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
}
.p2t-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15,123,108,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.p2t-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15,123,108,0.3), transparent);
}
.p2t-hero h1 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 16px;
}
.p2t-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 520px;
}
.p2t-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15,123,108,0.2);
    border: 1px solid rgba(15,123,108,0.3);
    color: #7FDDD0;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.p2t-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.p2t-hero-stats .stat-num {
    display: block;
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.75rem;
}
.p2t-hero-stats .stat-label {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Search Box ---------- */
.p2t-search-box {
    background: var(--p2t-white);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 8px;
}
.p2t-search-box input {
    flex: 1;
    border: none;
    padding: 14px 20px;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--p2t-text);
    background: transparent;
    outline: none;
}
.p2t-search-box input::placeholder { color: var(--p2t-muted); }
.p2t-search-box .btn-search-submit {
    background: var(--p2t-teal);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.p2t-search-box .btn-search-submit:hover { background: var(--p2t-teal-light); }

/* ---------- Section Headers ---------- */
.p2t-section {
    padding: 56px 0;
}
.p2t-section-header {
    margin-bottom: 32px;
}
.p2t-section-header h2 {
    font-size: 1.5rem;
    color: var(--p2t-navy);
}
.p2t-section-header p {
    color: var(--p2t-muted);
    margin-top: 6px;
    font-size: 14.5px;
}
.p2t-section-header .section-line {
    width: 48px;
    height: 3px;
    background: var(--p2t-teal);
    border-radius: 2px;
    margin-top: 12px;
}

/* ---------- Category Cards ---------- */
.p2t-category-card {
    background: var(--p2t-white);
    border: 1px solid var(--p2t-border);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.p2t-category-card:hover {
    border-color: var(--p2t-teal);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.p2t-category-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
}
.p2t-category-card .card-icon.icon-countries { background: #EBF5FB; color: #2980B9; }
.p2t-category-card .card-icon.icon-diseases { background: #FDEDEC; color: #C0392B; }
.p2t-category-card .card-icon.icon-ingredients { background: #E8F8F5; color: #0F7B6C; }
.p2t-category-card .card-icon.icon-actions { background: #F5EEF8; color: #8E44AD; }
.p2t-category-card .card-icon.icon-drugs { background: #FEF9E7; color: #D4AC0D; }

.p2t-category-card h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--p2t-text);
    margin-bottom: 4px;
}
.p2t-category-card p {
    font-size: 13px;
    color: var(--p2t-muted);
    margin: 0;
}

/* ---------- Item Cards (listings) ---------- */
.p2t-item-card {
    background: var(--p2t-white);
    border: 1px solid var(--p2t-border);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    transition: all 0.2s ease;
    display: block;
    color: var(--p2t-text);
    height: 100%;
}
.p2t-item-card:hover {
    border-color: var(--p2t-teal);
    box-shadow: var(--shadow-sm);
    color: var(--p2t-text);
    text-decoration: none;
}
.p2t-item-card h3 {
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--p2t-navy);
    margin-bottom: 0;
    line-height: 1.4;
}
.p2t-item-card .item-meta {
    font-size: 12.5px;
    color: var(--p2t-muted);
    margin-top: 4px;
}

/* ---------- A-Z Directory ---------- */
.p2t-az-section {
    padding: 40px 0;
}
.p2t-az-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.p2t-az-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    color: var(--p2t-text-light);
    border: 1px solid var(--p2t-border);
    background: var(--p2t-white);
    transition: all 0.15s ease;
}
.p2t-az-bar a:hover {
    background: var(--p2t-mint);
    border-color: var(--p2t-teal);
    color: var(--p2t-teal);
}
.p2t-az-bar a.active {
    background: var(--p2t-navy);
    border-color: var(--p2t-navy);
    color: #fff;
}

/* ---------- Homepage Item Grid ---------- */
.p2t-home-grid {
    padding-bottom: 48px;
}
.p2t-home-grid h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}
.p2t-home-grid .item-tag {
    display: inline-block;
    background: var(--p2t-mint);
    color: var(--p2t-teal);
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- Breadcrumbs ---------- */
.p2t-breadcrumb {
    background: var(--p2t-white);
    border-bottom: 1px solid var(--p2t-border);
    padding: 14px 0;
    font-size: 13.5px;
}
.p2t-breadcrumb a { color: var(--p2t-muted); }
.p2t-breadcrumb a:hover { color: var(--p2t-teal); }
.p2t-breadcrumb .separator {
    color: var(--p2t-border-dark);
    margin: 0 8px;
}
.p2t-breadcrumb .current {
    color: var(--p2t-text);
    font-weight: 500;
}

/* ---------- Page Title ---------- */
.p2t-page-title {
    background: var(--p2t-white);
    border-bottom: 1px solid var(--p2t-border);
    padding: 32px 0;
}
.p2t-page-title h1 {
    font-size: 1.75rem;
    margin-bottom: 0;
}
.p2t-page-title p {
    color: var(--p2t-muted);
    margin-top: 6px;
    font-size: 15px;
}

/* ---------- Drug Detail Page ---------- */
.p2t-drug-detail {
    padding: 40px 0 64px;
}
.p2t-drug-card {
    background: var(--p2t-white);
    border: 1px solid var(--p2t-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.p2t-drug-card .drug-header {
    padding: 28px 32px;
    border-bottom: 1px solid var(--p2t-border);
}
.p2t-drug-card .drug-header h1 {
    font-size: 1.75rem;
    margin-bottom: 4px;
}
.p2t-drug-card .drug-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--p2t-mint);
    color: var(--p2t-teal);
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 6px;
    margin-top: 8px;
}

.p2t-drug-image {
    background: #F7FAFC;
    border-radius: var(--radius-md);
    border: 1px solid var(--p2t-border);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    overflow: hidden;
}
.p2t-drug-image img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 4px;
}

.p2t-drug-info { padding: 28px 32px; }

.p2t-info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--p2t-border);
    gap: 16px;
    align-items: flex-start;
}
.p2t-info-row:last-child { border-bottom: none; }

.p2t-info-label {
    flex-shrink: 0;
    width: 140px;
    font-size: 13px;
    font-weight: 600;
    color: var(--p2t-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 3px;
}
.p2t-info-value {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.p2t-info-value .tag {
    display: inline-block;
    background: var(--p2t-bg);
    border: 1px solid var(--p2t-border);
    color: var(--p2t-text);
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.15s;
}
.p2t-info-value .tag:hover {
    background: var(--p2t-mint);
    border-color: var(--p2t-teal);
    color: var(--p2t-teal);
    text-decoration: none;
}

/* Similar drugs section */
.p2t-similar-drugs {
    background: var(--p2t-white);
    border: 1px solid var(--p2t-border);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    margin-top: 28px;
}
.p2t-similar-drugs h2 {
    font-size: 1.15rem;
    margin-bottom: 16px;
}
.p2t-similar-drugs .drug-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.p2t-similar-drugs .drug-grid a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--p2t-text);
    transition: background 0.15s;
}
.p2t-similar-drugs .drug-grid a:hover {
    background: var(--p2t-mint);
    color: var(--p2t-teal);
}

/* Drug description sections */
.p2t-drug-content {
    background: var(--p2t-white);
    border: 1px solid var(--p2t-border);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-top: 28px;
}
.p2t-drug-content h2 {
    font-size: 1.2rem;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--p2t-border);
}
.p2t-drug-content h2:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}
.p2t-drug-content p,
.p2t-drug-content li {
    color: var(--p2t-text-light);
    line-height: 1.75;
    font-size: 14.5px;
}
.p2t-drug-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.p2t-drug-content table td,
.p2t-drug-content table th {
    border: 1px solid var(--p2t-border);
    padding: 10px 14px;
    text-align: left;
}
.p2t-drug-content table th {
    background: var(--p2t-bg);
    font-weight: 600;
}
.p2t-drug-content ul, .p2t-drug-content ol {
    padding-left: 24px;
}

/* ---------- Sidebar ---------- */
.p2t-sidebar-card {
    background: var(--p2t-white);
    border: 1px solid var(--p2t-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}
.p2t-sidebar-card h3 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--p2t-muted);
    margin-bottom: 14px;
}

/* ---------- Pagination ---------- */
.p2t-pagination { padding: 32px 0 48px; }
.p2t-pagination .pagination {
    gap: 4px;
    justify-content: center;
}
.p2t-pagination .page-link {
    border: 1px solid var(--p2t-border);
    border-radius: var(--radius-sm);
    color: var(--p2t-text-light);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    transition: all 0.15s;
}
.p2t-pagination .page-link:hover {
    background: var(--p2t-mint);
    border-color: var(--p2t-teal);
    color: var(--p2t-teal);
}
.p2t-pagination .page-item.active .page-link {
    background: var(--p2t-navy);
    border-color: var(--p2t-navy);
    color: #fff;
}

/* ---------- Footer ---------- */
.p2t-footer {
    background: var(--p2t-navy-dark);
    color: rgba(255,255,255,0.7);
    padding: 56px 0 0;
}
.p2t-footer h4 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
}
.p2t-footer a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color 0.15s;
}
.p2t-footer a:hover { color: #fff; }
.p2t-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.p2t-footer ul li { margin-bottom: 10px; }
.p2t-footer .footer-brand {
    font-family: var(--font-heading);
    font-size: 20px;
    color: #fff;
    margin-bottom: 14px;
    display: block;
}
.p2t-footer .footer-brand span { color: var(--p2t-teal-light); }
.p2t-footer .footer-tagline {
    font-size: 13.5px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 280px;
}
.p2t-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 48px;
    padding: 20px 0;
}
.p2t-footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

/* Medical Disclaimer */
.p2t-disclaimer {
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
}
.p2t-disclaimer p {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
    text-align: center;
    margin: 0;
}

/* ---------- Go Top Button ---------- */
.p2t-go-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--p2t-navy);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
    border: none;
    z-index: 999;
}
.p2t-go-top:hover { background: var(--p2t-teal); transform: translateY(-2px); }
.p2t-go-top.visible { display: flex; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .p2t-hero h1 { font-size: 2rem; }
    .p2t-hero { padding: 48px 0; }
    .p2t-hero-stats { gap: 24px; }
    .p2t-hero-stats .stat-num { font-size: 1.4rem; }
    .p2t-search-box { flex-direction: column; }
    .p2t-search-box .btn-search-submit { width: 100%; justify-content: center; }
    .p2t-info-row { flex-direction: column; gap: 6px; }
    .p2t-info-label { width: auto; }
    .p2t-similar-drugs .drug-grid { grid-template-columns: repeat(2, 1fr); }
    .p2t-drug-card .drug-header,
    .p2t-drug-info,
    .p2t-drug-content,
    .p2t-similar-drugs { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 767.98px) {
    .p2t-hero h1 { font-size: 1.65rem; }
    .p2t-hero-stats { flex-direction: column; gap: 16px; }
    .p2t-az-bar a { width: 34px; height: 34px; font-size: 12.5px; }
    .p2t-similar-drugs .drug-grid { grid-template-columns: 1fr 1fr; }
    .p2t-navbar .nav-link { padding: 10px 16px !important; }
    .p2t-category-card { padding: 20px 16px; }
}

@media (max-width: 575.98px) {
    .p2t-similar-drugs .drug-grid { grid-template-columns: 1fr; }
}

/* ---------- Search Dropdown ---------- */
.p2t-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--p2t-white);
    border: 1px solid var(--p2t-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    margin-top: 4px;
    max-height: 400px;
    overflow-y: auto;
}
.p2t-search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: var(--p2t-text);
    text-decoration: none;
    transition: background 0.15s;
    border-bottom: 1px solid var(--p2t-border);
    gap: 8px;
}
.p2t-search-result-item:last-of-type { border-bottom: none; }
.p2t-search-result-item:hover {
    background: var(--p2t-mint);
    color: var(--p2t-text);
    text-decoration: none;
}
.p2t-search-result-name {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.p2t-search-result-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    white-space: nowrap;
}
.p2t-search-view-all {
    display: block;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--p2t-teal);
    border-top: 1px solid var(--p2t-border);
    transition: background 0.15s;
}
.p2t-search-view-all:hover {
    background: var(--p2t-mint);
    color: var(--p2t-teal);
    text-decoration: none;
}

/* ---------- Navbar Search ---------- */
.p2t-nav-search-wrapper {
    position: relative;
}
.p2t-nav-search-input {
    border: 1px solid var(--p2t-border);
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-size: 13.5px;
    font-family: var(--font-body);
    color: var(--p2t-text);
    background: var(--p2t-bg);
    outline: none;
    width: 200px;
    transition: all 0.25s ease;
}
.p2t-nav-search-input::placeholder { color: var(--p2t-muted); }
.p2t-nav-search-input:focus {
    width: 260px;
    border-color: var(--p2t-teal);
    background: var(--p2t-white);
    box-shadow: 0 0 0 3px rgba(15,123,108,0.1);
}

/* Search result page tags */
.item-tag.tag-country { background: #EBF5FB; color: #2980B9; }
.item-tag.tag-disease { background: #FDEDEC; color: #C0392B; }
.item-tag.tag-ingredient { background: #E8F8F5; color: #0F7B6C; }
.item-tag.tag-action { background: #F5EEF8; color: #8E44AD; }

@media (max-width: 991.98px) {
    .p2t-nav-search { margin-left: 0; margin-top: 8px; margin-bottom: 8px; }
    .p2t-nav-search-input { width: 100%; }
    .p2t-nav-search-input:focus { width: 100%; }
}

/* ---------- Override old e-commerce styles ---------- */
.top-header { display: none !important; }
.navbar-area:not(.p2t-navbar) { display: none !important; }
.search-overlay { display: none !important; }
.productsQuickView { display: none !important; }
.productsFilterModal { display: none !important; }

/* ---------- Editorial AI intro (lede) ----------
   Treatment: editorial pharmacopoeia. Cream-tinted surface so the
   block reads as "about this medication" rather than another data row.
   A small caps marker sets the tone, a teal drop-cap in DM Serif
   Display anchors the first paragraph, body uses IBM Plex Sans 16/17
   with hard sibling margins so reset rules can't flatten the rhythm. */
.p2t-drug-intro {
    position: relative;
    padding: 36px 36px 32px 36px;
    background: #FBF9F4;
    border-bottom: 1px solid var(--p2t-border);
}
.p2t-drug-intro::before {
    content: 'About this medication';
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--p2t-teal);
    margin-bottom: 18px;
}
.p2t-drug-intro p {
    color: var(--p2t-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}
.p2t-drug-intro p + p {
    margin-top: 1.1em;
}
.p2t-drug-intro p:first-of-type {
    font-size: 17px;
}
/* Drop-cap on the first letter of the first paragraph */
.p2t-drug-intro p:first-of-type::first-letter {
    font-family: var(--font-heading);
    float: left;
    font-size: 3.6em;
    line-height: 0.85;
    margin: 6px 12px 0 0;
    color: var(--p2t-teal);
    font-weight: 400;
}

/* ---------- Editorial FAQ section ----------
   Replaces the default <dl>/<dt>/<dd> render with article-per-question
   cards. The italic DM Serif Display heading carries the editorial
   register; each Q gets a serif "Q." marker in teal that visually pairs
   with the intro's drop-cap and signals the start of a question
   without relying on a generic disclosure widget. */
.p2t-drug-faq {
    background: var(--p2t-white);
    border: 1px solid var(--p2t-border);
    border-radius: var(--radius-md);
    padding: 36px;
    margin-top: 28px;
}
.p2t-drug-faq > h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 400;
    margin: 0 0 24px 0;
    color: var(--p2t-text);
    letter-spacing: -0.01em;
}
.p2t-drug-faq .faq-list {
    display: flex;
    flex-direction: column;
}
.p2t-drug-faq .faq-item {
    padding: 22px 0;
    border-top: 1px solid var(--p2t-border);
}
.p2t-drug-faq .faq-item:first-child {
    border-top: none;
    padding-top: 4px;
}
.p2t-drug-faq .faq-item:last-child {
    padding-bottom: 0;
}
.p2t-drug-faq .faq-q {
    display: flex;
    gap: 14px;
    align-items: baseline;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--p2t-text);
    margin: 0 0 10px 0;
    line-height: 1.45;
}
.p2t-drug-faq .faq-q-marker {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 400;
    color: var(--p2t-teal);
    line-height: 1;
}
.p2t-drug-faq .faq-a {
    margin: 0 0 0 32px;
    color: var(--p2t-text-light);
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.75;
}

@media (max-width: 767.98px) {
    .p2t-drug-intro {
        padding: 24px;
    }
    .p2t-drug-intro::before {
        font-size: 10px;
        margin-bottom: 14px;
    }
    .p2t-drug-intro p {
        font-size: 15px;
    }
    .p2t-drug-intro p:first-of-type {
        font-size: 16px;
    }
    .p2t-drug-intro p:first-of-type::first-letter {
        font-size: 2.8em;
        margin-right: 8px;
    }
    .p2t-drug-faq {
        padding: 24px;
    }
    .p2t-drug-faq > h2 {
        font-size: 1.35rem;
    }
    .p2t-drug-faq .faq-q {
        font-size: 1rem;
        gap: 10px;
    }
    .p2t-drug-faq .faq-q-marker {
        font-size: 1.25rem;
    }
    .p2t-drug-faq .faq-a {
        margin-left: 0;
        font-size: 14px;
    }
}
