:root {
  --body-bg-color: #f8fafc;
  --body-text-color: #222222;
  --heading-color: #6d2197;
  --hero-gradient1: #667eea;
  --hero-gradient2: #764ba2;
  --footer-bg-color: #292929;
  --link-color: #b005ff;
  --header-bg-color: #ffffff;
  --font-family: system-ui;
  --nav-link-color: #141414;
}

body {
  background-color: var(--body-bg-color) !important;
  color: var(--body-text-color) !important;
  font-family: var(--font-family), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.5rem) !important;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2rem) !important;
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.7rem) !important;
}

p {
  margin-bottom: 0.5rem !important;
}

section {
  padding: 15px 0;
}

.navbar {
  background-color: var(--header-bg-color) !important;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.hero-section {
  padding: 55px 0;
  position: relative;
  overflow: hidden;
}

.hero-section.gradient-bg {
  background: linear-gradient(135deg, var(--hero-gradient1), var(--hero-gradient2));
}

.hero-section.with-bg {
  background-image: url('/images/video-learning-hub.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section.with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgb(0, 0, 0));
  opacity: 0.5;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

h2,
h3 {
  color: var(--heading-color);
}

.content-area a {
  color: var(--link-color) !important;
}

.content-area a:hover {
  color: var(--link-color);
  opacity: 0.8;
}

.footer {
  background-color: var(--footer-bg-color);
  color: white;
}

.footer a {
  text-decoration: none;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }

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

.navbar-light .navbar-nav .nav-link {
  color: var(--nav-link-color, #141414) !important;
}

.navbar-light .navbar-nav .active {
  color: var(--heading-color) !important;
}

/* Mobile nav */
@media (max-width: 1199.98px) {
  .navbar-collapse {
    position: fixed;
    top: 61px;
    left: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 15px;
    margin: 0;
  }

  .navbar-nav {
    width: 100%;
  }

  .navbar-nav .nav-item {
    margin: 7px 0;
  }

  .navbar-nav .nav-item:hover {
    transform: translateY(-1px);
  }

  .navbar-nav .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 0;
  }

  .navbar-toggler {
    z-index: 10000;
    position: relative;
  }
}

@media screen and (min-width: 1199.98px) {
  .dropdown-menu {
    top: 100%;
    left: 50% !important;
    transform: translateX(-50%);
  }
}

.navbar .dropdown-toggle::after {
  transition: transform .3s ease
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg)
}

.custom-dropdown {
  border: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
  border-radius: 12px;
  padding: .5rem 0;
  margin-top: .5rem;
  min-width: 220px;
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(10px)
}

.custom-dropdown .dropdown-item {
  padding: .75rem 1.5rem;
  transition: all .3s ease;
  color: var(--nav-link-color, #141414) !important;
  font-weight: 500;
  border-radius: 0;
  text-wrap: wrap
}

.custom-dropdown .dropdown-item:hover {
  color: #fff;
  border-radius: 8px
}

.custom-dropdown .dropdown-item i {
  width: 16px;
  color: #6c757d;
  transition: color .3s ease
}

.custom-dropdown .dropdown-item:hover i {
  color: #fff
}

.dropdown-menu {
  opacity: 0;
  transition: all .3s ease;
  display: block;
  visibility: hidden
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible
}

@media (min-width:1199.98px) {
  .custom-dropdown {
    max-width: 200px
  }
}

@media (max-width:1199.98px) {
  .custom-dropdown {
    background: #f8f9fa;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
    border-top: 1px solid #dee2e6
  }

  .custom-dropdown .dropdown-item:hover {
    margin: 0;
    border-radius: 0;
    transform: none
  }
}

.dropdown-menu:hover,
.dropdown:hover .dropdown-menu {
  display: block !important;
  visibility: visible;
  opacity: 1
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #91919131 !important;
}

.sidebar-page-list {
  padding: 0;
  margin: 0;
  margin-bottom: 17px;
  width: 279px;
}

.sidebar-page-list li {
  list-style-type: disc;
  list-style-position: inside;
  color: var(--heading-color);
}

.sidebar-page-list li::marker {
  color: var(--link-color);
  font-size: 1.2em;
}

.sidebar-page-list li:last-child {
  border-bottom: none;
}

.sidebar-page-list li a {
  padding: 12px 0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.sidebar-page-list li a:hover {
  padding-left: 11px;
}

.twitter-tweet {
  width: 279px !important;
}

.x {
  display: flex;
  justify-content: center;
}

.error_page {
  min-height: 70vh;
}


.blog-section {
  position: relative;
  overflow: hidden;
}

.blog-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.blog-section .container {
  position: relative;
  z-index: 2;
}

.blog-section h2 {
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.blog-section .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.1rem;
}

.blog-section .card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  border-radius: 16px;
  overflow: hidden;
}

.blog-section .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.blog-section .card-img-top {
  transition: transform 0.3s ease;
  border-radius: 0;
}

.blog-section .card:hover .card-img-top {
  transform: scale(1.05);
}

.blog-section .card-title {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  position: relative;
}

.blog-section .card-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.blog-section .card:hover .card-title::after {
  width: 80px;
}

.blog-section .card-text {
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

.blog-section .btn-outline-primary {
  border: 2px solid #667eea;
  color: #667eea;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 25px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.blog-section .btn-outline-primary:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.blog-section .text-muted {
  color: #888 !important;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Tech animation for cards */
@keyframes techGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  }

  50% {
    box-shadow: 0 0 30px rgba(118, 75, 162, 0.4);
  }
}

.blog-section .card:hover {
  animation: techGlow 2s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-section .card-title {
    font-size: 1.3rem;
  }

  .blog-section .btn-outline-primary {
    padding: 6px 20px;
    font-size: 0.8rem;
  }
}

/* Loading animation for images */
.blog-section .card-img-top {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.box {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  height: 100%;
}

.box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.box:hover::before {
  opacity: 1;
}

.box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(0, 255, 255, 0.1),
      transparent);
  transition: left 0.8s ease;
}

.box:hover::after {
  left: 100%;
}

.box:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow:
    0 8px 30px rgba(0, 255, 255, 0.3),
    0 0 20px rgba(0, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.box h3 {
  color: #00ffff;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.box h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.box:hover h3::after {
  width: 80px;
}

.box p {
  color: #e0e0e0;
  line-height: 1.7;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

/* Tech circuit pattern */
.box:nth-child(odd) {
  background: linear-gradient(145deg, #0f3460, #16213e);
}

.box:nth-child(even) {
  background: linear-gradient(145deg, #16213e, #0e1b2e);
}

/* Animated border effect */
.box {
  background-clip: padding-box;
}

.box:hover {
  animation: borderGlow 2s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% {
    box-shadow:
      0 8px 30px rgba(0, 255, 255, 0.3),
      0 0 20px rgba(0, 255, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }

  100% {
    box-shadow:
      0 8px 30px rgba(255, 0, 255, 0.3),
      0 0 20px rgba(255, 0, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

.form-news {
  display: flex;
  flex-direction: column;
  background: #606c88;
  background: -webkit-linear-gradient(to right, #3f4c6b, #606c88);
  background: linear-gradient(to right, #3f4c6b, #606c88);
  padding: 15px;
  border-radius: 10px;
  width: 279px;
  overflow-y: hidden;
}

.title {
  font-size: 1.5rem;
  line-height: 1rem;
  font-weight: 700;
  color: #fff;
}

.description {
  line-height: 1.5rem;
  font-size: 1rem;
  margin-top: 1rem;
  color: rgb(209 213 219);
}

.form-news div {
  display: flex;
  max-width: 28rem;
  margin-top: 1rem;
  column-gap: 0.5rem;
}

.form-news div input {
  outline: none;
  line-height: 1.5rem;
  font-size: 0.875rem;
  color: rgb(255 255 255);
  padding: 0.5rem 0.875rem;
  background-color: rgb(255 255 255 / 0.05);
  border: 1px solid rgba(253, 253, 253, 0.363);
  border-radius: 0.375rem;
  flex: 1 1 auto;
  width: 100px;
}

.form-news div input::placeholder {
  color: rgb(216, 212, 212);
}

.form-news div input:focus {
  border: 1px solid rgb(99 102 241);
}

.form-news div button {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.625rem 0.875rem;
  background-color: rgb(99 102 241);
  border-radius: 0.375rem;
  border: none;
  outline: none;
}

.tech-footer {
  background: linear-gradient(145deg, #0a0a0a, #1a1a2e);
  border-top: 2px solid rgba(0, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.tech-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00ffff, #ff00ff, transparent);
  animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

.footer-content {
  position: relative;
  z-index: 2;
}

.tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.footer-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 100px;
  background: radial-gradient(ellipse, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.copyright-section {
  position: relative;
}

.tech-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  margin-bottom: 15px;
  border-radius: 1px;
}

.copyright-text {
  color: #e0e0e0;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.copyright-symbol {
  color: #00ffff;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.year-highlight {
  color: #ff00ff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.brand-name {
  color: #00ffff;
  font-weight: 700;
  /* text-transform: uppercase; */
  letter-spacing: 1px;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.rights-text {
  color: #a0a0a0;
}

.contact-section {
  position: relative;
}

.email-text {
  color: #e0e0e0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  letter-spacing: 0.3px;
}

.tech-icon {
  color: #00ffff;
  margin-right: 8px;
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  animation: iconGlow 2s ease-in-out infinite alternate;
}

@keyframes iconGlow {
  0% {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  }

  100% {
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
  }
}

.terms-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 0, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 0, 255, 0.05);
}

.terms-link:hover {
  color: #ff00ff;
  border-color: rgba(255, 0, 255, 0.8);
  background: rgba(255, 0, 255, 0.1);
  transform: translateY(-2px);
  text-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
  box-shadow: 0 5px 15px rgba(255, 0, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tech-footer {
    padding: 2rem 0;
  }

  .tech-line {
    margin: 0 auto 15px;
  }

  .copyright-text {
    font-size: 0.85rem;
  }

  .email-text,
  .terms-link {
    font-size: 0.85rem;
  }

  .contact-section {
    flex-direction: column;
    gap: 10px;
  }
}

/* Hover effect for the entire footer */
.tech-footer:hover .footer-glow {
  animation-duration: 2s;
}

.tech-footer:hover .tech-line {
  animation: lineExpand 0.5s ease forwards;
}

@keyframes lineExpand {
  to {
    width: 100px;
  }
}

.rounded-5 {
  border-radius: 21px;
}

.contact-section-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 80vh;
  position: relative;
}

.contact-section-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 2;
}

.contact-title {
  color: #333;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.form-label {
  color: #333;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control,
.form-select {
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.form-control:focus,
.form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.2);
  background: rgba(255, 255, 255, 1);
  outline: none;
}

.form-control::placeholder {
  color: #999;
  font-style: italic;
}

.btn-submit {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  color: white;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
  color: white;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-subtitle {
    font-size: 1rem;
  }
}