/* =========================================================
   DIRECTORATE OF MINERAL RESOURCES
   DEPARTMENT OF MINING & GEOLOGY
   GOVERNMENT OF MEGHALAYA

   Digital Brand Identity Manual
   Primary Colour Group: CHROME YELLOW
   ========================================================= */


/* =========================================================
   COLOUR VARIABLES
   ========================================================= */

:root {

    /* Primary Chrome Yellow Palette */

    --primary: #5D3E00;
    --secondary: #916100;
    --accent: #DDA73A;
    --light-yellow: #F4D390;
    --very-light-yellow: #FFEECC;


    /* Functional Palette */

    --white: #FFFFFF;
    --linen: #EBEAEA;

    --text: #150202;

    --black: #000000;

    --deep-blue: #1D0A69;

    --success: #198754;
    --warning: #FFC107;
    --error: #DC3545;
    --information: #0D6EFD;

    --grey1: #C6C6C6;
    --grey2: #8E8E8E;
    --grey3: #606060;


    /* Layout */

    --max-width: 1280px;

}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;
    padding: 0;

    background: var(--white);

    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;

    line-height: 1.6;

}


/* =========================================================
   GENERAL
   ========================================================= */

img {

    max-width: 100%;

    height: auto;

}


a {

    color: var(--information);

    text-decoration: underline;

}


a:hover {

    color: var(--primary);

}


a:focus {

    outline: 3px solid var(--accent);

    outline-offset: 3px;

}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

#container {

    width: 100%;

    margin: 0 auto;

    background: var(--white);

}


/* =========================================================
   ACCESSIBILITY TOP BAR
   ========================================================= */

.header_top {

    width: 100%;

    background: var(--linen);

    border-bottom:
        1px solid
        var(--grey1);

}



.top_nav {

    max-width: var(--max-width);

    min-height: 48px;

    margin: 0 auto;

    padding: 7px 15px;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 14px;

    flex-wrap: wrap;

}


.top-search {

    margin-right: auto;

}


.top-search form {

    display: flex;

    align-items: center;

    gap: 4px;

}


.top-search label {

    font-size: 14px;

    font-weight: 600;

}


#search-form {

    width: 190px;

    height: 31px;

    padding: 5px 8px;

    border:
        1px solid
        var(--grey2);

    background: var(--white);

    color: var(--text);

}


#search-button {

    height: 31px;

    padding: 0 12px;

    border:
        1px solid
        var(--primary);

    background: var(--primary);

    color: var(--white);

    cursor: pointer;

    font-weight: 600;

}


#search-button:hover,
#search-button:focus {

    background: var(--secondary);

}


.access-item {

    display: flex;

    align-items: center;

    gap: 4px;

    font-size: 13px;

    white-space: nowrap;

}


.access-item > span {

    margin-right: 2px;

}


.access-item img {

    width: 20px;

    height: 20px;

    vertical-align: middle;

}


.spacing-button {

    min-width: 32px;

    height: 27px;

    padding: 2px 7px;

    background: var(--white);

    color: var(--primary);

    border:
        1px solid
        var(--primary);

    cursor: pointer;

    font-size: 12px;

    text-transform: uppercase;

}


.spacing-button:hover,
.spacing-button:focus {

    background: var(--primary);

    color: var(--white);

}


/* =========================================================
   HEADER
   ========================================================= */

header {

    width: 100%;

    background: var(--white);

}


.header-width {

    width: 100%;

    max-width: var(--max-width);

    margin: 0 auto;

}


.main-banner {

    display: block;

    width: 100%;

    height: 150px;

    object-fit: cover;

}


/* =========================================================
   TAGLINE
   ========================================================= */

.tagline {

    width: 100%;

    min-height: 44px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 8px 15px;

    background: var(--primary);

    color: var(--white);

    text-align: center;

    font-size: 18px;

    font-weight: 600;

    letter-spacing: 0.2px;

}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

nav {

    width: 100%;

    background: var(--secondary);

    border-bottom:
        4px solid
        var(--primary);

}


.navigation-width {

    max-width: var(--max-width);

    margin: 0 auto;

}


nav ul {

    margin: 0;

    padding: 0;

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    list-style: none;

}


