:root {
  --primary: #00a8a8;
  --primary-dark: #007a7a;
  --primary-light: #4fd1d1;
  --yellow: #ffc107;
  --yellow-dark: #e0a800;
  --yellow-light: #ffcd39;
  --gray: #6c757d;
  --gray-dark: #343a40;
  --gray-light: #f8f9fa;
  --white: #ffffff;
  --black: #000000;
}

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

body {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.2px;
  overflow-x: hidden;
  color: #333;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 18px;
}

h5 {
  font-size: 16px;
}

h6 {
  font-size: 14px;
}

p {
  margin: 0;
  line-height: 1.6;
}

a {
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary);
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .section-title {
  font-size: 35px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.section-header .section-title:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--primary);
}

.section-header .section-title span {
  color: var(--primary);
}

.btn {
  font-size: 14px;
  padding: 10px 30px;
  cursor: pointer;
  font-weight: 400;
  color: #fff;
  border-radius: 30px;
  transition: all 0.3s ease;
  display: inline-block;
  text-transform: uppercase;
}

.btn:focus {
  outline: none;
}

.btn-common {
  background-color: var(--primary);
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

.btn-common:hover {
  color: #fff;
  background-color: var(--primary-dark);
}

.btn-border {
  color: #fff;
  background-color: transparent;
  border: 1px solid #fff;
  border-radius: 30px;
  text-transform: uppercase;
}

.btn-border:hover {
  color: #fff;
  border-color: var(--primary);
  background-color: var(--primary);
}

.btn-border-filled {
  background-color: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 30px;
  text-transform: uppercase;
}

.btn-border-filled:hover {
  color: var(--primary);
  background-color: transparent;
  border-color: var(--primary);
}

.btn-link {
  color: #fff;
  text-decoration: none;
  padding: 5px 0;
  position: relative;
  font-weight: 500;
  text-transform: uppercase;
}



.btn-link:hover:before {
  width: 100%;
}

.padding-none {
  padding: 0;
}

.bg-inverse {
  background: var(--primary);
  background: linear-gradient(95deg, var(--primary) 40%, var(--yellow) 100%);
}

.bg-defult {
  background: var(--primary) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-white, .text-white h4, .text-white h3 {
  color: #fff !important;
}

.text-black {
  color: #333 !important;
}

.text-yellow {
  color: var(--yellow) !important;
}

.text-gray {
  color: var(--gray) !important;
}

.text-muted {
  color: #9a9a9a !important;
}

.text-center {
  text-align: center !important;
}

.text-left {
  text-align: left !important;
}

.text-right {
  text-align: right !important;
}

.text-uppercase {
  text-transform: uppercase !important;
}

.text-capitalize {
  text-transform: capitalize !important;
}

.text-lowercase {
  text-transform: lowercase !important;
}

.text-bold {
  font-weight: 700 !important;
}

.text-medium {
  font-weight: 500 !important;
}

.text-normal {
  font-weight: 400 !important;
}

.text-light {
  font-weight: 300 !important;
}

.text-thin {
  font-weight: 100 !important;
}

.text-xs {
  font-size: 12px !important;
}

.text-sm {
  font-size: 14px !important;
}

.text-md {
  font-size: 16px !important;
}

.text-lg {
  font-size: 18px !important;
}

.text-xl {
  font-size: 20px !important;
}

.text-2xl {
  font-size: 24px !important;
}

.text-3xl {
  font-size: 30px !important;
}

.text-4xl {
  font-size: 36px !important;
}

.text-5xl {
  font-size: 48px !important;
}

.text-6xl {
  font-size: 64px !important;
}

.navbar {
  padding: 0;
}

.navbar-brand {
  position: relative;
  padding: 0;
}

.navbar-brand img {
  width: 120px;
}

.navbar-expand-md .navbar-nav .nav-link {
  color: #fff;
  font-size: 14px;
  padding: 25px 15px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-align: center;
}

.navbar-expand-md .navbar-nav .nav-link:hover,
.navbar-expand-md .navbar-nav .nav-link:focus,
.navbar-expand-md .navbar-nav .nav-link.active {
  color: #fff;
  opacity: 0.8;
}

.navbar-expand-md .navbar-nav .active>.nav-link,
.navbar-expand-md .navbar-nav .nav-link.active,
.navbar-expand-md .navbar-nav .nav-link.open,
.navbar-expand-md .navbar-nav .open>.nav-link {
  color: #fff;
  opacity: 0.8;
}

.navbar-expand-md .navbar-toggler {
  background: transparent;
  border: 1px solid #fff;
  border-radius: 3px;
  margin: 5px;
  cursor: pointer;
  padding: 5px;
}

.navbar-expand-md .navbar-toggler i {
  color: #fff;
}

.navbar-expand-md .navbar-toggler:focus {
  outline: none;
}

.hero-area {
  background: var(--primary);
  background: linear-gradient(95deg, var(--primary) 40%, var(--yellow) 100%);
  color: #fff;
  overflow: hidden;
  padding: 150px 0 50px;
  position: relative;
}

.hero-area .contents {
  padding: 20px 0 0;
}

.hero-area .contents h2 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  line-height: 60px;
  margin-bottom: 25px;
}

.hero-area .contents p {
  color: #fff;
  font-size: 14px;
  line-height: 26px;
  margin-bottom: 30px;
}

.hero-area .intro-img {
  padding: 30px 0 0;
}

.hero-area .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.hero-area .overlay span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 0;
  left: 0;
}

