@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
header {
  position: sticky;
  top: 0;
  z-index: 8;
  background-color: rgb(125, 17, 28); /* Match section1 theme */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional: Add shadow for depth */
  transition: background-color 0.3s ease-in-out; /* Smooth transition effect */
  }
  
.navItems a {
  color: white; /* Ensure navbar links are readable */
  text-decoration: none;
}

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

/* Mobile Navbar */
.navbar-nav {
  display: flex;
  flex-direction: column;
}

.navbar-nav .nav-item {
  margin-bottom: 10px;
}

.navbar-nav .nav-link {
  padding: 10px 15px;
  border-radius: 5px;
}

.navbar-nav .nav-link:hover {
  background-color: rgb(125, 17, 28); /* Subtle hover effect */
}

  
  header a {
  color: white; /* Ensure the text is readable */
  }
  
  header a:hover {
  color: #ffa500; /* Optional: Hover effect with the same paragraph color */
  }
  .section1 .btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ffcc00; /* Bright button color to attract attention */
    color: rgb(125, 17, 28);
    text-transform: uppercase;
    border-radius: 25px; /* Rounded edges for modern style */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Button shadow for depth */
    transition: background-color 0.3s ease;
  }
  
  .section1 .btn:hover {
    background-color: #ff9900; /* Button color change on hover */
  }
.btn {
  background-color: #FFAF61;
  border: none;
  padding: 10px 20px;
  color: white;
  transition: background-color 0.5s ease;
}

.btn:hover {
  background-color: #e6954f;
  transform: scale(1.5);
}
  
  .navItems a {
    color: white; /* Ensure navbar links are readable */
    text-decoration: none;
  }
  
  .navItems a:hover {
    text-decoration: underline;
  }
  
  /* Mobile Navbar */
  .navbar-nav {
    display: flex;
    flex-direction: column;
  }
  
  .navbar-nav .nav-item {
    margin-bottom: 10px;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 15px;
    border-radius: 5px;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: rgb(125, 17, 28); /* Subtle hover effect */
  }
  
  /* Specific Sections */
  .section1 {
    background-color: rgb(160, 49, 60); /* Match section1 theme */
  }
  
  .title {
    font-size: 2rem; /* Adjust for better visibility */
  }
  header {
    position: sticky;
    top: 0;
    z-index: 8;
    background-color: #2C2C2C; /* Match section1 theme */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional: Add shadow for depth */
    transition: background-color 0.3s ease-in-out; /* Smooth transition effect */
  }
  
  header a {
    color: white; /* Ensure the text is readable */
  }
  
  header a:hover {
    color: #ffa500; /* Optional: Hover effect with the same paragraph color */
  }
  .img {
    max-width: 100%;
    height: auto;
    display: block;
}
  
.logo {
  font-size: 1.8rem;
  text-shadow: 1px 1px 4px red;
  font-family: 'DM Serif Display', serif;
}

.mobile-header {
  display: none;
  margin: auto;
  padding-left: 10px;
  font-size: 2rem;
  font-family: 'Times New Roman', Times, serif;
}

.navItems a {
  font-size: 1.2rem;
  text-transform: uppercase;
  color: beige;
  font-weight: 500;
  text-decoration: none;
}

.navItems a:hover {
  text-decoration: underline;
}
/* To change Backgground */
.bg-img {
  background-color: rgb(238, 230, 216);
  height: 100vh;
  background-size: cover;
}
.title {
  font-family: 'DM Serif Display', serif;
  /* text-shadow: 1px 1px 4px rgb(85, 8, 8); */
  text-shadow: 1px 1px 4px rgb(95, 3, 3);

  opacity: 0.95;
  animation: fadeIn 1.5s ease-in forwards;
}


@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