nav li {

    margin: 0;

    padding: 0;

}


nav li a {

    display: block;

    padding: 13px 17px;

    color: var(--white);

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    border-right:
        1px solid
        rgba(255,255,255,0.25);

    transition:
        background-color 0.2s ease,
        color 0.2s ease;

}





nav li a:hover,
nav li a:focus {

    background: var(--primary);

    color: var(--white);

}


/* =========================================================
   MAIN BODY
   ========================================================= */

#body {

    width: 100%;

    max-width: var(--max-width);

    margin: 0 auto;

    padding: 28px 15px 40px;

}


#charspace {

    width: 100%;

}


/* =========================================================
   THREE COLUMN GRID
   ========================================================= */

.homepage-grid {

    display: grid;

    grid-template-columns:
        245px
        minmax(0, 1fr)
        245px;

    gap: 25px;

    align-items: start;

}


/* =========================================================
   LEFT SIDEBAR MENU
   ========================================================= */

#cssmenu {
    width: 100%;
}

#cssmenu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Main menu */
#cssmenu > ul {
    border: 1px solid rgba(93, 62, 0, 0.20);
}

#cssmenu > ul > li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

#cssmenu > ul > li:last-child {
    border-bottom: 0;
}


/* =========================================================
   MAIN MENU LINKS
   ========================================================= */

#cssmenu > ul > li > a {
    position: relative;

    display: block;

    padding: 11px 45px 11px 13px;

    background: var(--primary);

    color: var(--white);

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.4;

    cursor: pointer;

    transition:
        background-color 0.2s ease;
}


#cssmenu > ul > li > a:hover {
    background: var(--secondary);
    color: var(--white);
}


/* =========================================================
   PLUS BUTTON
   ========================================================= */

#cssmenu > ul > li.has-sub > a::after {

    content: "+";

    position: absolute;

    right: 10px;

    top: 50%;

    transform: translateY(-50%);

    width: 22px;

    height: 22px;

    border-radius: 50%;

    background: var(--white);

    color: var(--primary);

    text-align: center;

    line-height: 21px;

    font-size: 17px;

    font-weight: bold;

}


/* =========================================================
   WHEN MENU IS OPEN
   ========================================================= */

#cssmenu > ul > li.has-sub.open > a {
    background: var(--secondary);
}


/* Change + to − when open */

#cssmenu > ul > li.has-sub.open > a::after {

    content: "−";

    background: var(--white);

    color: var(--primary);

}


/* =========================================================
   SUBMENU
   ========================================================= */

/* HIDDEN BY DEFAULT */

#cssmenu > ul > li.has-sub > ul {

    display: none;

    margin: 0;

    padding: 0;

    background: var(--very-light-green);

}


/* SHOW WHEN PARENT HAS .open */

#cssmenu > ul > li.has-sub.open > ul {

    display: block;

}


/* Submenu items */

#cssmenu ul ul li {

    margin: 0;

    border-bottom:
        1px solid
        rgba(93, 62, 0, 0.15);

}


#cssmenu ul ul li:last-child {
    border-bottom: 0;
}


#cssmenu ul ul li a {

    display: block;

    padding: 9px 10px 9px 22px;

    background: var(--very-light-green);

    color: var(--text);

    text-decoration: none;

    font-size: 14px;

    line-height: 1.4;

}


#cssmenu ul ul li a:hover,
#cssmenu ul ul li a:focus {

    background: var(--light-green);

    color: var(--primary);

}

/* =========================================================
   PLUS ICON
   ========================================================= */

#cssmenu > ul > li.has-sub > a::after {

    content: "+";

    position: absolute;

    right: 10px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 22px;

    height: 22px;

    border-radius: 50%;

    background: var(--white);

    color: var(--primary);

    text-align: center;

    line-height: 21px;

    font-size: 17px;

    font-weight: bold;

}


/* =========================================================
   SUBMENU
   ========================================================= */

#cssmenu ul ul {

    background:
        var(--very-light-yellow);

}


#cssmenu ul ul li {

    border-bottom:
        1px solid
        rgba(93,62,0,0.15);

}


#cssmenu ul ul li a {

    display: block;

    padding: 9px 10px 9px 22px;

    background:
        var(--very-light-yellow);

    color: var(--text);

    text-decoration: none;

    font-size: 14px;

    line-height: 1.4;

}


