@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    from {
        border-right-color: rgba(0, 0, 0, 0.5);
    }

    to {
        border-right-color: transparent;
    }
}

.typewriter {
    animation: typing 4s steps(20, end) infinite, blink 0.9s step-end infinite;
}

.marquee-wrapper {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.marquee {
    display: flex;
    animation: marquee 30s linear infinite;
    will-change: transform; /* Optimize animation performance */
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.marquee img {
    flex-shrink: 0;
    margin-right: 2rem;
    content-visibility: auto; /* Optimize rendering for off-screen images */
}

.marquee1 {
    display: flex;
    animation: marquee 40s linear infinite;
    margin-top: 40px;
}

@keyframes marquee1 {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.marquee1 img {
    flex-shrink: 0;
    margin-right: 2rem;
}

.px-margin {
    padding-left: 5.625rem;
    padding-right: 5.625rem;
}

.h-global-header {
    height: 4.5rem;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.px-responsive-xl-36 {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
}

picture {
    display: block;
    height: auto;
    vertical-align: middle;
    width: 100%;
}

.bg-hot-brick\/90 {
    background-color: #fed600;
}

.bg-grid::before {
    --size: 45px;
    --line: rgba(0, 0, 0, 0.2);
    /* Adjust color and transparency */
    background-image:
        linear-gradient(90deg, var(--line) 1px, transparent 1px var(--size)),
        linear-gradient(var(--line) 1px, transparent 1px var(--size));
    background-size: var(--size) var(--size);
    background-position: center;
    mask: linear-gradient(-20deg, transparent 50%, white);
    -webkit-mask: linear-gradient(-20deg, transparent 50%, white);
}

/* Space between buttons lBfrtip*/
div.dt-buttons {
    margin-left: .7rem;
}

body,
html {
    height: 100%;
    --focus-ring-color: currentColor;
    --focus-ring-offset: 0.375rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    /* Ensure both html and body get applied */
    transition: font-size 0.2s ease-in-out;
}

body {
    margin: 0;
    line-height: inherit;
}

.richtext-image {
    max-height: 550px;
    width: 100%;
    object-fit: cover;
    /* Prevents stretching */
}

.text-body-lg {
    font-size: .9rem;
    letter-spacing: .01em;
    line-height: 1.6;
}

.text-rich p {
    margin-bottom: .9rem;
}

/* Add to your global styles */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    scrollbar-width: none;
}

.tooltip {
    z-index: 9999 !important;
    position: absolute;
    /* or fixed, as needed */
}

.carousel-track {
    overflow-x: scroll;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

*,
*::before,
*::after {
    break-inside: auto !important;
    page-break-inside: auto !important;
    break-before: auto !important;
    page-break-before: auto !important;
    break-after: auto !important;
    page-break-after: auto !important;
    float: none !important;
}




/* base.html home templates */
/* Add custom tooltip styles */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1001;
    pointer-events: none;
    margin-bottom: 5px;
}

/* Add arrow to tooltip */
[title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    z-index: 1001;
    pointer-events: none;
}


/* feedback.html */
.star {
    font-size: 2.5rem;
    transition: color 0.3s;
    color: gray;
    outline: none;
}

.star:focus {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.star.active {
    color: gold;
}

/* dasboard_page.html */

:root {
    --card-primary: #f5faff;
    --card-blue: #8de2ff;
    --card-green: #4cefbc;
    --card-orange: #ffce55;
    --card-red: #ff7777;
    --accent-blue: #2563eb;
    --accent-green: #059669;
    --accent-orange: #eab308;
    --accent-red: #f43f5e;
}

.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 2.2em;
    margin: 28px 32px;
}

.dashboard-row {
    display: grid;
    width: 100%;
    gap: 1.6em;
}

.cards-row {
    grid-template-columns: repeat(4, 1fr);
}

.charts-row {
    grid-template-columns: repeat(12, 1fr);
    /* 12-column flexible layout */
    grid-auto-rows: minmax(350px, auto);
    align-items: stretch;
}

.dashboard-title {
    font-size: 2.1em;
    text-align: center;
    margin-top: 18px;
    font-weight: 800;
    text-decoration: underline;
    letter-spacing: 0.01em;
    color: #1e293b;
    text-shadow: 0 2px 8px #e0e7ef3a;
    border-radius: 0.15em;
    transition: color 0.16s;
}

.dashboard-title:hover {
    color: #2563eb;
}

.mini-card {
    border-radius: 0.3em;
    box-shadow: 0 2px 14px rgba(52, 70, 140, 0.08);
    border: 1px solid #000;
    display: flex;
    align-items: flex-start;
    padding: 1.65em 1em;
    min-height: 132px;
    gap: .5em;
    font-size: 1.09em;
    position: relative;
    background: var(--card-primary);
    transition: transform 0.13s, box-shadow 0.18s;
}

.mini-card:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 4px 26px 0 rgba(30, 64, 175, 0.14);
}

.mini-card--blue {
    background: var(--card-blue);
}

.mini-card--green {
    background: var(--card-green);
}

.mini-card--orange {
    background: var(--card-orange);
}

.mini-card--red {
    background: var(--card-red);
}

.mini-card-icon {
    font-size: 2.5em;
    margin-right: 0.2em;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    background: #ffffff;
    padding: 6px;
    opacity: 0.93;
}

.mini-card--blue .mini-card-icon {
    color: var(--accent-blue);
}

.mini-card--green .mini-card-icon {
    color: var(--accent-green);
}

.mini-card--orange .mini-card-icon {
    color: var(--accent-orange);
}

.mini-card--red .mini-card-icon {
    color: var(--accent-red);
}

.mini-card-content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 0.18em;
}

.mini-card-value {
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.mini-card-label {
    font-size: 1em;
    font-weight: 600;
    color: #000;
}

/* Chart Block Styling */
.dashboard-block {
    border-radius: 6px;
    padding: 1px;
    text-align: center;
    font-weight: 500;
    border: 2px solid #ededed;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chart-placeholder {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.chart-placeholder>svg,
.chart-placeholder>canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block;
}

.char-title {
    margin-top: 8px;
    font-size: 1.2em;
    font-weight: 700;
    color: #1e293b;
}

/* Responsive */
@media (max-width: 1200px) {
    .cards-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-row {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 800px) {
    .dashboard-grid {
        margin: 0 8px;
    }

    .cards-row,
    .charts-row {
        grid-template-columns: 1fr;
        gap: 1.1em;
    }

    .charts-row .dashboard-block {
        min-height: 200px;
    }
}

@media (max-width: 600px) {
    .dashboard-block {
        grid-column: 1 / -1 !important;
        /* Force full width */
        width: 100% !important;
    }

    .dashboard-grid {
        grid-template-columns: 1fr !important;
        /* Single column grid */
    }

    .dashboard-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        scrollbar-width: thin;
        scrollbar-color: #ccc #f9f9f9;
    }

    .dashboard-tab {
        flex: 0 0 auto;
        min-width: 140px;
        padding: 0.5rem 1rem;
        text-align: center;
        white-space: nowrap;
    }

    .dashboard-tabs::-webkit-scrollbar {
        height: 6px;
    }

    .dashboard-tabs::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }

    .dashboard-tabs::-webkit-scrollbar-track {
        background: #f9f9f9;
    }
}

.icon-bg-blue,
.icon-bg-green,
.icon-bg-orange,
.icon-bg-red {
    background: transparent;
    border-right: 2px solid #000;

}

.chart-placeholder {
    position: relative;
}

.zoom-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.zoom-controls button {
    background: #1e293b;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.zoom-controls button:hover {
    background: #2563eb;
}

#svg-tooltip {
    position: fixed;
    display: none;
    background: white;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    z-index: 9999;
    pointer-events: none;
    white-space: nowrap;
}

