/*
 * CSIR-IHBT Joomla Template
 * Responsive recreation of the supplied reference layout.
 *
 * Breakpoints used throughout: 1200 / 900 / 600 / 480 (max-width).
 *
 * NOTE: the What's New ticker + search styles live in whatsnew.css,
 * which is loaded on the home page only (see index.php).
 */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
    /* Colours */
    --blue: #29469b;
    --blue-rgb: 41, 70, 155;
    --blue-dark: #20377d;
    --blue-darker: #172b70;
    --green: #82d83e;
    --white: #fff;
    --ink: #111;
    --text: #222;
    --muted: #555;
    --grey-100: #eee;
    --grey-200: #ddd;

    /* Typography */
    --font: Arial, Helvetica, sans-serif;
    --fs-lg: 18px;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius: 25px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow: 0 4px 16px rgba(0, 0, 0, .20);
    --shadow-card: 0 5px 15px rgba(0, 0, 0, .25);

    /* Layout */
    --max-width: 100%;
    --gutter: 30px;
    --nav-h: 50px;
    --ticker-h: 44px;
    --control-h: 42px;

    --hover: #030201;        /* dark black */
    --hover-text: #030201;
}


/* =========================================================
   2. GLOBAL
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    touch-action: pan-x pan-y;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    touch-action: pan-x pan-y;
    font-family: var(--font);
    line-height: 1.5;
    color: var(--text);
    background: var(--white);
}

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

a:hover,
a:focus-visible {
    color: var(--hover);   /* dark black (#111) */
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.container {
    width: min(100% - var(--gutter), var(--max-width));
    max-width: var(--max-width);
    margin-inline: auto;
}

/* Full-width container inside nav
   (the ticker equivalent is in whatsnew.css) */
.main-nav .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.section {
    /*padding: 14px 0;*/
    padding: 12px 0;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 10px;
    z-index: 9999;

    padding: 10px 16px;
    border-radius: 5px;

    color: var(--white);
    background: #000;
}

.skip-link:focus {
    top: 10px;
}

.alert {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 5px;
    background: #f1f1f1;
}


/* =========================================================
   3. SHARED COMPONENTS
   ========================================================= */

/* White card with soft shadow */
.module-card,
.patrons-director-card {
    background: var(--white);
    box-shadow: var(--shadow-card);
}

/* Pill buttons */
.hero-button,
.know-more-btn {
    display: inline-block;
    width: fit-content;

    border: 0;
    border-radius: var(--radius-pill);

    color: var(--text);
    background: var(--white);

    text-decoration: none;
    cursor: pointer;
    transition: .3s ease;
}

.hero-button {
    padding: 8px 20px;
    /*font-size: 12px;*/
    font-size: 15px;
}

.know-more-btn {
    padding: 12px 30px;
    font-size: 17px;
    font-weight: 500;
}

.hero-button:hover,
.know-more-btn:hover {
    background: var(--grey-100);
}

.know-more-btn:hover {
    transform: translateY(-3px);
}

.about-button {
    font-size: var(--fs-lg);
}

/* Clickable icon tiles (stats + technology categories) */
.stat,
.tech-category {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.stat img,
.tech-category img {
    display: block;
    margin-inline: auto;
    object-fit: contain;
    transition: transform .3s ease;
}

.stat:hover img,
.tech-category:hover img {
    transform: scale(1.08);
}

/* Background image with a flat colour tint on top.
   Set --tint and --bg on the element. */
.about-panel,
.about-image,
.contribution-panel {
    background:
        linear-gradient(var(--tint), var(--tint)),
        var(--bg) center / cover no-repeat;
}

/* Circular portrait photos */
.patron-item img,
.director-content img {
    flex: none;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
}

/* Blue divider line above a block */
.mission-content,
.director-desk-section {
    padding-top: 25px;
    border-top: 2px solid var(--blue);
}

/* Headings and body text inside the info cards */
.vision-text h2,
.mission-text h2,
.patrons-section h2,
.director-desk-section h2 {
    color: var(--blue-dark);
    font-weight: 700;
}

.vision-text h3,
.mission-text h3,
.patron-info h3,
.director-info h3 {
    color: var(--blue-dark);
}

.vision-text p,
.mission-text p,
.patron-info p,
.director-info p {
    margin: 0;
    padding: 0;
    color: #000;
    font-size: var(--fs-lg);
    line-height: 1.5;
    font-weight: 400;
}


/* =========================================================
   4. TOP BAR  (desktop base - tablet/phone rules are in the
      "TOP BAR: RESPONSIVE" block at the end of this file)
   ========================================================= */

.ihbt-topbar {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding: 0;
    box-sizing: border-box;
}

.ihbt-topbar-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px;

    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    background-color: #fbfbfb;
    border-bottom: 0px solid #000;
    border-radius: 0;
}

.ihbt-accessibility-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.ihbt-accessibility-link,
.ihbt-skip-link,
.ihbt-sitemap-link,
.ihbt-separator,
.ihbt-language label {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
}

.ihbt-accessibility-link,
.ihbt-skip-link,
.ihbt-sitemap-link {
    padding: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
}

.ihbt-accessibility-link:hover,
.ihbt-skip-link:hover,
.ihbt-sitemap-link:hover {
    color: var(--text);
}

.ihbt-separator {
    font-style: normal;
    line-height: 1;
}

.ihbt-language {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.ihbt-language label {
    margin: 0;
    cursor: pointer;
}

.ihbt-language select {
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    background: var(--white);
    cursor: pointer;
}

.ihbt-social-icons {
    --size: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 12px;
}

.ihbt-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--size);
    height: var(--size);
    min-width: var(--size);
    margin: 0;
    padding: 0;
    background: #000;
    text-decoration: none;
}

.ihbt-social-icons a img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================================================
   5. HEADER
   ========================================================= */

.site-header {
    width: 100%;
    background: var(--white);
}

.header-inner {
    --logo: clamp(48px, 8vw, 100px);

    display: grid;
    grid-template-columns: var(--logo) minmax(0, 1fr) var(--logo);
    column-gap: 10px;
    align-items: center;

    min-height: 100px;
    padding: 2px 150px;
}

.brand-logo,
.csir-logo {
    display: flex;
    justify-content: center;
}

.brand-logo img,
.csir-logo img {
    width: 100%;
}

.brand-title {
    text-align: center;
}

.brand-title .brand-hindi,
.brand-title h1 {
    color: #1f4e9e;
    /*font-size: clamp(12px, 2.4vw, 25px);*/
    font-size: clamp(12px, 2.4vw, 28px);
}

.brand-title .brand-hindi {
    margin-bottom: 2px;
}

.brand-title h1 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.brand-title p {
    margin: 3px 0 0;
    color: var(--muted);
    /*font-size: clamp(9px, 1.6vw, 16px);*/
    font-size: clamp(9px, 1.6vw, 18px);
}

.header-module {
    padding-bottom: 5px;
}


/* =========================================================
   6. MAIN NAVIGATION
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;

    width: 100%;
    height: auto;
    min-height: var(--nav-h);

    background: var(--white);
    border-top: 1px solid var(--grey-100);
    border-bottom: 1px solid var(--grey-200);
}

.main-nav .mod-menu {
    border: 0px solid #20377d;
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    justify-content: stretch;

    width: 100%;
    height: var(--nav-h);
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav .mod-menu li {
    margin: 0;
}

/* Menu fills the full width; each item shares the space equally */
.main-nav .mod-menu > li {
    flex: 1 1 auto;
}

.main-nav .mod-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 100%;
    min-height: var(--nav-h);
    padding: 5px;

    color: var(--blue-dark);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    text-decoration: none;

    transition: background-color .2s ease, color .2s ease;
}

.main-nav .mod-menu > li > a:hover,
.main-nav .mod-menu > li > a:focus-visible,
.main-nav .mod-menu > li:hover > a,
.main-nav .mod-menu > li.current > a,
.main-nav .mod-menu > li.active > a {
    color: var(--white);
    background: var(--blue-dark);
}

/* ---------- Sub menus: shared ---------- */

.main-nav .mod-menu li > ul {
    list-style: none;
}

.main-nav .mod-menu li > ul > li > a {
    display: block;
    color: var(--blue);
    font-size: 14px;
    /*line-height: 1.5;*/
    text-decoration: none;
}

/* ---------- Sub menus: desktop ---------- */

@media (min-width: 901px) {

    .main-nav .mod-menu li {
        position: relative;
    }

    .main-nav .mod-menu li > ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 9999;

        min-width: 240px;
        margin: 0;
        padding: 0;                 /* was: 8px 0 (caused white gaps) */

        background: var(--white);
        border-top: 3px solid var(--green);
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        box-shadow: 0 10px 25px rgba(0, 0, 0, .16);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px);

        transition: opacity .25s ease,
                    transform .25s ease,
                    visibility .25s ease;
    }

    .main-nav .mod-menu li:hover > ul,
    .main-nav .mod-menu li:focus-within > ul {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Make every submenu link fill the entire row */
    .main-nav .mod-menu li > ul > li {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .main-nav .mod-menu li > ul > li > a {
        display: block;
        width: 100%;
        box-sizing: border-box;

        padding: 12px 12px;
        color: var(--blue);
        white-space: normal;
        text-decoration: none;

        transition: background .25s ease,
                    color .25s ease,
                    padding-left .25s ease;
    }

    /* Blue background covers the full submenu row */
    .main-nav .mod-menu li > ul > li > a:hover,
    .main-nav .mod-menu li > ul > li > a:focus-visible,
    .main-nav .mod-menu li > ul > li:hover > a {
        color: var(--white);
        background: var(--blue);
        padding-left: 20px;
    }

    /* Third-level submenu */
    .main-nav .mod-menu li > ul li > ul {
        top: -3px;
        left: 100%;
        border-radius: var(--radius-sm);
        transform: translateX(10px);
    }

    .main-nav .mod-menu li > ul li:hover > ul,
    .main-nav .mod-menu li > ul li:focus-within > ul {
        transform: translateX(0);
    }

    /* Arrow for submenu items with children */
    .main-nav .mod-menu li > ul > li.parent > a,
    .main-nav .mod-menu li > ul > li.deeper > a {
        position: relative;
        padding-right: 34px;
    }

    .main-nav .mod-menu li > ul > li.parent > a::after,
    .main-nav .mod-menu li > ul > li.deeper > a::after {
        content: "›";
        position: absolute;
        top: 50%;
        right: 14px;
        font-size: 18px;
        transform: translateY(-50%);
    }

    /* Keep the last two top-level dropdowns inside the screen */
    .main-nav .mod-menu > li:nth-last-child(-n+2) > ul {
        left: auto;
        right: 0;
    }

    .main-nav .mod-menu > li:nth-last-child(-n+2) li > ul {
        left: auto;
        right: 100%;
    }
}

/* ---------- Sub menus: tablet / mobile ---------- */

@media (max-width: 900px) {

    .main-nav .mod-menu li > ul {
        display: none;
        position: static;
        width: 100%;
        background: #f4f6fb;
    }

    .main-nav .mod-menu li:hover > ul,
    .main-nav .mod-menu li:focus-within > ul,
    .main-nav .mod-menu li.open > ul {
        display: block;
    }

    .main-nav .mod-menu li > ul > li > a {
        padding: 10px 20px;
    }

    .main-nav .mod-menu li > ul > li > a:hover,
    .main-nav .mod-menu li > ul > li > a:focus-visible {
        color: var(--white);
        background: var(--blue);
    }

    /* Indent third level */
    .main-nav .mod-menu li > ul li > ul > li > a {
        padding-left: 36px;
    }
}

/* =========================================================
   7. WHAT'S NEW TICKER + SEARCH
   --> moved to whatsnew.css (home page only)
   ========================================================= */


/* =========================================================
   8. HERO
   ========================================================= */

/* The background image is supplied by the hero module itself 
.hero {
    width: 100%;
    min-height: clamp(310px, 25vw + 175px, 400px);
}

.hero-overlay {
    display: flex;
    align-items: center;
    min-height: inherit;
}

.hero-content {
    color: var(--white);
}

.hero-content .hero-small {
    font-size: clamp(20px, 3.2vw, 38px);
    font-weight: 300;
    line-height: 1.05;
}

.hero-content h2 {
    margin: 0 0 35px;
    font-size: clamp(34px, 5.2vw, 62px);
    font-weight: 400;
    line-height: .98;
}
*/

/* =========================================================
   9. STATISTICS
   ========================================================= */

.stats-strip {
    position: relative;
    z-index: 2;
    /*margin-top: -100px;  float over the hero */
    margin-top: 0px;
    padding: 10px 20px;

    background: var(--green);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stats-strip .stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
}

.stat strong,
.stat span {
    transition: color .3s ease;
}

.stat img {
    width: 95px;
    height: 95px;
    margin-bottom: 8px;
}

.stat strong {
    display: block;
    font-size: 25px;
    line-height: 1;
    white-space: nowrap;
}

.stat strong .counter,
.stat strong .plus {
    display: inline;
    color: inherit;
    font: inherit;
}

.stat strong .plus {
    margin-left: 2px;
}

.stat span {
    display: block;
    margin-top: 7px;
    font-size: 10px;
}


/* =========================================================
   10. VISION / MISSION
   ========================================================= */

.two-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.module-card {
    min-height: 275px;
    padding: 30px;
    border-radius: var(--radius-xl);
}

.vision-content,
.mission-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.mission-content {
    margin-top: 50px;
}

.vision-icon,
.mission-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;

    width: 100px;
    height: 100px;

    border-radius: 50%;
    background: var(--blue-dark);
}

