/* ====== !IMPORT FONTS ====== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500&family=Raleway:wght@300;400;500&display=swap');

/* ====== !ROOT VARIABLES ====== */
:root {
    /* fonts */
    --font-family-body: 'Poppins', sans-serif;
    --font-family-header: 'Raleway';
    --body-copy: 16px;
    --body-copy-lg: 17px;
    --lead-paragraph: 22px;
    --lead-paragraph-sm: 18px;
    --caption: 14px;
    --h1: 48px;
    --h2: 32px;
    --h2-md: 28px;
    --h3: 25px;
    --h4: 20px;
    --h5: 18px;

    /* colors */
    --primary-color: #1B5D45;
    --body-copy-light: #ffffff;
    --body-copy-dark: #05100C;
    --header-light: #ffffff;
    --header-dark-100: #05100C;
    --header-dark-95: #05100cf4;
    --header-dark-80: #05100cd3;
    --transparent: #278665bd;
    --link-hover: #e6e6e6;

    /* widths */
    --bar-with: 160px;
}

/* ====== BASIC RESETS ====== */
ul {
    list-style: none;
}

a {
    text-decoration: none;
    font: inherit;
    color: inherit;
    outline: none;
}

img {
    display: block;
    width: 100%;
}

button,
input {
    font: inherit;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-family-header);
    font-weight: 500;
    text-align: center;
}

/* Add here all your CSS customizations */
.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

#header .header-nav-main nav > ul:not(:hover) > li > a.active {
    background-color: #ffffff;
    color: #111;
    border-radius: 5px !important;
    padding: 6PX 12PX;
}

#header .header-nav-main nav > ul > li.open > a, #header .header-nav-main nav > ul > li:hover > a {
    background-color: #ffffff;
    color: #111;
    border-radius: 5px !important;
    padding: 6PX 12PX;
}

.recent-posts h5 {
    font-size: var(--h5);
    line-height: 20px;
}

._custom-link {
    /* font-weight: 500 !important; */
    letter-spacing: 0px !important;
    /* padding: 16px 12px; */
}