.dashboard-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    margin: 0px 0 8px 0;
    border-bottom: 1px solid #e6e6e6;
    background: #fafbfc;
}

.dashboard-tab {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 22px 9px 22px;
    transition: background 0.15s, color 0.13s;
    position: relative;
}

.dashboard-tab.active,
.dashboard-tab:hover {
    color: #2563eb;
    background: #f4f8ff;
    border-bottom: 2.5px solid #2563eb;
}

/* feeback_list */

.listing {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.listing th,
.listing td {
    padding: 10px;
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
    border-bottom: 1px solid #ddd;
}

.listing th {
    background-color: #f5f5f5;
}

.listing td:nth-child(4) {
    /* Message column */
    min-width: 300px;
    max-width: 400px;
    word-break: break-word;
    white-space: normal;
    overflow-y: auto;
    max-height: 150px;
}

.panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* home.html */


#external-link-modal {

    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}

/* Reserve space for header images to prevent CLS */
.pci1img,
.pci2img {
    min-width: 136px;
    min-height: 96px;
    aspect-ratio: 136 / 96;
}

/* Reserve space for header text to prevent CLS */
#top-header a[href="/"] > div {
    min-height: 60px;
}

@media (min-width: 640px) {
    #top-header a[href="/"] > div {
        min-height: 72px;
    }
}