.vision-icon img,
.mission-icon img {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.vision-text,
.mission-text {
    flex: 1;
}

.vision-text h2,
.mission-text h2 {
    margin: 0 0 0;
    padding: 0;
    font-size: 28px;
    line-height: 1.2;
}

.vision-text h3,
.mission-text h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.vision-photo {
    width: 100%;
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.vision-photo img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}


/* =========================================================
   11. PATRONS + DIRECTOR'S DESK
   ========================================================= */

.patrons-director-card {
    padding: 25px;
    border-radius: var(--radius);
}

.patrons-section h2,
.director-desk-section h2 {
    margin: 5px 0 0;
    font-size: 28px;
    text-align: center;
}

.patrons-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.patron-item,
.director-content {
    display: flex;
    gap: 15px;
}

.patron-item {
    align-items: center;
}

.director-content {
    align-items: flex-start;
}

.director-content img {
    transform: translateY(-30px);
}

.director-desk-section {
    margin-top: 25px;
}

.patron-info h3,
.director-info h3 {
    margin: 13px 0 0;
    /*font-size: 18px;*/
    font-size: 22px;
    line-height: 1.2;
}


/* =========================================================
   12. ABOUT
   ========================================================= */

.about-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    min-height: 350px;
}

.about-panel {
    --tint: rgba(var(--blue-rgb), .70);
    --bg: url("/images/csirihbt/AboutUs/AboutUsBKG.png");

    padding: 50px;
    border-radius: var(--radius);
    color: var(--white);
}

.about-panel h2 {
    margin: 0 0 8px;
    font-weight: 500;
}

.about-panel p {
    font-size: var(--fs-lg);
}

.about-image {
    --tint: rgba(0, 0, 0, .08);
    --bg: url("/images/csirihbt/AboutUs/AboutUs.png");

    min-height: 270px;
    margin-left: 25px;
    border-radius: var(--radius);
}


/* =========================================================
   13. FEATURED TECHNOLOGY
   ========================================================= */

.featured-panel {
    min-height: 350px;
    /*padding: 60px;*/
    padding: 70px;
    border-radius: var(--radius);
    color: var(--white);

    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, .50) 0%,
            rgba(0, 0, 0, .40) 45%,
            rgba(0, 0, 0, .30) 100%
        ),
        url("/images/csirihbt/Tech/tech.png") center / cover;
}

.featured-content {
    position: relative;
    min-height: 210px;
}

.featured-content h2 {
    max-width: 500px;
    margin-top: 0;
    /*font-size: 28px;*/
    font-size: 45px;
}

.featured-content p {
    max-width: 480px;
    /*font-size: var(--fs-lg);*/
    font-size: 20px;
}

.featured-links {
    position: absolute;
    top: 40px;
    right: 20px;
    width: 250px;
}

.featured-links a {
    display: block;
    padding: 5px 0;
    color: var(--white);
    font-size: 20px;
    /*font-size: var(--fs-lg);*/
    text-decoration: none;
}

.featured-links a::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--white);
}


/* =========================================================
   14. TECHNOLOGIES
   ========================================================= */

.technology-strip {
    padding: 18px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    text-align: center;
}

.tech-category img {
    width: 80px;
    height: 80px;
}

.tech-category span {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    line-height: 1.2;
}


/* =========================================================
   15. SECTION HEADINGS
   ========================================================= */

.section-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-heading,
.section-heading-row h2 {
    margin: 0 0 12px;
    /*font-size: 28px;*/
    font-size: 30px;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.section-subtitle {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 20px;
    text-align: center;
}


/* =========================================================
   18. COLLABORATE (hover overlay slides in from the top)
   ========================================================= */

.collaborate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;

    width: 100%;
    margin: 0 auto;
}

/* ----- Shared card styles ----- */
.collaborate-card,
.collaborate-private,
.collaborate-farmers,
.collaborate-csr {
    position: relative;
    overflow: hidden;
    background-color: #777;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.collaborate-card {
    height: 600px;
    border-radius: var(--radius);
}

/* Dark gradient so the caption stays readable */
.collaborate-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, .8));
    pointer-events: none;
}

/* ----- Normal title visible on the image ----- */
.collaborate-card .collaborate-title,
.collaborate-private .collaborate-title,
.collaborate-farmers .collaborate-title,
.collaborate-csr .collaborate-title {
    position: absolute;
    left: 24px;
    bottom: 20px;
    z-index: 2;
    margin: 0;
    color: var(--white);
    font-size: 17px;
    transition: opacity 0.2s ease;
}

/* ----- Overlay, hidden above the image ----- */
.collaborate-private .collaborate-overlay,
.collaborate-farmers .collaborate-overlay,
.collaborate-csr .collaborate-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    padding: 24px;
    background: rgba(0, 0, 0, 0.70);

    transform: translateY(-100%);
    transition: transform 0.45s ease-in-out;
}

/* Overlay heading: reset the absolute positioning inherited
   from ".collaborate-card h3" */
.collaborate-private .collaborate-overlay h3,
.collaborate-farmers .collaborate-overlay h3,
.collaborate-csr .collaborate-overlay h3 {
    position: static;
    z-index: auto;
    margin: 0 0 10px;
    color: var(--white);
    font-size: 22px;
}

/* Overlay description */
.collaborate-private .collaborate-overlay p,
.collaborate-farmers .collaborate-overlay p,
.collaborate-csr .collaborate-overlay p {
    margin: 0 0 16px;
    color: var(--white);
    line-height: 1.6;
}

/* Read more button */
.collaborate-private .collaborate-read-more,
.collaborate-farmers .collaborate-read-more,
.collaborate-csr .collaborate-read-more {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--white);
    color: var(--white);
    text-decoration: none;
    transition: background .25s ease, color .25s ease;
}

.collaborate-private .collaborate-read-more:hover,
.collaborate-farmers .collaborate-read-more:hover,
.collaborate-csr .collaborate-read-more:hover,
.collaborate-private .collaborate-read-more:focus-visible,
.collaborate-farmers .collaborate-read-more:focus-visible,
.collaborate-csr .collaborate-read-more:focus-visible {
    color: var(--ink);
    background: var(--white);
}

/* ----- Hover / keyboard focus: hide title, slide overlay down ----- */
.collaborate-private:hover .collaborate-title,
.collaborate-private:focus-within .collaborate-title,
.collaborate-farmers:hover .collaborate-title,
.collaborate-farmers:focus-within .collaborate-title,
.collaborate-csr:hover .collaborate-title,
.collaborate-csr:focus-within .collaborate-title {
    opacity: 0;
}

.collaborate-private:hover .collaborate-overlay,
.collaborate-private:focus-within .collaborate-overlay,
.collaborate-farmers:hover .collaborate-overlay,
.collaborate-farmers:focus-within .collaborate-overlay,
.collaborate-csr:hover .collaborate-overlay,
.collaborate-csr:focus-within .collaborate-overlay {
    transform: translateY(0);
}

/* ----- Individual background images ----- */
.collaborate-private { background-image: url("/images/csirihbt/collaborate/PrivateIndustries.png"); }
.collaborate-farmers { background-image: url("/images/csirihbt/collaborate/Indian Officials at a Garden Ceremony.png"); }
.collaborate-csr     { background-image: url("/images/csirihbt/collaborate/Man Reading Among Library Shelves.png"); }

/* ----- Mobile: keep content visible (no hover on touch) ----- */
@media (max-width: 767px) {
    .collaborate-private .collaborate-title,
    .collaborate-farmers .collaborate-title,
    .collaborate-csr .collaborate-title {
        display: none;
    }

    .collaborate-private .collaborate-overlay,
    .collaborate-farmers .collaborate-overlay,
    .collaborate-csr .collaborate-overlay {
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.65);
    }
}


/* =========================================================
   19. CONTRIBUTION CARDS (expand on hover)
   ========================================================= */

.contribution-section {
    display: flex;
    width: min(100% - 50px, var(--max-width));
    margin: 0 auto;
}

.contribution-panel {
    --tint: rgba(var(--blue-rgb), .80);
    --bg: url("/images/csirihbt/your-background-image.jpg");

    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 520px;
    padding: 40px;

    color: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow);

    transition: flex .55s ease, filter .4s ease, box-shadow .4s ease;
}

.contribution-panel:hover,
.contribution-panel:focus-within {
    z-index: 2;
    flex: 2.2;
    filter: brightness(1.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .22);
}

/* Dim the siblings of the hovered card */
.contribution-section:has(.contribution-panel:hover)
.contribution-panel:not(:hover) {
    filter: brightness(.88);
}

.contribution-left,
.contribution-middle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contribution-left   { --tint: rgba(17, 49, 112, .80); }
.contribution-middle { --tint: rgba(92, 190, 35, .82); --bg: url("/images/csirihbt/your-rd-image.jpg"); }

.panel-title {
    margin: 0 0 20px;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.25;
}

.panel-description {
    max-width: 520px;
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: 400;
    line-height: 1.5;
}

.recent-content {
    max-width: 350px;
    margin-top: auto;
}

.recent-content p {
    margin: 0 0 20px;
    font-size: var(--fs-lg);
    line-height: 1.6;
}

.recent-link {
    color: var(--white);
    font-size: 15px;
    text-decoration: none;
}

/* =========================================================
   20. VIDEO + FACEBOOK FEATURE CARDS
   ========================================================= */

.feature-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 200%;
    max-width: 1150px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    display: block;
    min-width: 0;
    height: 300px;
    background: gainsboro;
    border-radius: var(--radius-md);
    text-decoration: none;
    overflow: hidden;
}

.feature-card img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
}

/* Blue label overlapping the image */
.feature-label {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;

    display: flex;
    align-items: center;

    width: 58%;
    min-height: 43px;
    padding: 8px 28px;
    box-sizing: border-box;

    color: var(--white);
    background: var(--blue-dark);
    font-size: 23px;
    line-height: 1.3;

    border-radius: 10px 0;

    /* White shape above and on the right */
    box-shadow: 0px -14px 0 var(--white);

    transition: background-color 0.2s ease;
}

/* White extension with rounded upper-right corner */
.feature-label::before {
    content: "";
    position: absolute;
    top: -14px;
    right: -17px;

    width: 17px;
    height: calc(100% + 14px);

    background: var(--white);
    border-radius: 0 10px 0 0;
    z-index: -1;
    pointer-events: none;
}

/* Hover effect */
.feature-card:hover .feature-label,
.feature-card:focus-visible .feature-label {
    background: var(--blue-darker);
}


/* =========================================================
   21. INNER PAGES
   ========================================================= 

.inner-page-section {
    min-height: 400px;
    padding: 40px 0 60px;
    background: var(--white);
}

.inner-page-section .container {
    max-width: 1080px;
}

.inner-page-section h1,
.inner-page-section h2 {
    color: var(--blue);
}

.inner-page-section .page-header {
    margin-bottom: 25px;
}

.inner-page-section .com-content-article {
    line-height: 1.8;
}
*/

/* =========================================================
   22. FOOTER (full width)
   ========================================================= */

/* 100vw lets the footer escape a restricting .container */
.site-footer {
    width: 100vw;
    max-width: 100vw;
    margin: 0 calc(50% - 50vw);
    padding: 0;
    background: #c9c9c9;
}

