



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

      .main-content {
        min-height: 100vh;
        padding: 2rem 0;
        background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
      }

      .word-form-card {
        background: white;
        border-radius: var(--border-radius);
        padding: 2rem;
        margin-bottom: 2rem;
        box-shadow: var(--shadow);
        border-left: 4px solid var(--primary-color);
        transition: var(--transition);
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
      }


      .word-form-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
      }

      .card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
      }

      .card-title {
        color: var(--primary-color);
        font-size: 1.5rem;
        font-weight: bold;
        margin: 0;
      }

      .difficulty-badge {
        background: var(--primary-color);
        color: white;
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: bold;
      }

      .difficulty-badge.beginner {
        background: var(--success-color);
      }

      .difficulty-badge.intermediate {
        background: var(--warning-color);
      }

      .difficulty-badge.advanced {
        background: var(--danger-color);
      }

      .guess-section {
        background: linear-gradient(135deg, #e6f3ff 0%, #b3d9ff 100%);
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
        border: 2px dashed var(--primary-color);
      }

      .guess-prompt {
        font-weight: bold;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
      }

      .reveal-btn {
        background: linear-gradient(
          135deg,
          var(--primary-color),
          var(--primary-dark)
        );
        color: white;
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: 30px;
        cursor: pointer;
        font-weight: bold;
        transition: var(--transition);
        font-size: 0.95rem;
        box-shadow: var(--shadow);
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      .reveal-btn:hover {
        background: linear-gradient(
          135deg,
          var(--primary-dark),
          var(--secondary-color)
        );
        transform: scale(1.05) translateY(-2px);
        box-shadow: var(--shadow-lg);
      }

      .reveal-btn:active {
        transform: scale(0.98) translateY(0);
      }

      .answer-section {
        display: none;
        animation: slideDown 0.5s ease-out;
      }

      .answer-section.revealed {
        display: block;
      }

      @keyframes slideDown {
        from {
          opacity: 0;
          transform: translateY(-10px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .transformation-table {
        width: 100%;
        border-collapse: collapse;
        background: white;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 1rem;
      }

      .transformation-table th {
        background: linear-gradient(
          135deg,
          var(--primary-color),
          var(--secondary-color)
        );
        color: white;
        padding: 1rem;
        text-align: left;
        font-weight: bold;
      }

      .transformation-table td {
        padding: 1rem;
        border-bottom: 1px solid #e2e8f0;
      }

      .transformation-table tr:last-child td {
        border-bottom: none;
      }

      .transformation-table tr:hover {
        background: #f7fafc;
      }

      .word-examples {
        background: var(--bg-light);
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
      }

      .example-item {
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        background: white;
        border-radius: 6px;
        border-left: 3px solid var(--secondary-color);
      }

      .word-usage {
        background: linear-gradient(135deg, #f0f9ff 0%, #c6f6d5 100%);
        padding: 1rem;
        border-radius: 8px;
        border-left: 3px solid var(--success-color);
        margin-bottom: 1rem;
      }

      .usage-tips {
        background: #fff5cd;
        border: 1px solid var(--warning-color);
        border-radius: 8px;
        padding: 1rem;
        margin-top: 1rem;
        font-size: 0.9rem;
      }

      .category-header {
        background: linear-gradient(
          135deg,
          var(--primary-color) 0%,
          var(--secondary-color) 100%
        );
        color: white;
        padding: 2rem;
        border-radius: var(--border-radius);
        text-align: center;
        margin-bottom: 2rem;
        position: relative;
        overflow: hidden;
      }

      .category-header::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
        opacity: 0.3;
      }

      .category-header > * {
        position: relative;
        z-index: 1;
      }

      .category-title {
        font-size: 2rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
      }

      .hero-section {
        background: linear-gradient(
          135deg,
          var(--primary-color) 0%,
          var(--secondary-color) 100%
        );
        color: white;
        padding: 4rem 0;
        text-align: center;
        position: relative;
        overflow: hidden;
      }

      .hero-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"><polygon points="0,100 100,0 100,100" fill="rgba(255,255,255,0.1)"/></svg>');
      }




      .hero-stats {
        display: flex;
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
        margin-top: 2rem;
      }

      .stat-item {
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        padding: 1rem;
        border-radius: 10px;
        backdrop-filter: blur(10px);
      }



      .quick-nav {
        background: white;
        padding: 1.5rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        margin-bottom: 2rem;
        text-align: center;
      }

      .quick-nav-title {
        font-weight: bold;
        margin-bottom: 1rem;
        color: var(--text-primary);
        font-size: 1.1rem;
      }

      .quick-nav-links {
        display: flex;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
      }

      .quick-nav-link {
        background: linear-gradient(
          135deg,
          var(--primary-color),
          var(--secondary-color)
        );
        color: white;
        padding: 0.75rem 1.25rem;
        border-radius: 25px;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 600;
        transition: var(--transition);
        border: 2px solid transparent;
        cursor: pointer;
      }

      .quick-nav-link:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
      }

      .suffix-prefix-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
        margin-bottom: 1rem;
      }

      .suffix-card {
        background: white;
        padding: 1.5rem;
        border-radius: 8px;
        border: 2px solid var(--primary-color);
        box-shadow: var(--shadow);
      }

      .suffix-card h4 {
        color: var(--primary-color);
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      .suffix-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
      }

      .suffix-item {
        background: var(--bg-light);
        padding: 0.75rem;
        border-radius: 6px;
        font-family: "Courier New", monospace;
        font-weight: bold;
      }

      .interactive-activity {
        background: linear-gradient(135deg, #f0f9ff 0%, #c6f6d5 100%);
        padding: 1.5rem;
        border-radius: 8px;
        margin-top: 1rem;
        border: 2px dashed var(--success-color);
      }

      .activity-title {
        color: #166534;
        font-weight: bold;
        margin-bottom: 1rem;
      }

      .activity-exercise {
        background: white;
        padding: 1rem;
        border-radius: 6px;
        margin-bottom: 1rem;
      }

      @media (max-width: 768px) {
        .hero-title {
          font-size: 2rem;
        }

        .category-title {
          font-size: 1.5rem;
        }

        .card-header {
          flex-direction: column;
          align-items: flex-start;
        }

        .hero-stats {
          gap: 1rem;
        }

        .quick-nav {
          padding: 1rem;
        }

        .quick-nav-links {
          flex-direction: column;
          gap: 0.75rem;
        }

        .quick-nav-link {
          padding: 0.75rem 1rem;
          text-align: center;
          font-size: 0.9rem;
        }

        .transformation-table {
          font-size: 0.9rem;
        }

        .transformation-table th,
        .transformation-table td {
          padding: 0.75rem;
        }
      }

      /* Ensure mobile dropdowns work properly */
      @media (max-width: 768px) {
        /* FORCE mobile menu to display full width */
        .nav-links,
        #navLinks,
        ul.nav-links {
          display: flex !important;
          position: fixed !important;
          top: 70px !important;
          left: 0 !important;
          right: 0 !important;
          bottom: 0 !important;
          width: 100vw !important;
          height: auto !important;
          min-height: calc(100vh - 70px) !important;
        }

        .nav-links.active,
        #navLinks.active,
        ul.nav-links.active {
          display: flex !important;
          max-height: calc(100vh - 70px) !important;
          height: auto !important;
        }

        /* Make sure nav links with dropdowns are clearly tappable */
        .nav-item .nav-link {
          position: relative;
          user-select: none;
          -webkit-user-select: none;
          -webkit-tap-highlight-color: rgba(70, 187, 229, 0.2);
          cursor: pointer;
        }

        /* Ensure chevron is visible and clickable */
        .nav-link .fa-chevron-down {
          transition: transform 0.3s ease !important;
          opacity: 1 !important;
          pointer-events: none; /* Let clicks go through to parent link */
        }

        /* Visual feedback when dropdown is open */
        .nav-item.mobile-open > .nav-link,
        .nav-item.mobile-dropdown-open > .nav-link {
          background: rgba(70, 187, 229, 0.15) !important;
          border-color: var(--primary-color, #46bbe5) !important;
        }

        /* Make dropdowns smoother */
        .dropdown {
          transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            padding 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }

        /* Ensure dropdown items are visible when parent is open */
        .nav-item.mobile-open .dropdown,
        .nav-item.mobile-dropdown-open .dropdown {
          display: block !important;
          visibility: visible !important;
          opacity: 1 !important;
          pointer-events: auto !important;
        }

        /* Ensure dropdown items are clickable */
        .dropdown-item,
        .dropdown > a {
          pointer-events: auto !important;
          touch-action: manipulation !important;
          user-select: none;
          -webkit-user-select: none;
        }
      }

