/* Custom Properties */

:root {
    --fw-reg: 300;
    --fw-bold: 900;
    --clr-light: #FFFFFF;
    --clr-body-light: #e8f0f7;
    --clr-dark: black;
    --clr-dark-light: rgb(60, 58, 58); 
    --clr-accent: #00BF63; 
    --clr-accent-blue: #4686DB;
    --clr-accent-yellow: #fcd423; 
    --clr-accent-red: #EE6464;
    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.25rem;
    --fs-body: 1rem;
    --progress: 0;
    }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 0.7em;
    height: 0.7em;    
}

::-webkit-scrollbar-track {
    background: var(--clr-accent-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--clr-dark-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--clr-accent);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Base Styles */

body {
    background-color: var(--clr-body-light) !important;
    padding-top: 90px;
}

/* Header Styles */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.top-bar {
    background-color: var(--clr-accent);
}

.top-bar_content {
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: end;
    column-gap: 20px;
    height: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.icon {
    margin-right: 3px;
    color: rgba(255, 255, 255, 0.75);
}

.bottom-bar {
    background-color: var(--clr-light);
    height: 60px;
}

.bottom-bar_content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 30px;
}

.top-bar, .bottom-bar {
    transition: transform 0.3s ease; /* Adjust the duration and easing as needed */
}

.logo {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.logo_img {
    height: 50px;
}

.nav {
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.nav_list {
    display: flex;
    column-gap: 40px;
    align-items: center; /* Align items vertically */
    margin: 0;
}

.nav_link {
    color: var(--clr-dark);
    transition: all 0.2s;
}

.nav_link:hover, 
.nav_link:focus {
    color: var(--clr-accent);
    font-weight: var(--fw-bold);
}

.btn {
color: #fff;
background-color: var(--clr-accent);
padding: 8px 20px;
border-radius: 1000px;
font-size: 12px;
text-transform: uppercase;
font-weight: 500;
transition: all 0.2s;
}

.btn:hover {
    background-color: var(--clr-accent-yellow);
    color: var(--clr-light);
}

.hamburger {
    display: none;
}

.bar {
    height: 2px;
    width: 27px;
    background-color: var(--clr-dark);
    margin: 5px 0;
    opacity: 0.8;
    transition: all 0.3s ease-in-out;
}

/* For JS Animation */

.nav-open {
    transform: translateX(0%) !important;
}

.hamburger-open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/*Drop-down Bootstrap Override*/
.dropdown-menu {
    border: none;
    position: absolute; /* Ensure it is positioned absolutely */
    top: 100%; /* Aligns the top of the dropdown with the bottom of the navbar */
    left: 0; /* Adjust if needed */
    margin-top: 1em; /* Fine-tune spacing if needed */
}

.dropdown-menu > .dropdown-item {
    color: var(--clr-dark);
}

.dropdown-menu > .dropdown-item:hover, 
.dropdown-menu > .dropdown-item:focus, 
.dropdown-menu > .active > .dropdown-item:hover {
    background-color: var(--clr-accent);
}

.dropdown-menu > .dropdown-item:hover, 
.dropdown-menu > .dropdown-item:focus {
    color: var(--clr-light);
}

/* Modal Styling */
.modal-title {
    font-weight: var(--fw-bold);
}

.modal-body span {
    font-weight: var(--fw-bold);
}

.physician-form {
    background: var(--clr-accent);
    font-weight: var(--fw-bold);
    transition: all 0.3s ease;
}

.physician-form:hover {
    background: var(--clr-accent-yellow);
    font-weight: var(--fw-bold);
}

.ah-form {
    background: var(--clr-accent-yellow);
    font-weight: var(--fw-bold);
    transition: all 0.3s ease;
}

.ah-form:hover {
    background: #d9b618;
    font-weight: var(--fw-bold);
}

.patient-form {
    background: var(--clr-accent-red);
    font-weight: var(--fw-bold);
}

.patient-form:hover {
    background: #af0f0f;
    font-weight: var(--fw-bold);
}

/* Media Queries */
@media (max-width: 992px) {

    .nav_list {
        padding-top: 30px; /* Add some space below the top bar */
      }
    
      .dropdown-menu {
        display: none;
      }
    
      .dropdown.show .dropdown-menu {
        display: block;
        position: static;
        transform: none;
        box-shadow: none;
        background-color: var(--clr-light);
        margin-top: 0.5em;
      }

    .nav {
        position: fixed;
        top: 50px;
        left: 0;
        background-color: var(--clr-light);
        width: 100%;
        padding: 10px 0 25px;
        transform: translateX(-100%);
        justify-content: center;
        z-index: -99;
    }

    .nav_list {
        flex-direction: column;
        align-items: center;
        row-gap: 20px;
    }

    .nav_link,
    .dropdown-item {
        font-size: 14px;
        color: var(--clr-dark);
    }

    .btn {
        font-size: 11px;
        padding: 7px 17px;
    }

    .hamburger {
        display: block;
    }
}

@media (max-width: 360px) {
    .top-bar_content {
        font-size: 10px;
        justify-content: center;
    }

    .bottom-bar_content {
        padding: 5px 20px;
    }

    .modal-body p {
        font-size: calc(var(--fs-body) * 0.8);
    }
}

/* Block1 */
.block1-container {
    background: linear-gradient(rgba(81, 81, 81, 0.7), rgb(255, 255, 255)), 
                url('../Images/about/about-bg.png') no-repeat center;
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: multiply;
    width: 100%;
    min-height: 50vh;
    margin-bottom: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.block1-heading {
    font-size: 3.2rem;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    line-height: 1em;
    color: var(--clr-light);
}

@media screen and (max-width: 800px) {
    .block1-heading {
        font-size: 2.5rem;
        padding: 0.5em 1em;
        margin-bottom: 1em;
    }
}

/* Block2 - About */
.block2-container {
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 1em; /* Padding for smaller screens */
}

.block2-content h1 {
    font-size: 2.5rem; /* For large screens */
    font-weight: var(--fw-bold);
    color: var(--clr-accent);
    margin-bottom: 20px;
    line-height: 1.2;
}

.block2-body {
    margin: 0 auto;
    text-align: center;
    margin-bottom: 20px;
    color: var(--clr-dark);
    font-size: var(--fs-body);
    max-width: 75ch;
    line-height: 1.5; /* Add line height for better readability */
}

.block2-body span {
    margin-bottom: 20px;
    color: var(--clr-accent);
    font-size: var(--fs-body);
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 1200px) {
    .block2-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1em;
    }
}

@media screen and (max-width: 992px) {
    .block2-content h1 {
        font-size: 2rem;
        margin-bottom: 1em;
    }

    .block2-body {
        font-size: calc(var(--fs-body) * 0.95); /* Slightly reduce font size */
        line-height: 1.4; /* Adjust line height for better spacing */
    }
}

@media screen and (max-width: 768px) {
    .block2-container {
        padding: 0 1.5em;
    }

    .block2-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8em;
        line-height: 1.3;
    }

    .block2-body {
        font-size: calc(var(--fs-body) * 0.9); /* Adjust font size for smaller screens */
        max-width: 60ch; /* Reduce max width for smaller screens */
    }
}

@media screen and (max-width: 576px) {
    .block2-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5em;
    }

    .block2-body {
        font-size: calc(var(--fs-body) * 0.85); /* Further reduce font size */
        max-width: 50ch; /* Reduce max width for very small screens */
        line-height: 1.3;
    }
}

/* Mission Vision */
.block3-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 1em; /* Space between items */
    padding: 2em;
}

