/* Base Styles */
:root {
    --primary: #8e2de2;
    --primary-gradient: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
    --secondary: #14f195;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.1);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
  }
  
  body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  background: #000; /* fallback color */
}

body {
  position: relative;
  z-index: 0;
}

/* 🌈 Flowing Cinematic Background */
.cinematic-bg {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: -10;
  background: radial-gradient(circle at 30% 70%, rgba(142, 45, 226, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(20, 241, 149, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(74, 0, 224, 0.2) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: gradientFlow 15s ease infinite;
  pointer-events: none;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ✨ Tiny Floating Particles */
.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -9;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat 10s linear infinite;
  opacity: 0.7;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* 🌐 Mobile-friendly adjustments */
@media (max-width: 768px) {
  .particle {
    width: 2px;
    height: 2px;
  }
}

  
 html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  background: #000; /* fallback color */
}

body {
  position: relative;
  z-index: 0;
}

/* 🌈 Flowing Cinematic Background */
.cinematic-bg {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: -10;
  background: radial-gradient(circle at 30% 70%, rgba(142, 45, 226, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(20, 241, 149, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, rgba(74, 0, 224, 0.2) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: gradientFlow 15s ease infinite;
  pointer-events: none;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ✨ Tiny Floating Particles */
.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -9;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat 10s linear infinite;
  opacity: 0.7;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* 🌐 Mobile-friendly adjustments */
@media (max-width: 768px) {
  .particle {
    width: 2px;
    height: 2px;
  }
}

  
  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 10px;
  }
  
  ::-webkit-scrollbar-track {
    background: #1a1a2e;
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
  }
  
  /* Navigation */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: rgba(26, 26, 46, 0.95); /* Dark blue with 95% opacity */
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }
  
  .navbar.scrolled {
    background-color: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  }
  
  .logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
  }
  
  .logo span {
    color: var(--secondary);
  }
  
  .logo-icon {
    margin-right: 10px;
    font-size: 2rem;
  }
  
  .nav-links {
    display: flex;
    list-style: none;
  }
  
  .nav-links li {
    margin-left: 2.5rem;
    position: relative;
  }
  
  .nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
  }
  
  .nav-links a:hover {
    color: var(--secondary);
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
  }
  
  .nav-links a:hover::after {
    width: 100%;
  }
  
  /* Dropdown Menu */
  .dropdown {
    position: relative;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(26, 26, 46, 0.95);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    top: 100%;
    left: 0;
    margin-top: 10px;
    transition: opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: fadeIn 0.3s ease;
  }
  
  .dropdown-content:hover {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .dropdown-content a {
    color: var(--light);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .dropdown-content a:hover {
    background-color: rgba(142, 45, 226, 0.3);
    color: var(--secondary);
    padding-left: 20px;
  }
  
  /* Mobile Menu */
  .mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light);
  }
  
  .mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
  }
  
  .mobile-nav.active {
    left: 0;
  }
  
  .mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .close-menu {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light);
  }
  
  .mobile-nav-links {
    list-style: none;
    padding: 1rem 0;
  }
  
  .mobile-nav-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .mobile-nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .mobile-nav-links a:hover {
    color: var(--secondary);
    background-color: rgba(142, 45, 226, 0.1);
  }
  
  .mobile-dropdown-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 1.5rem;
    color: var(--light);
    background: none;
    border: none;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .mobile-dropdown-btn:hover {
    color: var(--secondary);
    background-color: rgba(142, 45, 226, 0.1);
  }
  
  .mobile-dropdown-content {
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
    padding-left: 1rem;
  }
  
  .mobile-dropdown-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
  }
  
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
  }
  

  .cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  
  .cta-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
  }
  
  .cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(142, 45, 226, 0.4);
  }
  
  .cta-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--secondary);
  }
  
  .cta-secondary:hover {
    background-color: var(--secondary);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(20, 241, 149, 0.3);
  }
  
  .hero-image {
    position: relative;
    width: 40%;
    z-index: 10;
    animation: floatAnimation 3s ease-in-out infinite alternate;
  }
  
  .hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  }
  

  
  /* Newsletter Section */
  .newsletter {
    padding: 5rem 5%;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
  }
  
  .newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
  }
  
  .newsletter h2 {
    color: white;
    margin-bottom: 1rem;
  }
  
  .newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
  }
  
  .newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
  }
  
  .newsletter-input:focus {
    outline: none;
  }
  
  .newsletter-button {
    padding: 1rem 2rem;
    border: none;
    background-color: var(--dark);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .newsletter-button:hover {
    background-color: var(--secondary);
    color: var(--dark);
  }
  
  /* Footer */
  .footer {
    background-color: #14142b;
    padding: 5rem 5% 2rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
  }
  
  .footer-column h4 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .footer-column h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-gradient);
  }
  
  .footer-links {
    list-style: none;
  }
  
  .footer-links li {
    margin-bottom: 0.8rem;
  }
  
  .footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
  }
  
  .footer-links a:hover {
    color: var(--secondary);
  }
  
  .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
  }
  
  .social-link:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(142, 45, 226, 0.3);
  }
  
  .copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
  }
  
  /* Suggested Section in Mobile Nav */
  .suggested-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .suggested-section h4 {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
  }
  
  .suggested-section a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(142, 45, 226, 0.1);
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--secondary);
  }
  
  .suggested-section a:hover {
    background: rgba(142, 45, 226, 0.2);
    color: var(--secondary);
    padding-left: 2rem;
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      transform: translateY(30px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes floatAnimation {
    0% {
      transform: translateY(0);
    }
    100% {
      transform: translateY(-15px);
    }
  }
  
  @keyframes ticker {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-100%);
    }
  }
  
  /* Responsive Design */
  @media (max-width: 1024px) {
    .hero-content {
      width: 55%;
    }
    
    .hero-image {
      width: 45%;
    }
  }
  
  @media (max-width: 768px) {
    .navbar {
      padding: 1rem 5%;
    }
    
    .nav-links {
      display: none;
    }
    
    .mobile-menu {
      display: block;
    }
    
    .hero {
      flex-direction: column;
      height: auto;
      padding: 120px 5% 5rem;
    }
    
    .hero-content {
      width: 100%;
      padding-right: 0;
      text-align: center;
      margin-bottom: 3rem;
    }
    
    .hero h1 {
      font-size: 2.8rem;
    }
    
    .hero-cta {
      justify-content: center;
    }
    
    .hero-image {
      width: 100%;
      max-width: 400px;
      margin: 0 auto;
    }
  }
  
  @media (max-width: 480px) {
    .hero h1 {
      font-size: 2.2rem;
    }
    
    .hero-cta {
      flex-direction: column;
    }
    
    .section-title {
      font-size: 2rem;
    }
  }
  
 
  .ad-rectangle {
    max-width: 300px;
    height: 250px;
  }
  
  .ad-large-rectangle {
    max-width: 336px;
    height: 280px;
  }
  
  .ad-sidebar {
    max-width: 160px;
    height: 600px;
    float: right;
    margin: 0 0 2rem 2rem;
  }
  

  
  /* Free Resource Section */
  .free-resource {
    padding: 5rem 5%;
    background-color: #161629;
    position: relative;
  }
  
  .free-resource .container {
    display: flex;
    align-items: center;
    gap: 3rem;
  }
  
  .resource-content {
    flex: 1;
  }
  
  .resource-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--light);
  }
  
  .resource-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
  }
  
  .resource-benefits {
    margin: 2rem 0;
    padding-left: 1.5rem;
  }
  
  .resource-benefits li {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 1.5rem;
  }
  
  .resource-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
  }
  
  .resource-join {
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  /* Brevo Form Styling */
  .resource-form-container {
    margin: 2rem 0;
  }
  
  #error-message, #success-message {
    font-size: 16px;
    text-align: left;
    font-family: Helvetica, sans-serif;
    border-radius: 3px;
    margin-bottom: 10px;
    padding: 10px;
    display: none;
  }
  
  #error-message {
    color: #661d1d;
    background-color: #ffeded;
    border: 1px solid #ff4949;
  }
  
  #success-message {
    color: #085229;
    background-color: #e7faf0;
    border: 1px solid #13ce66;
  }
  
  .sib-form-message-panel__text {
    display: flex;
    align-items: center;
  }
  
  .sib-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }
  
  .custom-brevo-container {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  
  /* Email and button container - exact match to original */
  .email-button-container {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
  }
  
  .form-input-wrapper {
    flex: 1;
  }
  
  /* Fixed input styling to match original */
  .form-input-wrapper input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    height: 100%;
    box-sizing: border-box;
  }
  
  input#EMAIL {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    height: 100%;
    border-radius: 0;
    margin: 0;
  }
  
  input#EMAIL:focus {
    outline: none;
  }
  
  /* Button styling exact match to original */
  .resource-button {
    padding: 1rem 2rem;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    white-space: nowrap;
    height: auto;
  }
  
  .resource-button:hover {
    box-shadow: 0 5px 15px rgba(142, 45, 226, 0.3);
  }
  
  /* Captcha styling - outside the email container */
  .captcha-wrapper {
    width: 100%;
    margin: 15px 0;
    display: flex;
    justify-content: flex-start;
  }
  
  .progress-indicator__icon {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    display: none;
  }
  
  .privacy-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
  }
  
  .resource-image {
    flex: 1;
    max-width: 400px;
  }
  
  .resource-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  }
  
  .input--hidden {
    display: none !important;
  }
  
  /* Fix for Brevo form structure */
  #sib-container {
    text-align: left !important;
  }
  
  #sib-form {
    display: flex;
    flex-direction: column;
  }
  
  /* Fix any additional Brevo styles that might interfere */
  #sib-container input:-ms-input-placeholder {
    text-align: left;
    font-family: Helvetica, sans-serif;
    color: #c0ccda;
  }
  
  #sib-container input::placeholder {
    text-align: left;
    font-family: Helvetica, sans-serif;
    color: #c0ccda;
  }
  
  /* Ensure no Brevo default styles interfere */
  #sib-container .input {
    padding: 1rem 1.5rem !important;
    text-align: left !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  
  .sib-form-block {
    padding: 0 !important;
  }
  
  .form__entry {
    width: 100%;
  }
  
  /* Set consistent height and display for email and button */
  .form-input-wrapper, .resource-button {
    height: 56px;
    display: flex;
    align-items: center;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .free-resource .container {
      flex-direction: column;
    }
    
    .resource-image {
      order: -1;
      max-width: 100%;
    }
    
    .email-button-container {
      flex-direction: column;
      border-radius: 16px;
      overflow: hidden;
    }
    
    .resource-button {
      width: 100%;
    }
  }
  
  /* Media Queries */
  @media (max-width: 992px) {
    .free-resource .container {
      flex-direction: column;
    }
    
    .resource-image {
      order: -1;
      margin-bottom: 2rem;
    }
    
    .ad-sidebar {
      float: none;
      margin: 3rem auto;
    }
  }
  
  @media (max-width: 768px) {
    .difference-item {
      flex-direction: column;
    }
    
    .difference-number {
      margin-right: 0;
      margin-bottom: 1rem;
    }
    
    .resource-form {
      flex-direction: column;
      border-radius: 8px;
    }
    
    .resource-form input {
      border-radius: 8px 8px 0 0;
    }
    
    .resource-button {
      width: 100%;
      border-radius: 0 0 8px 8px;
    }
  }

  /* Base Styles */
