:root {
  --blue-500: rgb(0, 0, 255);
  --blue-700: rgb(30, 92, 185);
  --white: white;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family:  Georgia, Times, 'Times New Roman', serif; }
 
/*--------header--------*/
.header {
  background:blue;
  color: var(--white);
  padding: 10px 20px;
  border: 4px;
  box-shadow:0 10px 30px rgba(0, 11, 102, 0.93); 
}

.header-inner {
  max-width: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/*--------logo--------*/
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  float: left;
}

.logo .mark {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgb(1, 1, 156) 0%, white 70%);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 52px;

}
/*--------BS--------*/
.brand-name {
  font-weight: bold;
  font-size: 25px;
}

.brand-tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.932);
}
/*--------Navigater--------*/
nav.primary {
  display: flex;
  gap: 16px;
  float: right;
}
.primary ul li{
  text-decoration: none;
  list-style: none;
}

nav.primary a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
  display: flex;
}

nav.primary a:hover {
  text-decoration:underline;
  text-shadow: 10px;
  text-transform: uppercase;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/*--------media/small screen--------*/
@media (max-width: 720px) {
  nav.primary {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .brand-name {
  font-size: 19px;
}
.brand-tagline {
  font-size: 13px;
}
.primary ul a{
  float: right;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
}
.logo .mark{
   width: 39px;
  height: 35px;
  border-radius: 8px;
  font-size: 38px;
}
}

/*--------home/hero section--------*/
.hero {
 background: url('home.jpg') center/cover;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 text-align: center;
 position: relative;
 padding-top: 80px;
 height: 600px;
 box-shadow:0PX 10px 10px rgb(0, 0, 212); 
 
}

.hero-content {
  flex: 4;
}
.Hi{
  width: 600px;
  height: 130px;
  background-color:rgba(245, 245, 245, 0.671);
  border-radius: 8px;
  margin-left: 50px;
}
.hero-content h1 {
  font-size: 60px;
  color: blue;
  margin-bottom: 30px;
}

.hero-content p {
  font-size: 17px;
  margin-bottom: 13px;
  color: rgb(0, 0, 0); 
  padding-top: 15px;
  padding-left: 8px;
}


/*--------media/small screen--------*/
@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-image img {
   width: 400px;
   margin-top: 00px;
  }
  .hero-content p {
  font-size: 15px;
  margin-bottom:30px;
  color: black;
}
.hero-content h1 {
  font-size: 35px;
  color:blue;
  margin-bottom: 15px;
}
.brand-tagline{
  font-size:9px;
}
.about p{
  font-size: 13px;
}
.about h1{
  font-size: 25px;
}
.about h2{
  font-size: 19px;
}
.subscribe button{
margin-top: 20px;
}
.Hi p{
  font-family:  Georgia, Times, 'Times New Roman', serif;
  font-size: 14px;
}
.Hi{
  width: 430px;
  margin-left: 3px;
}
.section-two h3{ font-size:12px;} 
.subscribe h2{font-size: 25px;}
 .Rating{
  display:flex;
  flex-direction: column;
  margin-left: 85px;
 }
}

.footer-content p {
  margin: 6px 0;
  font-size: 13px;
}

nav a{
  align-items:center; 
}
/*--------about page--------*/
.about {
  background: rgba(255, 255, 255, 0.74);
  padding: 40px 20px;
  margin: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.about h1 {
  color: rgb(27, 62, 177);
  margin-bottom: 15px;
}

.about h2 {
  color: rgb(27, 62, 177);
  margin: 20px 0 10px;
}

.about p {
  margin-bottom: 15px;
}

.about ul {
  margin: 10px 0 20px 20px;
}

.about blockquote {
  background: whitesmoke;
  border-left: 5px solid rgb(27, 62, 177);
  padding: 10px 15px;
  margin: 20px 0;
  font-style: italic;
  color: rgb(151, 151, 151);
}

.cta {
  margin-top: 20px;
  text-align: center;
}

.cta p {
  margin-bottom: 10px;
  font-weight: bold;
}
.primary ul{
  float: right;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.logo .mark a{
  text-decoration: none;
  color: rgb(0, 0, 255);
}
nav.primary {
  flex-direction: column;
  background: var(--blue-500);
  padding: 10px;
  gap: 10px;
}

nav.primary.show {
  display: flex;
}
.submit-btn {
   background: linear-gradient(135deg, blue 0%, white 70%);
   border: none;
   padding: 10px 10px;
   font-size: 18px;
   font-weight: 600;
   border-radius: 20px;
   transition: all 0.3s ease;
   margin-bottom: 30px;
  }

 .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(12, 9, 199, 0.925);
}

.submit-btn a{
 text-decoration: none;
 color:blue;
 padding: 6px 2px;
}

.section-two {
 background-color: rgb(255, 255, 255);
 color: rgb(0, 0, 0);
 padding: 80px 10%;
 text-align: center;
    
}

    .section-two h2 {
      font-size: 25px;
      margin-bottom: 30px;
      color: blue;
    }

    .categories {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 25px;
      margin-bottom: 50px;
    }

    .category-card {
      background-color: rgb(231, 221, 221);
      border-radius: 15px;
      padding: 30px 20px;
      box-shadow: 0 3px 6px rgba(0, 0, 0, 0.425);
      transition: transform 0.5s ease, box-shadow 0.3s ease;
    }

    .category-card li{
      text-decoration: none;
      list-style: none;
    }

    .category-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

    .category-card h3 {
      color:blue;
      margin-bottom: 10px;
    }

    .subscribe {
      margin-top: 100px;
    }

    .subscribe input {
      padding: 12px;
      width: 400px;
      border-radius: 30px;
      border: 2px solid rgb(194, 185, 185);
      outline: none;
      margin-right: 10px;
    }

    .subscribe button {
      background-color: rgb(27, 62, 177);
      color: white;
      padding: 12px 25px;
      border: none;
      border-radius: 30px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s ease;
    }

    .subscribe button:hover {
      background-color:blue;
      transform: scale(1.05);
    }  

.footer {
  background:rgb(6, 27, 219);
  color: var(--white);
  padding: 5px;
  text-align: center;
  margin: 0px;
  margin-bottom:0px;
  height: 170px;
}
.footer-content{
  margin-top: 40px;
}
.back{
  width: 100%;
}
.back a{
  color: white;
  text-decoration: none;
  font-size: 12px;
  justify-content: space-between; 
}
.back a:hover{
  text-transform: uppercase;
  color: red;
  text-decoration: underline;
}
.back p{
  font-size: 14px;
  margin-top: 10px;
}

  .B1{
  margin-left: 10px;
  margin-top: 30px;
  width: 200px;
  height:200px;
  box-shadow:0 10px 30px rgba(125, 126, 134, 0.911);
  border-radius: 8px;
  margin-bottom: 10px;
}

.B1 img{
  height: 200px;
  width: 200px;
  border-radius: 8px;
}

.B1 a{
  margin-left: 0px;
  text-decoration: none;
  font-size: 15px;
  padding: 2px;
}
.Rating{
  display: flex;
  margin-top: 40px;
}
.top{
  font-weight: bold;
  font-size: 22px;
  color: blue;
  margin-top: 20px;
}


.simple-subscribe {
  background: rgb(243, 229, 211);
  padding: 40px 20px;
  text-align: center;
  border-radius: 15px;
  margin: 40px 0;
  border: 2px solid #e9ecef;
}

.simple-subscribe h2 {
  color:blue;
  margin-bottom: 10px;
  font-size: 22px;
}

.simple-subscribe p {
  color: rgb(16, 0, 163);
  margin-bottom: 25px;
  font-size: 15px;
}

.subscribe-box {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  padding: 0 15px;
}

#userEmail {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid rgb(157, 152, 185);
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

#userEmail:focus {
  border-color: rgba(0, 0, 255, 0.295);
}

.AB {
  padding: 12px 25px;
  background-color: blue;
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.AB:hover {
  background-color: rgba(30, 144, 238, 0.788);
  transform: translateY(-2px);
  opacity: 20px;
}

.AB:active {
  transform: translateY(0);
}


.notification {
  max-width: 500px;
  margin: 20px auto 0;
  padding: 15px;
  border-radius: 10px;
  font-weight: bold;
  display: none;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification.success {
  background: wheat;
  color: green;
  border: 1px solid #c3e6cb;
  display: block;
}

.notification.error {
  background: wheat;
  color: red;
  border: 1px solid #f5c6cb;
  display: block;
}

.notification.info {
  background:wheat;
  color: blue;
  border: 1px solid #bee5eb;
  display: block;
}


@media (max-width: 600px) {
  .subscribe-box {
    flex-direction: column;
  }
  
  #userEmail,
  .sub-btn {
    width: 100%;
    border-radius: 25px;
  }
  
  .simple-subscribe {
    padding: 30px 15px;
  }
  
  .simple-subscribe h2 {
    font-size: 1.5em;
  }
}

.form input.error,
.form textarea.error {
  border-color: red;
  background-color:white;
  animation: shake 0.3s ease;
}
