:root{
    --HF-color:#cfd2d3ad;
    --gradient-bg: linear-gradient(90deg, white, white);
    --text-color:#575656;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body{
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
}
    

/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--gradient-bg);
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.sticky {
    padding: 8px 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.logo {
    width: 100px;
    height: auto;
}

.header-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: right;
    align-items:flex-end;
    position: relative;
}

.icons{
    display: flex;
    gap: 20px;
    padding: 5px;
    
}

.cart-icon{
    position: relative;
}

#cart-count{
    display: flex;
    position: absolute;
    top: 50%;
    right: -10px;
    background-color: #AD0000;
    color: white;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;

}

.emergency-call {
    font-size: 20px;
    position: sticky;
    color: #02747b;
}

.emergency-call a {
    position: sticky;
    color: #ff0000;
    text-decoration: none;
    font-weight: bold;
}

.navigation {
    display: flex;
    gap: 20px;
}

.navigation a {
    color: #02747b;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    padding: 5px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navigation a {
    color: #02747b;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    padding: 5px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navigation a:hover {
    color: #5c575d;
    transform: translateY(-3px);
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #5c575d;
    opacity: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navigation a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
        align-items: center;
        position: static;
        box-shadow: none; 
    }

    .header.sticky {
        padding: 8px 10px;
        box-shadow: none;/
    }

    .logo {
        width: 80px;
        margin-top: 10px;
    }

    .header-content {
        width: 100%;
        align-items: center;
        justify-content: center;
        margin-top: 10px;
    }

    .icons {
        gap: 10px;
    }

    .navigation {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }

    .navigation a {
        font-size: 16px;
    }

    .emergency-call {
        font-size: 18px;
    }

    .cart-icon {
        margin-right: 10px;
    }
}



/* common */
video{
    display: flex;
    justify-content: center;
    margin: 0 auto; /* Center the video horizontally */
}

.intro {
    text-align: center;
    color:var(--text-color);
    font-size:larger;
    bottom:auto;
    margin-bottom: 3%;
}

h1{
    color: #007C85;
}

h2{
    text-indent: 5%;
    color: var(--text-color);
}

p{
    margin: 20px;
    line-height: 1.6;
}

.btn_top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2e838b;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    display: none;
}

.btn_top:hover {
    background-color: #3f3f3f;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  


@media only screen and (max-width: 768px) {

    h1 {
        color: #2e838b;
        font-size: 1.5rem; /* Adjusted for smaller screens */
        margin-top: 50px;
    }

    h2 {
        text-indent: 2%;
        font-size: 1.2rem; 
        margin: 50px;
        text-align: center;
    }

    p{
        font-size: 1rem;
        text-align: justify;
        line-height: 1.6;
        margin: 10px;
    }

    .btn{
        padding: 10px;
        margin: 10px;
        margin-left: 80%;
        margin-right: 20%;
        margin-bottom: 10px;
    }
}

/* Media query for tablet devices */
@media (min-width: 768px) and (max-width: 1024px){
    h1 {
        font-size: 2rem; /* Adjusted for tablet screens */
    }

    h2 {
        font-size: 1.5rem; 
    }

    p {
        font-size: 1.1rem;
        text-align: justify;
        line-height: 1.6;
        padding: 10px;
    }
}

/* Home page */
.hero{
    background-image: url("Images/hero1.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 75vh;
}

.hero:hover{
    background-image: url("Images/Home4.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 75vh;
}

#overlayer{
    text-align: center;
    justify-items: center;
    align-items: center;
    display: flex;
    height: 75vh;
    text-indent:2cm;
    font-size: 4rem;
    color:#1d575c;
    background-color: #e1e5e638 ;
    text-decoration:solid;
    margin-top: 2%;
}

#welcome-msg{
    margin-top: 50px;
    box-shadow: var(--box-shadow);
    padding: 2%;
}

.video-container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    max-width: 100%;
    max-height: 100vh;
}

.home{
    display: flex;
    margin: 5px;
    align-items: center;
    justify-content: space-evenly;
    
}

.home img{
    width: 400px;
    height: auto;
    border-radius: 5px;
}

#home_pic2{
    width: 600px;
    height: auto;
}

#home-about{
    box-shadow:var(--box-shadow);
    margin-top: 50px;
    padding: 25px;
}

#home-about a, .box a{
    text-decoration: none;
    color: #0054AD;
    font-weight: bold;
    font-size: large;
}

#home-about a:hover, .box a:hover{
    color: #3f3f3f;
}

