:root {
  --bg-light: #f9fafb;
  --card-bg: #ffffff;
  --accent-blue: #2563eb;
  --text-dark: #111827;
  --text-muted: #4b5563;
  --glow-color: rgba(37, 99, 235, 0.15);
  --border-light: #e5e7eb;
}

:root {
  /* Defining the colors from your image */
  --edu-red-top: #ff0000;
  --edu-red-bottom: #8b0000;
  --tech-green-top: #4db300;
  --tech-green-bottom: #004d00;
}

.uxfeat-highlight {
  /* This creates the vertical gradient effect */
  background: linear-gradient(to bottom, var(--edu-red-top), var(--edu-red-bottom));

  /* This clips the background to the shape of the letters */
  -webkit-background-clip: text;
  background-clip: text;

  /* This makes the actual text color transparent so the gradient shows through */
  -webkit-text-fill-color: transparent;
  color: transparent;

  font-weight: 800;
  /* Bold looks best for gradients */
  display: inline-block;
}

/* If you want the specific Green for the "TECH" part like the logo: */
.tech-part {
  background: linear-gradient(to bottom, var(--tech-green-top), var(--tech-green-bottom));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.uxfeat-section {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.uxfeat-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 60px;
  letter-spacing: -0.025em;
  color: var(--text-dark);
}

.uxfeat-highlight {
  color: var(--accent-blue);
}

.uxfeat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.uxfeat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 10px 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.uxfeat-card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 20px 25px -5px var(--glow-color), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-10px);
}

.uxfeat-icon-wrapper {
  background: #f3f4f6;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  transition: background 0.3s ease;
}

.uxfeat-card:hover .uxfeat-icon-wrapper {
  background: #eff6ff;
}

.uxfeat-icon-wrapper img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.uxfeat-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.uxfeat-card p {
  color: var(--text-muted);
  line-height: 1.2;
  font-size: 0.95rem;
  text-align: justify;
}

@media (max-width: 1024px) {
  .uxfeat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .uxfeat-grid {
    grid-template-columns: 1fr;
  }

  .uxfeat-title {
    font-size: 2rem;
  }
}



/* --- SECTION STYLING --- */
/* --- SECTION STYLING --- */
.cyber-list-section {
  padding: 80px 0;
  background: #0b1220;
  /* Dark Navy Brand Color */
  overflow: hidden;
}

/* Centering the Header */
.uxfeat-title.text-center {
  text-align: center !important;
  color: #ffffff;
  margin-bottom: 50px;
  font-family: 'Poppins', sans-serif;
}

.cyber-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1100px;
  /* Increased length of the cards */
  margin: 0 auto;
  padding: 0 20px;
}

/* --- 3D WRAPPER & TRACKER GRID --- */
.cyber-item-wrapper {
  position: relative;
  width: 100%;
  height: 65px;
  /* Slimmer height (was 85px) */
  perspective: 1200px;
}

.cyber-canvas {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  z-index: 20;
}

.tracker {
  width: 100%;
  height: 100%;
  z-index: 30;
  cursor: pointer;
}

/* --- THE CARD BODY --- */
.cyber-card-body {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.04);
  /* Glass Effect */
  border: 3px solid white;
  border-radius: 100px;
  /* Maintains the oval/pill shape for slimmer profile */
  display: flex;
  align-items: center;
  transition: transform 0.4s ease-out, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.cyber-content {
  display: flex;
  align-items: center;
  padding: 0 40px;
  /* Adjusted horizontal padding */
  width: 100%;
  z-index: 5;
}

/* --- ICON & TEXT STYLING --- */
.cyber-icon {
  flex: 0 0 35px;
  /* Slimmer icon container */
  height: 35px;
  margin-right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  /* Circle icon looks better in slim oval cards */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  border: 1px solid white;
}

.cyber-icon img {
  width: 18px;
  /* Adjusted icon size */
  filter: brightness(0) invert(1);
}

.cyber-content p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 15px;
  /* Slightly smaller font for slim look */
  margin: 0;
  text-align: left !important;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.2px;
}

.cyber-content p strong {
  color: #FF8C00;
  /* Brand Orange */
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.8px;
  margin-right: 8px;
}

/* --- 3D ROTATION MOVEMENTS --- */
.tr-1:hover~.cyber-card-body {
  transform: rotateX(4deg) rotateY(-2deg) scale(1.01);
}

.tr-5:hover~.cyber-card-body {
  transform: rotateX(4deg) rotateY(2deg) scale(1.01);
}

.tr-13:hover~.cyber-card-body {
  transform: scale(1.02);
}