.grid-item {
    aspect-ratio: 1; /* Makes items square */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mission {
    background-color: var(--clr-accent-blue);
}

.mission .grid-title,
.mission .grid-description {
    color: var(--clr-light);
}

.vision {
    background-color: var(--clr-accent-yellow);
}

.vision .grid-title,
.vision .grid-description {
    color: var(--clr-light);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    
}

.offer {
    background-color: var(--clr-accent-red);
}

.offer .grid-title,
.offer .grid-description {
    color: var(--clr-light);
}

.grid-image {
    width: 100%;
    height: 100%; /* Ensures image fills the grid item */
    object-fit: cover; /* Ensures the image covers the area */
}

.grid-title {
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    font-size: var(--fs-h4); /* Use your heading font size */
    margin: 0; /* Remove default margins */
    word-wrap: break-word; /* Prevents text from overflowing */
    max-width: 100%; /* Ensure it doesn’t overflow its container */
    padding: 0.5em; /* Add padding around the title */
}

.grid-description {
    padding: 1em;
    font-size: var(--fs-body); /* Use your body font size */
    max-width: 100%; /* Ensure the description fits within the container */
    word-wrap: break-word;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .block3-container {
        grid-template-columns: repeat(2, 1fr); /* Two columns on smaller screens */
    }
}

@media (max-width: 576px) {
    .block3-container {
        grid-template-columns: 1fr; /* Stack items on very small screens */
    }
}

/* Footer */
footer {
    width: 100%;
    position: relative;
    color: var(--clr-light);
    padding-top: 3em;
    font-size: 1em;
    line-height: 1.25em;
    background-color: var(--clr-accent);
}

.footer-row {
    width: 85%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2em;
}

.footer-col1 {
    flex-basis: 40%;
    padding: 0.5em;
}

.footer-col {
    flex-basis: 15%;
    padding: 0.5em;
}

.footer-logo {
    width: 300px;
    height: auto;
    margin-bottom: 1.5em;
}

.footer-title {
    margin-bottom: 1em;
    font-size: var(--fs-body);
    font-weight: var(--fw-bold);
}

.footer-links {
    list-style: none;
    margin-bottom: 0.75em;
}

.footer-links-content {
    text-decoration: none;
    color: var(--clr-light);
}

.footer-links-content:hover {
    color: var(--clr-accent-light);
}

.footer-social-icons .fa-brands {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 2em;
    line-height: 1.7em;
    color: var(--clr-accent-light);
}

.copyright {
    text-align: center;
    padding: 0.5em 0;
    background-color: var(--clr-accent);
    position: relative;
}

@media (max-width: 768px) {
    .footer-col1 {
        flex-basis: 100%;
    }
    
    .footer-col {
        flex-basis: 100%;
    }

    .copyright {
        padding-bottom: 60px;
    }
}

@media (max-width: 360px) {
    .footer-col1 p,
    .footer-links {
        font-size: 14px;
    }

    .footer-logo {
        width: 250px;
        height: auto;
    }
}

