/* Start Variables  */
:root {
  --secondary-color: #19283f;
  --section-padding: 60px;
  --section-background: #f6f6f6;
  --dark-blue: #3899ff;
  --light-blue: #29b6f6;
  --main-transition: 0.3s;
}
/* End Variables  */

/* Start Global Rules  */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Roboto", serif;
}
ul,
li {
  list-style: none;
}
a {
  text-decoration: none;
}
.container {
  padding-left: 15px;
  padding-right: 15px;
  margin-left: auto;
  margin-right: auto;
}
/* X-Small */
@media (min-width: 576px) {
  .container {
    width: 570px;
  }
}
/* Small */
@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}
/* Medium */
@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}
/* Large */
@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}
/* X-Large */
@media (min-width: 1400px) {
  .container {
    width: 1370px;
  }
}
/* XX-Large */
@media (min-width: 2000px) {
  .container {
    width: 1990px;
  }
}
/* End Globlal Rules */

/* Start Upper Section  */
.upper-section {
  height: 40px;
  background-color: var(--secondary-color);
}

.upper-section .container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}

.upper-section .container .phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.upper-section .container .phone p {
  color: #fff;
  margin-bottom: 0;
}

.upper-section .container .phone i,
.upper-section .container .mail i {
  font-size: 18px;
  margin-right: 8px;
  color: #fff;
}

.upper-section .container .mail a {
  text-decoration: none;
  color: #fff;
}

.upper-section .container .mail span {
  font-weight: bold;
  color: var(--light-blue);
}

.upper-section .container .mail a span:hover {
  color: var(--dark-blue);
}

.upper-section .container .socail a {
  display: inline-block;
  margin-left: 5px;
}

.upper-section .container .socail a:nth-child(1) img {
  width: 28px;
  height: 28px;
}

.upper-section .container .socail a:nth-child(2) img,
.upper-section .container .socail a:nth-child(3) img,
.upper-section .container .socail a:nth-child(4) img {
  width: 25px;
  height: 25px;
}

@media (max-width: 767px) {
  .upper-section .container {
    height: 120px;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
  }
  .upper-section {
    height: 120px;
  }
}

/* End Upper Section  */

/* Start Header  */
.header {
  padding: 10px;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 678px) {
  .header .container {
    flex-direction: column;
    justify-content: center;
  }
}
.header .logo {
  width: 80px;
}

@media (max-width: 676px) {
  .header .logo {
    width: 60px;
    margin-bottom: 15px;
  }
}

.header .container .links ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 676px) {
  .header .container .links ul {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
  }
}
.header .container .links ul li {
  padding: 10px;
}
.header .container .links ul li a {
  font-weight: 500;
  color: var(--dark-blue);
  transition: all 0.3s ease;
}

.header .container .links ul li a:hover {
  color: #0d47a1;
}

.header .container .links ul li a.active {
  background-color: var(--secondary-color);
  padding: 8px 12px;
  border-radius: 6px;
  color: white;
}

.header .container .links ul li a.active:hover {
  color: var(--light-blue);
}
/* End Header  */

/* Start Up-Text Section  */
.up-text {
  background-color: #fff;
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  height: 250px;
  display: flex;
  align-items: center;
  text-align: center;
}

.up-text .container i {
  color: var(--dark-blue);
}

.up-text .container h2 {
  font-size: 26px;
  color: var(--secondary-color);
  margin-top: 30px;
}
/* End Up-Text Section  */

/* Start Meicines Section  */
.medicines {
  background-color: var(--section-background);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.medicines .container div.iconn {
  display: flex;
  justify-content: center;
}

.medicines .container .iconn i {
  color: var(--dark-blue);
}

.medicines .container .head-text {
  font-size: 45px;
  color: var(--secondary-color);
  text-align: center;
  position: relative;
  margin-bottom: 50px;
}
.medicines .container .head-text::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 180px;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--dark-blue);
}

.medicines .container .nd-medicines {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.medicines .container .nd-medicines .card {
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0px 12px 20px 0 rgb(0 0 0 / 13%), 0px 2px 4px 0px rgb(0 0 0 / 12%);
}

.medicines .container .nd-medicines .images {
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.medicines .container .nd-medicines img {
  width: 100%;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.medicines .container .nd-medicines img:hover {
  transform: rotate(3deg) scale(1.1);
}

.medicines .container .nd-medicines .card .info {
  padding: 20px;
  border-top: 2px solid var(--light-blue);
}

.medicines .container .nd-medicines .card .info h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.medicines .container .nd-medicines .card .info p {
  line-height: 1.6;
  color: var(--secondary-color);
  font-weight: 300;
  margin-bottom: 0;
}

.medicines .container .nd-medicines .card .info p.dots {
  line-height: 1.6;
  color: var(--secondary-color);
  font-weight: 300;
  margin-bottom: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.medicines .container .more {
  text-decoration: none;
  display: block;
  margin: 40px auto 100px;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 6px;
  background-color: var(--light-blue);
  color: #fff;
  width: fit-content;
}

.medicines .container .more:hover {
  background-color: var(--dark-blue);
}
/* End Meicines Section  */

/* Start About Section  */
.about .container {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  text-align: center;
  max-width: 1000px;
}

.about .container h3 {
  font-size: 36px;
  color: var(--dark-blue);
}

.about .container p {
  line-height: 1.6;
  color: var(--secondary-color);
  margin: 20px 0;
}
@media (max-width: 766px) {
  .about .container p {
    padding: 0 20px;
  }
}
/* End About Section  */

/* Start Footer  */

.footer {
  background-color: var(--secondary-color);
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

.footer .container {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

@media (max-width: 1200px) {
  .footer .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.footer .box h3 {
  font-size: 25px;
  color: white;
  margin: 0 0 20px;
}

@media (max-width: 676px) {
  .footer .box h3 {
    text-align: center;
  }
}

.footer .box .social {
  display: flex;
  align-items: center;
  padding-left: 0;
}

@media (max-width: 676px) {
  .footer .box .social {
    justify-content: center;
  }
}

.footer .box .social li {
  margin-right: 15px;
}

.footer .box .social li a {
  display: block;
}

.footer .container .box .social li:nth-child(1) a img {
  width: 38px;
  height: 38px;
}

.footer .container .social li:nth-child(2) a img,
.footer .container .social li:nth-child(3) a img,
.footer .container .social li:nth-child(4) a img {
  width: 35px;
  height: 35px;
}

.footer .box .links {
  padding-left: 0;
}

.footer .box .links li {
  padding: 15px 0;
  transition: var(--main-transition);
}

.footer .box .links li:first-child {
  padding-top: 0;
}

.footer .box .links li:not(:last-child) {
  border-bottom: 1px solid #444;
}
.footer .box .links li:hover {
  padding-left: 10px;
}
.footer .box .links li:hover a {
  color: white;
}
.footer .box .links li a {
  color: #b9b9b9;
  transition: var(--main-transition);
}
.footer .box .links li a::before {
  font-family: "Font Awesome 5 Free";
  content: "\F101";
  font-weight: 900;
  margin-right: 10px;
  color: var(--light-blue);
}

.footer .box .line {
  display: flex;
  align-items: center;
  color: #b9b9b9;
  margin-bottom: 30px;
  line-height: 1.6;
}
@media (max-width: 676px) {
  .footer .box .line {
    flex-direction: column;
    text-align: center;
  }
}

.footer .box .line i {
  font-size: 25px;
  color: var(--main-color);
  margin-right: 10px;
}
@media (max-width: 676px) {
  .footer .box .line i {
    margin-bottom: 10px;
    margin-right: 0;
  }
}

/* End Footer  */