.box{
    flex-direction: column;
    background-color: #e1e5e6b1;
    border-width: 5px;
    height: fit-content;
    line-height: 2;
    color: var(--text-color);
    box-shadow: var(--box-shadow);
    padding: 25px;
    margin: 30px;
}

.home img:hover{
    transform: scale(1.05);
    transition: transform 0.5s;
    
}

/* Media query for screens smaller than 768px */
@media only screen and (max-width: 768px) {

    .hero {
        height: 50vh; /* Reduced height for smaller screens */
        background-size: contain;
        background-image: url("Images/hero1\(mobile\).webp");
    }

    video{
        justify-content: center;
        height: 25vh;
        width: 100%;

    }

    .intro {
        text-align: center;
        color: var(--text-color);
        font-size: medium;
        margin-bottom: 5%;
        bottom: auto;
    }

    .hero {
        height: 50vh; /* Reduced height for smaller screens */
        background-size: contain;
    }

    #overlayer {
        font-size: 2rem; /* Reduced font size */
        text-indent: 1cm;
        height: 50vh;
        margin-top: 5%;
    }

    #welcome-msg {
        margin-top: 20px;
        padding: 5%;
        font-size: 1rem;
    }

    .video-container {
        height: 25vh; /* Reduced height for smaller screens */
        max-height: 50vh;  /* Restricting video container height */
    }

    .home {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 10px;
    }

    #home-about {
        margin-top: 30px;
        padding: 15px;
    }

    .box {
        margin: 15px;
        padding: 15px;
        text-align: justify;
    }

    .home img:hover {
        transform: none;
        transition: none; /* Removing hover transform on smaller screens */
    }
}

/* Media query for tablet devices */
@media (min-width: 768px) and (max-width: 1024px) {
    .video-container{
       height: 50vh;
       margin: 10%;
       padding: 10%;
    }
}



/* About Us */
.brunch{
    display: flex;
    flex-direction: row;
    justify-content:space-around;
    align-items: center;
    column-gap: 5%;
    margin: 5%;
    padding-right: 25px; 
    color: var(--text-color);
    background-color:rgb(247, 246, 245);
    box-shadow: var(--box-shadow);
}

.brunch:hover{
    transform: scale(1.05);
}

.brunch img{
    width:600px; 
    height:350px;
}


.table-content{
    border-collapse: collapse; /* Collapse table borders */
    margin: 25px;
    margin-right: auto;
    margin-left: auto;
    font-size: 1rem;
    box-shadow:var(--box-shadow);
}

.table-content thead th{
    background-color: #3f3f3f;
    color: white;
    font-weight: bold;
}

.table-content tbody tr{
    border-bottom: #3f3f3f solid 1px;
}

.table-content th, .table-content td{
    padding: 25px 25px;
    text-align: left;
}

table tbody td a{
    text-decoration: none;
}

.table-content tbody tr:nth-child(even){
    background-color: #ccc;
}

.table-content tbody tr:last-of-type{
    border-bottom: #3f3f3f 2px solid;
}

.table-content tfoot{
    background-color: #4C4D4D;
    color: white;
    font-weight: bold;
}

.table-content tfoot td{
    text-align: center;
}

.table-content caption {
    visibility: hidden;
}

/* Media query for screens smaller than 768px */
@media only screen and (max-width: 768px) {

    .brunch {
        flex-direction: column; /* Stack items vertically on small screens */
        justify-content: center;
        align-items: center;
        column-gap: 0; /* Remove unnecessary gaps */
        margin: 10px;
        padding: 10px;
    }

    .brunch:hover {
        transform: none; /* Disable hover scaling on smaller screens */
    }
    .brunch img{
        width: 100%;
        height: auto;
        border-radius: 5px;
    }
    
    .brunch p{
        text-align: justify;
        padding: 25px;
        line-height: 1.6;
    }
    
    .brunch iframe{
        width: 100%;
        height: auto;
        border-radius: 5px;
    }
    .table-content{
        margin: 10px;
        justify-content: center;
    }

    table thead,tbody,tfoot,th,td,tr{
        display: block;
    }
    table th{
        display: none; /* we are using this when it's in the mobile the headlnes won't display */
    }

    table td{
        border-bottom: 1px solid black;
    }

    .table-content tbody tr:last-of-type {
        border-bottom: #3f3f3f 1px solid;
    }

    table td::before{
        content: attr(data-label);
        font-weight: bold;
        text-align: left;
        
    }
}

/* Media query for tablet devices */
@media (min-width: 768px) and (max-width: 1024px){
    .brunch{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        column-gap: 0;
        margin: 10px;
        padding: 10px;
    }
}