#cssmenu ul ul li a:hover,
#cssmenu ul ul li a:focus {

    background:
        var(--light-yellow);

    color: var(--primary);

}


/* =========================================================
   LEFT SIDEBAR BANNERS
   ========================================================= */

.sidebar-banners {

    margin-top: 18px;

}


.sidebar-banners a {

    display: block;

    margin-bottom: 10px;

}


.sidebar-banners img {

    display: block;

    width: 100%;

    height: auto;

    border:
        1px solid
        var(--grey1);

}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

#content {

    width: 100%;

    min-width: 0;

}


/* =========================================================
   INTRODUCTION
   ========================================================= */

.intro-card {

    padding: 22px 24px;

    background: var(--white);

    border:
        1px solid
        var(--grey1);

    border-top:
        5px solid
        var(--primary);

    box-shadow:
        0 2px 8px
        rgba(0,0,0,0.05);

}


.intro-card p {

    margin: 0 0 15px;

    color: var(--text);

    font-size: 16px;

    line-height: 1.8;

}


.intro-card p:last-child {

    margin-bottom: 0;

}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 28px;

    margin-bottom: 15px;

    padding-bottom: 8px;

    border-bottom:
        3px solid
        var(--secondary);

}


.section-heading h2 {

    margin: 0;

    color: var(--primary);

    font-size: 23px;

    font-weight: 700;

}


.section-heading h2::before {

    content: "";

    display: inline-block;

    width: 7px;

    height: 23px;

    margin-right: 9px;

    vertical-align: -3px;

    background: var(--accent);

}


/* =========================================================
   NEWS
   ========================================================= */

.news-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.news-item {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;

    padding: 12px 14px;

    background: var(--white);

    border:
        1px solid
        var(--grey1);

    border-left:
        4px solid
        var(--accent);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;

}


.news-item:hover {

    background:
        var(--very-light-yellow);

    border-left-color:
        var(--secondary);

}


.news-content {

    min-width: 0;

}


.news-content a {

    color: var(--information);

    text-decoration: underline;

    font-size: 15px;

    line-height: 1.6;

}


.news-content a:hover,
.news-content a:focus {

    color: var(--primary);

}


.pdf-label {

    flex-shrink: 0;

    padding: 3px 7px;

    background:
        var(--linen);

    color:
        var(--grey3);

    border:
        1px solid
        var(--grey1);

    font-size: 11px;

    font-weight: 700;

}


/* =========================================================
   VIEW ALL
   ========================================================= */

.archive-container {

    margin-top: 16px;

    text-align: right;

}


.archive-button {

    display: inline-block;

    padding: 8px 15px;

    background:
        var(--primary);

    color:
        var(--white);

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    border-radius: 3px;

}


.archive-button:hover,
.archive-button:focus {

    background:
        var(--secondary);

    color:
        var(--white);

}


/* =========================================================
   RIGHT SIDEBAR
   ========================================================= */

.right-sidebar {

    width: 100%;

}


.sidebar-section {

    margin-bottom: 24px;

    border:
        1px solid
        var(--grey1);

    background:
        var(--white);

}


.sidebar-section h2 {

    margin: 0;

    padding: 10px 12px;

    background:
        var(--primary);

    color:
        var(--white);

    border-left:
        5px solid
        var(--accent);

    font-size: 17px;

    line-height: 1.4;

}


.sidebar-section ul {

    margin: 0;

    padding: 12px 12px 12px 29px;

}


.sidebar-section li {

    margin-bottom: 9px;

    padding-left: 2px;

    line-height: 1.5;

}


.sidebar-section li:last-child {

    margin-bottom: 0;

}


.sidebar-section a {

    color:
        var(--information);

    font-size: 14px;

}


.sidebar-section a:hover,
.sidebar-section a:focus {

    color:
        var(--primary);

}


/* =========================================================
   GOVERNMENT LINKS
   ========================================================= */

.government-links {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    margin-top: 10px;

}


.government-links a {

    display: block;

}


.government-links img {

    display: block;

    max-width: 100%;

    height: auto;

}


/* =========================================================
   FOOTER
   ========================================================= */