/* Prevent layout shifts from emblem images */
#emblem-image1,
#emblem-image {
    min-width: 48px;
    min-height: 48px;
    aspect-ratio: 1 / 1;
}

#external-link-modal.show {
    display: flex !important;
    animation: fadeInModal 0.25s ease;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#external-link-modal .modal-content {
    background: #fff;
    padding: 2.2rem 2rem 1.5rem 2rem;
    border-radius: 1.25rem;
    max-width: 95vw;
    min-width: 320px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 1.5px 6px rgba(0, 0, 0, 0.10);
    text-align: center;
    position: relative;
    animation: popInModal 0.3s cubic-bezier(.25, 1.7, .45, .87);
}

@keyframes popInModal {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#external-link-modal .modal-content p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: #222;
}

#external-link-url {
    color: #0074d9;
    font-weight: 500;
    font-size: 1rem;
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

#external-link-open,
#external-link-cancel {
    padding: 0.5rem 1.7rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

#external-link-open {
    background: #0074d9;
    color: #fff;
}

#external-link-open:hover {
    background: #005fa3;
}

#external-link-cancel {
    background: #f3f3f3;
    color: #333;
}

#external-link-cancel:hover {
    background: #e0e0e0;
    color: #0074d9;
}

/* image_folder_page.html */


.gallery-grid {
    column-count: 4;
    column-gap: 8px;
    margin: 10px 160px 10px auto;
    width: 100%;
    max-width: 1200px;
    padding: 0;
    display: block;
}

.gallery-item {
    display: block;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0 0 8px 0;
    padding: 0;
    cursor: pointer;
    break-inside: avoid;
    overflow: hidden;
}

.gallery-img-preview {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    display: block;
    padding: 5px;
}

.lightbox-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    flex-direction: row;
    padding: 0;
}

.lightbox-content {
    max-width: 70vw;
    max-height: 60vh;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    margin: 0 24px;
    background: #fff;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 32px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
    user-select: none;
}

.lightbox-arrow {
    color: #fff;
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1010;
    transition: background 0.15s;
}

.lightbox-arrow:hover {
    background: rgba(96, 165, 250, 0.7);
}

.lightbox-arrow-left {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-arrow-right {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 4px;
    }

    .gallery-item {
        margin-bottom: 4px;
    }

    .gallery-img-preview {
        width: 100%;
        height: auto;
    }

    .lightbox-content {
        max-width: 92vw;
        max-height: 40vh;
        margin: 0 6px;
    }

    .lightbox-arrow {
        font-size: 1.3rem;
        width: 28px;
        height: 28px;
    }

    .lightbox-arrow-left {
        left: 6px;
    }

    .lightbox-arrow-right {
        right: 6px;
    }
}

/* header.html */


/* Hide all dropdowns by default */
.dropdown-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    overflow: visible;
    /* Ensures content inside dropdown does not get cut off */
    position: absolute;
    /* Ensures it stays in the correct position */
    z-index: 1000;
    /* Keeps dropdown above other content */
}

/* Show dropdown when hovering over parent or when focused */
.dropdown:hover>.dropdown-content,
.dropdown:focus-within>.dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Ensure submenus appear without clipping */
.dropdown-content .dropdown {
    position: relative;
}

.dropdown-content .dropdown .dropdown-content {
    top: 0;
    left: 100%;
    /* Positions submenu to the right */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

/* Show submenus when hovering over their parent or when focused */
.dropdown-content .dropdown:hover>.dropdown-content,
.dropdown-content .dropdown:focus-within>.dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Focus styles for navigation elements */
.dropdown button:focus,
.dropdown a:focus {
    outline: 2px solid #ffc22d;
    outline-offset: 2px;
}

/* Focus styles for dropdown items */
.dropdown-content a:focus {
    background-color: #f3f4f6;
    outline: 2px solid #ffc22d;
    outline-offset: -2px;
}

/* Focus styles for action buttons */
.stats a:focus {
    outline: 2px solid #ffc22d;
    outline-offset: 2px;
}

/* Focus styles for language selector and dark mode toggle */
#language-selector:focus,
#theme-toggle:focus {
    outline: 2px solid #ffc22d;
    outline-offset: 2px;
}