.logo-img {
  height: 50px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .logo {
      display: none;
  }
  .mobile-header {
      display: block;
      font-size: 2rem;
      font-family: 'Times New Roman', Times, serif;
  }

  .navItems {
      justify-content: center;
      text-align: center;
  }
  .navItems a {
      font-size: 1rem;
      margin: 0 15px;
  }

  .title {
      font-size: 2rem;
  }

  .para {
      font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .navItems a {
      font-size: 0.8rem;
  }
  .mobile-header {
      font-size: 2rem;
      display: inline;
      font-family: 'Times New Roman', Times, serif;
  }
  .title {
      font-size: 1.5rem;
  }
  .para {
      font-size: 0.9rem;
  }
}
/* Custom hover effects */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  /* background-color: rgb(238, 230, 216); Light blue overlay */
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease;
  border-radius: 50%;
}

.nav-link:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

.nav-link:hover {
  color: #00bcd4; /* Color change on hover */
  background-color: rgba(255, 255, 255, 0.1); /* Light background on hover */
}
  .ag-format-container {
      width: 1519px;
      margin: 0 auto;
    } 
    .ag-courses_box {
    /* Background */
    background-color: rgb(238, 230, 216);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
   margin-top: 150px;
    padding: 50px 0;
  }
  
  
    .ag-courses_item {
      -ms-flex-preferred-size: calc(33.33333% - 30px);
      flex-basis: calc(33.33333% - 30px);
    
      margin: 0 15px 30px;
    
      overflow: hidden;
    
      border-radius: 28px;
  
      
    }
    ::selection{
      color:#000000;
      background: #B4FF39;
    }
  
    
    .ag-courses-item_link {
      display: block;
      padding: 40px 40px;
      background-color:#242424;
      text-decoration: none;
      overflow: hidden;
      position: relative;
    }
    .ag-courses-item_link:hover,
    .ag-courses-item_link:hover .ag-courses-item_date {
      text-decoration: none;
      color: #fff;
    }
    .ag-courses-item_link:hover .ag-courses-item_bg {
      -webkit-transform: scale(10);
      -ms-transform: scale(10);
      transform: scale(10);
      color: yellow;
    }
    .ag-courses-item_title {
      min-height: 87px;
      margin: 0 0 25px;
    
      overflow: hidden;
    
      font-weight: bold;
      font-size: 30px;
      color: #fff;
    
      z-index: 2;
      position: relative;
    }
    .ag-courses-item_date-box {
      font-size: 18px;
      color: #fff;
    
      z-index: 2;
      position: relative;
    }
    .ag-courses-item_date {
      font-weight: bold;
      color: #f9b234;
    
      -webkit-transition: color .5s ease;
      -o-transition: color .5s ease;
      transition: color .5s ease
    }
    .ag-courses-item_bg {
      height: 128px;
      width: 128px;
      background-color:rgb(141, 18, 30);
    
      z-index: 1;
      position: absolute;
      top: -75px;
      right: -75px;
    
      border-radius: 50%;
    
      -webkit-transition: all .5s ease;
      -o-transition: all .5s ease;
      transition: all .5s ease;
    }
    
    
  
  @media only screen and (max-width: 639px) {
      .ag-courses_item {
          flex-basis: 100%; /* 1 card per row on small screens */
      }
  }
    @media only screen and (max-width: 979px) {
      .ag-courses_item {
        -ms-flex-preferred-size: calc(50% - 30px);
        flex-basis: calc(50% - 30px);
      }
      .ag-courses-item_title {
        font-size: 24px;
      }
    }
    @media only screen and (max-width: 1521px) {
      .ag-format-container {
        width: 100%;
      }
    
    }
    
    @media only screen and (max-width: 767px) {
      .ag-format-container {
        width: 100%;
      }
    
    }
    @media only screen and (max-width: 639px) {
      .ag-courses_item {
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
      }
      .ag-courses-item_title {
        min-height: 72px;
        line-height: 1;
    
        font-size: 24px;
      }
      .ag-courses-item_link {
        padding: 22px 40px;
      }
      .ag-courses-item_date-box {
        font-size: 16px;
      }
    }
        @media only screen and (max-width: 639px) {
      .ag-courses_item {
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
      }
      .ag-courses-item_title {
        min-height: 72px;
        line-height: 1;
    
        font-size: 24px;
      }
      .ag-courses-item_link {
        padding: 22px 40px;
      }
      .ag-courses-item_date-box {
        font-size: 16px;
      }
    }
  
  /*Footer*/