/* Doctors */

.smaller-heading {
    font-size: 1.2em;
    text-indent: 5%;
    color: var(--text-color);
}

.container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid with flexible columns */
    gap: 30px;
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 0 5%;
    background-color: var(--HF-color);
    justify-content: center;
}

.container-box {
    background-color: lightblue;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out; /* Smooth hover animation */
}

.container-box img {
    max-width: 100%; /* Make the image responsive */
    margin-bottom: 15px; 
    width: 300px;
    height: 300px;
}

.container-box h3 {
    margin: 10px 0; /* Space around the heading */
    color: #333;
}

.container-box p {
    font-size: 16px;
    line-height: 2;
    color:var(--text-color);
}

.container-box:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Media query for screens smaller than 768px */
@media only screen and (max-width: 768px) {

    .smaller-heading{
        font-size: 1.5rem; 
    }
    .container-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Reduce min column width for small screens */
        gap: 15px;
        padding: 0 2%; 
        margin-bottom: 10px;
    }

    .container-box {
        padding: 15px;
        box-shadow: none; /* Optional: remove shadow for a cleaner mobile look */
        border-radius: 5px; 
    }

    .container-box h3 {
        font-size: 1rem; 
        margin: 5px 0; 
    }

    .container-box p {
        font-size: 14px; 
        line-height: 1.7;
    }

    .container-box:hover {
        transform: none; /* Disable hover zoom effect on smaller screens */
    }
}



/* Service */
.container-flex{
    display: flex;
    flex-direction: row;
    column-gap: 35px;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 10px;
    
}

.box-flex{
    box-shadow: var(--box-shadow);
    margin: 30px;
    border-radius: 5px;
   
}

.box-flex:hover{
    transform: scale(1.05);
}

.box-flex img{
    width: 400px;
    height: 250px;
    border-radius: 5px;
}

.service-name{
    text-align: center;
    color: var(--text-color);
    font-weight: bold;
    font-size: large;
}

#patient-reg{
    margin: 35px;
    text-align: center;
}

#patient-reg button{
    background-color: #2F4D6A;
    padding: 15px;
    border: none;

}

#patient-reg a{
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: large;
}

#patient-reg button:hover{
    background-color: #3f3f3f;
    color: white;
}

/* Media query for screens smaller than 768px */
@media only screen and (max-width: 768px) {

    .container-flex {
        flex-direction: column; /* Stack flex items vertically on smaller screens */
        justify-content: center;
        align-items: center;
        column-gap: 0;
        margin: 10px 0;
    }

    .box-flex {
        margin: 15px; 
        width: 90%; /* Make box take most of the screen width */
    }

    .box-flex:hover {
        transform: none; 
    }

    .box-flex img {
        width: 100%; /* Make image responsive */
        height: auto;
    }

    .service-name {
        font-size: medium; 
        margin-bottom: 5px;
    }

    #patient-reg {
        margin: 20px;
    }

    #patient-reg button {
        padding: 10px;
        font-size: medium;
    }

    #patient-reg a {
        font-size: medium;
    }

    #patient-reg button:hover {
        background-color: #333;
        color: white;
    }
}


/* Forms*/
.registration-form{
    background:url("./Images/form-transformed.webp") no-repeat center;
    background-size: cover;
    background-attachment: fixed;
    margin: 5%;
}

.form-box{
    background-color: white;
    position:relative;
    margin: 10%;
    padding: 25px;
    opacity: 90%;
}

.form-box h1{
    text-align: center; 
    text-transform: uppercase;
    font-size: 30px;}
fieldset{
    border: 2px solid #333;
    padding: 3%;
    margin: 10px;
}

legend{
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    text-align: left;
}

.form-box label{
    font-size: 20px;
    font-weight: bold;
    color: #333;
    display: block;
 
   
}

.form-box input{
    width: 100%;
    padding: 10px 2px;
    margin: 10px 0;
}

.form-box select{
    width: 100%;
    padding: 10px 2px;
    margin: 10px 0;
}

.radio{
    flex: 2;
    display: flex;
    flex-direction: row;
    margin: 10px 0;
    gap: 10px;
    width: 20px;
    margin-left: 10px;
    align-items: center;

}

.radio-main{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 10px 0;
    gap: 100px;
    width: 20px;
    margin-left: 10px;
    
}

#submit1{
    background-color: #0F3333;
    padding: 15px;
    border: none;
    width: 100%;
    font-weight: bold;
    color: white;
}

#submit1:hover{
    background-color: #3f3f3f;
    color: white;
}