.hero-area .overlay span:nth-child(1) {
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
}

.hero-area .overlay span:nth-child(2) {
  left: 30%;
  top: 20%;
  width: 40%;
  height: 40%;
}

.header-button {
  margin-top: 30px;
}

.header-button .btn {
  margin-right: 10px;
}

#courses {
  padding: 80px 0;
}

#courses .course-item {
  border-radius: 4px;
  border: 1px solid #f1f1f1;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  position: relative;
  top: 0;
}

#courses .course-item:hover {
  box-shadow: 0 10px 22px 10px rgba(27, 38, 49, 0.1);
  top: -10px;
}

#courses .course-item h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

#courses .course-item p {
  color: #888;
  margin-bottom: 20px;
}

.course-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}

.course-thumb img {
  width: 100%;
}

.course-details {
  padding: 20px;
}

.course-details .course-inner {
  margin-bottom: 15px;
}

.course-details .course-inner h5 a {
  color: #333;
}

.course-details .course-inner h5 a:hover {
  color: var(--primary);
}

#about {
  position: relative;
  background: var(--primary);
  background: linear-gradient(95deg, var(--primary) 40%, var(--yellow) 100%);
  color: #fff;
  padding: 80px 0;
}

#about .section-title {
  color: #fff;
}

#about .section-title:before {
  background: #fff;
}

#about .section-title span {
  color: #fff;
}

/* Feature Cards Styling */
.features-grid {
  margin: 40px 0;
}

.feature-card {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.feature-icon {
  flex: 0 0 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.feature-icon img {
  width: 30px;
  height: 30px;
}

.feature-content {
  flex: 1;
}

.feature-content h5 {
  color: #fff;
  margin-bottom: 5px;
  font-size: 18px;
}

.feature-content p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 14px;
}

/* Benefits Section Styling */
.benefits-section {
  margin: 40px 0 20px;
}

.benefits-title {
  color: #fff;
  margin-bottom: 20px;
  font-size: 20px;
  position: relative;
  padding-left: 15px;
}

.benefits-title:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--yellow);
  border-radius: 2px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
}

.benefits-list li:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.benefit-icon {
  flex: 0 0 24px;
  height: 24px;
  margin-right: 15px;
  position: relative;
}

.benefit-check:before {
  content: "✓";
  color: var(--yellow);
  font-size: 18px;
  font-weight: bold;
}

.benefit-text {
  flex: 1;
  color: #fff;
}

.benefit-text strong {
  color: var(--yellow);
  font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .feature-card {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .benefits-list li {
    padding: 12px;
  }

  .benefit-icon {
    flex: 0 0 20px;
    height: 20px;
    margin-right: 10px;
  }

  .benefit-text {
    font-size: 14px;
  }
}

@media (max-width: 575px) {
  .benefits-section .row .col-md-6:last-child {
    margin-top: 0;
  }

  .benefits-list li {
    margin-bottom: 10px;
  }
}

#about p {
  color: #fff;
  margin-bottom: 20px;
}