._custom-padding {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

._custom-prop {
    width: 90%;
    padding: 0;
    margin: 0 auto;
}

/* !MESSAGES SECTION*/
.department-heads-messages {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #D7F4E9;
    min-width: 320px;
}

.dhm-heading-container {
    width: 100%;
    margin: 20px 0 90px 0;
    text-align: center;
}

.dhm-heading-container h2 {
    font-size: var(--h2);
    color: var(--header-dark-100);
}
.dhm-heading-container .dhm-bar {
    display: block;
    width: 80px;
    height: 3px;
    border-radius: 12px;
    background-color: var(--header-dark-100);
    margin: 8px auto 0;
}

.messages-continer {
    width: 90%;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}

.message {
    background-color: #C0EDDC;
    border-radius: 10px;
    margin-top: 30px;
    margin-right: 18px;
    margin-left: 18px;
    margin-bottom: 22px;
    width: 50%;
}

.head-image img {
    width: 132px;
    height: 132px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    margin-top: -80px;
    margin-left: 44px;
}

.head-info {
    padding: 12px 22px;
}

.designation h3 {
    font-size: var(--h3);
}

.message-content {
    font-size: var(--lead-paragraph);
}

.message-content p {
    margin-bottom: 0 !important;
}

.message-content span {
    color: var(--primary-color);
}

.designation-title {
    display: flex;
    align-items: center;
}

.designation-title p {
    margin-bottom: 0 !important;
}

.designation-title .long-bar {
    display: block;
    width: 40px;
    height: 2px;
    border-radius: 12px;
    background-color: rgb(40, 40, 40);
    margin-right: 10px;
}

.read-more {
    display: flex;
    align-items: center;
    justify-content: end;
    color: var(--primary-color);
    margin-bottom: 8px;
    margin-top: 10px;
}

.read-more a:hover {
    color: var(--primary-color) !important;
    font-weight: 500 !important;
    transition: all 0.3s ease-out;
}

.read-more a:visited {
    color: var(--primary-color) !important;
    font-weight: 500 !important;
    transition: all 0.3s ease-out;
}

/* !VISION AND MISSION */
.vision-and-mission {
    width: 100%;
    background-image: url(../../images/Mission-and-Vision.png);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    min-width: 320px;
}

.background-overlay {
    width: 100%;
    background-color: #0000009e;
    padding: 20px 0 12px 0;
}

.vam-heading-container {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

.vam-heading-container h2 {
    font-size: var(--h2);
    color: var(--header-light);
}

.vam-heading-container .vam-bar {
    display: block;
    width: var(--bar-with);
    height: 3px;
    border-radius: 12px;
    background-color: var(--header-light);
    margin: 8px auto 0;
}

.vis-and-mis-container {
    width: 90%;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}

.vam-element {
    width: 100%;
    margin: 20px 0;
    background-color: #0059B2;
    color: var(--body-copy-light);
    padding: 22px;
    border-radius: 10px;
}

.vam-element-heading {
    text-align: center;
    font-size: 22px;
    text-transform: uppercase;
}

.vam-element-heading h3 {
    font-size: var(--h3);
    position: relative;
    z-index: 100;
}

.vam-element-heading img {
    width: 100px;
    height: 100px;
    display: inline-block;
}

.--margins-I {
    margin: -75px -28px 0 0;
}

.--margins-II {
    margin: -104px -76px 0 0;
}

.vam-element-content {
    font-size: var(--body-copy-lg);
}

.vam-element-content ol {
    padding-left: 16px;
}

/* !e-SITIZEN PORTAL */
.e-sitizen {
    width: 100%;
    background-color: #38c28f84;
    padding: 32px 0;
    min-width: 320px;
}

.e-heading-container {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.e-heading-container p {
    padding: 12px 0 2px;
}

.e-heading-container h2 {
    font-size: var(--h2);
    color: var(--header-dark-100);
}

.e-heading-container .e-bar {
    display: block;
    width: 144px;
    height: 3px;
    border-radius: 12px;
    background-color: var(--header-dark-100);
    margin: 8px auto 0;
}

.e-container {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row-gap: 24px;
    grid-column-gap: 24px;
    margin: 0 auto;
}

.e-element {
    width: 100%;
    background-color: #D7F4E9;
    padding: 12px 24px 0;
    border-radius: 10px;
}
.e-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 20px;
}

.e-content h3 {
    font-size: var(--h3);
}

.e-icon {
    border-radius: 50%;
    display: flex;
    align-items: center;
}

.e-icon img {
    width: 280px !important;
}

/* !SERVICES */
.services {
    width: 100%;
    background-color: #D7F4E9;
    padding: 32px 0;
    min-width: 320px;
}

.s-heading-container {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.s-heading-container p {
    padding: 12px 0 2px;
}

.s-heading-container h2 {
    font-size: var(--h2);
    color: var(--header-dark-100);
}

.s-heading-container .s-bar {
    display: block;
    width: 100px;
    height: 3px;
    border-radius: 12px;
    background-color: var(--header-dark-100);
    margin: 8px auto 0;
}

.s-container {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-column-gap: 16px;
    grid-row-gap: 24px;
    margin: 0 auto;
}

.s-container .s-element {
    background-color: #ffffff;
    padding: 18px 18px 14px;
    border-radius: 10px;
}

.s-element .s-icon img {
    width: 300px;
    height: 80px;
    border-radius: 5px;
}

.s-element h3 {
    margin: 20px 0 6px;
    line-height: 28px;
    font-size: var(--h3);
}

.s-element .s-arrow {
    display: block;
    text-align: end;
}

/* !PARTNERS */
.partners {
    width: 100%;
    background-color: #38c28f8c;
    padding: 32px 0;
    min-width: 320px;
}

.p-heading-container {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.p-heading-container h2 {
    font-size: var(--h2);
    color: var(--header-light);
}

.p-heading-container .p-bar {
    display: block;
    width: 100px;
    height: 3px;
    border-radius: 12px;
    background-color: var(--header-light);
    margin: 8px auto 0;
}

.p-container {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-row-gap: 18px;
    grid-column-gap: 18px;
    margin: 0 auto;
}

.p-container .p-element {
    height: 180px;
    border-radius: 10px;
}

.p-container .p-element img {
    width: 180px;
    height: 180px;
}

/* Scroll Bar */
::-webkit-scrollbar {
    width: .6rem;
}

/* ::-webkit-scrollbar-track {
    background-color: #53c098;
    border-radius: 10px;
    margin-block: .4em;
} */

::-webkit-scrollbar-thumb {
    background-color: #53c098;;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgb(40, 142, 105);
}

.so-title h3 {
    text-align: center;
}

/* ====== !SIDEBAR (News and Alerts) ====== */
._news { 
    width: 100%;
    margin: 0 auto;
    background-color: #D7F4E9;
    border-radius: 10px;
    margin-bottom: 16px;
}

._custom-heading {
    font-size: var(--h3);
    color: var(--header-dark-100);
    margin: 18px auto 12px;
    padding: 0 0 3px 0;
    border-bottom: 2px solid var(--header-dark-100);
    border-radius: 3px;
}

._custom-design {
    background-color: #C0EDDC;
    padding-top: 12px;
    margin-bottom: 12px !important;
    border-radius: 5px;
}

._custom-design:hover {
    background-color: #6bcda7;
}

/* ====== !FOOTER ====== */
.footer-container {
    width: 100%;
    background-color: #0059B2;
    min-width: 320px;
    color: var(--body-copy-light);
}
  
.footer-info {
    width: 90%;
    margin: 0 auto;
    padding: 20px 0 0;
}
  
.footer-title img {
    width: 380px;
    margin: 0 auto;
}
  
.footer-section-wrapper {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--body-copy-light);
    margin: 0 auto;
    padding: 0 0 12px;
}

.footer-section {
    padding: 18px;
}

.footer-section p {
    line-height: 20px;
    margin-bottom: 0.4rem !important;
}

.footer-title {
    font-size: 1.1em;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-bottom: 6px;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--body-copy-light);
}

.footer-list {
    display: flex;
    flex-direction: column;
    list-style-type: none;
}

.footer-link .fa-location-dot {
    margin-right: 7px;
}

.footer-link .fa-phone,
.footer-link .fa-envelope,
.footer-link .fa-paper-plane {
    margin-right: 8px;
}

.footer-link:hover {
    color: var(--link-hover) !important;
    cursor: pointer;
}

.footer-bottom {
    width: 90%;
    margin: 0 auto;
    padding: 8px 0;
}

.footer-bottom p {
    margin-bottom: 0 !important;
}
.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1rem;
}

.social-links {
    display: flex;
    align-items: center;
}

.social-links div {
    border: 1.5px solid #fff;
    border-radius: 8px;
    margin: 0 4px 0;
}

.social-links a {
    display: block;
}

.social-links a i {
    font-size: 24px;
    padding: 6px 3px 6px 6px;
    margin-right: 4px;
}

.social-links .fa-facebook:hover {
    color:#087BEA;
}

.social-links .fa-instagram:hover {
    color:#ed7144;
}

.social-links .fa-twitter:hover {
    color:#1DA1F2;
}

.social-links .fa-youtube:hover {
    color:#FF0000;
}

/* ====== Responsive Design ====== */
/* Small breakpoint */
@media (max-width: 430px) {

    /* Messages Section */
    .messages-continer {
        display: block;
    }
    .message {
        margin: 14px 12px;
    }
    .message:last-child {
        margin-top: 94px;
    }
    .sm {
        margin-top: 80px;
    }
    .head-image {
        margin: 0;
        padding-top: 12px;
    }
    .head-image img {
        width: 120px;
        height: 120px;
        border: 2px solid #ffffff;
        border-radius: 10px;
    }
    .message-content {
        font-size: var(--lead-paragraph-sm);
    }

    /* Vision and Mission */
    .vis-and-mis-container {
        display: block;
    }
    .vam-element {
        width: 100%;
        margin-top: 34px;
    }

    /* e-Sitizen Portal */
    .e-container {
        width: 100%;
        display: block;
    }
    .e-container .e-element {
        width: 90%;
        margin: 12px auto;
    }
    .e-content {
        column-gap: 0px;
    }
    .element-title p {
        margin-bottom: 0 !important;
    }
    .e-icon {
        width: 210px;
    }

    /* Service */
    .s-container {
        width: 100%;
        display: block;
    }
    .s-container .s-element {
        width: 90%;
        margin: 12px auto;
    }
    .p-container {
        width: 90%;
        grid-template-columns: repeat(2, 1fr);
        grid-row-gap: 0;
        grid-column-gap: 0;
    }
    .p-container .p-element {
        width: 90%;
        margin: 0 auto;
    }
    .p-container .p-element img {
        width: 160px;
        height: 160px;
    }

    /* Social Media Platforms */
    .so-container {
        padding-top: 42px;
        display: block;
    }
    .so-element:first-child {
        margin-bottom: 22px;
    }

    /* Footer Section */
    .footer-section-wrapper {
        display: block;
        text-align: left;
    }
    .footer-bottom {
        display: block;
    }
    .footer-bottom p {
        text-align: center;
        line-height: 18px;
    }
    .footer-title img {
        width: 300px;
        margin: 0 auto;
    }

    /* Target all h2s */
    .dhm-heading-container h2,
    .vam-heading-container h2,
    .e-heading-container h2,
    .s-heading-container h2,
    .p-heading-container h2,
    .so-heading-container h2 {
        font-size: 24px;
    }
}