/* Footer Styles */
.footer {
  background-color: #2C2C2C;
}

.container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

.footer-content {
  flex-direction: row;
}

.logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 12px;
}

.text-section h3 {
  font-size: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  color: white;
  text-align: center;
  margin-bottom: 12px;
}

.text-section p {
  color: white;
  text-align: center;
}

.text-section a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.socials-section,
.links-section {
  width: 25%;
  margin-top: 24px;
}

.socials-section h4,
.links-section h4 {
  color: white;
  font-weight: bold;
  font-size: 1.125rem;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
}

.socials-section p,
.links-section p {
  color: white;
  text-align: center;
}

.socials-section a,
.links-section a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.copyright {
  background-color: black;
  text-align: center;
  padding: 12px;
}

.copyright p {
  color: white;
  font-size: 0.875rem;
}
h2{
  margin: 18px;
  margin-left: 25px;
}

/* General Reset */


/* Footer Styling */
.footer {
  background-color: #2C2C2C;
  color: white;
  font-family: Arial, sans-serif;
}

.footer-content {
  display: flex;
  padding: 63px 5%;
  align-items: center;
  justify-content: space-around;
}

.logo-text {
  display: flex;
  align-items: center;
}

.logo {
  width: 100px; /* Adjust as necessary */
  margin: 30px;
}

.institution-text h1 {
  font-size: 24px; /* Adjust size as needed */
  margin-bottom: 5px;
}

.social-links h2,
.other-links h2 {
  margin-bottom: 10px;
}


.social-links li,
.other-links li {
  padding: 5px 0;
  list-style-type: none;
}

.social-links a,
.other-links a {
  color: white;
  transition: color 0.3s ease;
  text-decoration: none;
}

.social-links a:hover,
.other-links a:hover {
  color: #BBBBBB; /* Light grey for hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .logo-text {
    flex-direction: column;
    align-items: center;
  }

  .social-links, .other-links {
    align-items: center;
  }

  .social-links ul, .other-links ul {
    padding: 0;
  }
}
@media (max-width: 1145px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .logo-text {
    flex-direction: column;
    align-items: center;
  }

  .social-links, .other-links {
    align-items: center;
  }

  .social-links ul, .other-links ul {
    padding: 0;
  }
}

/* Copyright */
.copywright {
  text-align: center;
  padding: 10px;
  font-size: 14px;
  background-color: #000000; /* Slightly darker background */
}


@media(max-width: 790px){
  .wrapper .center-line{
    left: 40px;
  }
  .wrapper .row{
    margin: 30px 0 3px 60px;
  }
  .wrapper .row section{
    width: 100%;
  }
  .row-1 section::before{
    left: -7px;
  }
  .row-1 section .icon{
    left: -60px;
  }
}
@media(max-width: 1000px){
  .wrapper .center-line{
    left: 40px;
  }
  .wrapper .row{
    margin: 30px 0 3px 60px;
  }
  .wrapper .row section{
    width: 100%;
  }
  .row-1 section::before{
    left: -7px;
  }
  .row-1 section .icon{
    left: -0px;
  }
}
@media(max-width: 1157px){
  .wrapper .center-line{
    left: 40px;
  }
  .wrapper .row{
    margin: 30px 0 3px 60px;
  }
  .wrapper .row section{
    width: 100%;
  }
  .row-1 section::before{
    left: -7px;
  }
  .row-1 section .icon{
    left: -60px;
  }
}
@media(max-width: 1157px){
  .wrapper .center-line{
    left: 40px;
  }
  .wrapper .row{
    margin: 30px 0 3px 60px;
  }
  .wrapper .row section{
    width: 100%;
  }
  .row-1 section::before{
    left: -7px;
  }
  .row-1 section .icon{
    left: -60px;
  }
}
@media(max-width: 440px){
  .wrapper .center-line,
  .row section::before,
  .row section .icon{
    display: none;
  }
  .wrapper .row{
    margin: 10px 0;
  }
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.ag-courses-item_title {
    display: flex; /* Enables flexbox */
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    height: 100%; /* Optional: Ensure proper alignment if the parent has a height */
    text-align: center; /* Ensures text alignment within the div */
  }
  
  
  