.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .card {
        padding: 14px 10px;
        font-size: 0.98rem;
    }
    .card-title {
        font-size: 1rem;
    }
    .card-summary {
        font-size: 0.93rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 2px;
    }
    .grid-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .card {
        padding: 10px 6px;
        font-size: 0.95rem;
    }
    .card-title {
        font-size: 0.98rem;
    }
    .card-summary {
        font-size: 0.9rem;
    }
    .pagination button {
        padding: 6px 10px;
        font-size: 0.95rem;
    }
    .search-box input {
        width: 100%;
        font-size: 0.97rem;
        padding: 7px 10px;
    }
    ul.responsive-list {
        gap: 12px;
    }
    .list-item {
        padding: 10px 6px;
        font-size: 0.95rem;
    }
}

.card {
    padding: 18px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: none;
}

.card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px) scale(1.02);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

a.widget-link {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.18s, text-decoration 0.18s;
    outline: none;
    border-radius: 4px;
    padding: 2px 4px;
    word-break: break-word;
}

a.widget-link:hover,
a.widget-link:focus {
    color: #1d4ed8;
    box-shadow: 0 0 0 2px #2563eb33;
}

.card-summary {
    font-size: 0.97rem;
    color: #4a5568;
}

.dropdown {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 1rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    appearance: none;
    transition: border-color 0.2s;
}

.dropdown:focus {
    border-color: #3182ce;
    outline: none;
}

.dropdown-wrapper {
    max-width: 400px;
    margin: 0 auto 24px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pagination {
    display: flex;
    gap: 8px;
    margin: 24px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    background: #fff;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pagination button.active,
.pagination button:hover {
    background: #3182ce;
    color: #fff;
    border-color: #3182ce;
}

.search-box {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-end;
}

.search-box input {
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 240px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #3182ce;
    outline: none;
}

ul.responsive-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.list-item {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    padding: 18px 16px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.list-item:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px) scale(1.01);
}

@media (max-width: 600px) {
    .container {
        padding: 0;
    }

    .search-box input {
        width: 100%;
    }
}

.heading {
    font-weight: 700;
    padding: 6px 16px;
    text-align: center;
}
/* --- Responsive grid and card adjustments --- */
@media (max-width: 900px) {
    .grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .card {
        padding: 14px 10px;
        font-size: 0.98rem;
    }
    .card-title {
        font-size: 1rem;
    }
    .card-summary {
        font-size: 0.93rem;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 2px;
    }
    .grid-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .card {
        padding: 10px 6px;
        font-size: 0.95rem;
    }
    .card-title {
        font-size: 0.98rem;
    }
    .card-summary {
        font-size: 0.9rem;
    }
    .pagination button {
        padding: 6px 10px;
        font-size: 0.95rem;
    }
    .search-box input {
        width: 100%;
        font-size: 0.97rem;
        padding: 7px 10px;
    }
    ul.responsive-list {
        gap: 12px;
    }
    .list-item {
        padding: 10px 6px;
        font-size: 0.95rem;
    }
}

/* --- Responsive dropdown adjustments --- */
@media (max-width: 500px) {
    .dropdown-wrapper {
        max-width: 100%;
        padding: 0 2px;
    }
    .dropdown {
        font-size: 0.95rem;
        padding: 8px 8px;
    }
}

/* --- Responsive detail page adjustments --- */
@media (max-width: 900px) {
    main {
        max-width: 100%;
        padding: 0 8px;
    }
    header {
        font-size: 13px;
        padding: 8px 0;
    }
    h2, h3 {
        font-size: 15px;
        padding-bottom: 4px;
    }
    p, a {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    main {
        margin: 10px auto 20px;
        padding: 0 4px;
    }
    header {
        font-size: 12px;
        padding: 6px 0;
    }
    h2, h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    p, a {
        font-size: 11px;
    }
    section {
        margin-bottom: 18px;
    }
}

/* --- Responsive When to Call section --- */
.when-to-call .call-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 12px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background: #f8fafc;
}

.when-to-call .call-box {
    flex: 1 1 33.3333%;
    min-width: 220px;
    box-sizing: border-box;
    padding: 22px 24px;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    transition: background 0.2s;
}

.when-to-call .call-box:last-child {
    border-right: none;
}

.when-to-call .call-box:nth-child(1) {
    background: #e3f2fd; /* light blue */
}
.when-to-call .call-box:nth-child(2) {
    background: #e8f5e9; /* light green */
}
.when-to-call .call-box:nth-child(3) {
    background: #fffde7; /* light yellow */
}

@media (max-width: 900px) {
    .when-to-call .call-box {
        min-width: 0;
        padding: 18px 10px;
        font-size: 0.97rem;
    }
}

@media (max-width: 700px) {
    .when-to-call .call-grid {
        flex-direction: column;
        gap: 12px;
    }
    .when-to-call .call-box {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        min-width: 0;
        padding: 16px 8px;
        font-size: 0.97rem;
    }
    .when-to-call .call-box:last-child {
        border-bottom: none;
    }
}

/* --- Responsive loader spinner --- */
@media (max-width: 600px) {
    .loader-spinner {
        width: 36px;
        height: 36px;
        border-width: 4px;
    }
}

/* --- Responsive disclaimers and strong paragraphs --- */
@media (max-width: 600px) {
    .disclaimer {
        font-size: 7px;
        margin-top: 12px;
    }
    .strong-p {
        font-size: 0.97rem;
        margin-bottom: 6px;
    }
}

.go-back-btn {
    display: inline-block;
    margin: 16px 0;
    padding: 8px 18px;
    font-size: 1rem;
    font-weight: 600;
    color: #2563eb;
    background: #e3f2fd;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.07);
    outline: none;
}
.go-back-btn:hover,
.go-back-btn:focus-visible {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 0 0 2px #2563eb33;
}

.remedy-aaplogos{margin-bottom:1em;text-align:left;display:block;}
.remedy-aap{margin:1em;display:inline-block;}
.remedy-aap img{height:35px;width:auto;max-width:100%;}
.remedy-pdflinks{font-size:0.8em;}