.floating-square {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #76153d, #ff758c);
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(39, 14, 14, 0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 3s ease-in-out infinite, spin 3s linear infinite;
  }
  
  @keyframes float {
    0% {
      transform: translate(-50%, -50%) translateY(0) rotate(0deg);
    }
    50% {
      transform: translate(-50%, -50%) translateY(-20px) rotate(180deg);
    }
    100% {
      transform: translate(-50%, -50%) translateY(0) rotate(360deg);
    }
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #583e3e59;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    background-color: #0d8750;
    box-shadow: 0 2px 5px rgba(38, 32, 32, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #c0f0dc;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #162534;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #072234;
}

.hero {
    background: linear-gradient(135deg, #e6c8c85c, #eaecea);
    color: rgb(100, 188, 127);
    padding: 8rem 2rem 4rem;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #159fde96;
    color: rgb(236, 247, 239);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 800;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #1d9ce636;
}

.about {
    padding: 5rem 0;
    background-color: #abe4e0;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #276b45;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(34, 7, 7, 0.1);
}

.credentials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.credential-item {
    text-align: center;
    padding: 1rem;
    background-color: rgb(165, 234, 242);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.credential-item i {
    font-size: 2rem;
    color: #3c5362;
    margin-bottom: 0.5rem;
}

.practice {
    padding: 5rem 0;
}

.practice h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.question-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.passage {
    background-color: #6c8cab;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.check-answer {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.check-answer:hover {
    background-color: #2980b9;
}

.explanation {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.hidden {
    display: none;
}

.contact {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #2980b9;
}

.contact-info {
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer {
    background-color: #97c6f7;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .credentials {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

.sidenav {
  height: 100%; 
  width: 160px; 
  position: fixed; 
  z-index: 1; 
  top: 0; 
  left: 0;
  background-image: linear-gradient(to bottom, #0ea9c4c1, #dcb7d2a3); 
  overflow-x: hidden; 
  padding-top: 5rem;
}

.sidenav a {
  padding: 6px 8px 6px 16px;
  text-decoration: none;
  font-size: 25px;
  color: #4e7e5c;
  display: block;
  padding-bottom: 20px;
}

.sidenav a:hover {
  color: #6b9ec0;
}

.main {
  margin-left: 150px; 
  padding: 0px 10px;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.practice-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 5rem 6em;
  position: relative;
}

.practice-text {
  flex: 1;
  z-index: 2;
}

.practice-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.practice-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
}

.practice-button {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 1rem 3rem;
  background-color: #1ca52e;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.practice-button:hover {
  background-color: #336e54;
}

.ssat-practice {
  background-color: white;
  color: black;
}

.ssat-practice p {
  max-width: 600px;
}

.gradient-box {
  width: 100%;
  height: 250px;
  background: linear-gradient(to bottom, white, black);
}

.sat-practice {
  background-color: black;
  color: white;
  text-align: right;
}

.sat-practice .practice-text {
  align-items: flex-end;
}

.sat-practice p {
  max-width: 600px;
  margin-left: auto;
}

.act-practice {
  background-color: black;
  color: white;
}

.act-practice p {
  max-width: 600px;
}

.ielts-practice {
  background-color: black;
  color: white;
  text-align: right;
}

.ielts-image img { 
  top: 20px; 
  left: 0; 
  width: 500px; 
  height: auto; 
  z-index: 10; 
  margin-top: -27em;
  margin-left: 14em;
  border-radius: 10px;
  position: relative;
}

.ielts-practice p {
  max-width: 600px;
  margin-left: auto;
}

@media (max-width: 1024px) {
  .practice-section {
    padding: 4rem 3em;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .practice-section {
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5em;
  }

  .sat-practice,
  .ielts-practice {
    text-align: center;
  }

  .sat-practice p,
  .ielts-practice p {
    margin-left: auto;
    margin-right: auto;
  }

  .practice-image img {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .practice-section {
    padding: 2.5rem 1rem;
  }

  .practice-button {
    padding: 0.9rem 2rem;
  }

  .practice-image img {
    max-width: 100%;
  }
}


#previous-clients {
  padding-top: 2em;
}

.clients-bg {
  background-color: #f6f7f9;
  padding: 4em 2em;
}

.clients-h1 {
  text-align: center;
  font-size: 3em;
  padding-bottom: 2rem;
}

.clients-container {
  display: flex;
  justify-content: center;
  gap: 3em;
  align-items: stretch;
  flex-wrap: wrap;
}

.client-box {
  color: black;
  text-align: center;
  background-color: white;
  padding: 2em;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 400px;
}

.client-box p {
  line-height: 1.6;
}

@media (max-width: 900px) {
  .clients-container {
    flex-direction: column;
    align-items: center;
  }
}

#review-section {
  background-color: #f6f7f9;
  padding: 60px 20px;
}

.submit-review-form {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.submit-review-form h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;
  font-size: 28px;
}

.submit-review-form label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.submit-review-form input[type="text"],
.submit-review-form input[type="email"],
.submit-review-form select,
.submit-review-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.submit-review-form input[type="text"]:focus,
.submit-review-form input[type="email"]:focus,
.submit-review-form select:focus,
.submit-review-form textarea:focus {
  border-color: #4CAF50;
  outline: none;
}

.submit-review-form input[type="submit"],
.submit-review-form input[type="reset"] {
  padding: 12px;
  margin-top: 20px;
  width: 48%;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.3s;
}

.submit-review-form input[type="submit"] {
  background-color: #4CAF50;
  margin-right: 4%;
}

.submit-review-form input[type="submit"]:hover {
  background-color: #45a049;
}

.submit-review-form input[type="reset"] {
  background-color: #f44336;
}

.submit-review-form input[type="reset"]:hover {
  background-color: #e53935;
}

.submit-review-form textarea {
  resize: vertical;
}

body {
  background: #f6f7f9;
  color: #333;
}

.contact {
  display: flex;
  min-height: 100vh;
}

.contact-form {
  flex: 1;
  background: #ffffff;
  padding: 4rem;
}

.contact-form h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.contact-form p {
  margin-bottom: 2rem;
  color: #666;
}

form label {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  background: #111827;
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: #1f2937;
}

.contact-info {
  flex: 1;
  background: #111827;
  color: #ffffff;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.contact-info p {
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.socials {
  margin-top: 2rem;
}

.socials a {
  display: inline-block;
  margin-right: 1rem;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
}

.socials a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .contact {
    flex-direction: column;
  }

  .contact-form,
  .contact-info {
    padding: 2.5rem 1.5rem;
  }
}
.center-link {
  text-align: center;
  margin: 40px 0;
}

.center-link a {
  font-size: 1.2rem;
  text-decoration: none;
  color: #1e40af; /* dark blue */
  font-weight: 500;
}

.center-link a:hover {
  text-decoration: underline;
}

/* Flicker animation */
.flicker {
  font-weight: bold;
  color: #dc2626; /* red */
  animation: flicker 1.2s infinite;
}

/* Keyframes */
@keyframes flicker {
  0%   { opacity: 1; }
  50%  { opacity: 0.3; }
  100% { opacity: 1; }
}