footer {

    width: 100%;

    margin-top: 0;

    background:
        var(--primary);

    color:
        var(--white);

    border-top:
        5px solid
        var(--accent);

}


.footer-bottom {

    max-width:
        var(--max-width);

    margin: 0 auto;

    padding: 28px 20px;

    text-align: center;

}


.footer-logo-line {

    margin-bottom: 12px;

    font-size: 16px;

}


.footer-logo-line span {

    margin:
        0 8px;

    opacity: 0.7;

}


.footer-bottom p {

    margin:
        7px 0;

    color:
        var(--white);

    font-size: 13px;

    line-height: 1.7;

}


.footer-links {

    margin-top: 12px;

    font-size: 14px;

}


.footer-links a {

    color:
        var(--white);

    text-decoration: underline;

}


.footer-links a:hover,
.footer-links a:focus {

    color:
        var(--light-yellow);

}


.footer-links span {

    margin:
        0 7px;

    opacity: 0.7;

}


#last-updated {

    margin-top: 15px;

    color:
        var(--light-yellow);

}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media screen and (max-width: 1100px) {

    .top_nav {

        justify-content: center;

    }


    .top-search {

        margin-right: 0;

    }


    .homepage-grid {

        grid-template-columns:
            210px
            minmax(0, 1fr)
            210px;

        gap: 18px;

    }


    nav li a {

        padding:
            12px 12px;

        font-size: 14px;

    }

}


/* =========================================================
   RESPONSIVE - TABLET / MOBILE
   ========================================================= */

@media screen and (max-width: 850px) {

    .homepage-grid {

        grid-template-columns:
            1fr;

    }


    .left-sidebar {

        order: 1;

    }


    #content {

        order: 2;

    }


    .right-sidebar {

        order: 3;

    }


    .sidebar-banners {

        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 10px;

    }


    .sidebar-banners a {

        margin-bottom: 0;

    }


    .right-sidebar {

        display: grid;

        grid-template-columns:
            1fr 1fr;

        gap: 15px;

    }


    .right-sidebar .sidebar-section {

        margin-bottom: 0;

    }


    .government-links {

        grid-column:
            1 / -1;

    }
 .page-card {

        padding: 17px;

    }


    .page-heading h1 {

        font-size: 21px;

    }


    .page-heading h1::before {

        height: 21px;

        width: 6px;

        margin-right: 8px;

    }


    .page-card p {

        font-size: 15px;

        line-height: 1.7;

    }


    .page-card ol li {

        font-size: 15px;

        line-height: 1.7;

        margin-bottom: 9px;

    }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media screen and (max-width: 600px) {

    body {

        font-size: 15px;

    }


    .top_nav {

        display: block;

        text-align: center;

        padding: 8px;

    }


    .top-search {

        margin-bottom: 8px;

    }


    .top-search form {

        justify-content: center;

    }


    #search-form {

        width: 65%;

    }


    .access-item {

        display: inline-flex;

        margin: 4px;

    }


    .main-banner {

        height: auto;

        min-height: 90px;

        object-fit: cover;

    }


    .tagline {

        font-size: 15px;

        padding: 10px;

    }


    nav ul {

        display: block;

    }


    nav li a {

        border-bottom:
            1px solid
            rgba(255,255,255,0.20);

        text-align: left;

    }


    #body {

        padding:
            15px 10px 30px;

    }


    .intro-card {

        padding:
            17px;

    }


    .intro-card p {

        font-size: 15px;

        line-height: 1.7;

    }


    .section-heading {

        align-items:
            flex-start;

        flex-direction:
            column;

    }


    .section-heading h2 {

        font-size: 21px;

    }


    .news-item {

        display: block;

    }


    .pdf-label {

        display: inline-block;

        margin-top: 7px;

    }


    .right-sidebar {

        display: block;

    }


    .right-sidebar .sidebar-section {

        margin-bottom: 15px;

    }


    .sidebar-banners {

        display: block;

    }


    .sidebar-banners a {

        margin-bottom: 10px;

    }


    .government-links {

        display: flex;

        justify-content: center;

    }


    .footer-bottom {

        padding:
            22px 12px;

    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 400px) {

    .top-search form {

        display: block;

    }


    #search-form {

        width: 75%;

    }


    #search-button {

        margin-top: 5px;

    }


    .section-heading h2 {

        font-size: 19px;

    }


    .news-content a {

        font-size: 14px;

    }

}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

    .header_top,
    nav,
    .left-sidebar,
    .right-sidebar,
    .tagline {

        display: none;

    }


    #body {

        max-width: 100%;

        padding: 0;

    }


    .homepage-grid {

        display: block;

    }


    #content {

        width: 100%;

    }


    .intro-card {

        border:
            0;

        box-shadow:
            none;

    }


    footer {

        background:
            none;

        color:
            #000000;

        border:
            0;

    }


    .footer-bottom p,
    .footer-bottom a {

        color:
            #000000;

    }

}