/* Focus styles for header action buttons */
.header-action-btn:focus {
    outline: 2px solid #ffc22d;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px #ffc22d;
    /* subtle yellow glow */
}

/* Class to hide dropdowns */
.dropdown-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Add custom tooltip styles */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1001;
    pointer-events: none;
    margin-bottom: 5px;
}

/* Add arrow to tooltip */
[title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    z-index: 1001;
    pointer-events: none;
}

/* Ensure tooltips don't get cut off */
.dropdown-content [title]:hover::after {
    bottom: auto;
    top: 100%;
    margin-top: 5px;
    margin-bottom: 0;
}

.dropdown-content [title]:hover::before {
    bottom: auto;
    top: calc(100% - 5px);
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
}

/* ================================================================
   COMPACT TOP HEADER  (#top-header-zoom)
   2-row design — same dark-navy background both rows.
   ROW 1 : Logo | Search | Clock  → A-/A/A+ | Language | Theme | Emblems
   ROW 2 : Navigation links (links only — lighter, always fits)
   Shown at 768–1279px viewport  (hidden md:block xl:hidden)
   ================================================================ */

/* Outer wrapper */
#top-header-zoom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 51;
    box-sizing: border-box;
    background-color: #002147;
    /* unified dark navy */
    overflow: visible !important;
    /* Allow tooltips to show outside container */
}

/* ═══ ROW 1 ═══ */
#top-header-zoom-row1 {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0 0.75rem;
    height: 50px;
    box-sizing: border-box;
    overflow: visible !important;
    /* Allow tooltips to show */
    width: 100%;
    position: relative;
    /* Enable tooltip positioning */
}

/* Logo anchor */
#top-header-zoom-row1>a:first-child {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    text-decoration: none;
}

/* Logo images — fixed 36px height */
#top-header-zoom-row1>a:first-child img {
    height: 36px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

/* "Pharmacy Council of India" text */
#top-header-zoom-row1>a:first-child span {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.72rem;
    white-space: nowrap;
    line-height: 1.25;
}

/* Search form */
#top-header-zoom-row1 .zh-search-wrap {
    position: relative;
    flex-shrink: 0;
}

#top-header-zoom-row1 .zh-search-wrap input[type="text"] {
    width: 7rem;
    height: 28px;
    padding: 0 0.4rem 0 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.7rem;
    box-sizing: border-box;
    outline: none;
}

#top-header-zoom-row1 .zh-search-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#top-header-zoom-row1 .zh-search-wrap input:focus {
    border-color: #e6b800;
}

#top-header-zoom-row1 .zh-search-wrap svg {
    position: absolute;
    left: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.8rem;
    height: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

/* Clock */
#top-header-zoom-row1 #clock-zoom {
    background: #e6b800;
    color: #000000;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Font-size A- A A+ in Row 1 */
#top-header-zoom-row1 #decrease-font-zoom,
#top-header-zoom-row1 #reset-font-zoom,
#top-header-zoom-row1 #increase-font-zoom {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0 0.1rem;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1;
}

#top-header-zoom-row1 #decrease-font-zoom:hover,
#top-header-zoom-row1 #reset-font-zoom:hover,
#top-header-zoom-row1 #increase-font-zoom:hover {
    color: #ffffff;
}

#top-header-zoom-row1 #reset-font-zoom {
    font-weight: 700;
}

/* Language selector in Row 1 */
#top-header-zoom-row1 #language-selector-zoom {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    flex-shrink: 0;
    height: 26px;
}

/* Theme toggle in Row 1 */
#top-header-zoom-row1 #theme-toggle-zoom {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#top-header-zoom-row1 #theme-toggle-zoom svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

/* Government emblem images — icon only, no extra text from SVG viewBox */
#top-header-zoom-row1>img {
    height: 28px;
    width: auto;
    max-width: 60px;
    /* clip any SVG that renders text alongside icon */
    flex-shrink: 0;
    object-fit: contain;
    object-position: left center;
}

/* ═══ TOOLTIPS FOR ROW 1 - Consistent styling for all tooltips ═══ */
/* Ensure elements can show tooltips */
#top-header-zoom-row1 a,
#top-header-zoom-row1 button,
#top-header-zoom-row1 select,
#top-header-zoom-row1 img {
    position: relative !important;
}

