@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style-type: none;
  text-decoration: none;
}

:root {
  --main-color: #D80032;
  --ligh-main-color:#fff3f6;
  --bg-color: #ffffff;
  --heading: 2.8rem;
  --p-font: 1.1rem;
  --text-color:#140000;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: var(--p-font);
  background-color: var(--bg-color);
  color: var(--text-color);
}


/* navbar */

nav {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 131;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  padding: 23px 4%;
  border-bottom: 1px solid var(--text-color);
  transition: all .40s ease;
}


.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar a {
  margin: 0 12px;
  color: var(--text-color);
  font-weight: 400;
  font-size: var(--p-font);
  transition: all .40s ease;
}

.navbar a:hover {
  color: var(--main-color);
}

#menu-icon {
  display: none;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
}



/* Style The Dropdown Button */
.dropbtn a i::after,
.dropbtn a i::before,
#menu-icon {
  font-size: 26px;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  gap: 10px;
  color: var(--bg-color);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  right: 48px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ffcad7;

}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.sticky {
  background: var(--bg-color);
  padding: 12px 4%;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}



/* section  */
section {
  padding: 30px 4%;  
}

.home {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: center;
}

.home-img img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;

}

.home-text h1 {
  font-size: var(--heading);
  margin: 15px 0 15px;
  color: var(--main-color);
}


/* important links */
.heading {
  font-size: var(--heading);
  color: var(--main-color);
  text-align: center;
  padding: 4%;
}

.imp-bx {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  align-items: center;
}

/* Define the button style */
.my-button {
  background-color: var(--bg-color);
  color: var(--text-color);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  border: 2px solid var(--text-color);
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: var(--p-font);
  margin: 4px 2px;
  cursor: pointer;
}

/* about us  */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 4%;
}

.card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

/* Card image */
.card img {
  display: block;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  object-position: center;
}

/* Card content */
.card-content {
  padding: 20px;
}

/* Card title */
.card-title {
  font-size: var(--p-font);
  font-weight: bold;
  color: var(--main-color);
}

/* Card description */
.card-description {
  font-size: var(--p-font);
  margin-top: 10px;
}


/* news section  */
.news-section {
  background-color: #fff;
  /* max-width: 900px; */
  margin: 20px auto;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.news-article {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
}

.news-article h2 {
  font-size: 24px;
  margin: 0;
  color: #333;
}

.news-article p {
  font-size: var(--p-font);
}



/* footer  */
footer{
  padding: 30px 4%;
}
.upper-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.upper-footer h6 {
  font-size: var(--p-font);
  font-weight: 600;
}

.upper-footer a {
  color: var(--text-color);
}

.links{
  padding-top:2rem;
}

/* hr line  */
.custom-hr {
  width: 100%;
  height: 2px;
  background-color: var(--main-color);
  margin: 20px 0;
}

.map-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.map p{
  margin: 0 1rem; 
}

.contact-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
}

/* Input styles */
.form-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Submit button styles */
.submit-btn {
  background-color: var(--main-color);
  color: var(--bg-color);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

/* Social media icons */
.social-icons {
  margin: 20px 0;
}

.social-icons a {
  text-decoration: none;
}

.social-icons i {
  padding: 20px;
  color: var(--main-color);
  font-size: 30px;
  background-color: #f3f3f3;
  border-radius: 50px;
  margin: 10px;
}

.courses-h {
  text-align: left;
  font-size: var(--heading);
  color: var(--main-color);
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
  .news-section {
    padding: 10px;
  }

  .news-article {
    padding: 10px;
    margin-bottom: 10px;
  }

  .map-info{
    flex-direction: column;
  }
  
  .map iframe{
    padding: 1rem 1.1rem;
  }
}

@media (max-width:1025px) {
  #menu-icon {
    display: block;
    font-size: 32px;
    color: var(--text-color);
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 300px;
    height: 60vh;
    background: var(--bg-color);
    display: flex;
    font-weight: 500;
    flex-direction: column;
    /* align-items: center; */
    padding: 170px 30px;
    transition: all .40s ease;
    border-radius: 0 0 0 30px;
  }

  .navbar a {
    display: block;
    margin: 1.3rem 0;
    color: var(--main-color);
  }

  .navbar a:hover {
    color: var(--bg-color);
    transform: translatey(-5px);
  }

  .nav-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
  }

  .open {
    right: 4px;
  }

  .home{
    grid-template-columns: repeat(1,1fr);
  }
}


.bottom-txt{
  font-size: 12px;
  columns: rgb(47, 47, 47);
  margin-top: 2rem;
  text-align: center;
}