.site-footer :focus-visible {
    outline-color: var(--white);
}

.footer-quick-links {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;

    min-height: 58px;
    margin: 0;
    padding: 0 120px 0 20px; /* right gap keeps links clear of the edge */

    background: #b5b5b5;
    border-top: 15px solid var(--blue-dark);
    text-align: center;
}

.footer-quick-links a {
    display: block;
    padding: 10px 5px;
    color: var(--ink);
    /*font-size: 15px;*/
    font-size: 16px;
    text-decoration: none;
}

.footer-quick-links a:hover {
    color: var(--blue);
}

.footer-main {
    color: var(--white);
    background: var(--blue-dark);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    column-gap: 70px;
    padding: 25px 100px 28px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h3 {
    margin: 0 0 4px;
    color: var(--white);
    /*font-size: 16px;*/
    font-size: 18px;
    font-weight: 700;
}

.footer-column a {
    color: var(--white);
    /*font-size: 15px;*/
    font-size: 16px;
    line-height: 1.7;
    text-decoration: none;
}

.footer-column a:hover {
    color: #d9e2ff;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
}

.footer-logos a {
    display: block;
}

.footer-logos img {
    width: 150px;
    height: 150px;
    padding: 5px;
    background: var(--white);
    object-fit: contain;
}

.footer-copyright {
    min-height: 58px;
    padding: 23px 15px;
    color: var(--ink);
    background: var(--white);
    font-size: 15px;
    line-height: 1.4;
    text-align: center;
}


/* =========================================================
   23. RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
    .header-inner {
        padding: 10px 60px;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {

    .header-inner {
        padding: 10px 20px;
    }

    /* Navigation wraps instead of overflowing */
    .main-nav {
        height: auto;
    }

    .main-nav .mod-menu {
        flex-wrap: wrap;
        height: auto;
    }

    .main-nav .mod-menu > li > a {
        height: 40px;
        padding: 0 10px;
    }

    .main-nav .mod-menu li > ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .stats-strip .stats,
    .tech-categories {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Events */
    .events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .event-card-content {
        min-height: 180px;
        padding: 26px 18px 20px;
    }

    .event-card-date {
        font-size: 27px;
    }

    /* Contribution cards stack */
    .contribution-section {
        flex-direction: column;
        gap: 12px;
    }

    .contribution-panel {
        flex: none;
        min-height: 250px;
        border-radius: var(--radius-lg);
    }

    .contribution-panel:hover,
    .contribution-panel:focus-within {
        flex: none;
    }

    .contribution-panel.is-active {
        min-height: 420px;
    }

    .contribution-section:has(.contribution-panel:hover)
    .contribution-panel:not(:hover) {
        filter: none;
    }

    /* Feature cards */
    .feature-cards {
        gap: 14px;
    }

    .feature-card {
        height: 170px;
    }

    .feature-label {
        width: 65%;
        min-height: 40px;
        padding: 8px 18px;
        font-size: 20px;
    }

    /* Footer */
    .footer-quick-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
        row-gap: 25px;
        padding: 25px 30px;
    }

    .footer-logos {
        gap: 20px;
    }
}

/* ---------- Phone (<= 600px) ----------
   (top bar rules for phones are in "TOP BAR: RESPONSIVE" at the
   end of this file) */
@media (max-width: 600px) {

    .header-inner {
        padding: 10px 12px;
    }

    /* Navigation stacks */
    .main-nav .mod-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav .mod-menu > li > a {
        height: auto;
        min-height: 44px;
        font-size: 14px;
        text-align: center;
    }

    /* (What's New mobile rules are in whatsnew.css) */

    /* Single-column grids */
    .two-cards,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        min-height: 220px;
        margin: 6px 0 0;
    }

    .stats-strip .stats,
    .tech-categories,
    .news-grid,
    .collaborate-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-card:last-child {
        grid-column: 1 / -1;
    }

    .featured-links {
        position: static;
        width: 100%;
        margin: 20px 0;
    }

    /* Events */
    .events-section {
        padding: 10px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card-content {
        min-height: 165px;
        padding-top: 24px;
    }

    .event-card-image {
        height: 220px;
    }

    /* Contribution */
    .contribution-panel {
        padding: 30px 25px;
    }

    .panel-title {
        font-size: 28px;
    }

    /* Feature cards */
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        height: 180px;
    }

    .feature-label {
        padding: 9px 18px;
    }

    /* Footer */
    .footer-quick-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-quick-links a {
        font-size: 14px;
    }

    .footer-container {
        padding: 25px 20px;
    }
}

/* ---------- Small mobile ---------- */
@media (max-width: 480px) {

    .tech-categories,
    .news-grid,
    .collaborate-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        height: 160px;
    }

    .feature-label {
        width: 70%;
        padding: 8px 14px;
        font-size: 18px;
    }
}


/* =========================================================
   24. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}


/* =========================================================
   25. MISC / OVERRIDES
   ========================================================= */

.showcase-item {
    margin: 10px;
}

/*p{
  margin-top: 50px;
  margin-bottom: 20px;
}*/

a {
    color: #000;
}


/* =========================================================
   26. YOUTUBE CARD (slider)
   ========================================================= */