#reset1{
    background-color: #f3eceb;
    padding: 15px;
    border: solid 0.1mm #3f3f3f;
    width: 100%;
    font-weight: bold;
}

#reset1:hover{
    background-color: #3f3f3f;
    color: white;
}

/* Media query for screens smaller than 768px */
@media only screen and (max-width: 768px) {

    .registration-form {
        margin: 2%; 
        background-size:cover; /* Adjust background image size */
        background-attachment: scroll; /* Fix background for mobile scrolling */
    }

    .form-box {
        margin: 5%; 
        padding: 15px; 
        opacity: 95%; /*for readability */
    }

    .form-box h1 {
        font-size: 24px; /* Reduce font size for smaller screens */
    }

    fieldset {
        padding: 2%; 
        margin: 5px;
    }

    legend {
        font-size: 18px;
    }

    .form-box label {
        font-size: 16px;
    }

    .form-box input,
    .form-box select {
        padding: 8px 0px; 
        margin: 8px 0px;
    }

    .radio-main {
        flex-direction: column; /*Align radio buttons vertically */
        gap: 10px; 
        margin-left: 0;
    }

    .radio {
        flex-direction: row; /* Align radio buttons horizontally */
        gap: 5px; 
        width: 100%; /* Make radio buttons responsive */
        margin: 0;
    }

    #submit1, #reset1 {
        padding: 10px;
        font-size: medium; /* Adjust button font size */
    }
}


/* Pharmacy */

#ph-main {
    padding: 30px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 5px;
}

#ph-h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #016365;
}

.ph-h2 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.5rem;
    border-bottom: 2px solid #016365;
    display: inline-block;
    padding-bottom: 5px;
    /* line-height: 1.2; */
}

.medicine-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}
.category-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
}

.medicine-card {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    width: 300px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}
.medicine-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.medicine-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 10px;
}

label {
    display: block;
    margin: 5px 0;
    font-size: 0.9em;
}

input[type="number"] {
    width: 60px;
    padding: 5px;
    margin: 5px 0;
}
button {
    margin: 5px;
    padding: 10px 15px;
    background-color: #016365;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
}

button a {
    color: #fff;
    text-decoration: none;
}

button:hover {
    background-color: #0056b3;
}

button:hover a {
    color: #ffffff;
}

#reset2{
    width: 100px;
    margin: 5px;
    padding: 10px 15px;
    background-color: #f3eceb;
    color:#575656;
    font-weight: bold;
    border: solid 0.1mm #3f3f3f;
    border-radius: 3px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
}

#reset2:hover {
    background-color: #85909b;
    color: #ffffff;
}

@media (max-width: 768px) {
    #ph-main {
        padding: 20px;
        margin: 10px;
        max-width: 100%;
    }

    #ph-h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .ph-h2 {
        font-size: 1.2rem;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .medicine-container,
    .category-container {
        flex-direction: column;
        gap: 15px;
    }

    .medicine-card {
        width: 100%;
        padding: 10px;
    }

    .medicine-card img {
        height: 200px;
    }

    button {
        width: 100%;
        padding: 10px;
    }

    input[type="number"] {
        width: 50px;
    }

    #reset2 {
        width: 100%;
    }
}




/* Footer Styling */
footer {
    background-color: var(--HF-color);
    padding: 20px 0;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #333;
}

.footer {
    display: flex;
    flex-direction: row; /* Horizontal layout */
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f8f8;
    opacity: 80%;

    
}

.footer img.f_logo {
    width: 150px;
    height: auto;
}

.contact-section, .branches-section {
    text-align: left;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.contact-section span, .branches-section span {
    font-weight: bold;
    font-size: 18px;
    color: #0054AD;
    display: block;
    margin-bottom: 10px;
}

.footer a {
    color: #0054AD;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

footer p {
    margin-top: 20px;
    font-size: 14px;
    color: #333;
    /* #5d5d5d */
    text-align: center;
    width: 100%;
}



/* Media query for screens smaller than 768px */
@media only screen and (max-width: 768px) {

    .footer {
        flex-direction: column; /* Align items vertically on smaller screens */
    }

    .footer img.f_logo {
        width: 120px; /* Reduce logo size for smaller screens */
        margin-bottom: 10px;
    }

    .contact-section, .branches-section {
        text-align: center; /* Center text for smaller screens */
        font-size: 14px;
        line-height: 1.4;
    }

    .contact-section span, .branches-section span {
        font-size: 16px;
    }

    footer p {
        font-size: 12px;
        margin-top: 15px;
    }
}
