body{
    margin: 0;
    padding: 0;
}

.navbar{    
    background: linear-gradient(90deg, #1E3A8A, white); 
}

.logo{
    font-size: 30px;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    color: white;
}

.logo-offcanvas{
    font-size: 30px;
    font-weight: bold;
    font-family: 'Times New Roman', Times, serif;
    color: #1E3A8A;
}

.navbar-toggler {
  background: transparent; 
  border: none; 
  box-shadow: none !important;
  padding: 10px; 
  border-radius: 6px; 
}

.navbar-toggler:focus,
.navbar-toggler:active {
  outline: none !important;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.offcanvas{
    width: 300px !important;
}

.container-fluid{
    padding: 10px;
}


.cta {
  background: linear-gradient(90deg, #1E3A8A, #06B6D4);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.cta:hover {
    background: linear-gradient(90deg, #14285f, #037589);
    color: white;
}

.logo:hover{
    color: white;
}

.hero{
    background-image: url('learnblue.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 100px;
    color: white; 
    min-height: 100vh; /* makes hero section full screen because the fixed navbar has covered it and since you didnt set a specific height it will only occupy the contents which will be small */
    justify-content: center;
    text-align: center;
    align-items: center;
    position: relative;
}

.hero:after{
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5 );
    z-index: 0;
}


.hero a{
    background: linear-gradient(90deg, #1E3A8A, #06B6D4);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;  
    text-decoration: none;
    font-size: 25px;
    font-style: italic;
}

.hero a, .hero .text{
    position: relative;
    z-index: 1;
}

.hero a:hover,
.course-card a:hover{
     background: linear-gradient(90deg, #14285e, #046778);
}

.hero .text h1 {
    font-style: italic;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.about{
    background-color: #F9FAFB;
    padding: 60px 20px;
    /*border-top: 4px solid;
    border-image: linear-gradient(90deg, white, #1E3A8A) 1;*/
}

.about-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 25px;
    padding: 20px;
    padding-top: 30px;
}

.about-content h2 {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-weight: bold;
  font-size: 40px;
  border-bottom: 4px solid #1E3A8A;
  padding-bottom: 5px;
  transition: border-color 0.3s ease-in-out;
}

.about-content h2:hover {
  border-color: rgb(11, 41, 78);
}

.about-grid {
  display: flex;
  justify-content: center;
  gap: 20px;              
  align-items: stretch;   /* makes all cards equal height */
  flex-wrap: wrap;        /* responsive: stack on smaller screens */
  max-width: 1200px;
  margin: 0 auto;         
  padding: 20px;
}

.about-card {
  background: #fff;  
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 25px;
  flex: 1 1 300px;        /* responsive sizing */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card h3 {
  color: #1E3A8A;         
  margin-bottom: 10px;
}

.about-card p {
  color: #111827;         
  font-size: 0.95rem;
  line-height: 1.5;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  background-color: rgb(230, 230, 230);
}

.courses {
    background: linear-gradient(90deg, white, #1E3A8A);
    padding: 60px 20px; 
    /*border-top: 4px solid;
    border-image: linear-gradient(90deg, #1E3A8A, white) 1;*/
}

.courses-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 25px;
    padding: 20px;
    padding-top: 30px;
}

.courses-content h2 {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-weight: bold;
  font-size: 40px;
  border-bottom: 4px solid #1E3A8A;
  padding-bottom: 5px;
  transition: border-color 0.3s ease-in-out;
}

.courses-content h2:hover {
  border-color: rgb(11, 41, 78);
}

.subtext{
    font-size: 20px;
}

.courses-grid {
  display: flex;
  justify-content: center;
  gap: 20px;              
  align-items: stretch;   /* makes all cards equal height */
  flex-wrap: wrap;        /* responsive: stack on smaller screens */
  max-width: 1200px;
  margin: 0 auto;         
  padding: 20px;
}

.course-card {
  background: #fff; 
  color: #111827;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  background-color: rgb(230, 230, 230);
}

.course-card a{
    background: linear-gradient(90deg, #1E3A8A, #06B6D4);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;  
    text-decoration: none;
    font-size: 15px;
    font-style: italic;
}

.blogs-section {
  padding: 60px 20px;
  background: #fff; 
  text-align: center;
}

.featured-blog {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F9FAFB;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 40px;
}

.featured-blog .img {
  background-image: url('webdev.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 400px;
  width: 400px;
  
}

.featured-content {
  text-align: left;
  padding: 20px;
}

.featured-content h3 {
  color: #1E3A8A;
}

.blogs-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 10px;
  padding-right: 20px;
  max-width: 300px;
  text-align: left;
}

.blog-card .img1 {
  background-image: url('ocourse.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 280px;
  width: 280px;
  text-align: center;
  display: flex;
  justify-content: center;
  border-top-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.img2{
    background-image: url('whylearn.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 280px;
    width: 280px;
    text-align: center;
    display: flex;
    justify-content: center;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 12px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: #06B6D4;
  font-weight: bold;
  text-decoration: none;
}
.read-more:hover {
  text-decoration: underline;
}

.blogs-section h2{
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: bold;
    font-size: 40px;
    border-bottom: 4px solid #1E3A8A;
    padding-bottom: 5px;
    transition: border-color 0.3s ease-in-out;
    display: flex;
    justify-content: center;
}

.contact {
  background: linear-gradient(90deg, white, #1E3A8A);
  padding: 60px 20px;
  text-align: center;
  width: 100%;
}

.contact-content{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-content h2 {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-weight: bold;
  font-size: 40px;
  border-bottom: 4px solid #1E3A8A;
  padding-bottom: 5px;
  margin-bottom: 20px;
  transition: border-color 0.3s ease-in-out;
}

.contact h2:hover {
  border-color: rgb(11, 41, 78);
}

.contact-section p {
  font-size: 1rem;
  margin-bottom: 40px;
}

.contact-grid {
  display: flex;
  align-items: center;
  gap: 200px;
  flex-wrap: wrap; 
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-between;
  background: linear-gradient(90deg, #1E3A8A, #06B6D4);
  padding: 30px;
  border-radius: 18px;
}

.us{
    display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: column; 
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(90deg, #1E3A8A, #06B6D4);
    padding: 30px;
    border-radius: 18px;
}

.contact-grid h2{
    font-size: 20px;
    color: white;
}

.contact-info, .contact-form {
  background-color: transparent;
  padding: 30px;
  border-radius: 12px;
  text-align: left;
}

.contact-info{
    box-shadow: 0px 2px 2px 0px rgb(165, 165, 165);
}

.contact-info h3 {
  margin-bottom: 15px;
  color: #06B6D4; 
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #fff;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 35px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 0.95rem;
}

.contact-form input {
  height: 40px;
}

.contact-form textarea {
  resize: none;
}

.contact-form .cta {
  background: linear-gradient(90deg, #1E3A8A, #06B6D4);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contact-form h3{
    font-size: 30px;
    color: white;
}

/* Footer */
footer {
  background: linear-gradient(90deg, white,#1E3A8A );
  color: #fff;
  text-align: center;
  padding: 20px;
}

@media (max-width: 768px) {
  .featured-blog {
    flex-direction: column;
  }

  .featured-blog .img,
  .featured-content {
    width: 100%;
  }

  .featured-blog .img {
    height: 250px; /* shorter height for mobile */
    border-radius: 12px 12px 0 0;
  }

  .offcanvas{
    width: 200px !important;
}

  .contact-grid {
  gap: 50px;
  padding: 15px;
}
}