#about ul {
  margin-bottom: 30px;
}

#about ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

#about ul li:before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
}

.details ol {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.details ol li {
  width: 48%;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.details ol li img {
  margin-right: 10px;
  width: 30px;
}

.steps {
  margin-top: 30px;
}

.steps h5 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 20px;
}

.timeline {
  position: relative;
  padding: 0;
  list-style: none;
  margin-bottom: 30px;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  margin-left: -1.5px;
  background-color: rgba(255, 255, 255, 0.2);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 80px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-number {
  position: absolute;
  left: 0;
  width: 80px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  color: #fff;
  background-color: var(--yellow);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  z-index: 100;
}

.timeline-content {
  padding:1rem;
}

.timeline-content h4 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
}

.timeline-content span {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 4px;
  margin-top: 30px;
  text-align: center;
}

.tag>div {
  margin: 0 20px;
  text-align: center;
}

.tag .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.tag span {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.tag small {
  color: #fff;
  font-size: 12px;
}

#contact {
  padding: 80px 10px;
}

#contact .section-title {
  margin-bottom: 50px;
}

#contact .section-title span {
  color: var(--primary);
}

#contact .section-title:before {
  background: var(--primary);
}

#contact .contact-form {
  margin-top: 30px;
}

#contact .contact-form .form-control {
  border: 1px solid #f1f1f1;
  border-radius: 0;
  height: 45px;
  padding: 10px;
  box-shadow: none;
  margin-bottom: 20px;
}

#contact .contact-form textarea.form-control {
  height: 150px;
}

#contact .contact-form .btn-common {
  margin-top: 20px;
}

#contact .contact-info {
  margin-top: 30px;
}

#contact .contact-info h5 {
  margin-bottom: 20px;
}

#contact .contact-info p {
  margin-bottom: 20px;
}

#contact .contact-info ul li {
  margin-bottom: 15px;
}

#contact .contact-info ul li i {
  color: var(--primary);
  margin-right: 10px;
}

.contacts-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.footer {
  background: #f9f9f9;
  padding: 60px 0 30px;
}

.footer .footer-logo {
  margin-bottom: 20px;
}

.footer .footer-logo img {
  width: 120px;
}

.footer .footer-description {
  color: #888;
  margin-bottom: 30px;
}

.footer .footer-social {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.footer .footer-social a {
  margin-right: 15px;
  color: #888;
  font-size: 18px;
}

.footer .footer-social a:hover {
  color: var(--primary);
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links h5 {
  color: #333;
  margin-bottom: 20px;
}

.footer .footer-links ul li {
  margin-bottom: 10px;
}

.footer .footer-links ul li a {
  color: #888;
}

.footer .footer-links ul li a:hover {
  color: var(--primary);
}

.footer .footer-contact {
  margin-bottom: 30px;
}

.footer .footer-contact h5 {
  color: #333;
  margin-bottom: 20px;
}

.footer .footer-contact p {
  color: #888;
  margin-bottom: 10px;
}

.footer .footer-contact p i {
  color: var(--primary);
  margin-right: 10px;
}

.footer .footer-copyright {
  color: #888;
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #f1f1f1;
}

.footer-divider {
  border-top: 1px solid #eee;
  margin: 30px 0;
}

.footer-social {
  display: flex;
  justify-content: center;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary);
}

.social-icon:hover img {
  filter: brightness(0) invert(1);
}

.social-icon img {
  width: 20px;
  height: 20px;
}

@media (max-width: 991px) {
  .navbar-expand-md .navbar-nav .nav-link {
    padding: 15px 10px;
  }

  .hero-area .contents h2 {
    font-size: 36px;
    line-height: 50px;
  }

  .hero-area .contents p {
    font-size: 14px;
  }

  .hero-area .intro-img {
    margin-top: 30px;
  }

  #courses .course-item {
    margin-bottom: 30px;
  }

  .details ol li {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .navbar-expand-md .navbar-nav .nav-link {
    padding: 10px 15px;
  }

  .navbar-expand-md .navbar-collapse {
    background: var(--primary);
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
  }

  .hero-area {
    padding: 100px 0 50px;
  }

  .hero-area .contents h2 {
    font-size: 30px;
    line-height: 40px;
  }

  .hero-area .contents p {
    font-size: 14px;
  }

  .hero-area .intro-img {
    margin-top: 30px;
  }

  #courses .course-item {
    margin-bottom: 30px;
  }

  .details ol li {
    width: 100%;
  }

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 18px;
  }

  .tag>div {
    margin: 0 10px;
  }

  .tag span {
    font-size: 20px;
  }
}