/* Tooltip for all elements in row 1 - positioned BELOW to avoid being cut at top */
#top-header-zoom-row1 [title]:hover::after {
    content: attr(title) !important;
    position: absolute !important;
    top: calc(100% + 5px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-top: 0 !important;
    padding: 11px 10px !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
    color: #ffffff !important;
    font-size: 0.7rem !important;
    font-weight: normal !important;
    white-space: nowrap !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    pointer-events: none !important;
    z-index: 999999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    max-width: 300px !important;
    text-align: center !important;
    line-height: 0.3 !important;
}

/* Tooltip arrow for row 1 - pointing UP to element */
#top-header-zoom-row1 [title]:hover::before {
    content: '' !important;
    position: absolute !important;
    top: calc(100% + 3px) !important;
    /* Just below element */
    left: 50% !important;
    transform: translateX(-50%) !important;
    /* Center horizontally */
    border: 5px solid transparent !important;
    border-bottom-color: rgba(0, 0, 0, 0.9) !important;
    /* Arrow pointing UP */
    pointer-events: none !important;
    z-index: 999999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* ═══ ROW 2 ═══ */
#top-header-zoom-row2 {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.6rem;
    padding: 0px 2.75rem;
    height: 35px;
    background-color: #001a3d;
    /* slightly deeper tone = visual separator */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    overflow: visible !important;
    /* Changed from hidden to visible so tooltips can show */
    width: 100%;
    font-size: 0.75rem;
    /* Increased from 0.62rem for better visibility at 125% zoom */
    position: relative;
    /* Ensure tooltips can position relative to this container */
    z-index: 1000;
    /* High z-index so tooltips appear above other content */
}

/* Dividers (used in both rows) */
.zh-divider {
    width: 1px;
    height: 1rem;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

/* Spacer to push hamburger button to the right */
.zh-flex-spacer {
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
}

/* All links in Row 2 - Increased font size for better visibility at 125% zoom */
#top-header-zoom-row2 a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.75rem;
    /* Increased from 0.62rem for better visibility at 125% zoom */
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 1.2;
    font-weight: 500;
    position: relative;
    /* Enable tooltip positioning */
    z-index: 1001;
    /* Ensure tooltips appear above */
}

#top-header-zoom-row2 a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* DIGI-PHARMed blue pill button */
#top-header-zoom-row2 .zh-btn-blue {
    background: #2557D6;
    color: #ffffff;
    font-size: 0.75rem;
    /* Increased from 0.62rem for better visibility at 125% zoom */
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
    font-weight: 600;
    position: relative;
    /* Enable tooltip positioning */
    z-index: 1001;
    /* Ensure tooltips appear above */
}

#top-header-zoom-row2 .zh-btn-blue:hover {
    background: #1e47b8;
}

/* Hamburger button for high zoom */
.zh-hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    position: relative;
    cursor: pointer;
    padding: 4px 8px;
    margin: 0;
    flex-shrink: 0;
    z-index: 1001;
    /* Ensure tooltips appear above */
}

.zh-hamburger-icon {
    width: 32px;
    height: 32px;
    display: block;
}

/* Close icon for hamburger button */
.zh-close-icon {
    width: 32px;
    height: 32px;
    display: none;
    color: #ffffff;
    stroke: #ffffff;
    flex-shrink: 0;
}

.zh-hamburger-btn:hover .zh-hamburger-icon,
.zh-hamburger-btn:hover .zh-close-icon {
    opacity: 0.8;
}

.zh-hamburger-btn[aria-expanded="true"] .zh-hamburger-icon {
    opacity: 0.9;
}

/* ═══ TOOLTIPS FOR ROW 2 - Ensure they appear above all content ═══ */
#top-header-zoom-row2 [title]:hover::after {
    content: attr(title) !important;
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-bottom: 8px !important;
    padding: 6px 10px !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    color: #ffffff !important;
    font-size: 0.7rem !important;
    white-space: nowrap !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    pointer-events: none !important;
    z-index: 99999 !important;
    /* Highest z-index to appear above everything */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Tooltip arrow for Row 2 */