:root {
  --primary: #8e2de2;
  --primary-gradient: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
  --secondary: #14f195;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Category Search Section */
.category-search {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.search-container {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--card-border);
}

/* Category Header */
.category-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.category-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.category-description {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.8);
}

/* Search Box */
.search-box {
  margin-bottom: 2rem;
}

.search-box form {
  display: flex;
  gap: 0.5rem;
  position: relative;
}

.search-input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border-radius: 0.5rem;
  color: var(--light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.search-image {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 1.5rem;
  pointer-events: none;
  z-index: 1;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(142, 45, 226, 0.3);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-button {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(74, 0, 224, 0.3);
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(74, 0, 224, 0.4);
}

.search-button:active {
  transform: translateY(0);
}

/* Sort Options */
.sort-options {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
}

.sort-options span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.sort-option {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.sort-option:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.sort-active {
  color: var(--secondary);
  background-color: rgba(20, 241, 149, 0.1);
  font-weight: 500;
}

/* Search Results */
.search-results h3 {
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.result-item {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.result-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(142, 45, 226, 0.3);
}

.result-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.result-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: white;
}

.result-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.result-date {
  color: rgba(255, 255, 255, 0.6);
}

.result-category {
  color: var(--secondary);
  font-weight: 500;
}

.result-readtime {
  color: rgba(255, 255, 255, 0.6);
}

.result-excerpt {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.7;
}

.read-more {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.result-link:hover .read-more {
  color: var(--secondary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

.page-info {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.page-controls {
  display: flex;
  gap: 0.5rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.page-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-current {
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
}

.page-next {
  width: auto;
  padding: 0 1rem;
  border-radius: 1.25rem;
}

/* Category Selector */
.category-selector {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--card-border);
}

.category-selector h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.category-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.category-link:hover {
  background: var(--primary-gradient);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 0, 224, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .search-box form {
    flex-direction: column;
  }
  
  .search-button {
    width: 100%;
  }
  
  .sort-options {
    flex-wrap: wrap;
  }
  
  .pagination {
    flex-direction: column;
    gap: 1rem;
  }
  
  .result-meta {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .category-title {
    font-size: 2rem;
  }
  
  .category-links {
    gap: 0.75rem;
  }
  
  .category-link {
    padding: 0.5rem 1rem;
  }
  
  .result-item {
    padding: 1.25rem;
  }
}

/* Result Image Styles */
.result-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.result-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(142, 45, 226, 0.3);
}

.result-image {
  flex: 0 0 120px;
  height: 120px;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.result-item:hover .result-image img {
  transform: scale(1.05);
}

.result-content {
  flex: 1;
}

.result-link {
  text-decoration: none;
  color: inherit;
  display: contents;
}

/* Responsive adjustments for /images */
@media (max-width: 768px) {
  .result-item {
    flex-direction: row;
    gap: 15px;
  }
  
  .result-image {
    flex: 0 0 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .result-item {
    flex-direction: column;
  }
  
  .result-image {
    flex: 0 0 auto;
    width: 100%;
    height: 180px;
    margin-bottom: 1rem;
  }
}

 .result-item {
      display: flex;
      gap: 20px;
      margin-bottom: 30px;
    }
    
    .result-image {
      flex: 0 0 120px;
      height: 120px;
      border-radius: 8px;
      overflow: hidden;
    }
    
    .result-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .result-content {
      flex: 1;
    }
    
    /* Adjustments to existing styles */
    .result-link {
      display: contents;
    }