@media (max-width: 575px) {
  .navbar-expand-md .navbar-brand img {
    width: 100px;
  }

  .hero-area {
    padding: 80px 0 50px;
  }

  .hero-area .contents h2 {
    font-size: 24px;
    line-height: 36px;
  }

  .hero-area .contents p {
    font-size: 14px;
  }

  .hero-area .intro-img {
    margin-top: 30px;
  }

  .section-header .section-title {
    font-size: 28px;
  }

  #courses .course-item {
    margin-bottom: 30px;
  }

  .details ol li {
    width: 100%;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 16px;
  }

  .tag {
    flex-direction: column;
  }

  .tag>div {
    margin: 10px 0;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Improved typography */
body {
  line-height: 1.6;
  letter-spacing: 0.2px;
}

/* Enhanced focus states */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Consistent button styling with hover effects */
.btn {
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.btn:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }

  20% {
    transform: scale(25, 25);
    opacity: 0.5;
  }

  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

.btn-primary {
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 15px rgba(13, 110, 253, 0.35);
  transform: translateY(-2px);
}

/* Card enhancements */
.card,
.course-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

.card:hover,
.course-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Section headers with improved styling */
.section-header .section-title {
  position: relative;
  padding-bottom: 15px;
}

.section-header .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.section-header:hover .section-title::after {
  width: 100px;
}

/* Enhanced navbar */
.navbar {
  transition: all 0.3s ease;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 70%;
}

.nav-link.active::after {
  width: 70%;
}

/* Hero section improvements */
.hero-area {
  position: relative;
  overflow: hidden;
}

.hero-area .overlay span {
  transition: all 5s ease-in-out;
}

.hero-area:hover .overlay span:nth-child(1) {
  transform: translate(-48%, -48%) scale(1.05);
}

.hero-area .contents h2 {
  position: relative;
  display: inline-block;
}

.hero-area .contents h2::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.5s ease;
}

.hero-area:hover .contents h2::after {
  width: 100%;
}

/* Course section improvements */
#courses .course-item {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

#courses .course-thumb {
  overflow: hidden;
}

#courses .course-thumb img {
  transition: transform 0.5s ease;
}

#courses .course-item:hover .course-thumb img {
  transform: scale(1.05);
}

#courses .course-details {
  position: relative;
  z-index: 1;
}

#courses .course-details::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.05);
  z-index: -1;
}

/* About section improvements */
#about .timeline-number {
  transition: all 0.3s ease;
}

#about .timeline-item:hover .timeline-number {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

#about .details ol li {
  transition: transform 0.3s ease;
}

#about .details ol li:hover {
  transform: translateX(5px);
}

#about .tag {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

#about .avatar {
  transition: all 0.3s ease;
}

#about .tag div:hover .avatar {
  transform: scale(1.1);
  background: var(--primary);
}

/* Contact section improvements */
#contact form input,
#contact form textarea {
  transition: all 0.3s ease;
  border: 1px solid #ced4da;
  background-color: #f8f9fa;
}

#contact form input:focus,
#contact form textarea:focus {
  background-color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#contact form input::placeholder,
#contact form textarea::placeholder {
  color: #adb5bd;
  transition: opacity 0.3s ease;
}

#contact form input:focus::placeholder,
#contact form textarea:focus::placeholder {
  opacity: 0.5;
}

#contact .submit-button {
  position: relative;
}

#contact .submit-button::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

#contact .submit-button:hover::before {
  width: 50px;
}