.youtube-card {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.youtube-card .video-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.youtube-card .video-slider a {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
}

.youtube-card .video-slider a.active {
    display: block;
}

.youtube-card .video-slider img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Previous and Next buttons */
.youtube-card .video-prev,
.youtube-card .video-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.youtube-card .video-prev {
    left: 10px;
}

.youtube-card .video-next {
    right: 10px;
}

.youtube-card .feature-label {
    z-index: 6;
}


/* =========================================================
   27. FACEBOOK CARD
   ========================================================= */

.facebook-card {
    position: relative;
    height: 300px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.facebook-card .facebook-post {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.facebook-card .facebook-post img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius-md);
    box-sizing: border-box;
}

.facebook-card .facebook-follow {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 7;
    padding: 9px 14px;
    background: #20377d;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}

.facebook-card .feature-label {
    z-index: 8;
}
/* =========================================================
   MENU HEADING / SEPARATOR ITEMS (rendered as <span>)
   ========================================================= */

/* ----- Top level ----- */
.main-nav .mod-menu > li > span {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 100%;
    min-height: var(--nav-h);
    padding: 5px;

    color: var(--blue);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    cursor: pointer;

    transition: background-color .2s ease, color .2s ease;
}

.main-nav .mod-menu > li:hover > span,
.main-nav .mod-menu > li:focus-within > span,
.main-nav .mod-menu > li.current > span,
.main-nav .mod-menu > li.active > span {
    color: var(--white);
    background: var(--blue);
}

/* ----- Inside dropdowns ----- */
.main-nav .mod-menu li > ul > li > span {
    display: block;
    color: var(--blue);
    font-size: 14px;
    cursor: pointer;
}

@media (min-width: 901px) {

    .main-nav .mod-menu li > ul > li > span {
        width: 100%;
        padding: 12px 12px;
        white-space: normal;

        transition: background .25s ease,
                    color .25s ease,
                    padding-left .25s ease;
    }

    .main-nav .mod-menu li > ul > li:hover > span {
        color: var(--white);
        background: var(--blue);
        padding-left: 20px;
    }

    /* Arrow for headings that have a sub-menu */
    .main-nav .mod-menu li > ul > li.parent > span,
    .main-nav .mod-menu li > ul > li.deeper > span {
        position: relative;
        padding-right: 34px;
    }

    .main-nav .mod-menu li > ul > li.parent > span::after,
    .main-nav .mod-menu li > ul > li.deeper > span::after {
        content: "›";
        position: absolute;
        top: 50%;
        right: 14px;
        font-size: 18px;
        transform: translateY(-50%);
    }
}

@media (max-width: 900px) {

    .main-nav .mod-menu li > ul > li > span {
        padding: 10px 20px;
    }

    .main-nav .mod-menu li > ul > li:hover > span {
        color: var(--white);
        background: var(--blue);
    }

    .main-nav .mod-menu li > ul li > ul > li > span {
        padding-left: 36px;
    }
}

@media (max-width: 600px) {

    .main-nav .mod-menu > li > span {
        height: auto;
        min-height: 44px;
        font-size: 14px;
    }
}
/* =========================================================
   RESPONSIVE OVERRIDES  (top bar -> footer)
   Paste this at the very END of your template CSS so it wins
   over the earlier rules. No existing rules need deleting.
   ========================================================= */


/* =========================================================
   A. YOUTUBE + FACEBOOK CARDS
      Full width of the screen, with equal space on all 4 sides
   ========================================================= */

.feature-cards {
    --space: clamp(12px, 3vw, 40px);   /* outer space: top / bottom / left / right */
    --gap:   clamp(12px, 2vw, 24px);   /* space between the two cards              */

    /* Break out of any parent .container, then leave --space on each side */
    width: calc(100vw - (2 * var(--space)));
    max-width: none;
    margin: var(--space) 0 var(--space) calc(50% - 50vw + var(--space));

    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
}

.feature-card,
.youtube-card,
.facebook-card {
    height: clamp(220px, 28vw, 380px);
}

.feature-label {
    font-size: clamp(16px, 2vw, 23px);
}


/* =========================================================
   B. LARGE TABLET / SMALL LAPTOP  (<= 1200px)
   ========================================================= */

@media (max-width: 1200px) {

    .main-nav .mod-menu > li > a,
    .main-nav .mod-menu > li > span {
        font-size: 14px;
    }

    .footer-quick-links {
        padding: 0 20px;
    }

    .footer-container {
        column-gap: 40px;
        padding: 25px 40px 28px;
    }

    .featured-panel {
        padding: 50px;
    }
}


/* =========================================================
   C. TABLET  (<= 900px)
   ========================================================= */

@media (max-width: 900px) {

    /* ----- Top bar: see "TOP BAR: RESPONSIVE" at the end of file ----- */

    /* ----- Header ----- */
    .header-inner {
        min-height: 0;
        padding: 10px 20px;
    }

    /* ----- Navigation ----- */
    .main-nav .mod-menu > li {
        flex: 1 1 33.333%;
        border-bottom: 1px solid var(--grey-100);
    }

    /* small caret on items that have a dropdown */
    .main-nav .mod-menu > li.parent > a::after,
    .main-nav .mod-menu > li.deeper > a::after,
    .main-nav .mod-menu > li.parent > span::after,
    .main-nav .mod-menu > li.deeper > span::after {
        content: "\25BE";
        margin-left: 6px;
        font-size: 12px;
    }

    /* ----- Stats ----- */
    .stats-strip {
        padding: 14px 10px;
    }

    .stat img {
        width: 72px;
        height: 72px;
    }

    .stat span {
        font-size: 12px;
    }

    /* ----- Vision / mission ----- */
    .two-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .module-card {
        min-height: 0;
        padding: 10px;
    }

    .vision-photo img {
        height: 240px;
    }

    /* ----- About ----- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
    }

    .about-panel {
        padding: 30px 24px;
    }

    .about-image {
        min-height: 240px;
        margin: 0;
    }

    /* ----- Featured technology ----- */
    .featured-panel {
        min-height: 0;
        padding: 36px 28px;
    }

    .featured-content {
        min-height: 0;
    }

    .featured-content h2 {
        max-width: none;
        font-size: 34px;
    }

    .featured-content p {
        max-width: none;
        font-size: 18px;
    }

    .featured-links {
        position: static;
        width: 100%;
        margin-top: 20px;
    }

    .featured-links a {
        font-size: 18px;
    }

    /* ----- Technologies ----- */
    .tech-category img {
        width: 64px;
        height: 64px;
    }

    .tech-category span {
        font-size: 12px;
    }

    /* ----- Headings ----- */
    .section-heading,
    .section-heading-row h2 {
        font-size: 26px;
    }

    .section-subtitle {
        font-size: 17px;
    }

    /* ----- Collaborate ----- */
    .collaborate-card {
        height: 460px;
    }

    /* ----- Contribution ----- */
    .contribution-section {
        width: min(100% - 24px, var(--max-width));
    }

    .contribution-panel {
        padding: 30px 24px;
    }

    .panel-title {
        font-size: 28px;
    }

    .panel-description,
    .recent-content {
        max-width: none;
    }

    /* ----- Footer ----- */
    .footer-quick-links {
        grid-template-columns: repeat(3, 1fr);
        padding: 6px 10px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        row-gap: 22px;
        padding: 25px 24px;
    }

    .footer-logos img {
        width: 110px;
        height: 110px;
    }
}


/* =========================================================
   D. MOBILE  (<= 767px)
   ========================================================= */

@media (max-width: 767px) {

    /* One card per row; overlay text is always visible (no hover on touch) */
    .collaborate-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .collaborate-card {
        height: 420px;
    }

    .collaborate-private .collaborate-overlay,
    .collaborate-farmers .collaborate-overlay,
    .collaborate-csr .collaborate-overlay {
        padding: 20px;
        overflow-y: auto;
    }

    /* YouTube + Facebook: stack, still spaced on all 4 sides */
    .feature-cards {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .youtube-card,
    .facebook-card {
        height: auto;
        aspect-ratio: 16 / 10;
        min-height: 200px;
    }

    .feature-label {
        width: 72%;
        min-height: 38px;
        padding: 8px 16px;
        font-size: 16px;
    }
}


/* =========================================================
   E. PHONE  (<= 600px)
   ========================================================= */

@media (max-width: 600px) {

    :root {
        --gutter: 24px;
    }

    /* ----- Top bar: see "TOP BAR: RESPONSIVE" at the end of file ----- */

    /* ----- Header ----- */
    .header-inner {
        --logo: 46px;
        column-gap: 8px;
        /*padding: 8px 10px;*/
        padding: 5px 5px;
    }

    .brand-title .brand-hindi,
    .brand-title h1 {
        font-size: 13px;
        line-height: 1.0;
    }

    .brand-title p {

        font-size: 10px;
    }

    /* ----- Navigation: single column, easy to tap ----- */
    .main-nav .mod-menu {
        flex-direction: column;
    }

    .main-nav .mod-menu > li {
        flex: none;
        width: 100%;
    }

    .main-nav .mod-menu > li > a,
    .main-nav .mod-menu > li > span {
        justify-content: flex-start;
        min-height: 46px;
        padding: 8px 16px;
        font-size: 15px;
        text-align: left;
    }

    .main-nav .mod-menu li > ul > li > a,
    .main-nav .mod-menu li > ul > li > span {
        padding: 12px 24px;
        font-size: 14px;
    }

    /* ----- Stats ----- */
    .stats-strip {
        border-radius: var(--radius-lg);
    }

    .stats-strip .stats {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 14px;
    }

    /* odd last tile sits centred on its own row */
    .stats-strip .stat:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .stat img {
        width: 60px;
        height: 60px;
    }

    .stat strong {
        font-size: 22px;
    }

    /* ----- Vision / mission ----- */
    .vision-content,
    .mission-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .mission-content {
        margin-top: 25px;
    }

    .vision-icon,
    .mission-icon,
    .vision-icon img,
    .mission-icon img {
        width: 80px;
        height: 80px;
    }

    .vision-text h2,
    .mission-text h2 {
        margin: 10px 0 8px;
        font-size: 24px;
    }

    .vision-text p,
    .mission-text p,
    .patron-info p,
    .director-info p {
        font-size: 16px;
    }

    .vision-photo {
        margin-bottom: 20px;
    }

    .vision-photo img {
        height: 190px;
    }

    /* ----- Patrons + director ----- */
    .patrons-director-card {
        padding: 18px;
        border-radius: var(--radius-lg);
    }

    .patrons-section h2,
    .director-desk-section h2 {
        font-size: 24px;
    }

    .patron-item,
    .director-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .patron-item img,
    .director-content img {
        width: 110px;
        height: 110px;
    }

    .director-content img {
        transform: none;
    }

    .patron-info h3,
    .director-info h3 {
        font-size: 20px;
    }

    /* ----- About ----- */
    .about-panel {
        padding: 24px 18px;
        border-radius: var(--radius-lg);
    }

    .about-panel p,
    .about-button {
        font-size: 16px;
    }

    .about-image {
        min-height: 200px;
        border-radius: var(--radius-lg);
    }

    /* ----- Featured technology ----- */
    .featured-panel {
        padding: 28px 18px;
        border-radius: var(--radius-lg);
    }

    .featured-content h2 {
        font-size: 28px;
    }

    .featured-content p,
    .featured-links a {
        font-size: 16px;
    }

    /* ----- Technologies ----- */
    .technology-strip {
        padding: 14px 10px;
        border-radius: var(--radius-lg);
    }

    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 14px;
    }

    .tech-category img {
        width: 56px;
        height: 56px;
    }

    /* ----- Headings ----- */
    .section {
        padding: 10px 0;
    }

    .section-heading,
    .section-heading-row h2 {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    /* ----- Buttons ----- */
    .know-more-btn {
        padding: 10px 24px;
        font-size: 15px;
    }

    /* ----- Collaborate ----- */
    .collaborate-card {
        height: 380px;
        border-radius: var(--radius-lg);
    }

    .collaborate-private .collaborate-overlay h3,
    .collaborate-farmers .collaborate-overlay h3,
    .collaborate-csr .collaborate-overlay h3 {
        font-size: 19px;
    }

    /* ----- Contribution ----- */
    .contribution-panel {
        min-height: 220px;
        padding: 24px 18px;
    }

    .panel-title {
        font-size: 24px;
    }

    .panel-description,
    .recent-content p {
        font-size: 16px;
    }

    /* ----- YouTube / Facebook controls ----- */
    .youtube-card .video-prev,
    .youtube-card .video-next {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .facebook-card .facebook-follow {
        top: 8px;
        right: 8px;
        padding: 7px 11px;
        font-size: 12px;
    }

    /* ----- Footer ----- */
    .footer-quick-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-quick-links a {
        padding: 10px 4px;
        font-size: 14px;
    }

    .footer-container {
        padding: 22px 16px;
    }

    .footer-column h3 {
        font-size: 15px;
    }

    .footer-column a {
        font-size: 12px;
        overflow-wrap: anywhere;      /* long e-mail addresses / URLs */
    }

    .footer-logos {
        gap: 12px;
        padding: 16px 0;
    }

    .footer-logos img {
        width: 84px;
        height: 84px;
    }

    .footer-copyright {
        padding: 16px 12px;
        font-size: 13px;
    }
}


/* =========================================================
   F. SMALL PHONE  (<= 480px)
   ========================================================= */

@media (max-width: 480px) {

    /* keep the technology icons 2-up (the old rule made them 1-up) */
    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-label {
        width: 78%;
        font-size: 15px;
    }

    .footer-quick-links {
        grid-template-columns: 1fr 1fr;
    }
}



/* =====================================================
   CSIR-IHBT MOBILE HAMBURGER MENU
   ===================================================== */

/* Hidden on desktop */
.ihbt-mobile-menu-toggle,
.ihbt-mobile-menu,
.ihbt-mobile-menu-overlay {
    display: none;
}

@media (max-width: 900px) {

    /* Replace the inline menu with the hamburger (only when JS is running) */
    .ihbt-js .main-nav .container {
        display: none;
    }

    .ihbt-js .main-nav {
        justify-content: flex-end;
        padding: 8px 16px;
    }

    /* Hamburger button */
    .ihbt-js .ihbt-mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;

        width: 44px;
        height: 36px;
        padding: 5px 6px;
        margin-left: auto;

        border: 0;
        background: transparent;
        cursor: pointer;
        flex-shrink: 0;
    }

    .ihbt-mobile-menu-toggle span {
        display: block;
        width: 80%;
        height: 4px;
        background: var(--blue);
        border-radius: 4px;
    }

    /* Dark overlay */
    .ihbt-mobile-menu-overlay:not([hidden]) {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: rgba(0, 0, 0, .5);
    }

    /* Left-side drawer */
    .ihbt-mobile-menu:not([hidden]) {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10002;

        width: min(85%, 340px);
        height: 100vh;
        height: 100dvh;
        padding: 20px;
        box-sizing: border-box;

        background: var(--white);
        box-shadow: 5px 0 20px rgba(0, 0, 0, .15);
        overflow-y: auto;
        overscroll-behavior: contain;

        animation: ihbtSlideIn .3s ease;
    }

    @keyframes ihbtSlideIn {
        from { transform: translateX(-100%); }
        to   { transform: translateX(0); }
    }

    /* Drawer heading */
    .ihbt-mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 15px;
        margin-bottom: 10px;
        border-bottom: 1px solid var(--grey-200);
    }

    .ihbt-mobile-menu-header h2 {
        margin: 0;
        color: var(--blue);
        font-size: 22px;
    }

    .ihbt-mobile-menu-close {
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        color: var(--blue);
        font-size: 34px;
        line-height: 1;
        cursor: pointer;
    }

    /* Menu list */
    .ihbt-mobile-menu-content ul {
        display: block;
        height: auto;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .ihbt-mobile-menu-content li {
        position: relative;
        margin: 0;
        border-bottom: 1px solid var(--grey-100);
    }

    .ihbt-mobile-menu-content li > a,
    .ihbt-mobile-menu-content li > span {
        display: block;
        padding: 13px 48px 13px 8px;   /* right space for the caret button */
        color: var(--blue-dark);
        font-size: 16px;
        font-weight: 500;
        line-height: 1.3;
        text-decoration: none;
        cursor: pointer;
    }

    .ihbt-mobile-menu-content li > a:hover,
    .ihbt-mobile-menu-content li > a:focus-visible,
    .ihbt-mobile-menu-content li > span:hover,
    .ihbt-mobile-menu-content li.current > a,
    .ihbt-mobile-menu-content li.active > a {
        color: var(--blue);
        background: #f1f4f8;
    }

    /* Caret button */
    .ihbt-sub-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .ihbt-sub-toggle i {
        display: block;
        width: 9px;
        height: 9px;
        margin: 0 auto;
        border-right: 2px solid var(--blue);
        border-bottom: 2px solid var(--blue);
        transform: rotate(45deg);
        transition: transform .25s ease;
    }

    .ihbt-mobile-menu-content li.open > .ihbt-sub-toggle i {
        transform: rotate(-135deg);
    }

    /* Nested lists: collapsed until opened */
    .ihbt-mobile-menu-content li > ul {
        display: none;
        position: static;
        width: 100%;
        padding-left: 14px;
        background: #f8f9fb;
        border-top: 1px solid var(--grey-100);
    }

    .ihbt-mobile-menu-content li.open > ul {
        display: block;
    }

    .ihbt-mobile-menu-content li > ul > li:last-child {
        border-bottom: 0;
    }

    .ihbt-mobile-menu-content li > ul a,
    .ihbt-mobile-menu-content li > ul span {
        font-size: 14px;
        font-weight: 400;
    }

    /* Stop the page scrolling behind the drawer */
    body.ihbt-mobile-menu-open {
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ihbt-mobile-menu:not([hidden]) { animation: none; }
}

/* Respect the hidden attribute */
[hidden] {
    display: none !important;
}
@media (max-width: 900px) {

    .ihbt-js .main-nav {
        min-height: 0;
        height: auto;
        padding: 3px 12px;
    }

    .ihbt-js .ihbt-mobile-menu-toggle {
        width: 34px;
        height: 26px;
        padding: 2px 0;
    }

    .ihbt-js .ihbt-mobile-menu-toggle span {
        height: 3px;
    }
}

/* =========================================================
   STATS: horizontal scroller on tablet + phone
   ========================================================= */

@media (max-width: 900px) {

    .stats-strip .stats {
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;

        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;

        scroll-snap-type: x proximity;
        scroll-padding-inline: 10px;
        padding-bottom: 8px;

        /* thin, subtle scrollbar so people see it scrolls */
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, .35) transparent;
    }

    .stats-strip .stats::-webkit-scrollbar {
        height: 5px;
    }

    .stats-strip .stats::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, .35);
        border-radius: 10px;
    }

    .stats-strip .stat {
        flex: 0 0 130px;             /* width of each tile */
        scroll-snap-align: start;
    }

    /* cancel the old "centre the odd last tile" grid rule */
    .stats-strip .stat:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

@media (max-width: 600px) {

    .stats-strip .stats {
        grid-template-columns: none;   /* ignore the old 2-column grid */
        row-gap: 0;
    }

    .stats-strip .stat {
        flex-basis: 110px;
    }
}
/* =========================================================
   STATS STRIP: less space on the left and right (tablet + phone)
   ========================================================= */

@media (max-width: 900px) {

    /* outside: smaller page gutter around the green strip */
    .container:has(.stats-strip) {
        width: calc(100% - 12px);       /* 6px each side */
    }

    /* inside: smaller padding between the edge and the tiles */
    .stats-strip {
        padding: 12px 4px 8px;          /* top  left/right  bottom */
    }

    .stats-strip .stats {
        gap: 8px;
        scroll-padding-inline: 4px;
    }
}

@media (max-width: 600px) {

    .container:has(.stats-strip) {
        width: calc(100% - 1px);        /* 4px each side */
    }

    .stats-strip {
        border-radius: 16px;
    }

    .stats-strip .stat {
        flex-basis: 100px;              /* slightly narrower tiles */
    }
}
/* =========================================================
   VISION + MISSION: side by side, polished (tablet + phone)
   Patrons / Director card is NOT affected
   ========================================================= */

@media (max-width: 900px) {

    .two-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* wrapper that directly holds both blocks: two equal columns */
    :has(> .vision-content):has(> .mission-content) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        align-items: stretch;
    }

    /* anything else inside it (e.g. a photo) spans the full width */
    :has(> .vision-content):has(> .mission-content) > :not(.vision-content):not(.mission-content) {
        grid-column: 1 / -1;
    }

    /* each block becomes a soft tile */
    .vision-content,
    .mission-content {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 16px 10px 14px;

        text-align: center;
        background: #f4f6fb;
        border: 1px solid #e3e8f4;
        border-radius: 16px;
    }

    /* icon with a soft ring */
    .vision-icon,
    .mission-icon,
    .vision-icon img,
    .mission-icon img {
        width: 60px;
        height: 60px;
    }

    .vision-icon,
    .mission-icon {
        box-shadow: 0 0 0 5px rgba(var(--blue-rgb), .12);
        margin-bottom: 4px;
    }

    /* heading with a small green accent underneath */
    .vision-text h2,
    .mission-text h2 {
        margin: 2px 0 0;
        font-size: 20px;
        letter-spacing: .2px;
    }

    .vision-text h2::after,
    .mission-text h2::after {
        content: "";
        display: block;
        width: 30px;
        height: 3px;
        margin: 6px auto 8px;
        background: var(--green);
        border-radius: 3px;
    }

    .vision-text p,
    .mission-text p {
        font-size: 13px;
        line-height: 1.5;
        hyphens: auto;
    }
}

@media (max-width: 400px) {

    .vision-content,
    .mission-content {
        padding: 14px 8px 12px;
    }

    .vision-icon,
    .mission-icon,
    .vision-icon img,
    .mission-icon img {
        width: 50px;
        height: 50px;
    }

    .vision-text h2,
    .mission-text h2 {
        font-size: 18px;
    }

    .vision-text p,
    .mission-text p {
        font-size: 12px;
    }
}
@media (max-width: 900px) {

    .container:has(.two-cards),
    .container:has(.about-grid) {
        width: min(100% - var(--gutter), var(--max-width));
    }

    /* the cards fill the container exactly, so their edges line up */
    .two-cards,
    .about-grid,
    .module-card,
    .patrons-director-card,
    .about-panel,
    .about-image {
        width: 100%;
        margin-inline: 0;
    }
}
@media (max-width: 900px) {

    .patrons-director-card {
        padding: 14px;
    }

    /* tighter spacing between blocks */
    .patrons-list {
        gap: 25px;
    }

    .director-desk-section {
        margin-top: 14px;
        padding-top: 12px;
    }

    .patrons-section h2,
    .director-desk-section h2 {
        margin: 0 0 8px;
        font-size: 22px;
    }

    /* photo beside the text instead of above it */
    .patron-item,
    .director-content {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .patron-item img,
    .director-content img {
        width: 72px;
        height: 72px;
        transform: none;
    }

    .patron-info h3,
    .director-info h3 {
        margin: 0 0 2px;
        font-size: 17px;
    }

    .patron-info p,
    .director-info p {
        font-size: 14px;
        line-height: 1.35;
    }
}

@media (max-width: 900px) {

    .stats-strip {
        padding: 8px 4px 4px;
    }

    .stat img {
        width: 52px;
        height: 52px;
        margin-bottom: 4px;
    }

    .stat strong {
        font-size: 18px;
    }

    .stat span {
        margin-top: 3px;
        font-size: 11px;
        line-height: 1.2;
    }

    .stats-strip .stats {
        padding-bottom: 4px;
    }
}

@media (max-width: 600px) {

    .stat img {
        width: 44px;
        height: 44px;
    }

    .stat strong {
        font-size: 16px;
    }
}
/* =========================================================
   TECHNOLOGIES: one icon at a time (tablet + phone)
   ========================================================= */

.tech-dots {
    display: none;
}

@media (max-width: 900px) {

    /* Only applies once the JS has run, so nothing is hidden without it */
    .technology-strip.ihbt-tech-ready {
        position: relative;
        padding: 16px 10px 34px;
    }

    .ihbt-tech-ready .tech-categories {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* All tiles share one grid cell, so the strip keeps a steady height */
    .ihbt-tech-ready .tech-category {
        grid-area: 1 / 1;
        opacity: 0;
        visibility: hidden;
        transition: opacity .5s ease, visibility .5s ease;
    }

    .ihbt-tech-ready .tech-category.is-active {
        opacity: 1;
        visibility: visible;
    }

    .ihbt-tech-ready .tech-category img {
        width: 96px;
        height: 96px;
    }

    .ihbt-tech-ready .tech-category span {
        margin-top: 8px;
        font-size: 15px;
    }

    /* Dots */
    .ihbt-tech-ready .tech-dots {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 10px;
        display: flex;
        justify-content: center;
        gap: 4px;
    }

    .tech-dots button {
        width: 24px;
        height: 24px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .tech-dots button::after {
        content: "";
        display: block;
        width: 8px;
        height: 8px;
        margin: auto;
        border-radius: 50%;
        background: var(--grey-200);
        transition: background .3s ease, transform .3s ease;
    }

    .tech-dots button.is-active::after {
        background: var(--blue-dark);
        transform: scale(1.3);
    }
}

@media (max-width: 600px) {

    .ihbt-tech-ready .tech-category img {
        width: 80px;
        height: 80px;
    }
}
/* =========================================================
   FOOTER LOGOS: compact endless carousel with dots (phone only)
   ========================================================= */

/* Hidden everywhere except phones */
.footer-logos a.is-clone,
.footer-logo-dots {
    display: none;
}

@media (max-width: 600px) {

    /* ----- Carousel row ----- */

    .footer-logos {
        --show: 3;                 /* logos visible at once */
        --gap: 10px;

        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: var(--gap);
        padding: 8px 12px 4px;

        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 12px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .footer-logos::-webkit-scrollbar {
        display: none;
    }

    .footer-logos a {
        display: flex;
        flex: 0 0 calc((100% - (var(--show) - 1) * var(--gap)) / var(--show));
        justify-content: center;
        scroll-snap-align: start;
    }

    .footer-logos a.is-clone {
        display: flex;
    }

    .footer-logos img {
        width: 80px;
        height: 80px;
        padding: 4px;
    }

    /* ----- Dots ----- */

    .footer-logo-dots {
        --dot: rgba(255, 255, 255, .4);   /* inactive dot */
        --dot-active: #fff;               /* current dot  */

        display: flex;
        justify-content: center;
        gap: 2px;
        padding: 0 0 6px;
    }

    /* 24px tap area, 8px visible dot */
    .footer-logo-dots button {
        width: 24px;
        height: 24px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .footer-logo-dots button::after {
        content: "";
        display: block;
        width: 8px;
        height: 8px;
        margin: auto;
        border-radius: 50%;
        background: var(--dot);
        transition: background .3s ease, transform .3s ease;
    }

    .footer-logo-dots button.is-active::after {
        background: var(--dot-active);
        transform: scale(1.35);
    }

    .footer-logo-dots button:focus-visible {
        outline: 2px solid var(--dot-active);
        outline-offset: -2px;
    }
}
/* =========================================================
   FOOTER QUICK LINKS: compact tablet + phone layout
   ========================================================= */

@media (max-width: 900px) {

    .footer-quick-links {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: minmax(36px, auto);
        min-height: 0;
        padding: 0;
        border-top-width: 5px;
    }

    .footer-quick-links a {
        display: flex;
        align-items: center;
        justify-content: center;

        height: 100%;
        min-height: 36px;
        padding: 4px 6px;

        font-size: 14px;
        line-height: 1.2;
        overflow-wrap: anywhere;

        border-bottom: 1px solid rgba(0, 0, 0, .15);
        border-right: 1px solid rgba(0, 0, 0, .15);
    }

    /* no divider after the last column */
    .footer-quick-links a:nth-child(3n) {
        border-right: 0;
    }

    /* no divider under the last row */
    .footer-quick-links a:nth-last-child(-n+3):nth-child(3n+1),
    .footer-quick-links a:nth-last-child(-n+3):nth-child(3n+1) ~ a {
        border-bottom: 0;
    }
}

@media (max-width: 600px) {

    .footer-quick-links {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(34px, auto);
        border-top-width: 4px;
    }

    .footer-quick-links a {
        min-height: 34px;
        padding: 4px 6px;
        font-size: 13px;
    }

    /* reset the 3-column rules, apply the 2-column ones */
    .footer-quick-links a:nth-child(3n) {
        border-right: 1px solid rgba(0, 0, 0, .15);
    }

    .footer-quick-links a:nth-child(2n) {
        border-right: 0;
    }

    .footer-quick-links a:nth-last-child(-n+3):nth-child(3n+1),
    .footer-quick-links a:nth-last-child(-n+3):nth-child(3n+1) ~ a {
        border-bottom: 1px solid rgba(0, 0, 0, .15);
    }

    .footer-quick-links a:nth-last-child(-n+2):nth-child(2n+1),
    .footer-quick-links a:nth-last-child(-n+2):nth-child(2n+1) ~ a {
        border-bottom: 0;
    }

    /* an odd last link takes the full row, centred */
    .footer-quick-links a:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        border-right: 0;
    }
}
/* =========================================================
   YOUTUBE + FACEBOOK CARDS: shorter on phone
   ========================================================= */

@media (max-width: 767px) {

    .feature-card,
    .youtube-card,
    .facebook-card {
        height: auto;
        aspect-ratio: 2 / 1;      /* wider and shorter than 16 / 10 */
        min-height: 150px;
    }

    .feature-cards {
        --gap: 12px;              /* less space between the two cards */
    }

    .feature-label {
        width: 68%;
        min-height: 34px;
        padding: 6px 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {

    .feature-label {
        width: 74%;
        font-size: 14px;
    }
}
/* (old "TOP BAR: simple phone layout" block removed - replaced by
   "TOP BAR: RESPONSIVE" at the end of this file) */






/* =========================================
   CSIR-IHBT ACCESSIBILITY WIDGET
   ========================================= */

.ihbt-accessibility-widget {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* =========================================
   WHEELCHAIR ICON
   ========================================= */

.ihbt-accessibility-toggle {
    background: transparent;
    border: none;

    padding: 5px 15px;
    font-size: 27px;
    color: #111;
    cursor: pointer;
}

/* =========================================
   ACCESSIBILITY DROPDOWN
   ========================================= */

.ihbt-accessibility-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 99999;
    width: 48px;
    padding: 4px;
    background: #fff;
    border: 1px solid #222;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* Hide dropdown */

.ihbt-accessibility-menu[hidden] {
    display: none !important;
}

/* =========================================
   FONT SIZE BUTTONS
   ========================================= */

.ihbt-accessibility-menu button {
    width: 32px;
    height: 28px;
    padding: 2px;
    border: none;
    background: #fff;
    color: #111;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}

/* =========================================
   DIVIDER
   ========================================= */

.ihbt-accessibility-divider {
    width: 28px;
    border-top: 1px solid #222;
}

/* =========================================
   HIGH CONTRAST BUTTON
   ========================================= */

.ihbt-accessibility-menu .ihbt-theme-dark {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    margin-top: 0 !important;
}

/* =========================================
   NORMAL / LIGHT THEME BUTTON
   ========================================= */

.ihbt-accessibility-menu .ihbt-theme-light {
    background: #fff;
    color: #111;
    border: 1px solid #111;
    margin-top: 0 !important;
}

/* =========================================
   BUTTON HOVER
   ========================================= */

.ihbt-accessibility-menu button:hover {
    outline: 2px solid #29469b;
}

/* =========================================
   CSIR-IHBT HIGH CONTRAST THEME
   ========================================= */

/* Black background and white text */

body.ihbt-high-contrast,
body.ihbt-high-contrast * {
    color: #ffffff !important;
    background-color: #000000 !important;
    border-color: #ffffff !important;
}

/* Links - Yellow */

body.ihbt-high-contrast a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

/* Buttons */

body.ihbt-high-contrast button,
body.ihbt-high-contrast .btn {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border: 1px solid #ffffff !important;
}

/* Form fields */

body.ihbt-high-contrast input,
body.ihbt-high-contrast select,
body.ihbt-high-contrast textarea {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

/* Tables */

body.ihbt-high-contrast table,
body.ihbt-high-contrast th,
body.ihbt-high-contrast td {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

/* Keyboard focus */

body.ihbt-high-contrast a:focus,
body.ihbt-high-contrast button:focus,
body.ihbt-high-contrast input:focus,
body.ihbt-high-contrast select:focus,
body.ihbt-high-contrast textarea:focus {
    outline: 3px solid #ffff00 !important;
    outline-offset: 3px;
}

/* =========================================
   KEEP ACCESSIBILITY THEME BUTTONS ORIGINAL
   ========================================= */

/* Black A button */

body.ihbt-high-contrast
.ihbt-accessibility-menu .ihbt-theme-dark {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #ffffff !important;
}

/* White A button - ALWAYS WHITE */

body.ihbt-high-contrast
.ihbt-accessibility-menu .ihbt-theme-light {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
}
/* Accessibility image icon */

.ihbt-accessibility-icon {
    width: 27px;
    height: 35px; /* Increased height */
    object-fit: contain;
    display: block;
}

/* Accessibility toggle button */

.ihbt-accessibility-toggle {
    background: transparent;
    border: none;
    padding: 8px 0px; /* Increase vertical padding */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer .mod_jovisitorcounter {
    margin-top: 8px;
}

.site-footer .mod_jovisitorcounter,
.site-footer .mod_jovisitorcounter * {
    background: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.site-footer .mod_jovisitorcounter > * {
    display: inline-block;
    padding: 6px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-left: 3px solid #8cc63f !important;
    line-height: 1.3 !important;
}

/* the number */
.site-footer .mod_jovisitorcounter .badge,
.site-footer .mod_jovisitorcounter strong,
.site-footer .mod_jovisitorcounter b {
    font-size: 16px !important;
    font-weight: 700 !important;
}
.site-footer .mod_jovisitorcounter.light-theme h4,
.site-footer .mod_jovisitorcounter h4 {
    border: 0 !important;
    padding: 0 !important;
}

.site-footer .footer-last-updated {
    margin-top: 8px;
    font-size: 16px;
    color: #ffffff;
}


.scroll-top-btn {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #0b3d6e;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    /*background: #8cc63f;*/
    background: #fff;
    color: #0b3d6e;
}

.scroll-top-btn:focus-visible {
    outline: 3px solid #8cc63f;
    outline-offset: 3px;
}

@media (max-width: 575px) {
    .scroll-top-btn {
        right: 14px;
        bottom: 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top-btn {
        transition: none;
    }
}



/* =========================================
   CSIR-IHBT LANGUAGE SELECTION POPUP
   ========================================= */

/* Overlay: hidden by default, fades in when .is-open is added */

.ihbt-language-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;

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

    padding: 25px;

    background: rgba(15, 35, 55, 0.35);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.ihbt-language-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition: opacity 0.4s ease, visibility 0s;
}

/* Main popup card */

.ihbt-language-box {
    position: relative;

    width: 70%;
    max-width: 1600px;
    height: 82vh;
    max-height: 780px;

    background: #f8fbff;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 22px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.06);

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

    overflow-y: auto;

    transform: translateY(26px) scale(0.97);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ihbt-language-overlay.is-open .ihbt-language-box {
    transform: none;
}

/* Popup content */

.ihbt-language-content {
    width: 100%;
    max-width: 1100px;

    text-align: center;

    padding: 30px 25px;
    margin: auto;
}

/* CSIR-IHBT logo */

.ihbt-language-logo {
    display: block;

    width: 135px;
    max-width: 35%;
    height: auto;

    object-fit: contain;

    margin: 0 auto 15px;
}

/* Hindi heading */

.ihbt-hindi-title {
    color: #142f4b;

    font-size: clamp(23px, 2.2vw, 34px);
    font-weight: 700;
    line-height: 1.5;

    margin: 10px 0;
}

/* English heading */

.ihbt-english-title {
    color: #315675;

    font-size: clamp(19px, 1.8vw, 27px);
    font-weight: 500;
    line-height: 1.5;

    margin: 8px 0 25px;
}

/* Blue separator */

.ihbt-title-line {
    width: 85px;
    height: 3px;

    background: linear-gradient(to right, #00a8e8, #1684c0);
    border-radius: 10px;

    margin: 30px auto 35px;
}

/* Language instructions */

.ihbt-language-message,
.ihbt-language-message-hindi {
    color: #52677c;

    font-size: clamp(16px, 1.4vw, 21px);
    font-weight: 400;
    line-height: 1.7;

    margin: 7px 0;
}

/* Language buttons container */

.ihbt-language-buttons {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;
    gap: 28px;

    margin-top: 35px;
}

/* Common button styling */

.ihbt-btn-hindi,
.ihbt-btn-english {
    min-width: 165px;

    padding: 16px 38px;

    border: none;
    border-radius: 50px;

    color: #ffffff;

    font-size: 23px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

    outline: none;
}

/* No focus ring around the language buttons */

.ihbt-btn-hindi:focus,
.ihbt-btn-english:focus,
.ihbt-btn-hindi:focus-visible,
.ihbt-btn-english:focus-visible,
.ihbt-btn-hindi:active,
.ihbt-btn-english:active {
    outline: none;
}

.ihbt-btn-hindi {
    background: linear-gradient(135deg, #218b55, #147344);
    box-shadow: 0 7px 20px rgba(25, 128, 78, 0.24);
}

.ihbt-btn-english {
    background: linear-gradient(135deg, #08b4ed, #078dc8);
    box-shadow: 0 7px 20px rgba(8, 169, 224, 0.24);
}

.ihbt-btn-hindi:hover {
    background: linear-gradient(135deg, #176f42, #105d36);
    transform: translateY(-3px);
    box-shadow: 0 11px 25px rgba(25, 128, 78, 0.32);
}

.ihbt-btn-english:hover {
    background: linear-gradient(135deg, #078fc6, #0675aa);
    transform: translateY(-3px);
    box-shadow: 0 11px 25px rgba(8, 169, 224, 0.32);
}

/* Close button */

.ihbt-popup-close {
    position: absolute;

    top: 17px;
    right: 18px;

    width: 36px;
    height: 36px;

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

    border: 1.5px solid #718096;
    border-radius: 9px;

    background: #ffffff;
    color: #263b50;

    font-size: 26px;
    line-height: 1;

    cursor: pointer;

    transition: all 0.25s ease;

    z-index: 5;
}

.ihbt-popup-close:hover {
    background: #e8f2fa;
    border-color: #29469b;
    color: #29469b;

    transform: rotate(90deg);
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 991px) {

    .ihbt-language-overlay {
        padding: 18px;
    }

    .ihbt-language-content {
        padding: 35px 22px;
    }

    .ihbt-language-logo {
        width: 125px;
    }

    .ihbt-language-buttons {
        margin-top: 30px;
        gap: 20px;
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .ihbt-language-overlay {
        padding: 10px;
    }

    .ihbt-language-box {
        width: 100%;
        height: 90vh;
        max-height: none;

        border-radius: 17px;
    }

    .ihbt-language-content {
        /*padding: 50px 15px 30px;*/
        padding: 15px 15px 15px;
    }

    .ihbt-language-logo {
        width: 105px;
        max-width: 40%;

        margin-bottom: 15px;
    }

    .ihbt-hindi-title {
        font-size: 22px;
        line-height: 1.6;
    }

    .ihbt-english-title {
        font-size: 18px;
        line-height: 1.5;

        margin-bottom: 20px;
    }

    .ihbt-title-line {
        margin: 22px auto 25px;
    }

    .ihbt-language-message,
    .ihbt-language-message-hindi {
        font-size: 15px;
        line-height: 1.7;
    }

    .ihbt-language-buttons {
        flex-direction: column;
        gap: 15px;

        margin-top: 28px;
    }

    .ihbt-btn-hindi,
    .ihbt-btn-english {
        width: 190px;
        min-width: 190px;

        padding: 13px 25px;

        font-size: 20px;
    }

    .ihbt-popup-close {
        top: 12px;
        right: 12px;

        width: 32px;
        height: 32px;
    }
}

/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 380px) {

    .ihbt-language-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .ihbt-hindi-title {
        font-size: 19px;
    }

    .ihbt-english-title {
        font-size: 16px;
    }

    .ihbt-language-message,
    .ihbt-language-message-hindi {
        font-size: 14px;
    }
}

/* Respect reduced motion preference */

@media (prefers-reduced-motion: reduce) {

    .ihbt-language-overlay,
    .ihbt-language-overlay.is-open,
    .ihbt-language-box,
    .ihbt-btn-hindi,
    .ihbt-btn-english,
    .ihbt-popup-close {
        transition: none;
    }
}



/* =====================================================
   CSIR-IHBT STAFF LOGIN PORTAL  (card only)
   Joomla 5.4.x | add to template.css (replaces the old login block)

   IMAGES NEEDED (put in /templates/YOUR_TEMPLATE/images/ or change
   the two URLs below):
     csir-logo.png   - CSIR gear emblem (transparent PNG)
     ihbt-logo.png   - ihbt mountain/leaf logo (transparent PNG)
   ===================================================== */

/* ---------- Design tokens (login page only) ---------- */
body:has(#com-users-login__form) {
    --ihbt-blue: #1b409d;
    --ihbt-blue-dark: #142f7a;
    --ihbt-green: #84dc40;
    --ihbt-text: #22304f;
    --ihbt-border: #bccae6;
    --ihbt-field: #f1f5fd;

    --ihbt-csir-logo: url('../images/csir-logo.png');
    --ihbt-ihbt-logo: url('../images/ihbt-logo.png');

    --ico-user: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231b409d'><circle cx='12' cy='7.5' r='4.6'/><path d='M3 21.5c0-5.2 4-8.2 9-8.2s9 3 9 8.2z'/></svg>");
    --ico-lock: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231b409d'><path fill-rule='evenodd' d='M7 10V7a5 5 0 0 1 10 0v3h1.5a1.5 1.5 0 0 1 1.5 1.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 20.5v-9A1.5 1.5 0 0 1 5.5 10zm2.2 0h5.6V7a2.8 2.8 0 0 0-5.6 0z'/></svg>");
    --ico-login: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M10 17l5-5-5-5M15 12H3M14 3h5a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-5'/></svg>");
    --ico-check: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12.5l5 5L20 6.5'/></svg>");

    --ico-eye: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>");
    --ico-eye-off: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M9.9 4.2A10 10 0 0 1 12 5c6.4 0 10 7 10 7a17 17 0 0 1-2.2 3M6.6 6.6A17 17 0 0 0 2 12s3.6 7 10 7a9.7 9.7 0 0 0 5.4-1.6M2 2l20 20M9.9 9.9a3 3 0 0 0 4.2 4.2'/></svg>");

    background: #f4f7fc;
}

/* ---------- Card ---------- */
body:has(#com-users-login__form) .com-users-login.login {
    position: relative;
    max-width: 700px !important;
    width: calc(100% - 30px) !important;
    margin: 30px auto !important;

    /* CARD SIZE: 1 = full size (700px), 0.8 = 560px, 0.7 = 490px, 0.6 = 420px */
    zoom: 0.75;
    padding: 0 0 27px !important;

    background: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 35px rgba(27, 64, 157, 0.12) !important;
}

/* ---------- Header: logos + institute name + green line ---------- */
body:has(#com-users-login__form) .com-users-login.login::before {
    content: "CSIR - Institute of\A Himalayan Bioresource Technology";
    white-space: pre-line;
    display: block;
    box-sizing: border-box;
    height: 130px;
    padding: 27px 134px 0 154px;

    text-align: center;
    color: var(--ihbt-blue);
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;

    /*background:
        var(--ihbt-csir-logo) 32px 20px / 103px auto no-repeat,
        var(--ihbt-ihbt-logo) right 20px top 18px / 97px auto no-repeat,
        linear-gradient(var(--ihbt-blue), var(--ihbt-blue)) 152px 20px / 2px 98px no-repeat,
        linear-gradient(var(--ihbt-blue), var(--ihbt-blue)) 566px 20px / 2px 98px no-repeat,
        linear-gradient(var(--ihbt-green), var(--ihbt-green)) 12px 100% / calc(100% - 24px) 4px no-repeat;*/
}

/* Italic third line of the header */
body:has(#com-users-login__form) .com-users-login.login::after {
    content: "Constituent laboratory of CSIR";
    position: absolute;
    top: 88px;
    left: 154px;
    right: 134px;
    text-align: center;
    color: var(--ihbt-blue);
    font-size: 17px;
    font-style: italic;
    line-height: 24px;
}

/* ---------- Form + "Staff Login" pill ---------- */
body:has(#com-users-login__form) #com-users-login__form {
    width: 100%;
    margin: 0;
    padding: 0 43px;
    border: none;
    background: transparent;
    box-shadow: none;
}

body:has(#com-users-login__form) #com-users-login__form::before {
    content: "Staff Login";
    display: block;
    width: 300px;
    max-width: 100%;
    height: 50px;
    margin: 20px auto 11px;

    background: var(--ihbt-blue);
    color: #ffffff;
    border-radius: 30px;

    text-align: center;
    font-size: 33px;
    font-weight: 700;
    line-height: 50px;
}

/* ---------- Field groups & labels ---------- */
body:has(#com-users-login__form) .com-users-login__input {
    margin-bottom: 15px !important;
}

body:has(#com-users-login__form) .com-users-login__input label {
    display: block;
    margin-bottom: 7px !important;
    color: var(--ihbt-blue) !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.3;
}

/* ---------- Text fields (with left icons) ---------- */
body:has(#com-users-login__form) .com-users-login__input input.form-control {
    width: 100% !important;
    height: 56px !important;
    padding: 10px 16px 10px 69px !important;

    background-color: var(--ihbt-field) !important;
    background-image: none !important;
    color: var(--ihbt-text) !important;

    border: 1px solid var(--ihbt-border) !important;
    border-radius: 8px !important;

    font-size: 19px !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Field icons: drawn on the group (not on the input), so they stay
   visible when the field is focused, filled, autofilled or validated */
body:has(#com-users-login__form) .com-users-login__input {
    position: relative;
}

body:has(#com-users-login__form) .com-users-login__input:has(#username)::before,
body:has(#com-users-login__form) .com-users-login__input:has(#password)::before {
    content: "";
    position: absolute;
    left: 23px;
    bottom: 18px;
    width: 20px;
    height: 20px;
    z-index: 10; /* must beat Bootstrap's z-index:5 on a focused .input-group input */
    pointer-events: none;
    background: center / contain no-repeat;
}

body:has(#com-users-login__form) .com-users-login__input:has(#username)::before {
    background-image: var(--ico-user);
}

body:has(#com-users-login__form) .com-users-login__input:has(#password)::before {
    background-image: var(--ico-lock);
}

body:has(#com-users-login__form) .com-users-login__input input.form-control::placeholder {
    color: #5d6783;
    opacity: 1;
}

body:has(#com-users-login__form) .com-users-login__input input.form-control:focus {
    background-color: #ffffff !important;
    border-color: var(--ihbt-blue) !important;
    box-shadow: 0 0 0 3px rgba(27, 64, 157, 0.12) !important;
    outline: none !important;
}

/* Password field + eye button */
body:has(#com-users-login__form) .com-users-login__input .input-group {
    flex-wrap: nowrap !important;
    width: 100% !important;
}

body:has(#com-users-login__form) .com-users-login__input .input-group input.form-control {
    border-radius: 8px 0 0 8px !important;
}

body:has(#com-users-login__form) .com-users-login__input .input-group button {
    width: 58px;
    min-width: 58px;
    height: 56px;
    padding: 0;

    background-color: var(--ihbt-blue) !important;
    background-image: var(--ico-eye) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 24px 24px !important;
    border: 1px solid var(--ihbt-blue) !important;
    border-radius: 0 8px 8px 0 !important;
    color: #ffffff !important;
}

/* Hide Joomla's font icon (it may not load in a custom template);
   the SVG above replaces it. The screen-reader text stays. */
body:has(#com-users-login__form) .com-users-login__input .input-group button [class*="icon-"] {
    display: none !important;
}

/* Icon while the password is visible */
body:has(#com-users-login__form) .com-users-login__input .input-group button:has(.icon-eye-slash) {
    background-image: var(--ico-eye-off) !important;
}

/* ---------- Remember me ---------- */
body:has(#com-users-login__form) .com-users-login__remember {
    margin: 17px 0 16px !important;
}

body:has(#com-users-login__form) .com-users-login__remember .form-check {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 0;
    margin: 0;
    padding: 0;
}

body:has(#com-users-login__form) .com-users-login__remember label {
    margin: 0 !important;
    color: var(--ihbt-text) !important;
    font-size: 19px !important;
    font-weight: 400 !important;
    cursor: pointer;
}

body:has(#com-users-login__form) .com-users-login__remember input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    float: none !important;
    flex: none;
    width: 24px;
    height: 24px;
    margin: 0 !important;

    background: #ffffff;
    border: 2px solid #7b869c;
    border-radius: 5px;
    cursor: pointer;
}

body:has(#com-users-login__form) .com-users-login__remember input[type="checkbox"]:checked {
    background: var(--ihbt-blue) var(--ico-check) center / 16px 16px no-repeat;
    border-color: var(--ihbt-blue);
}

body:has(#com-users-login__form) .com-users-login__remember input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(27, 64, 157, 0.30);
    outline-offset: 2px;
}

/* ---------- Log in button ---------- */
body:has(#com-users-login__form) .com-users-login__submit {
    margin-bottom: 0 !important;
}

body:has(#com-users-login__form) .com-users-login__submit button[type="submit"],
body:has(#com-users-login__form) .com-users-login__submit input[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100% !important;
    min-height: 57px !important;

    background-color: var(--ihbt-blue) !important;
    color: #ffffff !important;
    border: 1px solid var(--ihbt-blue) !important;
    border-radius: 8px !important;

    font-size: 21px !important;
    font-weight: 700 !important;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

body:has(#com-users-login__form) .com-users-login__submit button[type="submit"]::before {
    content: "";
    width: 25px;
    height: 25px;
    background: var(--ico-login) center / contain no-repeat;
}

body:has(#com-users-login__form) .com-users-login__submit button[type="submit"]:hover,
body:has(#com-users-login__form) .com-users-login__submit input[type="submit"]:hover {
    background-color: var(--ihbt-blue-dark) !important;
    border-color: var(--ihbt-blue-dark) !important;
}

/* ---------- Forgot password / username ---------- */
body:has(#com-users-login__form) .com-users-login__options {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 19px !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
}

body:has(#com-users-login__form) .com-users-login__options a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    color: var(--ihbt-blue) !important;
    font-size: 19px !important;
    font-weight: 500;
    text-decoration: none !important;
}

body:has(#com-users-login__form) .com-users-login__options a::before {
    content: "";
    width: 20px;
    height: 20px;
    background: center / contain no-repeat;
}

body:has(#com-users-login__form) .com-users-login__reset::before {
    background-image: var(--ico-lock);
}

body:has(#com-users-login__form) .com-users-login__remind::before {
    background-image: var(--ico-user);
}

body:has(#com-users-login__form) .com-users-login__options a:hover {
    text-decoration: underline !important;
}

/* Staff-only portal: hide "Create an account". Delete to show it. */
body:has(#com-users-login__form) .com-users-login__register {
    display: none !important;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {

    body:has(#com-users-login__form) .com-users-login.login {
        width: calc(100% - 24px) !important;
        margin: 20px auto !important;
        padding-bottom: 24px !important;
        border-radius: 10px !important;
        zoom: 1;
    }

    body:has(#com-users-login__form) .com-users-login.login::before {
        height: 108px;
        padding: 20px 62px 0;
        font-size: 11.5px;
        line-height: 17px;
        background:
            var(--ihbt-csir-logo) 10px 16px / 46px auto no-repeat,
            var(--ihbt-ihbt-logo) right 8px top 18px / 46px auto no-repeat,
            linear-gradient(var(--ihbt-green), var(--ihbt-green)) 10px 100% / calc(100% - 20px) 3px no-repeat;
    }

    body:has(#com-users-login__form) .com-users-login.login::after {
        top: 55px;
        left: 62px;
        right: 62px;
        font-size: 11px;
        line-height: 16px;
    }

    body:has(#com-users-login__form) #com-users-login__form {
        padding: 0 20px;
    }

    body:has(#com-users-login__form) #com-users-login__form::before {
        width: 210px;
        height: 42px;
        margin: 16px auto 12px;
        font-size: 24px;
        line-height: 42px;
    }

    body:has(#com-users-login__form) .com-users-login__input label {
        font-size: 17px !important;
    }

    body:has(#com-users-login__form) .com-users-login__input input.form-control {
        height: 50px !important;
        padding-left: 54px !important;
        font-size: 16px !important;
    }

    body:has(#com-users-login__form) .com-users-login__input:has(#username)::before,
    body:has(#com-users-login__form) .com-users-login__input:has(#password)::before {
        left: 17px;
        bottom: 15px;
        width: 20px;
        height: 20px;
    }

    body:has(#com-users-login__form) .com-users-login__input .input-group button {
        width: 52px;
        min-width: 52px;
        height: 50px;
    }

    body:has(#com-users-login__form) .com-users-login__remember label {
        font-size: 16px !important;
    }

    body:has(#com-users-login__form) .com-users-login__submit button[type="submit"],
    body:has(#com-users-login__form) .com-users-login__submit input[type="submit"] {
        min-height: 52px !important;
        font-size: 19px !important;
    }

    body:has(#com-users-login__form) .com-users-login__options {
        flex-direction: column;
        align-items: flex-start;
    }

    body:has(#com-users-login__form) .com-users-login__options a {
        font-size: 16px !important;
    }
}
/* Hide banner and breadcrumb on Staff Login page only */

body:has(#com-users-login__form) .inner-page-banner,
body:has(#com-users-login__form) .inner-page-breadcrumb,
body:has(#com-users-login__form) .inner-page-section .breadcrumb,
body:has(#com-users-login__form) .mod-breadcrumbs {
    display: none !important;
}


/* =========================================================
   TOP BAR: RESPONSIVE  (the ONLY place top bar phone/tablet
   rules live - keep this block at the very END of the file so
   it wins over the accessibility-widget rules above)

     desktop : one row, centred (see section 4)
     tablet  : items wrap neatly
     phone   : row 1 = accessibility links + icon (centred)
               row 2 = language on the LEFT, social icons on the RIGHT
   ========================================================= */

/* ---------- Tablet (<= 900px) ---------- */
@media (max-width: 900px) {

    .ihbt-topbar-content {
        /*padding: 5px 5px;*/
        gap: 4px 10px;
    }

    .ihbt-accessibility-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px 12px;
        white-space: normal;
    }

    .ihbt-social-icons {
        --size: 24px;
        gap: 14px;
        margin-left: 0;
    }
}

/* ---------- Phone (<= 600px) ---------- */
@media (max-width: 600px) {

    .ihbt-topbar {
        padding: 0;
    }

    .ihbt-topbar-content {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 2px 12px;
        padding: 4px 10px;
    }

    /* lets the accessibility icon + links flow on row 1 */
    .ihbt-accessibility-controls {
        display: contents;
    }

    /* "|" separators look odd once items wrap */
    .ihbt-separator {
        display: none;
    }

    .ihbt-accessibility-link,
    .ihbt-skip-link,
    .ihbt-sitemap-link,
    .ihbt-language label {
        display: inline-flex;
        align-items: center;
        min-height: 10px;
        color: #000;
        font-size: 9px;
        line-height: 1.2;
        white-space: normal;
    }

    /* ROW 2, LEFT: language selector */
    .ihbt-language {
        /*flex: 1 1 45%;*/
        justify-content: flex-start;
        gap: 6px;
    }

    .ihbt-language select {
        height: 20px;
        padding: 0 4px;
        border: 1px solid var(--grey-200);
        border-radius: 4px;
        font-size: 12px;
    }

    /* ROW 2, RIGHT: social icons */
    .ihbt-social-icons {
        --size: 15px;

        /*flex: 1 1 45%;*/
        justify-content: flex-end;
        width: auto;
        margin: 0;
        gap: 14px;
    }

    /* accessibility widget: smaller icon, easy to tap */
    .ihbt-accessibility-toggle {
        min-width: 36px;
        min-height: 36px;
        padding: 4px;
    }

    .ihbt-accessibility-icon {
        width: 22px;
        height: 28px;
    }

    /* dropdown opens under the icon, never off-screen */
    .ihbt-accessibility-menu {
        left: 0;
        right: auto;
    }
}

/* ---------- Very small phones (<= 360px) ---------- */
@media (max-width: 360px) {

    .ihbt-accessibility-link,
    .ihbt-skip-link,
    .ihbt-sitemap-link,
    .ihbt-language label {
        font-size: 12px;
    }

    .ihbt-social-icons {
        --size: 15px;
        gap: 9px;
    }
}



/* English / Hindi language switcher */

.ihbt-language-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.ihbt-language-switcher .mod-languages {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.ihbt-language-switcher select {
    background: #ffffff;
    color: #29469b;
    border: 1px solid #29469b;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    cursor: pointer;
}

.ihbt-language-switcher a {
    color: #29469b;
    text-decoration: none;
}

.ihbt-language-switcher a:hover {
    text-decoration: none;
}

/* =========================================
   IHBT LOGO POPUP  (clearer, larger images)
   Same class names as before - just replace the old block.
========================================= */

.ihbt-logo-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;

    background: rgba(10, 20, 45, .82);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.ihbt-logo-overlay.active {
    display: flex;
    animation: ihbtFadeIn .25s ease;
}

@keyframes ihbtFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ihbt-logo-popup {
    position: relative;
    width: 100%;
    max-width: 960px;            /* wider = bigger images */
    max-height: 92vh;
    overflow-y: auto;
    padding: 40px 36px 32px;

    background: #fff;
    border-top: 6px solid #82d83e;     /* green accent bar */
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);

    animation: ihbtPopIn .3s ease;
}

@keyframes ihbtPopIn {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.ihbt-logo-popup h2 {
    margin: 0 0 8px;
    text-align: center;
    color: #29469b;
    font-size: 26px;
    font-weight: 700;
}

/* small blue line under the heading */
.ihbt-logo-popup h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    margin: 10px auto 26px;
    background: #29469b;
    border-radius: 3px;
}

.ihbt-logo-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;
    background: #eef1f8;
    color: #29469b;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .25s ease;
}

.ihbt-logo-close:hover,
.ihbt-logo-close:focus-visible {
    background: #29469b;
    color: #fff;
    transform: rotate(90deg);
}

/* ---------- Images ---------- */

.ihbt-logo-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

/* each image sits on its own clean card, so logos stand out */
.ihbt-popup-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 260px;
    padding: 20px;

    background: #f6f8fc;
    border: 1px solid #dfe5f2;
    border-radius: 14px;
    transition: box-shadow .25s ease, transform .25s ease;
}

.ihbt-popup-image:hover {
    box-shadow: 0 8px 22px rgba(41, 70, 155, .18);
    transform: translateY(-3px);
}

.ihbt-popup-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
}

/* ---------- Phone ---------- */

@media (max-width: 600px) {

    .ihbt-logo-overlay {
        padding: 10px;
    }

    .ihbt-logo-popup {
        padding: 34px 14px 18px;
        border-radius: 14px;
    }

    .ihbt-logo-popup h2 {
        font-size: 21px;
    }

    .ihbt-logo-popup h2::after {
        margin: 8px auto 18px;
    }

    .ihbt-logo-images {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ihbt-popup-image {
        min-height: 0;
        padding: 14px;
    }

    .ihbt-popup-image img {
        max-height: 260px;
    }
}


/* =========================================
   IHBT IMAGE SLIDER  (clearer, larger images)
   Keep your JS as is: it still shows/hides .ihbt-slide
========================================= */

.ihbt-image-slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.ihbt-slide {
    display: none;
    flex: 1;
    min-width: 0;
    height: 420px;
    /*padding: 16px;*/
    align-items: center;
    justify-content: center;

    background: #f6f8fc;
    border: 1px solid #dfe5f2;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(41, 70, 155, .10);
}

/* works if your JS adds an "active" class */
.ihbt-slide.active {
    display: flex;
}

/* soft fade when the slide changes */
.ihbt-slide[style*="flex"],
.ihbt-slide[style*="block"],
.ihbt-slide.active {
    animation: ihbtSlideFade .35s ease;
}

@keyframes ihbtSlideFade {
    from { opacity: 0; transform: scale(.98); }
    to   { opacity: 1; transform: none; }
}

.ihbt-slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---------- Previous / Next buttons ---------- */

.ihbt-image-slider button {
    flex: none;
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;
    background: #29469b;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(41, 70, 155, .35);
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.ihbt-image-slider button:hover,
.ihbt-image-slider button:focus-visible {
    background: #20377d;
    transform: scale(1.08);
}

.ihbt-image-slider button:active {
    transform: scale(.96);
}

/* ---------- Counter ("1 / 4") ---------- */

.ihbt-slide-counter {
    margin-top: 16px;
    text-align: center;
    color: #29469b;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .5px;
}

/* ---------- Phone ---------- */

@media (max-width: 600px) {

    .ihbt-image-slider {
        width: 100%;
        gap: 8px;
    }

    .ihbt-slide {
        height: 280px;
        padding: 10px;
        border-radius: 12px;
    }

    .ihbt-image-slider button {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ihbt-logo-overlay.active,
    .ihbt-logo-popup,
    .ihbt-slide[style*="flex"],
    .ihbt-slide[style*="block"],
    .ihbt-slide.active {
        animation: none;
    }
}

/* =========================================================
   DJ-IMAGESLIDER – INDEPENDENT CENTRED CONTROLS
   ========================================================= */

/* Main navigation container */
.djslider-default .navigation-container {
    position: absolute !important;

    top: 50% !important;
    left: 0 !important;

    width: 100% !important;
    height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;

    display: block !important;

    z-index: 100 !important;
}

/* PREVIOUS – Left centre */
.djslider-default .navigation-container .prev-button {
    position: absolute !important;

    left: 15px !important;
    right: auto !important;

    top: 0 !important;

    transform: translateY(-50%) !important;

    margin: 0 !important;
    cursor: pointer;
}

/* NEXT – Right centre */
.djslider-default .navigation-container .next-button {
    position: absolute !important;

    right: 15px !important;
    left: auto !important;

    top: 0 !important;

    transform: translateY(-50%) !important;

    margin: 0 !important;
    cursor: pointer;
}

/* PLAY – Exact centre */
.djslider-default .navigation-container .play-button {
    position: absolute !important;

    left: 50% !important;
    top: 0 !important;

    transform: translate(-50%, -50%) !important;

    margin: 0 !important;
    cursor: pointer;
}

/* PAUSE – Exact centre */
.djslider-default .navigation-container .pause-button {
    position: absolute !important;

    left: 50% !important;
    top: 0 !important;

    transform: translate(-50%, -50%) !important;

    margin: 0 !important;
    cursor: pointer;
}



/* =====================================================
   DIGI SHOWCASE 133 - EQUAL CARDS (desktop, tablet, phone)
   Replace BOTH of your old Digi Showcase blocks with this one.
   The "one card at a time on phones" part is done by
   digi-showcase-mobile.js (slick's own slidesToShow option);
   CSS alone cannot do it, because slick calculates the slide
   widths and scroll distance in JavaScript.
   ===================================================== */

/* All slides in a row have the same height */
#digi_showcase_133 .slick-track {
    display: flex !important;
    align-items: stretch !important;
}

#digi_showcase_133 .slick-slide {
    height: auto !important;
}

#digi_showcase_133 .slick-slide > div {
    height: 100%;
}

/* Fixed card height */
#digi_showcase_133 .showcase-item {
    display: flex !important;
    flex-direction: column !important;

    height: 420px !important;
    min-height: 420px !important;
    max-height: 420px !important;

    box-sizing: border-box !important;
    overflow: hidden;
}

/* Same image size on every card */
#digi_showcase_133 .showcase-item img {
    display: block !important;
    flex-shrink: 0 !important;

    width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;

    object-fit: cover !important;
    object-position: center !important;
}

/* ---------- Tablet (<= 768px) ---------- */
@media (max-width: 768px) {

    #digi_showcase_133 .showcase-item {
        height: 390px !important;
        min-height: 390px !important;
        max-height: 390px !important;
    }

    #digi_showcase_133 .showcase-item img {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
}

/* ---------- Phone (<= 600px) ----------
   NOTE: no width overrides on .slick-slide here. Slick sets the
   slide width itself (100% of the visible area when slidesToShow
   is 1), and forcing it from CSS breaks the sliding. */
@media (max-width: 600px) {

    #digi_showcase_133 .showcase-item {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
    }

    #digi_showcase_133 .showcase-item img {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }
}



/* =====================================================
   HINDI HOMEPAGE - DIGI SHOWCASE 161
   Equal Cards - Desktop, Tablet and Mobile
   ===================================================== */

/* Slider track */
#digi_showcase_161 .slick-track {
    display: flex !important;
    align-items: stretch !important;
}

/* Slides */
#digi_showcase_161 .slick-slide {
    height: auto !important;
    box-sizing: border-box !important;
}

#digi_showcase_161 .slick-slide > div {
    height: 100% !important;
}

/* Cards */
#digi_showcase_161 .showcase-item {
    display: flex !important;
    flex-direction: column !important;
    height: 420px !important;
    min-height: 420px !important;
    max-height: 420px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Inner content */
#digi_showcase_161 .showcase-item .item-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
}

/* Title */
#digi_showcase_161 .showcase-item h5.title {
    height: 65px !important;
    min-height: 65px !important;
    max-height: 65px !important;
    overflow: hidden !important;
    margin: 10px !important;
    line-height: 1.5 !important;
}

/* Date */
#digi_showcase_161 .showcase-item .extra-info {
    height: 25px !important;
    min-height: 25px !important;
    margin: 5px 10px !important;
}

/* Image container */
#digi_showcase_161 .showcase-item p.image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: hidden !important;
    margin: 5px 0 0 !important;
}

/* Images */
#digi_showcase_161 .showcase-item p.image img {
    display: block !important;
    width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* TABLET */
@media (max-width: 768px) {
    #digi_showcase_161 .showcase-item {
        height: 390px !important;
        min-height: 390px !important;
        max-height: 390px !important;
    }

    #digi_showcase_161 .showcase-item p.image,
    #digi_showcase_161 .showcase-item p.image img {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
}

/* MOBILE */
@media (max-width: 600px) {
    #digi_showcase_161 .showcase-item {
        height: 320px !important;
        min-height: 320px !important;
        max-height: 320px !important;
    }

    #digi_showcase_161 .showcase-item h5.title {
        height: 55px !important;
        min-height: 55px !important;
        max-height: 55px !important;
    }

    #digi_showcase_161 .showcase-item p.image,
    #digi_showcase_161 .showcase-item p.image img {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }
}




/* ==========================================
   CSIR-IHBT - SAFARI / WEBKIT COMPATIBILITY
   Joomla 5 Template
========================================== */

/* 1. Backdrop filter compatibility */
.ihbt-glass-effect {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* 2. Consistent form control appearance */
button,
input,
select,
textarea {
    font-family: inherit;
}

/* Safari form control support */
button,
input,
select,
textarea {
    -webkit-appearance: none;
    appearance: none;
}

/* Restore standard dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2329469b' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* 3. Text selection compatibility */
body {
    -webkit-user-select: text;
    user-select: text;
}

/* 4. Image sizing inside flex containers */
img {
    max-width: 100%;
    height: auto;
}

.flex-container img {
    align-self: flex-start;
}

/* 5. Consistent flexbox sizing */
.flex-container > * {
    min-width: 0;
}

/* 6. Safari viewport height compatibility */
.ihbt-full-height {
    min-height: 100vh;
    min-height: 100svh;
}

/* 7. Smooth scrolling */
html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 8. Prevent horizontal overflow */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

/* 9. Sticky element compatibility */
.ihbt-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 10. Better mobile touch interaction */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* 11. Safari responsive image handling */
@supports (-webkit-touch-callout: none) {
    img {
        max-width: 100%;
    }
}