/* =========================================================
   INNER CONTENT PAGES
   ========================================================= */

.page-card {

    padding: 22px 24px;

    background: var(--white);

    border:
        1px solid
        var(--grey1);

    border-top:
        5px solid
        var(--primary);

    box-shadow:
        0 2px 8px
        rgba(0,0,0,0.05);

}


.page-heading {

    margin: 0 0 22px;

    padding-bottom: 10px;

    border-bottom:
        3px solid
        var(--secondary);

}


.page-heading h1 {

    margin: 0;

    color: var(--primary);

    font-size: 25px;

    font-weight: 700;

    line-height: 1.4;

}


.page-heading h1::before {

    content: "";

    display: inline-block;

    width: 7px;

    height: 25px;

    margin-right: 10px;

    vertical-align: -3px;

    background: var(--accent);

}


.page-card p {

    margin:
        0 0 17px;

    color: var(--text);

    font-size: 16px;

    line-height: 1.8;

}


.page-card ol {

    margin:
        0 0 20px;

    padding-left: 28px;

}


.page-card ol li {

    margin-bottom: 11px;

    padding-left: 6px;

    color: var(--text);

    font-size: 16px;

    line-height: 1.7;

}


.page-card ol li::marker {

    color: var(--primary);

    font-weight: 700;

}


.objectives-list {

    margin-top: 5px;

}


.objectives-list li {

    padding-left: 7px;

}
/* =========================================================
   SCHEMES TABLE
   ========================================================= */

.schemes-table-wrapper {

    width: 100%;

    overflow-x: auto;

    margin-top: 5px;

}


.schemes-table {

    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;

    font-size: 14px;

}


.schemes-table th {

    padding: 12px 10px;

    background: var(--primary);

    color: var(--white);

    border:
        1px solid
        var(--secondary);

    text-align: left;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.4;

}


.schemes-table td {

    padding: 13px 12px;

    vertical-align: top;

    border:
        1px solid
        var(--grey1);

    color: var(--text);

    line-height: 1.6;

    background: var(--white);

}


.schemes-table tbody tr:nth-child(even) td {

    background:
        var(--very-light-yellow);

}


.schemes-table tbody tr:hover td {

    background:
        var(--light-yellow);

}


.schemes-table td:first-child {

    width: 38%;

}


.schemes-table td:nth-child(2) {

    width: 42%;

}


.schemes-table td:nth-child(3) {

    width: 20%;

    font-size: 13px;

}


.schemes-table ul {

    margin: 0;

    padding-left: 20px;

}


.schemes-table li {

    margin-bottom: 7px;

}


.schemes-table li:last-child {

    margin-bottom: 0;

}
/* =====================================================
   INNER PAGES - TWO COLUMN LAYOUT
   ===================================================== */

.two-column-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    align-items: start;
}

.two-column-layout .left-sidebar {
    width: 100%;
}

.two-column-layout #content {
    width: 100%;
    min-width: 0;
}


/* Mineral table */

.minerals-content {
    width: 100%;
}

.minerals-content .table-wrapper {
    width: 100%;
    overflow-x: auto;
}


/* Responsive */

@media (max-width: 700px) {

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

}
.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid #777;
}

.table-wrapper th,
.table-wrapper td {
    border: 1px solid #777;
    padding: 10px 8px;
}

.table-wrapper th {
    text-align: center;
    vertical-align: middle;
}

.table-wrapper td {
    vertical-align: top;
}