/* Footer improvements */
.footer {
  position: relative;
  overflow: hidden;
}



.footer .logo {
  transition: transform 0.3s ease;
}

.footer-content:hover .logo {
  transform: scale(1.05);
}

.social-icon {
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-icon:hover {
  transform: translateY(-5px);
  background: var(--primary);
}

.social-icon:hover img {
  filter: brightness(0) invert(1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

.fade-in-1 {
  animation-delay: 0.1s;
}

.fade-in-2 {
  animation-delay: 0.2s;
}

.fade-in-3 {
  animation-delay: 0.3s;
}

.fade-in-4 {
  animation-delay: 0.4s;
}

.fade-in-5 {
  animation-delay: 0.5s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* Accessibility improvements */
.high-contrast-focus:focus {
  outline: 3px solid #ffff00 !important;
  outline-offset: 3px !important;
}

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 15px;
  z-index: 100;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
}

.text-contrast-improved {
  color: #212529 !important;
}

/* Reveal animation for scroll effects */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Navbar sticky style */
.navbar-sticky {
  background: var(--primary) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Animated counter for statistics */
.count-up {
  font-weight: bold;
  transition: all 0.5s ease;
}

/* Enhanced form elements */
.form-floating {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-floating input,
.form-floating textarea {
  height: auto;
  padding: 1rem 0.75rem;
}

.form-floating label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity .1s ease-in-out, transform .1s ease-in-out;
}

.form-floating input:focus~label,
.form-floating input:not(:placeholder-shown)~label,
.form-floating textarea:focus~label,
.form-floating textarea:not(:placeholder-shown)~label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Privacy and Terms pages enhancements */
.privacy-enhanced h2,
.terms-enhanced h2 {
  color: var(--primary);
  position: relative;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

.privacy-enhanced h2::after,
.terms-enhanced h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.privacy-enhanced h2:hover::after,
.terms-enhanced h2:hover::after {
  width: 100px;
}

.privacy-enhanced p,
.terms-enhanced p {
  line-height: 1.8;
}

.privacy-enhanced ul li,
.terms-enhanced ul li {
  margin-bottom: 0.75rem;
}

.highlight-link {
  color: var(--primary);
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
}

.highlight-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.highlight-link:hover {
  color: var(--primary-dark);
}

.highlight-link:hover::after {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.privacy-enhanced h2,
.terms-enhanced h2 {
  color: var(--primary);
  position: relative;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
}

.privacy-enhanced h2::after,
.terms-enhanced h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.privacy-enhanced h2:hover::after,
.terms-enhanced h2:hover::after {
  width: 100px;
}

.privacy-enhanced p,
.terms-enhanced p {
  line-height: 1.8;
}

.privacy-enhanced ul li,
.terms-enhanced ul li {
  margin-bottom: 0.75rem;
}

.highlight-link {
  color: var(--primary);
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
}

.highlight-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.highlight-link:hover {
  color: var(--primary-dark);
}

.highlight-link:hover::after {
  width: 100%;
}

/* Animated counter for statistics */
.count-up {
  font-weight: bold;
  transition: all 0.5s ease;
}

/* Enhanced course subject cards */
.subject-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.subject-card h4 {
  border-bottom: 2px solid transparent;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.subject-card:hover h4 {
  border-bottom-color: var(--primary);
  color: var(--primary-dark);
}

.subject-card ul {
  flex: 1;
}

/* Cambridge page specific improvements */
.past-papers .card {
  transition: all 0.3s ease;
  border-top: 3px solid transparent;
}

.past-papers .card:hover {
  border-top-color: var(--primary);
}

/* Testimonial enhancements */
.testimonial blockquote {
  position: relative;
  padding: 0.5rem 0;
}

.testimonial blockquote::before {
  content: '"';
  position: absolute;
  top: 0;
  left: -20px;
  font-size: 40px;
  color: var(--primary-light);
  opacity: 0.5;
  font-family: serif;
}

.testimonial blockquote::after {
  content: '"';
  position: absolute;
  bottom: -10px;
  right: -20px;
  font-size: 40px;
  color: var(--primary-light);
  opacity: 0.5;
  font-family: serif;
}