#top-header-zoom-row2 [title]:hover::before {
    content: '' !important;
    position: absolute !important;
    bottom: calc(100% - 5px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: 5px solid transparent !important;
    border-top-color: rgba(0, 0, 0, 0.95) !important;
    pointer-events: none !important;
    z-index: 99999 !important;
    /* Highest z-index to appear above everything */
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Ensure Row 2 elements can show tooltips */
#top-header-zoom-row2 a,
#top-header-zoom-row2 button {
    overflow: visible !important;
}

/* When compact header is visible (md → xl = 768px–1279px),
   push nav bar down by 48px instead of the full header's 112px */
/* Nav bar sits below compact header (row1=50px + row2=30px = 80px) */
@media (min-width: 768px) and (max-width: 1279px) {
    #scroll-header {
        top: 80px !important;
    }
}

/* ================================================================
   PRESIDENT / PROFILE IMAGE  — responsive at all zoom levels
   Problem: object-cover + w-full on a portrait photo crops to
   the VERTICAL CENTER (shows chest/neck) instead of the face.
   Fix: natural proportional display, max-height constrained.
   ================================================================ */
.psdimg {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 420px !important;
    object-fit: unset !important;
    /* disable any inherited crop */
    border-radius: 0.375rem;
    /* keep the rounded corners */
    margin: 0 auto;
    /* center within its flex parent */
}

/* On very narrow viewports (200%+ zoom) limit height further */
@media (max-width: 800px) {
    .psdimg {
        max-height: 280px !important;
    }
}

/* ================================================================
   TOP HEADER — ZOOM STABILITY  (GIGW 3.0 Compliant)
   Only #top-header is targeted — zero impact on rest of page.
   RULES:
     - NO overflow:hidden (would clip bottom row links)
     - NO flex-wrap:wrap on inner rows (would break 2-row layout)
     - Scale items DOWN using clamp() so they fit at any zoom
   ================================================================ */

/* 1. Outer container: box-sizing only — NO overflow clipping */
#top-header {
    max-width: 100vw;
    box-sizing: border-box;
}

/* 2. Right flex-grow panel: min-width so it can shrink — NO overflow:hidden */
#top-header .flex-grow {
    min-width: 0;
}

/* 3. Logo images: fluid width, preserve aspect ratio */
#top-header img.pci1img,
#top-header img.pci2img {
    width: clamp(4.5rem, 7vw, 8.5rem);
    height: auto;
    flex-shrink: 1;
    object-fit: contain;
}

/* 4. Logo title text: scale down and wrap when viewport narrows */
#top-header a[href="/"] .flex-col {
    min-width: 0;
}

#top-header a[href="/"] .flex-col>span {
    font-size: clamp(0.9rem, 1.5vw, 1.5rem);
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
}

#top-header a[href="/"] .flex-col>small {
    font-size: clamp(0.6rem, 0.8vw, 0.75rem);
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
}

/* 5. Emblem images (Digital India + Swasth Bharat): scale with viewport */
#top-header #emblem-image,
#top-header #emblem-image1 {
    height: clamp(2rem, 3.5vw, 3rem);
    width: auto;
    flex-shrink: 1;
}

/* 6. Search input: fluid — never wider than available space */
#top-header input[type="text"],
#top-header input[type="search"] {
    width: clamp(5rem, 9vw, 9rem);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* 7. Zoom viewport fixes: 768–1280px covers 125%–200% zoom on desktop */
@media (min-width: 768px) and (max-width: 1280px) {

    /* Reduce spacing between TOP ROW items (space-x-8 = 2rem normally) */
    #top-header .space-x-8> :not([hidden])~ :not([hidden]) {
        margin-right: calc(clamp(0.3rem, 0.8vw, 1rem) * var(--tw-space-x-reverse, 0));
        margin-left: calc(clamp(0.3rem, 0.8vw, 1rem) * calc(1 - var(--tw-space-x-reverse, 0)));
    }

    /* Reduce spacing between BOTTOM ROW items (space-x-5 = 1.25rem normally) */
    #top-header .space-x-5> :not([hidden])~ :not([hidden]) {
        margin-right: calc(clamp(0.2rem, 0.5vw, 0.75rem) * var(--tw-space-x-reverse, 0));
        margin-left: calc(clamp(0.2rem, 0.5vw, 0.75rem) * calc(1 - var(--tw-space-x-reverse, 0)));
    }

    /* Scale down clock badge */
    #top-header #clock {
        font-size: 0.6rem;
        padding: 0.2rem 0.35rem;
    }

    /* Scale down bottom row links and buttons */
    #top-header .flex.justify-end.items-center.mt-2 a,
    #top-header .flex.justify-end.items-center.mt-2 button,
    #top-header .flex.justify-end.items-center.mt-2 select {
        font-size: clamp(0.58rem, 0.8vw, 0.875rem);
    }

    /* Scale down the DIGI-PHARMed button specifically */
    #top-header .btn-sm {
        font-size: clamp(0.58rem, 0.8vw, 0.875rem);
        padding: 0.2rem 0.4rem;
    }
}