.tr-21:hover~.cyber-card-body {
  transform: rotateX(-4deg) rotateY(-2deg) scale(1.01);
}

.tr-25:hover~.cyber-card-body {
  transform: rotateX(-4deg) rotateY(2deg) scale(1.01);
}

/* --- VISUAL EFFECTS --- */
.cyber-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  opacity: 0;
  transition: 0.3s;
}

.tracker:hover~.cyber-card-body .cyber-glare {
  opacity: 1;
}

.tracker:hover~.cyber-card-body {
  border-color: rgba(255, 140, 0, 0.5);
  box-shadow: 0 0 20px rgba(255, 140, 0, 0.1);
}

/* --- CORNER/CURVE ACCENTS --- */
.cyber-corners span {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 140, 0, 0.3);
  opacity: 0;
  transition: 0.3s;
}

/* Adjusted for slimmer oval edges */
.cyber-corners span:nth-child(1) {
  top: 10px;
  left: 35px;
  border-right: 0;
  border-bottom: 0;
}

.cyber-corners span:nth-child(2) {
  top: 10px;
  right: 35px;
  border-left: 0;
  border-bottom: 0;
}

.cyber-corners span:nth-child(3) {
  bottom: 10px;
  left: 35px;
  border-right: 0;
  border-top: 0;
}

.cyber-corners span:nth-child(4) {
  bottom: 10px;
  right: 35px;
  border-left: 0;
  border-top: 0;
}

.tracker:hover~.cyber-card-body .cyber-corners span {
  opacity: 1;
  border-color: #FF8C00;
}

/* --- 1. DEFAULT MOBILE STATE --- */
@media (max-width: 991px) {
    /* Completely hide the complex desktop container */
    .desktop-only-why { 
        display: none !important; 
    }

    /* Show your new simplified mobile list */
    .why-mobile-list {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
        padding: 0 20px 40px;
    }
}

/* --- 2. DEFAULT DESKTOP STATE --- */
@media (min-width: 992px) {
    /* Show original desktop version */
    .desktop-only-why {
        display: flex !important;
    }
    
    /* Hide the mobile version */
    .why-mobile-list {
        display: none !important;
    }
}



/* --- 1. GLOBAL TOGGLES --- */
.why-mobile-list, 
.why-mobile-heading, 
.m-break { 
    display: none; 
}

/* --- 2. MOBILE & TABLET VIEW (991px & DOWN) --- */
@media (max-width: 991px) {
    /* Reduce top section gap */
    .cyber-list-section {
        padding: 30px 0 !important;
    }

    /* Force the mobile heading to show and break into two lines */
    .why-mobile-heading {
        display: block !important;
        margin-bottom: 20px !important;
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
        color: #fff;
        text-align: center;
    }

    .m-break {
        display: block !important;
    }

    /* Hide the complex desktop version */
    .desktop-only-why { 
        display: none !important; 
    }

    /* Show and style the compact mobile cards */
    .why-mobile-list {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        padding: 0 15px 30px;
    }

    .why-mobile-card {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        padding: 10px 12px;
        display: flex;
        align-items: center; /* Balanced vertical alignment */
        gap: 12px;
    }

    .m-icon {
        flex: 0 0 35px;
        height: 35px;
        background: #FF8C00; /* Brand Orange */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .m-icon img {
        width: 18px;
        height: 18px;
        filter: brightness(0) invert(1);
    }

    .m-text strong {
        display: block;
        color: #FF8C00;
        font-size: 14px;
        margin-bottom: 1px;
    }

    .m-text p {
        color: #ffffff;
        font-size: 12px;
        line-height: 1.3;
        margin: 0;
        text-align: left !important;
    }
}

/* --- 3. DESKTOP VIEW (992px & UP) --- */
@media (min-width: 992px) {
    .desktop-only-why { 
        display: flex !important; 
    }
    
    /* Ensure a desktop heading is visible if it doesn't have mobile classes */
    #why .uxfeat-title:not(.why-mobile-heading) {
        display: block !important;
    }
}


/* --- DESKTOP SPACING RESET (992px & UP) --- */
@media (min-width: 992px) {
    /* 1. Remove padding from the main section container */
    .cyber-list-section {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    /* 2. Tighten the gap between the title and the 3D cards */
    .uxfeat-title.text-center {
        margin-top: 0 !important;
        margin-bottom: 30px !important; /* Shrunk from 60px to 30px */
    }

    /* 3. Ensure the inner wrap doesn't have extra margins */
    .cyber-list-section .wrap {
        padding: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

#why{
  background-image: url('../images/background/24236111_6912325.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}