/* Theme Name: Pharmacy Mentor
Theme URI: https://pharmacymentor.com
Author: Pharmacy Mentor
Version: 1.0
*/

:root {
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    --font-style-normal: normal;
    --transition: ease-in-out 0.4s;
}

* {
    box-sizing: border-box;
}

body, html {
    font-family: var(--font-paragraph);
    font-weight: var(--font-weight-regular);
    font-optical-sizing: auto;
    color: var(--secondary-colour);
    overflow-x: hidden;
}

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

footer {
    padding-top: 60px;
    padding-bottom: 30px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    font-optical-sizing: auto;
}

h1 {
    font-size: calc(1.5rem + 2.5vw);
}

h2 {
    font-size: calc(1.25rem + 2vw);
}

h3 {
    font-size: calc(1rem + 1.3vw);
}

h4 {
    font-size: calc(1rem + 1vw);
}

h5 {
    font-size: calc(0.875rem + 1vw);
}

.site-footer h3 {
    font-size: calc(0.875rem + 1.2vw);
}

ul, ol {
    padding-left: 15px;
    font-family: inherit;
}

.site-footer ul {
    list-style: none;
    padding-left: 0;
}

.site-footer img {
    max-width: 250px;
}

a {
    color: var(--main-colour);
    font-family: inherit;
}
a:hover {
    color: var(--light-colour);
}

a, a:hover {
    text-decoration: none;
}

.btn-primary {
    position: relative;
    z-index: 1;
    overflow: hidden;
    color: var(--colour, #fff);
    background-color: var(--bg, var(--main-colour));
    border: none;
    padding: 10px 20px;
    transition: color 0.4s ease-in-out;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hover-bg, var(--light-colour));
    transition: transform 0.4s ease-in-out;
    transform: scaleX(0);
    transform-origin: right;
    z-index: -1;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    color: var(--hover-colour, #fff);
    background-color:  var(--bg, var(--main-colour));
}

.container {
    max-width: 1240px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.navbar {
    position: relative;
    width: 100%;
    z-index: 999;
    box-shadow: 0 4px 6px -4px rgba(0,0,0,0.2);
    background-color: #fff;
    padding: 0;
}

.navbar ul li a {
    color: var(--main-colour);
    transition: var(--transition);
    position: relative;
    font-weight: 500;
    text-decoration: none;
}

.navbar ul li a::before {
    position: absolute;
    content: "";
    top: 100%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--light-colour);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s;
}

.navbar-nav {
    gap: 30px;
}

.navbar-collapse {
    flex-grow: 0;
}

.navbar-brand {
    max-width: 250px;
}

.menu-item {
    position: relative;
}

.menu-item-has-children > a:after {
    content: '';
    display: inline-block;
    border: solid transparent;
    border-width: 5px 5px 0 5px;
    border-top-color: var(--main-colour);
    margin-left: 5px;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
    margin-bottom: 2px;
}

.menu-item-has-children:hover > a::after,
.menu-item-has-children:hover .sub-menu:hover > a::after,
.menu-item-has-children.show > a::after {
    transform: rotate(0deg);
}

.menu-item-has-children .sub-menu {
    visibility: hidden;
    position: absolute;
    background-color: #fff;
    padding: 15px 20px;
    border: 1px solid #ccc;
    list-style: none;
    min-width: max-content;
    top: 40px;
    line-height: 30px;
    opacity: 0;
    transition: opacity 0.3s ease-in, visibility 0.3s ease-in;
    border-radius: var(--button-radius);
}

.menu-item-has-children:hover .sub-menu {
    visibility: visible;
    opacity: 1;
}

.flex-end {
    display: flex;
    justify-content: flex-end;
}

.display-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.site-footer h3 {
    font-size: calc(0.875rem + 1.2vw);
}

.terms-menu {
    display: flex;
    gap: 20px;
    justify-content: end;
}

.top-footer {
    padding-bottom: 20px;
}

.bottom-footer {
    border-top: 1px solid #f9f9f9;
    padding-top: 20px;
}

footer {
    background-color: var(--footer-background-colour, #ffffff);
    color: var(--footer-text-colour, #000000);
}

footer a {
    color: var(--footer-link-colour, #0000FF);
}

ul.contact {
    padding-left: 0;
}

.contact li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 5px;
}

.card {
    padding: 30px;
}

.card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.card .image-wrapper {
    height: 150px;
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
}

.card .image-wrapper img {
    object-fit: contain;
    object-position: center;
    height: 100%;
    width: 100%;
}

.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-section .overlay {
    position: relative;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar-toggler-icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
}

.navbar-toggler-icon::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0c9";
    color: var(--main-colour);
    font-size: 30px;
    padding-bottom: 5px;
}

.navbar-toggler {
    padding: 0;
}

@media (max-width: 991px) {
    #navbarNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 50%;
        height: 100vh;
        background-color: #f8f9fa;
        transition: right 0.3s ease-in-out;
        padding: 20px;
        z-index: 1050;
    }

    #navbarNav.show {
        right: 0;
    }

    .close-menu {
        position: absolute;
        top: 15px;
        right: 25px;
        background: none;
        color: var(--main-colour);
        font-size: 50px;
    }

    .menu-item-has-children .sub-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        display: none;
        background-color: transparent;
        padding-left: 15px;
        border: none;
        box-shadow: none;
        transition: none;
    }

    .menu-item-has-children.show .sub-menu {
        display: block;
    }

    .navbar {
        padding: 15px 0 5px 0;
    }
}

@media (max-width: 575px) {
    .terms-menu {
        justify-content: start;
    }
    #navbarNav {
        width: 100%;
    }
}