/* modal.html */


@keyframes modalSlideIn {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes modalSlideOut {
    from {
        transform: scaleX(1);
        opacity: 1;
    }

    to {
        transform: scaleX(0);
        opacity: 0;
    }
}

@layer utilities {
    .animate-modal {
        animation: modalSlideIn 0.4s ease-out forwards;
    }

    .animate-modal-close {
        animation: modalSlideOut 0.4s ease-in forwards;
    }
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
}

.closeModal {
    top: 1rem;
    /* Adjust top position as needed */
    right: 1rem;
    /* Adjust right position as needed */
}

/* html_section.html */


table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table th {
    background-color: #f5f5f5;
}

.html-content {
    /* Prevent XSS through CSS */
    max-width: 100%;
    overflow-x: auto;
}

.html-content img {
    max-width: 100%;
    height: auto;
}

.html-content a {
    color: #0066cc;
    text-decoration: underline;
}

.html-content a:hover {
    text-decoration: none;
}

/* state_list_page.html */


@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-in-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 2s ease-out forwards;
}

.delay-200 {
    animation-delay: 200ms;
}

.animate-pulse {
    animation: pulse 4s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 0.5;
    }
}

/* ================================================================
     HIGH ZOOM: Hide desktop menu, show only hamburger button
     At 768px-1279px viewport (high zoom), hide desktop nav and mobile container
     Show only hamburger button in compact header
     ================================================================ */

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

    /* Hide desktop navigation at high zoom - override Tailwind's md:flex */
    #scroll-header {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* Hide regular mobile menu container at high zoom */
    #mobile-menu-container {
        display: none !important;
    }

    /* Pull main content up to eliminate white gap, but preserve spacing for first section */
    main.flex-grow.w-full {
        margin-top: -100px !important;
    }

    /* Add padding to first section to prevent overlap with header */
    main.flex-grow.w-full > section:first-child,
    main.flex-grow.w-full section#main-content:first-of-type {
        padding-top: 140px !important; /* 100px (negative margin) + 40px (existing margin) = 140px */
    }

    /* Mobile menu for high zoom - separate menu - FULL WIDTH */
    #mobile-menu-zoom {
        display: none !important;
        position: fixed !important;
        z-index: 10000 !important;
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: calc(100vh - 80px) !important;
        background-color: #1a365d !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Ensure all content uses full width */
    #mobile-menu-zoom>* {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Tooltips in zoom menu - ensure they show */
    #mobile-menu-zoom [title]:hover::after {
        z-index: 10001 !important;
        position: absolute !important;
        bottom: auto !important;
        top: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 5px !important;
        background-color: rgba(0, 0, 0, 0.9) !important;
        color: white !important;
        padding: 5px 10px !important;
        border-radius: 4px !important;
        white-space: nowrap !important;
        pointer-events: none !important;
    }

    #mobile-menu-zoom [title]:hover::before {
        z-index: 10001 !important;
        position: absolute !important;
        bottom: auto !important;
        top: calc(100% - 5px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent !important;
    }

    /* Ensure menu items can show tooltips */
    #mobile-menu-zoom a,
    #mobile-menu-zoom button,
    #mobile-menu-zoom li {
        position: relative !important;
        overflow: visible !important;
    }

    /* When zoom menu is shown (not hidden) */
    #mobile-menu-zoom:not(.hidden) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* When zoom menu has hidden class */
    #mobile-menu-zoom.hidden {
        display: none !important;
        visibility: hidden !important;
    }

    /* Hide 3rd level menus in desktop dropdowns (if they somehow show) */
    .dropdown-content .dropdown-content .dropdown-content {
        display: none !important;
    }
}

/* base.html pciweb/template*/

/* Add custom tooltip styles */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1001;
    pointer-events: none;
    margin-bottom: 5px;
}

/* Add arrow to tooltip */
[title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
    z-index: 1001;
    pointer-events: none;
}